From 12f2b7e164f42c2a69aaa4406916b9013bcefceb Mon Sep 17 00:00:00 2001 From: Shay Banon Date: Sat, 12 Oct 2013 21:53:41 +0200 Subject: [PATCH] Set queue sizes by default on bulk/index thread pools Now that we properly fixed the ability to set the queue size on the index / bulk thread pool, we should actually set them to a somehow reasonable value to protect from users potentially overflowing our system. I suggest defaults to be 50 for bulk, and 200 for indexing. Also, set the thread pool for get, which we should set (in a similar value to a "read" queue size we have today). closes #3888 --- docs/reference/modules/threadpool.asciidoc | 45 +++++++++++++--------- 1 file changed, 27 insertions(+), 18 deletions(-) diff --git a/docs/reference/modules/threadpool.asciidoc b/docs/reference/modules/threadpool.asciidoc index f26f3c961c2c5..9807b5275a6f4 100644 --- a/docs/reference/modules/threadpool.asciidoc +++ b/docs/reference/modules/threadpool.asciidoc @@ -7,33 +7,42 @@ pools, but the important ones include: [horizontal] `index`:: - For index/delete operations, defaults to `fixed` type since - `0.90.0`, size `# of available processors`. (previously type `cached`) + For index/delete operations, defaults to `fixed`, + size `# of available processors`. + queue_size `200`. -`search`:: - For count/search operations, defaults to `fixed` type since - `0.90.0`, size `3x # of available processors`. (previously type - `cached`) +`search`:: + For count/search operations, defaults to `fixed`, + size `3x # of available processors`. + queue_size `1000`. `suggest`:: For suggest operations, defaults to `fixed`, size `# of available processors`. + queue_size `1000`. -`get`:: - For get operations, defaults to `fixed` type since `0.90.0`, - size `# of available processors`. (previously type `cached`) +`get`:: + For get operations, defaults to `fixed` + size `# of available processors`. + queue_size `1000`. -`bulk`:: - For bulk operations, defaults to `fixed` type since `0.90.0`, - size `# of available processors`. (previously type `cached`) +`bulk`:: + For bulk operations, defaults to `fixed` + size `# of available processors`. + queue_size `50`. + +`percolate`:: + For percolate operations, defaults to `fixed` + size `# of available processors`. + queue_size `1000`. -`warmer`:: - For segment warm-up operations, defaults to `scaling` since - `0.90.0` with a `5m` keep-alive. (previously type `cached`) +`warmer`:: + For segment warm-up operations, defaults to `scaling` + with a `5m` keep-alive. -`refresh`:: - For refresh operations, defaults to `scaling` since - `0.90.0` with a `5m` keep-alive. (previously type `cached`) +`refresh`:: + For refresh operations, defaults to `scaling` + with a `5m` keep-alive. Changing a specific thread pool can be done by setting its type and specific type parameters, for example, changing the `index` thread pool