File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -73,7 +73,16 @@ def __init__(self):
7373 http_auth = (settings .OS ["username" ], settings .OS [
7474 "password" ]) if "username" in settings .OS and "password" in settings .OS else None ,
7575 verify_certs = False ,
76- timeout = 600
76+ timeout = 600 ,
77+ # opensearch-py leaves pool_maxsize unset, so the underlying
78+ # urllib3 HTTPConnectionPool falls back to maxsize=1.
79+ # OSConnection is a @singleton shared by every request thread,
80+ # so concurrent searches and the cluster.health() probe contend
81+ # on a single HTTP connection ("Connection pool is full,
82+ # discarding connection ... pool size: 1"), serializing requests
83+ # behind fresh TLS handshakes. Widen the pool to match the
84+ # multi-connection default elasticsearch-py already uses.
85+ pool_maxsize = 32 ,
7786 )
7887 if self .os :
7988 self .info = self .os .info ()
You can’t perform that action at this time.
0 commit comments