Forum Discussion
dalexand_127251
Nimbostratus
Oct 29, 2003Threshold for minimum number of nodes in a pool
We would like to define a threshold for the minumum number of nodes in a pool when a pool is created. This threshold would be used by external monitoring to generate alerts when the number of active ...
Oct 29, 2003
Minimum active members are used to specify a threashold on a pool to change packet distribution to other priority groups when the threashold is reached. If you don't want load balancing decisions to be effected by the number of active members then minimum active members is not what you want.
There currently is no support for user defined values associated with pools but we do have the ability to query the pool members active states. So by passing in the list of members you can get the list of active states for all the nodes. You can then iterate this list to determine the number of "active" nodes in a pool and then store your own "threshold" externally, you can perform external actions.
void get_member_list(
in String pool_name,
out IPPortDefinition[] members
);
void get_member_active_states(
in String pool_name,
in IPPortDefinition[] member_defs,
out MemberState[] member_states
);
Your code could look something like the following.
// Get member list
Pool.get_member_list(pool_name);
// extract member list from results
Pool.get_member_active_states(pool_name, member_list);
// extract active states from results
// iterate through list and count active members
if ( active_members < threshold ) {
// send alert
}
Let us know if this solution isn't what you were looking for. If so, pass along more details on your specific scenario.
-Joe
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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