mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-04-25 07:37:19 -04:00
Update docs to reflect node.processors (#54855)
We namespaced the previous setting "processors" into "node.processors". This commit updates some of the documentation to reflect this.
This commit is contained in:
parent
b7f02d8cde
commit
2bc699679e
1 changed files with 13 additions and 14 deletions
|
@ -145,27 +145,26 @@ thread_pool:
|
||||||
The number of processors is automatically detected, and the thread pool
|
The number of processors is automatically detected, and the thread pool
|
||||||
settings are automatically set based on it. In some cases it can be
|
settings are automatically set based on it. In some cases it can be
|
||||||
useful to override the number of detected processors. This can be done
|
useful to override the number of detected processors. This can be done
|
||||||
by explicitly setting the `processors` setting.
|
by explicitly setting the `node.processors` setting.
|
||||||
|
|
||||||
[source,yaml]
|
[source,yaml]
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
processors: 2
|
node.processors: 2
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
|
|
||||||
There are a few use-cases for explicitly overriding the `processors`
|
There are a few use-cases for explicitly overriding the `node.processors`
|
||||||
setting:
|
setting:
|
||||||
|
|
||||||
. If you are running multiple instances of {es} on the same host but want {es}
|
. If you are running multiple instances of {es} on the same host but want want
|
||||||
to size its thread pools as if it only has a fraction of the CPU, you should
|
{es} to size its thread pools as if it only has a fraction of the CPU, you
|
||||||
override the `processors` setting to the desired fraction, for example, if
|
should override the `node.processors` setting to the desired fraction, for
|
||||||
you're running two instances of {es} on a 16-core machine, set `processors` to 8.
|
example, if you're running two instances of {es} on a 16-core machine, set
|
||||||
Note that this is an expert-level use case and there's a lot more involved
|
`node.processors` to 8. Note that this is an expert-level use case and there's
|
||||||
than just setting the `processors` setting as there are other considerations
|
a lot more involved than just setting the `node.processors` setting as there are
|
||||||
like changing the number of garbage collector threads, pinning processes to
|
other considerations like changing the number of garbage collector threads,
|
||||||
cores, and so on.
|
pinning processes to cores, and so on.
|
||||||
. Sometimes the number of processors is wrongly detected and in such
|
. Sometimes the number of processors is wrongly detected and in such cases
|
||||||
cases explicitly setting the `processors` setting will workaround such
|
explicitly setting the `node.processors` setting will workaround such issues.
|
||||||
issues.
|
|
||||||
|
|
||||||
In order to check the number of processors detected, use the nodes info
|
In order to check the number of processors detected, use the nodes info
|
||||||
API with the `os` flag.
|
API with the `os` flag.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue