enable-cluster-allocation.asciidoc 3.5 KB

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