Forum Discussion
hector_morrell_
Nimbostratus
Mar 12, 2008Can we change the Weigth Ratio of a pool memeber via an Irule
I want to know if we can change the pool member ratio via iRule.
I can check for the ratio using the LB::status command but I do not see a way to change the Member Ratio.
This is what I want to do if possible.
There are three servers. Server1, server2 and server3
There are two pools
Pool Main
Pool Check
The default ratio is 7 7 7 for Pool Main
We have a page call serverutil.aspx on each server
I created a monitor that check this page for a return string equal to goodserver in the Pool Check.
The servutil page changes the string from goodserver to badserver when the utilization of this server+SQL servers reaches a predefine numbers.
Let assume that server2 goes to badserver
Now I need to change the Ration for server2 to 1 in the Main pool
if { [LB::status pool Check member server2] eq "down" } then {
I want to change the Ratio in pool Main to 7 1 7 in another words change the ration for server2 in pool Main to 1 }
Can this be done via iRules with a one or two line command?
I know that I can create a counter and keep track that way but I want to see if there is a simple way of doing this first.
I know we can use dynamic ration using SNMP but the formula that we have is more complex that just the front end server.
1 Reply
- hoolio
Cirrostratus
I think the cleanest option for dynamically modifying the member ratio would be using iControl (Click here - Click here). Theoretically, you could build your own ratio load balancing in an iRule, but I think it would be prohibitively complicated.
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects