Forum Discussion

symtex_22198's avatar
symtex_22198
Icon for Nimbostratus rankNimbostratus
Jun 28, 2012

active standby members within a pool???

 

I would like to have the following layout.

 

 

server1=active

 

server2=backup for server1

 

server3=active

 

server4=backup for server3

 

server5=active

 

server6j=backup for server5

 

 

 

is this posible via any configuration options or is it necessary to make an irule?

 

 

I know about priority groups but it doesn't seem like it would work the way I need it to.

 

  • can you try to create reverse health monitor to specific server and assign it to the backup server? for example, creating reverse monitor to server1 and assigning to server2.
  • giltjr's avatar
    giltjr
    Icon for Nimbostratus rankNimbostratus
    You would need to do this via an iRule. Since all members of a pool are looked at for load balancing. Even with a reverse monitor, if 1 goes down new connections could be sent to 2, 3 or 5.

     

     

    Is there a special reason you want 2 to only backup 1, 4 only to backup 3, and 6 only to backup 5?
  • Since all members of a pool are looked at for load balancing. Even with a reverse monitor, if 1 goes down new connections could be sent to 2, 3 or 5. oh thanks!, i missed it.
  • for irule, i think you may create 2 pools; one (e.g. pool1) contains server1, server3 and server5 without health monitor but the other one (e.g. pool2) has.

     

     

    then assign pool1 to virtual server. in LB_SELECTED, check whether selected pool member is marked down in pool2. if so, use node or pool command to direct traffic to its backup server.

     

     

    LB::server wiki

     

    https://devcentral.f5.com/wiki/iRules.LB__server.ashx

     

     

    LB::status wiki

     

    https://devcentral.f5.com/wiki/iRules.lb__status.ashx

     

     

    node wiki

     

    https://devcentral.f5.com/wiki/iRules.node.ashx

     

     

    pool wiki

     

    https://devcentral.f5.com/wiki/iRules.pool.ashx