Merge pull request #12267 from ycombinator/threadpool-doc
Adding more information to scaling threadpools documentation
This commit is contained in:
commit
5c37503043
|
@ -40,16 +40,16 @@ There are several thread pools, but the important ones include:
|
||||||
queue_size of `1000`.
|
queue_size of `1000`.
|
||||||
|
|
||||||
`snapshot`::
|
`snapshot`::
|
||||||
For snapshot/restore operations. Defaults to `scaling`,
|
For snapshot/restore operations. Defaults to `scaling` with a
|
||||||
keep-alive `5m` with a size of `(# of available processors)/2`.
|
keep-alive of `5m` and a size of `min(5, (# of available processors)/2)`.
|
||||||
|
|
||||||
`warmer`::
|
`warmer`::
|
||||||
For segment warm-up operations. Defaults to `scaling`
|
For segment warm-up operations. Defaults to `scaling` with a
|
||||||
with a `5m` keep-alive.
|
keep-alive of `5m` and a size of `min(5, (# of available processors)/2)`.
|
||||||
|
|
||||||
`refresh`::
|
`refresh`::
|
||||||
For refresh operations. Defaults to `scaling`
|
For refresh operations. Defaults to `scaling` with a
|
||||||
with a `5m` keep-alive.
|
keep-alive of `5m` and a size of `min(10, (# of available processors)/2)`.
|
||||||
|
|
||||||
`listener`::
|
`listener`::
|
||||||
Mainly for java client executing of action when listener threaded is set to true.
|
Mainly for java client executing of action when listener threaded is set to true.
|
||||||
|
@ -116,6 +116,25 @@ threadpool:
|
||||||
queue_size: 1000
|
queue_size: 1000
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
|
|
||||||
|
[float]
|
||||||
|
==== `scaling`
|
||||||
|
|
||||||
|
The `scaling` thread pool holds a dynamic number of threads. This number is
|
||||||
|
proportional to the workload and varies between 1 and the value of the
|
||||||
|
`size` parameter.
|
||||||
|
|
||||||
|
The `keep_alive` parameter determines how long a thread should be kept
|
||||||
|
around in the thread pool without it doing any work.
|
||||||
|
|
||||||
|
[source,js]
|
||||||
|
--------------------------------------------------
|
||||||
|
threadpool:
|
||||||
|
warmer:
|
||||||
|
type: scaling
|
||||||
|
size: 8
|
||||||
|
keep_alive: 2m
|
||||||
|
--------------------------------------------------
|
||||||
|
|
||||||
[float]
|
[float]
|
||||||
[[processors]]
|
[[processors]]
|
||||||
=== Processors setting
|
=== Processors setting
|
||||||
|
|
Loading…
Reference in New Issue