OpenSearch/docs/reference/cluster
Igor Motov c75ac319a6
Add ability to associate an ID with tasks (#27764)
Adds support for capturing the X-Opaque-Id header from a REST request and storing it's value in the tasks that this request started. It works for all user-initiated tasks (not only search).

Closes #23250

Usage:
```
$ curl -H "X-Opaque-Id: imotov" -H "foo:bar" "localhost:9200/_tasks?pretty&group_by=parents"
{
  "tasks" : {
    "7qrTVbiDQKiZfubUP7DPkg:6998" : {
      "node" : "7qrTVbiDQKiZfubUP7DPkg",
      "id" : 6998,
      "type" : "transport",
      "action" : "cluster:monitor/tasks/lists",
      "start_time_in_millis" : 1513029940042,
      "running_time_in_nanos" : 266794,
      "cancellable" : false,
      "headers" : {
        "X-Opaque-Id" : "imotov"
      },
      "children" : [
        {
          "node" : "V-PuCjPhRp2ryuEsNw6V1g",
          "id" : 6088,
          "type" : "netty",
          "action" : "cluster:monitor/tasks/lists[n]",
          "start_time_in_millis" : 1513029940043,
          "running_time_in_nanos" : 67785,
          "cancellable" : false,
          "parent_task_id" : "7qrTVbiDQKiZfubUP7DPkg:6998",
          "headers" : {
            "X-Opaque-Id" : "imotov"
          }
        },
        {
          "node" : "7qrTVbiDQKiZfubUP7DPkg",
          "id" : 6999,
          "type" : "direct",
          "action" : "cluster:monitor/tasks/lists[n]",
          "start_time_in_millis" : 1513029940043,
          "running_time_in_nanos" : 98754,
          "cancellable" : false,
          "parent_task_id" : "7qrTVbiDQKiZfubUP7DPkg:6998",
          "headers" : {
            "X-Opaque-Id" : "imotov"
          }
        }
      ]
    }
  }
}
```
2018-01-12 15:34:17 -05:00
..
allocation-explain.asciidoc [Docs] Convert remaining code snippets in docs (#26422) 2017-08-30 12:11:10 +02:00
health.asciidoc Add wait_for_no_initializing_shards to cluster health API (#27489) 2017-11-23 15:09:58 -05:00
nodes-hot-threads.asciidoc Core: ignore known idle threads by default in /_nodes/hot_threads 2014-12-17 11:59:31 -05:00
nodes-info.asciidoc [Docs] Convert more doc snippets (#26359) 2017-08-28 11:23:09 +02:00
nodes-stats.asciidoc Add cgroup memory usage/limit to OS stats on Linux (#26166) 2017-10-03 12:08:36 +01:00
nodes-usage.asciidoc Fix cluster usage docs test 2017-12-01 16:55:10 +01:00
pending.asciidoc [Docs] Convert more doc snippets (#26404) 2017-08-30 09:30:36 +02:00
remote-info.asciidoc Cross Cluster Search: make remote clusters optional (#27182) 2017-11-21 11:41:47 +01:00
reroute.asciidoc TCorrecting api name (#24924) 2017-05-29 13:58:31 +02:00
state.asciidoc [Docs] Convert more doc snippets (#26359) 2017-08-28 11:23:09 +02:00
stats.asciidoc [Docs] Convert more doc snippets (#26359) 2017-08-28 11:23:09 +02:00
tasks.asciidoc Add ability to associate an ID with tasks (#27764) 2018-01-12 15:34:17 -05:00
update-settings.asciidoc [Docs] Correct spelling in update-settings.asciidoc (#27808) 2017-12-14 10:16:50 +01:00