Skip to content

Commit c5ab1b3

Browse files
committed
Add migration note on thread pool API changes
A previous change modified the output of the thread pool info contained in the nodes info API. This commit adds a note to the migration docs for this change.
1 parent ad7e8ba commit c5ab1b3

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

docs/reference/migration/migrate_7_0/api.asciidoc

+15
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,18 @@ The following parameters starting with underscore have been removed:
2222
Instead of these removed parameters, use their non camel case equivalents without
2323
starting underscore, e.g. use `version_type` instead of `_version_type` or `versionType`.
2424

25+
==== Thread pool info
26+
27+
In previous versions of Elasticsearch, the thread pool info returned in the
28+
<<cluster-nodes-info,nodes info API>> returned `min` and `max` values reflecting
29+
the configured minimum and maximum number of threads that could be in each
30+
thread pool. The trouble with this representation is that it does not align with
31+
the configuration parameters used to configure thread pools. For
32+
<<modules-threadpool,scaling thread pools>>, the minimum number of threads is
33+
configured by a parameter called `core` and the maximum number of threads is
34+
configured by a parameter called `max`. For <<modules-threadpool,fixed thread
35+
pools>>, there is only one configuration parameter along these lines and that
36+
parameter is called `size`, reflecting the fixed number of threads in the
37+
pool. This discrepancy between the API and the configuration parameters has been
38+
rectified. Now, the API will report `core` and `max` for scaling thread pools,
39+
and `size` for fixed thread pools.

0 commit comments

Comments
 (0)