mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-10 23:15:04 +00:00
Reindex from remote uses the Elasticsearch client which uses apache httpasyncclient which spins up 5 thread by default, 1 as a dispatcher and 4 more to handle IO. This changes Reindex's usage so it only spins up two thread - 1 dispatcher and one to handle io. It also renames the threads to "es-client-$taskid-$thread_number". That way if we see any thread sticking around we can trace it back to the task.