Pooling provides a higher level abstraction of the Worker functionality, including the management of references in the way required by pthreads. From: http://php.net/manual/en/class.pool.php Pools and workers provide an higher level of control and ease of creating multi-threaded cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the nodes info API. Returns thread pool statistics for each node in a cluster. Returned information includes all built-in thread pools and custom thread pools.
(Optional, string) Comma-separated list of column names to display. If you do not specify which columns to include, the API returns the default columns in the order listed below. If you explicitly specify one or more columns, it only returns the specified columns. Valid columns are: GET /_cat/thread_pool/generic?v=true&h=id,name,active,rejected,completed0(Default) Node name, such as GET /_cat/thread_pool/generic?v=true&h=id,name,active,rejected,completed1. GET /_cat/thread_pool/generic?v=true&h=id,name,active,rejected,completed2(Default) Name of the thread pool, such as GET /_cat/thread_pool/generic?v=true&h=id,name,active,rejected,completed3 or GET /_cat/thread_pool/generic?v=true&h=id,name,active,rejected,completed4. GET /_cat/thread_pool/generic?v=true&h=id,name,active,rejected,completed5, GET /_cat/thread_pool/generic?v=true&h=id,name,active,rejected,completed6(Default) Number of active threads in the current thread pool. GET /_cat/thread_pool/generic?v=true&h=id,name,active,rejected,completed7, GET /_cat/thread_pool/generic?v=true&h=id,name,active,rejected,completed8(Default) Number of tasks in the queue for the current thread pool. GET /_cat/thread_pool/generic?v=true&h=id,name,active,rejected,completed9, id name active rejected completed 0EWUhXeBQtaVGlexUeVwMg generic 0 0 700(Default) Number of tasks rejected by the thread pool executor. id name active rejected completed 0EWUhXeBQtaVGlexUeVwMg generic 0 0 701, id name active rejected completed 0EWUhXeBQtaVGlexUeVwMg generic 0 0 702Number of tasks completed by the thread pool executor. id name active rejected completed 0EWUhXeBQtaVGlexUeVwMg generic 0 0 703, id name active rejected completed 0EWUhXeBQtaVGlexUeVwMg generic 0 0 704Configured core number of active threads allowed in the current thread pool. id name active rejected completed 0EWUhXeBQtaVGlexUeVwMg generic 0 0 705, id name active rejected completed 0EWUhXeBQtaVGlexUeVwMg generic 0 0 706Ephemeral node ID. id name active rejected completed 0EWUhXeBQtaVGlexUeVwMg generic 0 0 707, h Hostname for the current node.id name active rejected completed 0EWUhXeBQtaVGlexUeVwMg generic 0 0 709, GET /_cat/thread_pool/ 0IP address for the current node.GET /_cat/thread_pool/ 1, GET /_cat/thread_pool/ 2Configured keep alive time for threads.GET /_cat/thread_pool/ 3, GET /_cat/thread_pool/ 4Highest number of active threads in the current thread pool.GET /_cat/thread_pool/ 5, GET /_cat/thread_pool/ 6Configured maximum number of active threads allowed in the current thread pool.GET /_cat/thread_pool/ 7, GET /_cat/thread_pool/ 8ID of the node, such as GET /_cat/thread_pool/ 9.GET /_cat/thread_pool 0, GET /_cat/thread_pool 1Process ID of the running node.GET /_cat/thread_pool 2, GET /_cat/thread_pool 3Number of threads in the current thread pool.GET /_cat/thread_pool 4, GET /_cat/thread_pool 5Bound transport port for the current node.GET /_cat/thread_pool 6, GET /_cat/thread_pool 7Maximum number of tasks permitted in the queue for the current thread pool.GET /_cat/thread_pool 8, GET /_cat/thread_pool 9Configured fixed number of active threads allowed in the current thread pool.monitor 0, monitor 1Type of thread pool. Returned values are monitor 2, monitor 3, monitor 4, or monitor 5.monitor 6(Optional, Boolean) If monitor 7, the response includes help information. Defaults to monitor 8.monitor 9(Optional, Boolean) If monitor 7, the request retrieves information from the local node only. Defaults to monitor 8, which means information is retrieved from the master node.manage 2(Optional, ) Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. Defaults to manage 3.manage 4(Optional, string) Comma-separated list of column names or column aliases used to sort the response.manage 5(Optional, ) Unit used to display time values.manage 6(Optional, Boolean) If monitor 7, the response includes column headings. Defaults to monitor 8.Example with default columnseditThe API returns the following response: node-0 analyze 0 0 0 ... node-0 fetch_shard_started 0 0 0 node-0 fetch_shard_store 0 0 0 node-0 flush 0 0 0 ... node-0 write 0 0 0 Example with explicit columnseditThe following API request returns the GET /_cat/thread_pool/generic?v=true&h=id,name,active,rejected,completed2, GET /_cat/thread_pool/generic?v=true&h=id,name,active,rejected,completed5, GET /_cat/thread_pool/generic?v=true&h=id,name,active,rejected,completed9, and id name active rejected completed 0EWUhXeBQtaVGlexUeVwMg generic 0 0 701 columns. The request limits returned information to the GET /_cat/thread_pool/generic?v=true&h=id,name,active,rejected,completed4 thread pool. |