00cecac86e
Watcher uses a custom thread pool. This is because executing watches can be long-running tasks that often block on I/O and it is best to not consume the core thread pools with these tasks. Today this thread pool is fixed, and sized at five times the bounded number of cores (so 160 on a 32-core box). It makes sense for there to possibly be so many threads, again because these tasks can block on I/O and having excess capacity lets unblocked watches execute. It's the fixed size that can cause problem, all these threads are always consuming resources even when there are no or not that many watches running. This commit changes this thread pool to be a scaling thread pool. Relates elastic/elasticsearch#3660 Original commit: elastic/x-pack-elasticsearch@3cafab6e83 |
||
---|---|---|
buildSrc | ||
dev-tools | ||
elasticsearch | ||
elasticsearch-transport-client | ||
license-tools | ||
qa | ||
.dir-locals.el | ||
.projectile | ||
GRADLE.CHEATSHEET.asciidoc | ||
LICENSE.txt | ||
README.asciidoc | ||
build.gradle | ||
gradle.properties | ||
settings.gradle |
README.asciidoc
= Elasticsearch X Plugins A set of Elastic's commercial plugins: - License - Security - Watcher - Monitoring = Setup You must checkout x-plugins and elasticsearch in the same directory as siblings. This elasticsearch checkout will be used when building x-plugins. = Build - Run unit tests: + [source, txt] ----- gradle clean test ----- - Run all tests: + [source, txt] ----- gradle clean check ----- - Run integration tests: + [source, txt] ----- gradle clean integTest ----- - Package X-Pack (wihtout running tests) + [source, txt] ----- gradle clean assemble ----- - Install X-Pack (wihtout running tests) + [source, txt] ----- gradle clean install ----- - If you don't work on the UI side of x-plugins, you can force gradle to skip building kibana by adding `xpack.kibana.build=false` to your `~/.gradle/gradle.properties`. Alternatively you add `-Pxpack.kibana.build=false` on the command line if you only want to do this on individual builds (or `-Pxpack.kibana.build=true` if you need to override having added this to your `gradle.properties`).