CAT Pending Tasks API
CAT pending tasks 작업은 대기 중인 모든 태스크의 진행 상황을 나열해요. 여기에는 태스크 우선순위와 큐 대기 시간이 포함돼요.
출처: OpenSearch 문서
본문
엔드포인트 (Endpoints)
GET /_cat/pending_tasks
쿼리 매개변수 (Query parameters)
다음 표는 사용할 수 있는 쿼리 매개변수를 나열한 것이에요. 모든 쿼리 매개변수는 선택 사항이에요.
| Parameter | Data type | Description | Default | | cluster_manager_timeout | String | The amount of time allowed to establish a connection to the cluster manager node. | N/A | | format | String | A short version of the Accept header, such as json or yaml. | N/A | | h | List | A comma-separated list of column names to display. | N/A | | help | Boolean | Returns help information. | false | | local | Boolean | Returns local information but does not retrieve the state from the cluster manager node. | false | | s | List | A comma-separated list of column names or column aliases to sort by. | N/A | | time | String | Specifies the time units, for example, 5d or 7h. For more information, see Supported units. Valid values are: nanos, micros, ms, s, m, h, and d. | N/A | | v | Boolean | Enables verbose mode, which displays column headers. | false |
예제 요청 (Example request)
다음 예제 요청은 모든 대기 중인 노드 태스크의 진행 상황을 나열해요.
GET /_cat/pending_tasks?v
response = client.cat.pending_tasks(
params = { "v": "true" }
)
예제 응답 (Example response)
insertOrder | timeInQueue | priority | source
1786 | 1.8s | URGENT | shard-started
필요한 권한 (Required permissions)
Security 플러그인을 사용한다면 적절한 권한을 확인하세요: cluster:monitor/task