Forum Discussion

nathe's avatar
nathe
Icon for Cirrocumulus rankCirrocumulus
May 05, 2010

add pool member in a disabled state

Hi all,

 

 

Is there any way of adding a new pool member to an existing pool in a disabled state, rather than adding it enabled and then disabling it straight away?

 

 

Thanks in advance,

 

N

 

10 Replies

  • I know in version 9.x you can add a node, disable the node, then add the node to the existing pool. I remember thinking this same question in version 4.x but never to the time to determine if it was possible
  • Hamish's avatar
    Hamish
    Icon for Cirrocumulus rankCirrocumulus
    Sadly in v9 if you disable a node, then you disable ALL the poolmembers on that node. So it would only work for the first poolmember on that node.

     

     

    However you could perhaps create a monitor that always marked a member down. Then add the member with that monitor as a member specific monitor. The monitor would immediately mark the member down... However I'm unsure whether the member would be marked down BEFORE any client connections were attempted to be sent to the new member...

     

     

    Might require some testing...

     

     

    H
  • Yes. You can do it with a Merge File. Not something for people that are not comfortable with Linux Command Line (CLI) and VI, but here is an example:

    From F5 Command Line, create a file (in your Home Directory is fine):

    vi test.merge.file

    Paste in the pool with the changes (Note: You can get the information by searching through the /config/bigip.conf file and grab everything for the pool [See Example Below])

    If you do NOT have Administrative Domains and Partitions Configured:

    
    pool whatever.the.pool.name.is {
       lb method member least conn
       monitor all tcp
       members
          10.10.10.10:http
          20.20.20.20:http
             session disable
    }
    

    If you have Administrative Domains and Paritions Configured:

    
    shell write partition Partition.Name
    pool whatever.the.pool.name.is {
       lb method member least conn
       monitor all tcp
       members
          10.10.10.10:http
          20.20.20.20:http
             session disable
    }
    

    Save the file.

    Verify the file to insure that it is formatted correctly and that there are no obvious syntax errors:

    b verify merge test.merge.file

    Reading configuration from test.merge.file

    No problems found.

    Merge the file.

    b merge test.merge.file
  • I need to forward 300 port at the same time to a new member, Is it recommended to apply this method too?, or there is any suggestion to use another method?.

     

     

    Regards.
  • If you're using least connections just use a slow ramp configuration to do this - it'll gracefully add the pool member without hammering it with new connections.

     

    -Matt
  • Hi L4L7, if I understand well, are you recommend to do this with the GUI window?, is it right?
  • Hi L4L7, if I understand well, are you recommend to do this with the GUI window?, is it right?
  • you can do that using the following command :

     

    modify ltm pool Pool-name members add { 1.1.1.1:45010 { session disabled }}

     

  • if you have a Active/Standby pair, just add the new member at the standby unit, disable it and sync