mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-11 23:45:15 +00:00
The watcher thread pool is scaled by the number of CPUs and has by default up to 5x the number of cores. This is needed because we assumme I/O based waiting workloads for watcher. However if the node is not a data node, there will not be any execution of watches with the exception of a user calling the execute watch API on that node. This means, we can get away with just one thread, so that there is no need for the JVM to manage more threads on master/client or ingest only nodes. Original commit: elastic/x-pack-elasticsearch@b5899401d3