Skip to content

Commit 2dc933e

Browse files
committed
Add docs that load balancing only applies when more connections specified
1 parent 836c6d1 commit 2dc933e

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

docs/connection.rst

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,13 @@ will be passed on to :class:`~elasticsearch.Transport`,
1111

1212
For example if you wanted to use your own implementation of the
1313
:class:`~elasticsearch.ConnectionSelector` class you can just pass in the
14-
`selector_class` parameter.
14+
``selector_class`` parameter.
15+
16+
.. note::
17+
18+
:class:`~elasticsearch.ConnectionPool` and related options (like
19+
``selector_class``) will only be used if more than one connection is defined.
20+
Either directly or via the :ref:`sniffing` mechanism.
1521

1622
.. py:module:: elasticsearch
1723

0 commit comments

Comments
 (0)