Open Shodded opened 1 month ago
This is a good question. AFAIK it is, I believe it was used across a thread pool in https://github.com/opensearch-project/OpenSearch-benchmark, but I am not 100% sure. How about we clarify this? Want to write a mutlithreaded sample and contribute it to https://github.com/opensearch-project/opensearch-py/tree/main/samples?
Versions Client - opensearch-py = "2.5.0" AWS serverless = 2.0.x
Describe the issue: Is the OpenSearch client with
connection_class=Urllib3HttpConnection
thread-safe?As part of adopting OpenSearch in our Python repository, we aim to verify whether the client configured with
connection_class=Urllib3HttpConnection
is thread-safe. We have noted thatperform_request
utilizes Urllib3's connection pool, which is known to be thread-safe. However, we have found no additional documentation that clarifies this issue further.Configuration: