Forum Discussion

Frank_Mancini_3's avatar
Frank_Mancini_3
Icon for Nimbostratus rankNimbostratus
Dec 22, 2006

Pool failover from one to another.

I have a pool of 5 nodes that are my web servers and I have a pool of 3 nodes which are my gone fishing web servers when I'm out of town. I shut down my 5 web servers when I'm out of town and it goes to the secondary gone fishing pool.

 

 

I need help in writing the irule for this.

 

 

should I use a CLIENT_ACCEPTED or HTTP_REQUEST. What are the advantages of using either? especially since I'm using https in some cases.

 

 

when HTTP_REQUEST {

 

if { [active_members regular-site-pool] > 0 } {

 

log local0. "regular pool"

 

pool regular-site-pool

 

} else {

 

log local0. "gone fishin pool"

 

pool gone-fishing-pool

 

}

 

}

 

 

should this work? what are the affects if i use a peristence method in the irule with the pool? will it always stick with the pool even if all node members go down or will the irule kick in and go to the active_members that are up?

 

 

with ya:, franko