# Route 95% of traffic to 1 pool and 5% of traffic to another pool.

**URL:** <https://community.f5.com/t/route-95-of-traffic-to-1-pool-and-5-of-traffic-to-another-pool/73151>\
**Category:** Technical Forums\
**Tags:** devops, application-delivery\
**Created:** [September 26, 2023, 3:55pm UTC](https://community.f5.com/t/route-95-of-traffic-to-1-pool-and-5-of-traffic-to-another-pool/73151 "2023-09-26T15:55:05Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![hlayson](https://avatars.discourse-cdn.com/v4/letter/h/5daacb/32.png) [@hlayson](https://community.f5.com/u/hlayson)\
**Post date:** [September 26, 2023, 3:55pm UTC](https://community.f5.com/t/route-95-of-traffic-to-1-pool-and-5-of-traffic-to-another-pool/73151/1 "2023-09-26T15:55:05Z")

</div>

I’m looking at the best way to route 95% of our traffic to one pool and the remaining 5% to a different pool. Has anyone successfully done this before?

---

<div class="post-metadata">

**Author:** ![PSFletchTheTek](https://avatars.discourse-cdn.com/v4/letter/p/53a042/32.png) [@PSFletchTheTek](https://community.f5.com/u/PSFletchTheTek)\
**Post date:** [September 26, 2023, 4:08pm UTC](https://community.f5.com/t/route-95-of-traffic-to-1-pool-and-5-of-traffic-to-another-pool/73151/2 "2023-09-26T16:08:29Z")

</div>

Sounds like Ratio load balancing.  
But that’s at the pool member level, not sure if you can do it at the pool level.  
I’ve only ever done pool to pool stuff for failover.

---

<div class="post-metadata">

**Author:** ![PeteWhite](https://d1p9zq3aats0t8.cloudfront.net/user_avatar/community.f5.com/petewhite/32/33768_2.png) [@PeteWhite](https://community.f5.com/u/PeteWhite)\
**Post date:** [September 26, 2023, 4:21pm UTC](https://community.f5.com/t/route-95-of-traffic-to-1-pool-and-5-of-traffic-to-another-pool/73151/3 "2023-09-26T16:21:03Z")

</div>

You can do this via an iRule on a random basis.

```tcl
when CLIENT_ACCEPTED {
  if { [expr { rand() * 100 }] > 95 } {
    pool <other pool>
  }
}

```

---

<div class="post-metadata">

**Author:** ![T-Trust](https://d1p9zq3aats0t8.cloudfront.net/user_avatar/community.f5.com/t-trust/32/17009_2.png) [@T-Trust](https://community.f5.com/u/T-Trust)\
**Post date:** [October 4, 2023, 4:07am UTC](https://community.f5.com/t/route-95-of-traffic-to-1-pool-and-5-of-traffic-to-another-pool/73151/4 "2023-10-04T04:07:56Z")

</div>

Hi,

1. In this case you have BIG-IP DNS, You can specific load balance method ratio for distribute traffic 95% to PoolA and 5% to Pool B

2. If you don’t have BIG-IP DNS, So i think you have to create irules for thie scenario
