# Load Balancer performance really slow

**URL:** <https://forums.suse.com/t/load-balancer-performance-really-slow/1351>\
**Category:** Rancher 1.x\
**Created:** [December 29, 2015, 10:21am UTC](https://forums.suse.com/t/load-balancer-performance-really-slow/1351 "2015-12-29T10:21:36Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![TheRubble](https://avatars.discourse-cdn.com/v4/letter/t/edb3f5/32.png) [@TheRubble](https://forums.suse.com/u/TheRubble)\
**Post date:** [December 29, 2015, 10:21am UTC](https://forums.suse.com/t/load-balancer-performance-really-slow/1351/1 "2015-12-29T10:21:36Z")

</div>

Hi,

I’m having issues where when using the load balancer requests are taking 50 secs before serving begins. Taking a look at the proxy config I can see the following lines which seems to make sense.

```
    timeout client 50000                                                    
    timeout server 50000      

```

I’ve created the hosts using the digital ocean integration and when not using a load balancer via a service alias everything performs as expected.

Any ideas what I may have done wrong?

Using 0.52 of the server.

Thanks

---

<div class="post-metadata">

**Author:** ![TheRubble](https://avatars.discourse-cdn.com/v4/letter/t/edb3f5/32.png) [@TheRubble](https://forums.suse.com/u/TheRubble)\
**Post date:** [December 29, 2015, 5:30pm UTC](https://forums.suse.com/t/load-balancer-performance-really-slow/1351/2 "2015-12-29T17:30:43Z")

</div>

Further information :

29/12/2015 17:28:22e[32minfoe[39me[37m: Microsoft.AspNet.Mvc.Controllers.ControllerActionInvoker[1]e[39m  
29/12/2015 17:28:22e[97m Executing action method WhoAmI.Controllers.HomeController.Index with arguments () - ModelState is Valid’e[39m  
29/12/2015 17:28:22e[32minfoe[39me[37m: Microsoft.AspNet.Mvc.ViewFeatures.ViewResultExecutor[1]e[39m  
29/12/2015 17:28:22e[97m Executing ViewResult, running view at path /Views/Home/Index.cshtml.e[39m  
29/12/2015 17:28:22e[32minfoe[39me[37m: Microsoft.AspNet.Mvc.Infrastructure.MvcRouteHandler[2]e[39m  
29/12/2015 17:28:22e[97m Executed action WhoAmI.Controllers.HomeController.Index in 0.0012mse[39m  
29/12/2015 17:28:22e[32minfoe[39me[37m: Microsoft.AspNet.Hosting.Internal.HostingEngine[2]e[39m  
29/12/2015 17:28:22e[97m Request finished in 0.0014ms 200 text/html; charset=utf-8e[39m

It looks as if the load balancer doesn’t realise the request has finished, the timeout occurs at 50 seconds as per the HAProxy config.

Not sure where the issue lies at the moment.

---

<div class="post-metadata">

**Author:** ![TheRubble](https://avatars.discourse-cdn.com/v4/letter/t/edb3f5/32.png) [@TheRubble](https://forums.suse.com/u/TheRubble)\
**Post date:** [December 29, 2015, 10:14pm UTC](https://forums.suse.com/t/load-balancer-performance-really-slow/1351/3 "2015-12-29T22:14:32Z")

</div>

Ok, so the issue is with Kestrel on [ASP.NET](http://ASP.NET) 5 RC1 stack. The issue is due to be addressed for RC2 however for now adding the following as defaults in the load balancer yield a huge performance increase.

option forceclose  
option http-server-close  
option http-pretend-keepalive

---

<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:** [January 4, 2016, 10:23pm UTC](https://forums.suse.com/t/load-balancer-performance-really-slow/1351/4 "2016-01-04T22:23:11Z")

</div>

I just want to clarify that this is something on your end and not Rancher’s end, correct?

---

<div class="post-metadata">

**Author:** ![TheRubble](https://avatars.discourse-cdn.com/v4/letter/t/edb3f5/32.png) [@TheRubble](https://forums.suse.com/u/TheRubble)\
**Post date:** [January 5, 2016, 11:45am UTC](https://forums.suse.com/t/load-balancer-performance-really-slow/1351/5 "2016-01-05T11:45:14Z")

</div>

Hi, yes that’s correct.

---

<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:** [January 5, 2016, 5:43pm UTC](https://forums.suse.com/t/load-balancer-performance-really-slow/1351/6 "2016-01-05T17:43:14Z")

</div>


