Forum Discussion
wayney_128269
Nimbostratus
Feb 28, 2005which method to enable disable server?
Hello,
Exactly, which method would I need to use to enable or disable a server from load balancing?
thanks
Feb 28, 2005
Look at the LocalLB::PoolMember::set_session_enabled_state() method.
struct IPPortDefinition {
String address;
Long port;
};
enum EnabledState {
STATE_DISABLED = 0, // The object is disabled.
STATE_ENABLED = 1 // The object is enabled.
};
struct MemberSessionState {
IPPortDefinition member
EnabledState session_state
};
void LocalLB::PoolMember::set_session_enabled_state(
in String[] pool_names,
in MemberSessionState[][] session_states
);
You call this with an array of pools that you want to manipulate in the pool_names variable and then pass the members for each of the pools you want to change in the session_states variable.
If you want to disable all access to a given Node, you can can also set the session state at a global address level using the LocalLB::NodeAddress::set_session_enable_state() method
void LocalLB::NodeAddress::set_session_enabled_state(
in String[] node_addresses,
in EnabledState[] states
);
-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
