Citrix ADC

用例:部署基于IP地址的GSLB服务组

提示

有关GSLB服务组的详细信息,请参见配置GSLB服务组

部署场景

如果有多个应用程序驻留在同一个应用服务器上,GSLB应该探测这些应用程序,以查看应用程序是否响应。如果应用程序没有响应,则必须将用户定向到应用程序处于UP状态的服务器。另外,如果其中一个应用程序是DOWN,那么服务器不应该被标记为DOWN,因为其他应用程序是UP的。

在下面的示例中,多个应用程序(HTTPS)托管在每个GSLB站点的一台服务器上,因此所有这些应用程序都解析为各自站点的一个IP地址。

通过使用GSLB服务组,可以将同一个服务器的IP地址和端口绑定到多个服务组,其中每个服务组代表不同的应用程序。

特定于应用程序的监视器绑定到服务组,如果应用程序为DOWN,则将服务组标记为DOWN。因此,当应用程序DOWN时,从设置中取出的只有该应用程序,而不是服务器。

' ' ' add gslb serviceGroup app1_site1 HTTP -maxClient 0 -cip DISABLED -cltTimeout 180 -svrTimeout 360 -siteName s1 add gslb serviceGroup app2_site1 HTTP -maxClient 0 -cip DISABLED -cltTimeout 180 -svrTimeout 360 -siteName s1 add gslb serviceGroup app1_site2 HTTP -maxClient 0 -cip DISABLED -cltTimeout 180 -svrTimeout 360 -siteName s2 add gslb serviceGroup app2_site2 HTTP -maxClient 0 -cip DISABLED -cltTimeout 180 -svrTimeout 360 -siteName s2 add lb monitor http_app2 HTTP -respCode 200 -httpRequest"GET /testsite/app2.html" add lb monitor http_app1 HTTP -respCode 200 -httpRequest "GET /testsite/app1.html" bind gslb serviceGroup app1_site1 192.0.2.140 80 bind gslb serviceGroup app1_site1 -monitorName http_app1 bind gslb serviceGroup app2_site1 192.0.2.140 80 bind gslb serviceGroup app2_site1 -monitorName http_app2 bind gslb serviceGroup app1_site2 192.0.2.142 80 bind gslb serviceGroup app1_site2 -monitorName http_app1 bind gslb serviceGroup app2_site2 192.0.2.142 80 bind gslb serviceGroup app2_site2 -monitorName http_app2  ```
用例:部署基于IP地址的GSLB服务组