# Load balancing canaries

**URL:** https://forums.suse.com/t/load-balancing-canaries/7198
**Category:** General
**Created:** [August 26, 2017, 7:36pm UTC](https://forums.suse.com/t/load-balancing-canaries/7198 "2017-08-26T19:36:28Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![stormerider](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/stormerider/32/1784_2.png) [@stormerider](https://forums.suse.com/u/stormerider)
#### Post date: [August 26, 2017, 7:36pm UTC](https://forums.suse.com/t/load-balancing-canaries/7198/1 "2017-08-26T19:36:28Z")

</div>

Is there a way with the native RancherOS HAProxy load balancer to direct most of the traffic to one service, but send a percentage of traffic to a different service? I’m thinking of when I go to move my stormerider/rancher-wordpress-nginx-trusty image and the equivalent Xenial version, which uses a different version of php. It would be helpful to test it first on a subset of the traffic instead of upgrading an entire site all at once.

---

<div class="post-metadata">

### Author: ![Phillip\_Ulberg](https://avatars.discourse-cdn.com/v4/letter/p/e68b1a/32.png) [@Phillip\_Ulberg](https://forums.suse.com/u/Phillip_Ulberg)
#### Post date: [August 27, 2017, 2:30am UTC](https://forums.suse.com/t/load-balancing-canaries/7198/2 "2017-08-27T02:30:09Z")

</div>

you could enable server “weight” in the custom haproxy config, like -

```
backend <name>
    mode http
    balance static-rr
    server web1 10.0.0.10:8080 weight 20
    server web2 10.0.0.20:8080 weight 20
    server web3 10.0.0.30:8080 weight 20
    server web4 10.0.0.40:8080 weight 5
```
