# Internal Load Balancer weird behaviour

**URL:** https://forums.suse.com/t/internal-load-balancer-weird-behaviour/1599
**Category:** Rancher 1.x
**Created:** [February 1, 2016, 9:19pm UTC](https://forums.suse.com/t/internal-load-balancer-weird-behaviour/1599 "2016-02-01T21:19:05Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Sebastien\_Allamand](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/sebastien_allamand/32/691_2.png) [@Sebastien\_Allamand](https://forums.suse.com/u/Sebastien_Allamand)
#### Post date: [February 1, 2016, 9:19pm UTC](https://forums.suse.com/t/internal-load-balancer-weird-behaviour/1599/1 "2016-02-01T21:19:05Z")

</div>

Hello,

I have a question regarding the behaviour of the load balancer

I have link service like 1 LB load balanced on 5 containers ![](https://us1.discourse-cdn.com/flex022/uploads/suse/original/1X/734ef9c9d7dc9ddb4afb2123a6906a754383c9be.png)

BUT when I edit the only 1 LB I have it’s configuration says that it has only one backend

![](https://us1.discourse-cdn.com/flex022/uploads/suse/original/1X/3d9f9507a1c0cd74177510b659c2c20b8a4bf006.png)

and obviously this only container get the traffic but not the 4 others…

What am I missing ??

thanks

sebastien

---

<div class="post-metadata">

### Author: ![Sebastien\_Allamand](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/sebastien_allamand/32/691_2.png) [@Sebastien\_Allamand](https://forums.suse.com/u/Sebastien_Allamand)
#### Post date: [February 1, 2016, 9:49pm UTC](https://forums.suse.com/t/internal-load-balancer-weird-behaviour/1599/2 "2016-02-01T21:49:08Z")

</div>

I have more than 1848 entries doing the request

select \* from config\_item\_status where name=‘haproxy’;

```
| 13407 | haproxy | 7 | 7 | 3e0d61c5cd2851e80416ea7bdd7aa59b417a3f11fa7852d0f0f91a26a6cdadb9 | 2016-02-01 19:45:44 | 2016-02-01 19:45:45 | 1847 | NULL | NULL | 1847 | agent_id |
| 13408 | haproxy | 7 | 7 | 3e0d61c5cd2851e80416ea7bdd7aa59b417a3f11fa7852d0f0f91a26a6cdadb9 | 2016-02-01 19:45:44 | 2016-02-01 19:45:45 | 1848 | NULL | NULL | 1848 | agent_id |

```

this request also give me 1555 rows  
select \* from instance where agent\_id in (select agent\_id from config\_item\_status where name=‘haproxy’);

it semas to store a lot of very out of date datas in there ? is it possible that slow down my internal network ?? (**take sometimes more than 4 seconde to reach another container)**

**Is there a way to purge the Rancher Server DB content (execpt the global configuration / users, credentials, environments… ??**

---

<div class="post-metadata">

### Author: ![denise](https://avatars.discourse-cdn.com/v4/letter/d/82dd89/32.png) [@denise](https://forums.suse.com/u/denise)
#### Post date: [February 3, 2016, 9:53pm UTC](https://forums.suse.com/t/internal-load-balancer-weird-behaviour/1599/3 "2016-02-03T21:53:48Z")

</div>

You should be editing load balancers at the service level and not at the container level.

You can check the backend of the load balancer by exec-ing into the LB container and displaying the `/etc/haproxy/haproxy.cfg` and you’ll be able to see all the containers that are going to show traffic. It will display all the IPs of all the containers of the service that you are load balancing.

---

<div class="post-metadata">

### Author: ![Sebastien\_Allamand](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/sebastien_allamand/32/691_2.png) [@Sebastien\_Allamand](https://forums.suse.com/u/Sebastien_Allamand)
#### Post date: [February 4, 2016, 10:19am UTC](https://forums.suse.com/t/internal-load-balancer-weird-behaviour/1599/4 "2016-02-04T10:19:19Z")

</div>

thanks @denise inside the loadbalancer configuration seams to be good, but the LB stay stuck in Initializing state:

 ![](https://us1.discourse-cdn.com/flex022/uploads/suse/original/1X/111db94f05e066b93108887b82e929220212937a.png) 

and know it always respond 503…

I’ve ssh into the LB and installed telnet and it seams that the backend is not reachable

> backend 2cde9c4a-feda-4ba8-85c7-d486fee6b863\_80\_1\_backend  
> mode http  
> server 05bb63ed-a6fc-45c9-b7fd-698e9350e478 10.42.237.94:80  
> server bec9787b-3703-4340-98b0-49a568dedfe4 10.42.70.17:80  
> server 2396c507-33a4-4f97-9bf0-404c72fcbaff 10.42.239.153:80  
> server db4701d6-a37d-40ad-a30d-2562f5a23653 10.42.151.66:80  
> server fef5004d-818a-4cee-8e6b-8f4dbe363f59 10.42.111.30:80

> root@454332e81b9e:/# telnet 10.42.237.94 80  
> Trying 10.42.237.94…

I still have some others backend that are responding

> ```
> root@454332e81b9e:/# telnet 10.42.203.5 80
> Trying 10.42.203.5... 
> Connected to 10.42.203.5. 
> Escape character is '^]'.
> 
> ```

I don’t know how I can debug that, it was working fine yesterday, and today network seams unreachable…  
I’ve tester the request directly on the backend and it is working.  
Is there any change in the overlay network ?

I’m using v0.56.1

Thanks  
sébastien

---

<div class="post-metadata">

### Author: ![Sebastien\_Allamand](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/sebastien_allamand/32/691_2.png) [@Sebastien\_Allamand](https://forums.suse.com/u/Sebastien_Allamand)
#### Post date: [February 4, 2016, 10:38am UTC](https://forums.suse.com/t/internal-load-balancer-weird-behaviour/1599/5 "2016-02-04T10:38:09Z")

</div>

on my stack, all my LB containeurs are in bad state while my services seams good and responsive

![](https://us1.discourse-cdn.com/flex022/uploads/suse/original/1X/565a5b3f8acc337656c8a87169952c409d38e4d5.png)

---

<div class="post-metadata">

### Author: ![Sebastien\_Allamand](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/sebastien_allamand/32/691_2.png) [@Sebastien\_Allamand](https://forums.suse.com/u/Sebastien_Allamand)
#### Post date: [February 5, 2016, 1:27pm UTC](https://forums.suse.com/t/internal-load-balancer-weird-behaviour/1599/6 "2016-02-05T13:27:55Z")

</div>

Hi,

I’ve fixed all my weird behaviour which where relative to ipsec tunneling by completely remove my rancher-server (delete /var/lib/mysql directory) and make up a new fresh install of v0.56.1.

all works perfectly then!

sebastien

---

<div class="post-metadata">

### Author: ![denise](https://avatars.discourse-cdn.com/v4/letter/d/82dd89/32.png) [@denise](https://forums.suse.com/u/denise)
#### Post date: [February 5, 2016, 3:20pm UTC](https://forums.suse.com/t/internal-load-balancer-weird-behaviour/1599/7 "2016-02-05T15:20:55Z")

</div>


