Forum Discussion
How to create a new node and it add it to a pool as disabled.
- Oct 01, 2013
It sounds like you're running into an issue with your node names. I'm guessing your error is that the address specified already matches an existing node?
When a node is created with
LocalLB::Pool::add_member_v2()
The name of the created node (if it doesn't already exist) is the same as the IP address you gave it.
So when you create the node with
LocalLB::NodeAddressV2::create()
Just pass the IP address as the name as well. That way, you can create it, disable it with
LocalLB::NodeAddressV2::set_session_enabled_state
as stated by the others, and then add it to the pool you want. You won't run into the issue I'm guessing you have. The last call will match the specified AddressPorts to the existing nodes.
It's a tricky one. I would say to just ensure the host fails health check, but even if the host would fail health check, there is a period of time before it gets marked as down. In the small window, traffic is sent to the node.
Will be interested to hear what suggestion other folks have.
Recent Discussions
Related Content
* 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