Forum Discussion
Sep 21, 2004
How to take down a node...
This question has come up several times since the release of 9.0 so I thought it warranted a post here. The question is about the new methods call that were previously set_state (traffic or no traffic) and set_availability (new sessions, no new sessions). Here's the results directly from the developer who implemented the features:
In v9.0, for both LocalLB::NodeAddress and LocalLB::PoolMember, the following rules apply:
- set_session_enabled_state - sets the state that determines whether to allow new sessions to be established. If disabled, this allows current connections to stay connected, but stops the node from accepting new connections. This corresponds to the set_state method in 4.5x.
- set_monitor_state - sets the availability state, i.e. UP/DOWN. If disabled, this immediately performs a forced-down to all node addresses/pool members.. This basically stops all traffic (including persistent connections) from being sent to the node addresses/pool members. This corresponds to the set_availability method in 4.5x.
- get_session_enabled_state returns the state (enabled/disabled) that we set in set_session_enabled_state, but to get the true computed/propagated status of that operation, get_session_status should be called. Note that the SessionStatus enum returned by get_session_status has more than just the enabled/disabled status.
For example, if you call NodeAddress::set_session_enabled_state (10.10.10.100, disable), calling PoolMember::get_session_status (pools), where pools contains member 10.10.10.100:80, will return a SessionStatus of SESSION_STATUS_ADDRESS_DISABLE, even though PoolMember::get_session_enabled_state might return an Enabled state for that pool member.
The same thing applies to set_monitor_state, i.e. you call this method to set the availability for the object, but you'll need to call get_monitor_status to get the actual availability status
-Joe
- jamesnovak_1275
Nimbostratus
Hi, - Jim,
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