Commit c41a6cf
authored
Run
The most expensive thing that
`FetchHealthInfoCacheAction.TransportAction` does is `Map.copyOf` of
maps that are keyed by node ID (i.e. limited size). That can run on the
transport thread without any risk of blocking the thread too long.
We've seen issues where the `management` thread pool on the health node
is being blocked by something else, causing health logs (and API calls)
to be stuck/slow. To offer a more consistent health experience, we make
this action run on the transport thread instead of the management one.FetchHealthInfoCacheAction on transport thread (elastic#139285)1 parent 4358b88 commit c41a6cf
File tree
1 file changed
+2
-1
lines changed- server/src/main/java/org/elasticsearch/health/node
1 file changed
+2
-1
lines changedLines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| |||
114 | 115 | | |
115 | 116 | | |
116 | 117 | | |
117 | | - | |
| 118 | + | |
118 | 119 | | |
119 | 120 | | |
120 | 121 | | |
| |||
0 commit comments