Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • shards의 정보를 검색하기 위한 API

Code Block
collapsetrue
GET /twitter/_search_shards


/*결과*/
{
  "nodes" : {
    "AvZ4mIRYTvWXyVmL2gxvKg" : {
      "name" : "AvZ4mIR",
      "ephemeral_id" : "WmsE6_QmQUKIWIHN8tr8Og",
      "transport_address" : "127.0.0.1:9300",
      "attributes" : {
        "ml.machine_memory" : "17179869184",
        "xpack.installed" : "true",
        "ml.max_open_jobs" : "20",
        "ml.enabled" : "true"
      }
    }
  },
  "indices" : {
    "twitter" : { }
  },
  "shards" : [
    [
      {
        "state" : "STARTED",
        "primary" : true,
        "node" : "AvZ4mIRYTvWXyVmL2gxvKg",
        "relocating_node" : null,
        "shard" : 0,
        "index" : "twitter",
        "allocation_id" : {
          "id" : "LX5roCiBSfuTzKUi68Dxfw"
        }
      }
    ],
    [
      {
        "state" : "STARTED",
        "primary" : true,
        "node" : "AvZ4mIRYTvWXyVmL2gxvKg",
        "relocating_node" : null,
        "shard" : 1,
        "index" : "twitter",
        "allocation_id" : {
          "id" : "Y8yJ5th4SNSJs9x0Aw4faA"
        }
      }
    ],
    [
      {
        "state" : "STARTED",
        "primary" : true,
        "node" : "AvZ4mIRYTvWXyVmL2gxvKg",
        "relocating_node" : null,
        "shard" : 2,
        "index" : "twitter",
        "allocation_id" : {
          "id" : "12ukbIKtSxiIK2jw4N7Kcg"
        }
      }
    ],
    [
      {
        "state" : "STARTED",
        "primary" : true,
        "node" : "AvZ4mIRYTvWXyVmL2gxvKg",
        "relocating_node" : null,
        "shard" : 3,
        "index" : "twitter",
        "allocation_id" : {
          "id" : "feyi3bKHRZOtOone2gvmSg"
        }
      }
    ],
    [
      {
        "state" : "STARTED",
        "primary" : true,
        "node" : "AvZ4mIRYTvWXyVmL2gxvKg",
        "relocating_node" : null,
        "shard" : 4,
        "index" : "twitter",
        "allocation_id" : {
          "id" : "AmCtpfelTPiUzWluVsBLBg"
        }
      }
    ]
  ]
}


...