mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-24 17:09:48 +00:00
provide code example for processors setting
A simple example but was missing Closes #19567
This commit is contained in:
parent
7e3d5b21bb
commit
8315a64a33
@ -59,7 +59,7 @@ There are several thread pools, but the important ones include:
|
||||
Changing a specific thread pool can be done by setting its type-specific parameters; for example, changing the `index`
|
||||
thread pool to have more threads:
|
||||
|
||||
[source,js]
|
||||
[source,yaml]
|
||||
--------------------------------------------------
|
||||
thread_pool:
|
||||
index:
|
||||
@ -87,7 +87,7 @@ requests that have no threads to execute them. By default, it is set to
|
||||
`-1` which means its unbounded. When a request comes in and the queue is
|
||||
full, it will abort the request.
|
||||
|
||||
[source,js]
|
||||
[source,yaml]
|
||||
--------------------------------------------------
|
||||
thread_pool:
|
||||
index:
|
||||
@ -105,7 +105,7 @@ the `core` and `max` parameters.
|
||||
The `keep_alive` parameter determines how long a thread should be kept
|
||||
around in the thread pool without it doing any work.
|
||||
|
||||
[source,js]
|
||||
[source,yaml]
|
||||
--------------------------------------------------
|
||||
thread_pool:
|
||||
warmer:
|
||||
@ -122,5 +122,10 @@ settings are automatically set based on it. Sometimes, the number of processors
|
||||
are wrongly detected, in such cases, the number of processors can be
|
||||
explicitly set using the `processors` setting.
|
||||
|
||||
[source,yaml]
|
||||
--------------------------------------------------
|
||||
processors: 2
|
||||
--------------------------------------------------
|
||||
|
||||
In order to check the number of processors detected, use the nodes info
|
||||
API with the `os` flag.
|
||||
|
Loading…
x
Reference in New Issue
Block a user