4
4
The `thread_pool` command shows cluster wide thread pool statistics per node. By default the active, queue and rejected
5
5
statistics are returned for all thread pools.
6
6
7
- [source,sh ]
7
+ [source,js ]
8
8
--------------------------------------------------
9
- % curl 192.168.56.10:9200/_cat/thread_pool
10
- 0EWUhXe bulk 0 0 0
11
- 0EWUhXe fetch_shard_started 0 0 0
12
- 0EWUhXe fetch_shard_store 0 0 0
13
- 0EWUhXe flush 0 0 0
14
- 0EWUhXe force_merge 0 0 0
15
- 0EWUhXe generic 0 0 0
16
- 0EWUhXe get 0 0 0
17
- 0EWUhXe index 0 0 0
18
- 0EWUhXe listener 0 0 0
19
- 0EWUhXe management 1 0 0
20
- 0EWUhXe refresh 0 0 0
21
- 0EWUhXe search 0 0 0
22
- 0EWUhXe snapshot 0 0 0
23
- 0EWUhXe warmer 0 0 0
9
+ GET /_cat/thread_pool
24
10
--------------------------------------------------
11
+ // CONSOLE
12
+
13
+ Which looks like:
14
+
15
+ [source,txt]
16
+ --------------------------------------------------
17
+ node-0 bulk 0 0 0
18
+ node-0 fetch_shard_started 0 0 0
19
+ node-0 fetch_shard_store 0 0 0
20
+ node-0 flush 0 0 0
21
+ node-0 force_merge 0 0 0
22
+ node-0 generic 0 0 0
23
+ node-0 get 0 0 0
24
+ node-0 index 0 0 0
25
+ node-0 listener 0 0 0
26
+ node-0 management 1 0 0
27
+ node-0 refresh 0 0 0
28
+ node-0 search 0 0 0
29
+ node-0 snapshot 0 0 0
30
+ node-0 warmer 0 0 0
31
+ --------------------------------------------------
32
+ // TESTRESPONSE[s/\d+/\\d+/ _cat]
25
33
26
34
The first column is the node name
27
35
28
- [source,sh ]
36
+ [source,txt ]
29
37
--------------------------------------------------
30
38
node_name
31
- 0EWUhXe
39
+ node-0
32
40
--------------------------------------------------
33
41
34
42
The second column is the thread pool name
35
- [source,sh ]
43
+ [source,txt ]
36
44
--------------------------------------------------
37
45
name
38
46
bulk
54
62
55
63
The next three columns show the active, queue, and rejected statistics for each thread pool
56
64
57
- [source,sh ]
65
+ [source,txt ]
58
66
--------------------------------------------------
59
67
active queue rejected
60
68
0 0 0
@@ -76,12 +84,20 @@ active queue rejected
76
84
The cat thread pool API accepts a `thread_pool_patterns` URL parameter for specifying a
77
85
comma-separated list of regular expressions to match thread pool names.
78
86
79
- [source,sh]
87
+ [source,js]
88
+ --------------------------------------------------
89
+ GET /_cat/thread_pool/generic?v&h=id,name,active,rejected,completed
90
+ --------------------------------------------------
91
+ // CONSOLE
92
+
93
+ which looks like:
94
+
95
+ [source,js]
80
96
--------------------------------------------------
81
- % curl 'localhost:9200/_cat/thread_pool/generic?v&h=id,name,active,rejected,completed'
82
97
id name active rejected completed
83
98
0EWUhXeBQtaVGlexUeVwMg generic 0 0 70
84
99
--------------------------------------------------
100
+ // TESTRESPONSE[s/0EWUhXeBQtaVGlexUeVwMg/[\\w-]+/ s/\d+/\\d+/ _cat]
85
101
86
102
Here the host columns and the active, rejected and completed suggest thread pool statistics are displayed.
87
103
0 commit comments