Jump to content
Welcome to our new Citrix community!

What is the use of weight command in servicegroup configuration ?


Sarovani CK

Recommended Posts

What is the use of weight command in servicegroup configuration ?

And how it actually works .Can you please explain with this below config example ?

bind serviceGroup TEST_HTTP_CSK REAL_SRV8_CSK 80 -weight 100

bind serviceGroup TEST_HTTP_CSK REAL_SRV7_CSK 80 -weight 100

bind serviceGroup TEST_HTTP_CSK REAL_SRV6_CSK 80 -weight 100

bind serviceGroup TEST_HTTP_CSK REAL_SRV5_CSK 80 -weight 100

bind serviceGroup TEST_HTTP_CSK REAL_SRV4_CSK 80 -weight 100

bind serviceGroup TEST_HTTP_CSK REAL_SRV3_CSK 80 -weight 100

bind serviceGroup TEST_HTTP_CSK REAL_SRV2_CSK 80 -weight 65

bind serviceGroup TEST_HTTP_CSK REAL_SRV1_CSK 80 -weight 65

bind serviceGroup TEST_HTTP_CSK -monitorName tcp

Link to comment
Share on other sites

Weight influences how the requests will be distributed among the backend servers. Higher weight indicates that the server can handle more requests than servers with lower weights. The resulting distribution will also depend on the type of load balacing algorithm you are using (Least connections, round-robin, etc.).

In your example, if it is round-robin, Servers 1 and 2 will receive 65% of the number of requests sent to Servers 3-8. For example, if you send 7300 requests, Servers 3-8 will receive 1000 requests each, and Servers 1-2 will receive requests 650 each.

More details about the algorithm for each type of load balancing here: https://docs.netscaler.com/en-us/citrix-adc/current-release/load-balancing/load-balancing-customizing/assign-weight-services.html

There are other factors that can influence the distribution of requests, like slow-start algorithm, adding or removing servers to the pool, health of the server, etc.

Hope it helps.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...