Forum Discussion
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