Osama_Friejeh_6
Oct 05, 2008Historic F5 Account
Application layer persistence iRule
A customer of mine has a persistence requirement between his web servers and application server layer. BIG-IP is load balancing two layers: web layer and application layer. Persistence at web layer is performed by using cookie persistence. the traffic between the web servers and app servers is TCP. Due to an application limitation, we have to persist web server to a specific app server all the time:
- web1 persist to app1
- web2 persist to app2
- if app2 fails, web2 requests will be sent to app1. But if app2 comes back again, we want to change the persistence for new connections back to app2.
I tried with source address persistence but that cannot guarantee which web server is persisted to which app server.
I think an iRule is needed to achieve this requirement. can anybody help with a sample iRule?