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
- 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 );
void LocalLB::NodeAddress::set_session_enabled_state( in String[] node_addresses, in EnabledState[] states );
- ameltzer_127050
Nimbostratus
I've been using LocalLBNodeAddress.set_session_enabled_state and it doesn't appear to do anything on the node. I inserted some debugging into my code to try to break down what it's doing: - Loc_Pham_101863Historic F5 AccountNodeAddress::set_session_enabled_state will set the configuration setting that allows new sessions to be established to the node addresses.
- wayney_128269
Nimbostratus
How would I completely disable a node such that it does not take anymore connections? - wayney_128269
Nimbostratus
Also, what are the pros\cons of using LocalLB::NodeAddress::set_session_enable_state() over LocalLB::PoolMember::set_session_enabled_state() to enable\disable DIPs? - Loc_Pham_101863Historic F5 AccountTo disable a node address such that it will not take any new connection:
- wayney_128269
Nimbostratus
So what method is used to take a node UP\DOWN? - Loc_Pham_101863Historic F5 AccountTo take the node address UP/DOWN, and therefore affecting all pool members using the same IP address:
- wayney_128269
Nimbostratus
ok, thanks for the quick reply. I'm a little confused about the up/down and enabled/disabled states for a node. Please clarify\explain the following situations a node can be in. I see four possible siuations a node can be in: - Loc_Pham_101863Historic F5 AccountNODE 10.10.10.100 UP SESSIONS ENABLED
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