# Elasticsearch python client

**URL:** <https://discuss.elastic.co/t/elasticsearch-python-client/101867>\
**Category:** Elasticsearch\
**Created:** [September 26, 2017, 2:20pm UTC](https://discuss.elastic.co/t/elasticsearch-python-client/101867 "2017-09-26T14:20:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![eng.behjati](https://avatars.discourse-cdn.com/v4/letter/e/6bbea6/32.png) [@eng.behjati](https://discuss.elastic.co/u/eng.behjati)\
**Post date:** [September 26, 2017, 2:20pm UTC](https://discuss.elastic.co/t/elasticsearch-python-client/101867/1 "2017-09-26T14:20:54Z")

</div>

Hi!

I'm new in elasticsearch. we have a 7 node elasticsearch production state cluster and all of them are master, data and coordinator node. I'm wondering how to balance requests to avoid one server be the only gateway query node.  
Does python client do it by it self when we pass multiple server to it? or I have to handle it by my self?

tnx

---

<div class="post-metadata">

**Author:** ![Igor\_Motov](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/igor_motov/32/45193_2.png) [@Igor\_Motov](https://discuss.elastic.co/u/Igor_Motov)\
**Post date:** [September 26, 2017, 11:02pm UTC](https://discuss.elastic.co/t/elasticsearch-python-client/101867/2 "2017-09-26T23:02:40Z")

</div>

It does load-balancing if you pass multiple nodes to it or allow it to discover all nodes in the cluster via "sniffing". See [http://elasticsearch-py.readthedocs.io/en/master/#persistent-connections](http://elasticsearch-py.readthedocs.io/en/master/#persistent-connections) for more details.

---

<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:** [October 24, 2017, 11:02pm UTC](https://discuss.elastic.co/t/elasticsearch-python-client/101867/3 "2017-10-24T23:02:48Z")

</div>

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