enable-cluster-allocation.asciidoc 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. // tag::cloud[]
  2. In order to get the shards assigned we'll need to change the value of the
  3. <<cluster-routing-allocation-enable, configuration>> that restricts the
  4. assignemnt of the shards to allow all shards to be allocated.
  5. We'll achieve this by inspecting the system-wide `cluster.routing.allocation.enable`
  6. <<cluster-get-settings, cluster setting>> and changing the configured value to
  7. `all`.
  8. **Use {kib}**
  9. //tag::kibana-api-ex[]
  10. . Log in to the {ess-console}[{ecloud} console].
  11. +
  12. . On the **Elasticsearch Service** panel, click the name of your deployment.
  13. +
  14. NOTE:
  15. If the name of your deployment is disabled your {kib} instances might be
  16. unhealthy, in which case please contact https://support.elastic.co[Elastic Support],
  17. or your deployment doesn't include {kib}, in which case all you need to do is
  18. {cloud}/ec-access-kibana.html[enable Kibana first].
  19. . Open your deployment's side navigation menu (placed under the Elastic logo in the upper left corner)
  20. and go to **Dev Tools > Console**.
  21. +
  22. [role="screenshot"]
  23. image::images/kibana-console.png[{kib} Console,align="center"]
  24. . Inspect the `cluster.routing.allocation.enable` <<cluster-get-settings, cluster setting>>:
  25. +
  26. [source,console]
  27. ----
  28. GET /_cluster/settings?flat_settings
  29. ----
  30. +
  31. The response will look like this:
  32. +
  33. [source,console-result]
  34. ----
  35. {
  36. "persistent": {
  37. "cluster.routing.allocation.enable": "none" <1>
  38. },
  39. "transient": {}
  40. }
  41. ----
  42. // TESTRESPONSE[skip:the result is for illustrating purposes only as don't want to change a cluster-wide setting]
  43. +
  44. <1> Represents the current configured value that controls if data is partially
  45. or fully allowed to be allocated in the system.
  46. . <<cluster-update-settings,Change>> the <<cluster-routing-allocation-enable, configuration>>
  47. value to allow all the data in the system to be fully allocated:
  48. +
  49. [source,console]
  50. ----
  51. PUT _cluster/settings
  52. {
  53. "persistent" : {
  54. "cluster.routing.allocation.enable" : "all" <1>
  55. }
  56. }
  57. ----
  58. // TEST[continued]
  59. +
  60. <1> The new value for the `allocation.enable` system-wide configuration
  61. is changed to allow all the shards to be allocated.
  62. //end::kibana-api-ex[]
  63. // end::cloud[]
  64. // tag::self-managed[]
  65. In order to get the shards assigned we'll need to change the value of the
  66. <<cluster-routing-allocation-enable, configuration>> that restricts the
  67. assignemnt of the shards to allow all shards to be allocated.
  68. We'll achieve this by inspecting the system-wide `cluster.routing.allocation.enable`
  69. <<cluster-get-settings, cluster setting>> and changing the configured value to
  70. `all`.
  71. . Inspect the `cluster.routing.allocation.enable` <<cluster-get-settings, cluster setting>>:
  72. +
  73. [source,console]
  74. ----
  75. GET /_cluster/settings?flat_settings
  76. ----
  77. +
  78. The response will look like this:
  79. +
  80. [source,console-result]
  81. ----
  82. {
  83. "persistent": {
  84. "cluster.routing.allocation.enable": "none" <1>
  85. },
  86. "transient": {}
  87. }
  88. ----
  89. // TESTRESPONSE[skip:the result is for illustrating purposes only as don't want to change a cluster-wide setting]
  90. +
  91. <1> Represents the current configured value that controls if data is partially
  92. or fully allowed to be allocated in the system.
  93. . <<cluster-update-settings,Change>> the <<cluster-routing-allocation-enable, configuration>>
  94. value to allow all the data in the system to be fully allocated:
  95. +
  96. [source,console]
  97. ----
  98. PUT _cluster/settings
  99. {
  100. "persistent" : {
  101. "cluster.routing.allocation.enable" : "all" <1>
  102. }
  103. }
  104. ----
  105. // TEST[continued]
  106. +
  107. <1> The new value for the `allocation.enable` system-wide configuration
  108. is changed to allow all the shards to be allocated.
  109. // end::self-managed[]