update-settings.asciidoc 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195
  1. [[cluster-update-settings]]
  2. == Cluster Update Settings
  3. Allows to update cluster wide specific settings. Settings updated can
  4. either be persistent (applied cross restarts) or transient (will not
  5. survive a full cluster restart). Here is an example:
  6. [source,js]
  7. --------------------------------------------------
  8. curl -XPUT localhost:9200/_cluster/settings -d '{
  9. "persistent" : {
  10. "discovery.zen.minimum_master_nodes" : 2
  11. }
  12. }'
  13. --------------------------------------------------
  14. Or:
  15. [source,js]
  16. --------------------------------------------------
  17. curl -XPUT localhost:9200/_cluster/settings -d '{
  18. "transient" : {
  19. "discovery.zen.minimum_master_nodes" : 2
  20. }
  21. }'
  22. --------------------------------------------------
  23. The cluster responds with the settings updated. So the response for the
  24. last example will be:
  25. [source,js]
  26. --------------------------------------------------
  27. {
  28. "persistent" : {},
  29. "transient" : {
  30. "discovery.zen.minimum_master_nodes" : "2"
  31. }
  32. }'
  33. --------------------------------------------------
  34. Cluster wide settings can be returned using:
  35. [source,js]
  36. --------------------------------------------------
  37. curl -XGET localhost:9200/_cluster/settings
  38. --------------------------------------------------
  39. There is a specific list of settings that can be updated, those include:
  40. [float]
  41. === Cluster settings
  42. [float]
  43. ==== Routing allocation
  44. [float]
  45. ===== Awareness
  46. `cluster.routing.allocation.awareness.attributes`::
  47. See <<modules-cluster>>.
  48. `cluster.routing.allocation.awareness.force.*`::
  49. See <<modules-cluster>>.
  50. [float]
  51. ===== Balanced Shards
  52. `cluster.routing.allocation.balance.shard`::
  53. Defines the weight factor for shards allocated on a node
  54. (float). Defaults to `0.45f`.
  55. `cluster.routing.allocation.balance.index`::
  56. Defines a factor to the number of shards per index allocated
  57. on a specific node (float). Defaults to `0.5f`.
  58. `cluster.routing.allocation.balance.primary`::
  59. defines a weight factor for the number of primaries of a specific index
  60. allocated on a node (float). `0.05f`.
  61. `cluster.routing.allocation.balance.threshold`::
  62. minimal optimization value of operations that should be performed (non
  63. negative float). Defaults to `1.0f`.
  64. [float]
  65. ===== Concurrent Rebalance
  66. `cluster.routing.allocation.cluster_concurrent_rebalance`::
  67. Allow to control how many concurrent rebalancing of shards are
  68. allowed cluster wide, and default it to `2` (integer). `-1` for
  69. unlimited. See also <<modules-cluster>>.
  70. [float]
  71. ===== Disable allocation
  72. `cluster.routing.allocation.disable_allocation`::
  73. See <<modules-cluster>>.
  74. `cluster.routing.allocation.disable_replica_allocation`::
  75. See <<modules-cluster>>.
  76. `cluster.routing.allocation.disable_new_allocation`::
  77. See <<modules-cluster>>.
  78. [float]
  79. ===== Throttling allocation
  80. `cluster.routing.allocation.node_initial_primaries_recoveries`::
  81. See <<modules-cluster>>.
  82. `cluster.routing.allocation.node_concurrent_recoveries`::
  83. See <<modules-cluster>>.
  84. [float]
  85. ===== Filter allocation
  86. `cluster.routing.allocation.include.*`::
  87. See <<modules-cluster>>.
  88. `cluster.routing.allocation.exclude.*`::
  89. See <<modules-cluster>>.
  90. `cluster.routing.allocation.require.*`
  91. See <<modules-cluster>>.
  92. [float]
  93. ==== Metadata
  94. `cluster.blocks.read_only`::
  95. Have the whole cluster read only (indices do not accept write operations), metadata is not allowed to be modified (create or delete indices).
  96. [float]
  97. ==== Discovery
  98. `discovery.zen.minimum_master_nodes`::
  99. See <<modules-discovery-zen>>
  100. [float]
  101. ==== Threadpools
  102. `threadpool.*`::
  103. See <<modules-threadpool>>
  104. [float]
  105. === Index settings
  106. [float]
  107. ==== Index filter cache
  108. `indices.cache.filter.size`::
  109. See <<index-modules-cache>>
  110. `indices.cache.filter.expire` (time)::
  111. See <<index-modules-cache>>
  112. [float]
  113. ==== TTL interval
  114. `indices.ttl.interval` (time)::
  115. See <<mapping-ttl-field>>
  116. [float]
  117. ==== Recovery
  118. `indices.recovery.concurrent_streams`::
  119. See <<modules-indices>>
  120. `indices.recovery.file_chunk_size`::
  121. See <<modules-indices>>
  122. `indices.recovery.translog_ops`::
  123. See <<modules-indices>>
  124. `indices.recovery.translog_size`::
  125. See <<modules-indices>>
  126. `indices.recovery.compress`::
  127. See <<modules-indices>>
  128. `indices.recovery.max_bytes_per_sec`::
  129. See <<modules-indices>>
  130. [float]
  131. ==== Store level throttling
  132. `indices.store.throttle.type`::
  133. See <<index-modules-store>>
  134. `indices.store.throttle.max_bytes_per_sec`::
  135. See <<index-modules-store>>
  136. [float]
  137. === Logger
  138. Logger values can also be updated by setting `logger.` prefix. More
  139. settings will be allowed to be updated.