Skip to content

Commit

Permalink
Set queue sizes by default on bulk/index thread pools
Browse files Browse the repository at this point in the history
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 elastic#3888
  • Loading branch information
kimchy committed Oct 12, 2013
1 parent 584547b commit 12f2b7e
Showing 1 changed file with 27 additions and 18 deletions.
45 changes: 27 additions & 18 deletions docs/reference/modules/threadpool.asciidoc
Expand Up @@ -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
Expand Down

0 comments on commit 12f2b7e

Please sign in to comment.