Forum Discussion

Meshal_119384's avatar
Meshal_119384
Icon for Nimbostratus rankNimbostratus
Jan 28, 2015

Create Pool with two nods and fours service port active/passive

dears ,

 

I have requirement to have POOL with port x and the two nodes (a ,b) will have four ports x , x and y ,y while the x port in two node will be active and port y will be passive if port x down in node a the port y in node b will be active and etc ,, i have add all the ports in pool and add the monitor for both , but there issue the traffic some times go to port y which is not active , any solutions ???

 

2 Replies

  • Hi Meshal,

    what about creating two pools? Pools are using the same nodes but listen on the 2 different ports.

    ltm pool pool_port_8081 {
        members {
            10.131.131.101:8081 {
                address 10.131.131.101
            }
            10.131.131.102:8081 {
                address 10.131.131.102
            }
        }
        monitor http_head_f5
    }
    ltm pool pool_port_8082 {
        members {
            10.131.131.101:8082 {
                address 10.131.131.101
            }
            10.131.131.102:8082 {
                address 10.131.131.102
            }
        }
        monitor http_head_f5
    }
    

    An iRule may solve the problem by checking the availability of pool_port_8081 first and forwards to pool_port_8082 in case there are no members available on the "primary" pool_port_8081.

    when CLIENT_ACCEPTED {
         two pools configured (same nodes using different ports)
        if { [active_members pool_port_8081] > 0 } {
            pool pool_port_8081
        } else {
            pool pool_port_8082
        }
    }
    

    Thanks, Stephan

  • I have solve the issue by chose monitor the node inside pool , no general monitor pool