Forum Discussion

Robert_Landrito's avatar
Robert_Landrito
Icon for Nimbostratus rankNimbostratus
Apr 07, 2015

failover HTTP request to specificied IP:port

Greetings,

 

I currently have an iRule that will failover an http request to a secondary "failover" pool if there are no available members in the current pool. The failover pool simply contains a single vip address that is hosted on a different load balancer (that happens to be serving the same content).

 

I'm looking for a way to eliminate the need for a secondary failover pool. The pool is necessary in the current iRule design because I am using the "pool" command. However, within the iRule I can determine (or hardcode) the failover destination. I could not find an iRule command that will let me simply forward the request to a given ip/port, without an intermediary pool. Note that I'm not looking for "redirect", I want the traffic to flow through the original LB, through the original connection.

 

3 Replies

  • giltjr's avatar
    giltjr
    Icon for Nimbostratus rankNimbostratus

    Have you looked into priority groups? Within a single pool you can define one group of servers as priority group 2 and your "failover" server in priority group 1. Then define the pool so that the priority group 1 server is only selected when there are no priority group 2 members active.

     

  • I think the answer is the fairly obvious "node" command. I didn't realize I could direct traffic to an arbitrary node (I assumed that the node had to be defined on the LB).