# Ratio and source\_addr persistence

**URL:** <https://community.f5.com/t/ratio-and-source-addr-persistence/26223>\
**Category:** Technical Forums\
**Tags:** design, config\
**Created:** [February 17, 2008, 3:02pm UTC](https://community.f5.com/t/ratio-and-source-addr-persistence/26223 "2008-02-17T15:02:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![IT\_Support\_5777](https://avatars.discourse-cdn.com/v4/letter/i/f07891/32.png) [@IT\_Support\_5777](https://community.f5.com/u/IT_Support_5777)\
**Post date:** [February 17, 2008, 3:02pm UTC](https://community.f5.com/t/ratio-and-source-addr-persistence/26223/1 "2008-02-17T15:02:59Z")

</div>

I have some questions regarding ‘ratio’ load-balancing and source address persistence.

We would like one member of a pool to handle all traffic until it fails. We are unable to create a separate virtual server for this pool (as seen in other examples of this). We currently redirect certain host traffic to this pool away from the main pool. My question is, can one use ‘ratio’ LB to achieve this? We use source\_addr persistence as well. Do I just set the ratio so high that it never gets hit?

Does it use current connections? Total connections? Does it count to a number and then start over? We must avoid having clients connect to one pool member and then connecting to another in the same session. They must remain on the original member.

REDIRECT:

when HTTP\_REQUEST {

if { [HTTP::host] equals “[server.domain.com](http://server.domain.com)” } {

pool SERVER-Pool

log local0. “server redirected: [IP::client\_addr]”

}

}

BIP 9.1.2

Any guidance would be appreciated. Thank you.

---

<div class="post-metadata">

**Author:** ![Jason\_Keating](https://avatars.discourse-cdn.com/v4/letter/j/ed655f/32.png) [@Jason\_Keating](https://community.f5.com/u/Jason_Keating)\
**Post date:** [February 17, 2008, 8:50pm UTC](https://community.f5.com/t/ratio-and-source-addr-persistence/26223/2 "2008-02-17T20:50:08Z")

</div>

Have you tried configuring ‘priority group activation’ on the pool for which one member must handle all traffic until it fails?

This will allow you to force all connections to one member until the number of available members is less than _n_

See these:

> **[404 Page not found | BIG-IP Documentation](https://techdocs.f5.com/kb/en-us/solutions/public/2000/400/sol2422.html?sr=457825)**
>
> Usage information and technical documentation for BIG-IP and other related F5 products

> **[404 Page not found | BIG-IP Documentation](https://techdocs.f5.com/kb/en-us/solutions/public/0000/400/sol483.html?sr=457825)**
>
> Usage information and technical documentation for BIG-IP and other related F5 products

> **[404 Page not found | BIG-IP Documentation](https://techdocs.f5.com/kb/en-us/solutions/public/2000/400/sol2423.html?sr=457826)**
>
> Usage information and technical documentation for BIG-IP and other related F5 products

Another option may be to use two pools, one with a member which must handle all traffic until it fails and another with those you would fail over to, you could then use an iRule to check the state of the first pool, if its unavailable send all requests to the second pool.

The second option requires that you be able to test the state of the first pool, I’m unsure how to do that using an iRule but am sure it can be done (I do it with iControl).

I’ll have a look in to testing pool state and let you know if I find anything as it’s something I anticipate doing soon for a new deployment.

Hope this helps, I’m a noob at this but perhaps it gets the thoughts going.

J

---

<div class="post-metadata">

**Author:** ![Jason\_Keating](https://avatars.discourse-cdn.com/v4/letter/j/ed655f/32.png) [@Jason\_Keating](https://community.f5.com/u/Jason_Keating)\
**Post date:** [February 17, 2008, 10:25pm UTC](https://community.f5.com/t/ratio-and-source-addr-persistence/26223/3 "2008-02-17T22:25:37Z")

</div>

I found the iRule Event:

> **[DevCentral - An F5 Technical Community](https://community.f5.com/)**
>
> DevCentral is an online technical community where engineers and practitioners collaborate, share knowledge, and solve problems related to F5 technologies and industry trends.

---

<div class="post-metadata">

**Author:** ![IT\_Support\_5777](https://avatars.discourse-cdn.com/v4/letter/i/f07891/32.png) [@IT\_Support\_5777](https://community.f5.com/u/IT_Support_5777)\
**Post date:** [February 17, 2008, 11:13pm UTC](https://community.f5.com/t/ratio-and-source-addr-persistence/26223/4 "2008-02-17T23:13:40Z")

</div>

I think the Priority Group information was what I needed. Thank you very much.
