On Thu, Feb 7, 2013 at 6:46 AM, MrTeleBird <mrteleb...@gmail.com> wrote:

> How can I gracefully shut down my servers of a given pool member for
> maintenance without disrupting current user sessions using the F5 iControl
> module??...and of course, allowing for enabling and disabling of the server
> for a pool
>
> Has anyone done this before?
>

The short version is F5 have an API call, but I'm not sure it's actually
usable. The good news is you have other options.

The v11 API [1] was extended to support this functionality, but the module
was written specifically for v10 [2]. I don't know the f5-icontrol 10.2
gem compatibility with v11 API, and F5 haven't released v11.2.1 gem yet
[3]. I think setting a poolmember connection limit would simulate the
behavior. The other solution is setup monitoring to watch a service
availability and drain stop (not the actual service but a service
availability indicator). This is actually quite helpful as it gives the
server admin the ability to start maintenance, monitor user traffic drain,
all without any load balancer changes [4].

If you are on v11 and willing to work with the provider, you can look at
updating this section:
https://github.com/puppetlabs/puppetlabs-f5/blob/master/lib/puppet/provider/f5_pool/f5_pool.rb#L66-L74
https://github.com/puppetlabs/puppetlabs-f5/blob/master/lib/puppet/provider/f5_pool/f5_pool.rb#L123-L131

Change the WSDL to LocalLB.Pool, add enabled state property, and change to
the appropriate get_member_*, set_member_* methods.

HTH,

Nan

1.
https://devcentral.f5.com/wiki/iControl.GlobalLB__Pool__set_member_enabled_state.ashx
2. https://devcentral.f5.com/wiki/iControl.GlobalLB__PoolMember.ashx
3.
https://devcentral.f5.com/tech-tips/articles/getting-started-with-ruby-and-icontrol
4. https://devcentral.f5.com/community/group/aft/2161534/asg/50

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to