Email to friend
Your name: *
Your email: *
Friend's email: *
Comment:


SLB Method with QoS Hostname Policy (hostname)

In our example, c-one.example.com refers to “customer one” while c-two.example.com refers to “customer two”. Any other hostname that is used to access the VIP will go to the default policy.

Group 1: hostname: c-one.example.com (Round Robin)
Members:
S1.sj.example.com
S2.sj.example.com

Group 2: hostname: c-two.example.com (Round Robin)
Members:
S3.sj.example.com
S4.sj.example.com

Group 3: any other hostname (Default Policy)
Members:
S5.sj.example.com

slb group method c_one_group rr
slb group member c_one_group server1
slb group member c_one_group server2

slb group method c_two_group rr
slb group method c_two_group server3
slb group method c_two_group server4
slb group method www_group rr

slb group member www_group server5

By default, we want Group 3 to service any requests that don’t have c-one.example.com or c-two. example.com as their hostnames.

slb policy default vip1 www_group
slb policy QoS hostname c_one_pol vip1 c_one_group c_one.example.com 1
slb policy QoS hostname c_two_pol vip1 c_two_group c_two.example.com 2