Netscaler GSLB的主备数据中心解决方案

时间:2021-05-10 16:14:24

Netscaler GSLB的主备数据中心解决方案

http://blog.51cto.com/caojin/1898182

 

GSLB的主、备数据中心解决方案思路:

其实这只是多数据中心的一个特例而已,多数据中心方案中写location为:

NSGEO1.0

Context=custom

Qualifier1=ispname

Start

"192.168.1.50","192.168.1.60","IDC1"

"192.168.1.200","192.168.1.254","IDC2"

而主、备数据中心只需把所有的客户LDNS的地址写进一条,其余地址的只做备份,location为

NSGEO1.0

Context=custom

Qualifier1=ispname

Start

"192.168.1.1","192.168.255.254","IDC1"

这里只有落在192.168.1.1-192.168.255.254之间的LDNS才能匹配,也就是正常情况下用户应该访问IDC1。如果IDC1出现灾难性故障,那么LDNS落在这个范围外或者由于该IDC的VIP已经变为down,那么DNS应答只能是其他健康的IP了

配置如下:

*******************************************************************************************

IDC1

VIP

Netscaler GSLB的主备数据中心解决方案

GSLB Service 注意加partner的VIP

Netscaler GSLB的主备数据中心解决方案

 

 

GSLB Vserver

Netscaler GSLB的主备数据中心解决方案

 

 

Netscaler GSLB的主备数据中心解决方案

 

location

Netscaler GSLB的主备数据中心解决方案

 

Netscaler GSLB的主备数据中心解决方案

Site

Netscaler GSLB的主备数据中心解决方案

*******************************************************************************************

IDC2

VIP

Netscaler GSLB的主备数据中心解决方案

 

GSLB Service 注意加partner的VIP

Netscaler GSLB的主备数据中心解决方案

 

 

GSLB Vserver

Netscaler GSLB的主备数据中心解决方案

 

Netscaler GSLB的主备数据中心解决方案

location

Netscaler GSLB的主备数据中心解决方案

Netscaler GSLB的主备数据中心解决方案

 

Site

Netscaler GSLB的主备数据中心解决方案

 

DNS配置

Netscaler GSLB的主备数据中心解决方案

 

*****************************************************************************************************************

方案效果

 

正常情况下的用户访问IDC2,如果IDC2出现服务中断,用户自动跳转到IDC1

Netscaler GSLB的主备数据中心解决方案

IDC2截图

Netscaler GSLB的主备数据中心解决方案

IDC1截图

Netscaler GSLB的主备数据中心解决方案

人为中断IDC2的服务

Netscaler GSLB的主备数据中心解决方案

中断后IDC2截图

Netscaler GSLB的主备数据中心解决方案

中断后IDC1截图

Netscaler GSLB的主备数据中心解决方案

 

客户访问效果

Netscaler GSLB的主备数据中心解决方案