Difference between revisions of "Elasticsearch update index settings"
Jump to navigation
Jump to search
m (Ant moved page Elasticsearch Update index settings to Elasticsearch update index settings) |
|||
(13 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
− | |||
− | |||
* https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-update-settings.html | * https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-update-settings.html | ||
+ | [[curl -xPUT]] -u "elactic:yourpassword" https://localhost:9200/my-index-000001/_settings | ||
− | + | === Number of replicas === | |
+ | PUT /my-index-000001/_settings | ||
+ | { | ||
+ | "index" : { | ||
+ | "[[number_of_replicas]]" : 2 | ||
+ | } | ||
+ | } | ||
PUT /my-index-000001/_settings | PUT /my-index-000001/_settings | ||
{ | { | ||
"index" : { | "index" : { | ||
− | "[[number_of_replicas]]" : | + | "[[number_of_replicas]]" : 0 |
} | } | ||
} | } | ||
+ | === Disk [[Watermark]] === | ||
+ | {{Update watermark}} | ||
+ | |||
+ | |||
+ | === fields.limit === | ||
+ | PUT test_index/_settings | ||
+ | { | ||
+ | "[[index.mapping.]]total_fields.limit": 2000 | ||
+ | } | ||
+ | |||
+ | == Relatated == | ||
+ | * [[Elasticsearch index]] | ||
+ | * [[Low disk watermark]] | ||
+ | * <code>[[/_cat/indices]]</code> | ||
== See also == | == See also == | ||
Line 18: | Line 37: | ||
− | [[Category: | + | [[Category:Elasticsearch]] |
Latest revision as of 15:48, 27 December 2022
curl -xPUT -u "elactic:yourpassword" https://localhost:9200/my-index-000001/_settings
Number of replicas[edit]
PUT /my-index-000001/_settings { "index" : { "number_of_replicas" : 2 } }
PUT /my-index-000001/_settings { "index" : { "number_of_replicas" : 0 } }
Disk Watermark[edit]
curl -XPUT --insecure https://localhost:9200/_cluster/settings -u "elastic:yourpasss" -H 'Content-Type: application/json' -d '{ "transient" : { "cluster.routing.allocation.disk.watermark.low" : "90%", "cluster.routing.allocation.disk.watermark.high" : "95%", "cluster.routing.allocation.disk.watermark.flood_stage" : "98%" } }'
fields.limit[edit]
PUT test_index/_settings { "index.mapping.total_fields.limit": 2000 }
Relatated[edit]
See also[edit]
- Elasticsearch, installation, ELK, Elastic X-Pack,
elasticsearch.yml
, logs, ECK, Elasticsearch curl URLs, Elastisearch REST APIs,/_cat/, /_cluster/, /_xpack/
, QueryShardException, Elasticsearch index, ELK backup and restore,elasticsearch-cli
, Elasticsearch versions, ElasticSearch Snapshot Lifecycle Management (SLM), Low disk watermark, Elasticsearch storage, Elasticsearch users, Elasticsearch roles, search context, shards, Elastic Cloud, Elastic Licensing, ElasticSearch alerts, ESQL
Advertising: