# Load balance multiple kibana servers using Nginx without session affinity

**URL:** <https://discuss.elastic.co/t/load-balance-multiple-kibana-servers-using-nginx-without-session-affinity/142367>\
**Category:** Kibana\
**Created:** [July 31, 2018, 1:14pm UTC](https://discuss.elastic.co/t/load-balance-multiple-kibana-servers-using-nginx-without-session-affinity/142367 "2018-07-31T13:14:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ihjaz](https://avatars.discourse-cdn.com/v4/letter/i/8baadc/32.png) [@Ihjaz](https://discuss.elastic.co/u/Ihjaz)\
**Post date:** [July 31, 2018, 1:14pm UTC](https://discuss.elastic.co/t/load-balance-multiple-kibana-servers-using-nginx-without-session-affinity/142367/1 "2018-07-31T13:14:39Z")

</div>

Hi,

I have multiple Kibana instances (version 6.2.2) load balanced using Nginx.  
I get the following error when I try to login to Kibana UI.

> Error: Uncaught TypeError: Super expression must either be null or a function, not undefined ([https://myhostname/app/kibana/bundles/vendors.bundle.js?v=16588:89](https://myhostname/app/kibana/bundles/vendors.bundle.js?v=16588:89))  
> at window.onerror ([https://myhostname/app/kibana/bundles/commons.bundle.js?v=16588:1:506240](https://myhostname/app/kibana/bundles/commons.bundle.js?v=16588:1:506240))

If I enable session affinity on the Nginx then I don't see this issue but I need to keep the session affinity disabled on the Nginx for the solution.

Also I see this only on one of the cluster in my lab while other clusters with the same solution do not have this issue.

So does Kibana require affinity or stickiness to be enabled ?

---

<div class="post-metadata">

**Author:** ![Bargs](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bargs/32/5429_2.png) [@Bargs](https://discuss.elastic.co/u/Bargs)\
**Post date:** [July 31, 2018, 4:09pm UTC](https://discuss.elastic.co/t/load-balance-multiple-kibana-servers-using-nginx-without-session-affinity/142367/2 "2018-07-31T16:09:39Z")

</div>

No, Kibana does not require sticky sessions. It's hard to say what's going on based on that error. What I would do is log the requests nginx is sending to Kibana with affinity on and off and then compare the results to see what might be different.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [August 28, 2018, 4:09pm UTC](https://discuss.elastic.co/t/load-balance-multiple-kibana-servers-using-nginx-without-session-affinity/142367/3 "2018-08-28T16:09:43Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
