add-tier.asciidoc 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. //////////////////////////
  2. [source,console]
  3. --------------------------------------------------
  4. PUT my-index-000001
  5. --------------------------------------------------
  6. // TESTSETUP
  7. [source,console]
  8. --------------------------------------------------
  9. DELETE my-index-000001
  10. --------------------------------------------------
  11. // TEARDOWN
  12. //////////////////////////
  13. // tag::cloud[]
  14. In order to get the shards assigned we need enable a new tier in the deployment.
  15. **Use {kib}**
  16. //tag::kibana-api-ex[]
  17. . Log in to the {ess-console}[{ecloud} console].
  18. +
  19. . On the **Elasticsearch Service** panel, click the name of your deployment.
  20. +
  21. NOTE:
  22. If the name of your deployment is disabled your {kib} instances might be
  23. unhealthy, in which case please contact https://support.elastic.co[Elastic Support].
  24. If your deployment doesn't include {kib}, all you need to do is
  25. {cloud}/ec-access-kibana.html[enable it first].
  26. . Open your deployment's side navigation menu (placed under the Elastic logo in the upper left corner)
  27. and go to **Dev Tools > Console**.
  28. +
  29. [role="screenshot"]
  30. image::images/kibana-console.png[{kib} Console,align="center"]
  31. . Determine which tier an index expects for assignment. <<indices-get-settings, Retrieve>>
  32. the configured value for the `index.routing.allocation.include._tier_preference`
  33. setting:
  34. +
  35. [source,console]
  36. ----
  37. GET /my-index-000001/_settings/index.routing.allocation.include._tier_preference?flat_settings
  38. ----
  39. +
  40. The reponse will look like this:
  41. +
  42. [source,console-result]
  43. ----
  44. {
  45. "my-index-000001": {
  46. "settings": {
  47. "index.routing.allocation.include._tier_preference": "data_warm,data_hot" <1>
  48. }
  49. }
  50. }
  51. ----
  52. // TESTRESPONSE[skip:the result is for illustrating purposes only]
  53. +
  54. <1> Represents a comma-separated list of data tier node roles this index is allowed
  55. to be allocated on, the first one in the list being the one with the higher priority
  56. i.e. the tier the index is targeting.
  57. e.g. in this example the tier preference is `data_warm,data_hot` so the index is
  58. targeting the `warm` tier and more nodes with the `data_warm` role are needed in
  59. the {es} cluster.
  60. . Open your deployment's side navigation menu (placed under the Elastic logo in the upper left corner)
  61. and go to **Manage this deployment**.
  62. . From the right hand side, click to expand the **Manage** dropdown button and
  63. select **Edit deployment** from the list of options.
  64. . On the **Edit** page, click on **+ Add Capacity** for the tier you identified
  65. you need to enable in your deployment. Choose the desired size and availability
  66. zones for the new tier.
  67. . Navigate to the bottom of the page and click the **Save** button.
  68. //end::kibana-api-ex[]
  69. // end::cloud[]
  70. // tag::self-managed[]
  71. In order to get the shards assigned you can add more nodes to your {es} cluster
  72. and assign the index's target tier <<assign-data-tier, node role>> to the new
  73. nodes.
  74. To determine which tier an index requires for assignment, use the <<indices-get-settings, get index setting>>
  75. API to retrieve the configured value for the `index.routing.allocation.include._tier_preference`
  76. setting:
  77. [source,console]
  78. ----
  79. GET /my-index-000001/_settings/index.routing.allocation.include._tier_preference?flat_settings
  80. ----
  81. // TEST[continued]
  82. The reponse will look like this:
  83. [source,console-result]
  84. ----
  85. {
  86. "my-index-000001": {
  87. "settings": {
  88. "index.routing.allocation.include._tier_preference": "data_warm,data_hot" <1>
  89. }
  90. }
  91. }
  92. ----
  93. // TESTRESPONSE[skip:the result is for illustrating purposes only]
  94. <1> Represents a comma-separated list of data tier node roles this index is allowed
  95. to be allocated on, the first one in the list being the one with the higher priority
  96. i.e. the tier the index is targeting.
  97. e.g. in this example the tier preference is `data_warm,data_hot` so the index is
  98. targeting the `warm` tier and more nodes with the `data_warm` role are needed in
  99. the {es} cluster.
  100. // end::self-managed[]