You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using index.auto_expand_replicas with a value other than false (its default), index.number_of_replicas is silently ignored:
DELETE /testPUT /test
{
"settings": {
"number_of_shards": 1,
"number_of_replicas": 2,
"auto_expand_replicas": "0-1"
}
}
# reports "number_of_replicas" as 1 (on a multi-node cluster)GET /test/_settings# Shows the cluster as green with test having 1 replicaGET /_cat/indices/test?v# Responds with { "acknowledged": true }PUT /test/_settings
{
"number_of_replicas": 0
}
# "test" index still has 1 replicaGET /_cat/indices/test?v# reports number_of_replicas as 1GET /test/_settings# request properly succeedsPUT /test/_settings
{
"auto_expand_replicas": false
}
# still reports "number_of_replicas" as 1GET /test/_settings# actually changes "number_of_replicas" to 0PUT /test/_settings
{
"number_of_replicas": 0
}
I kind of wonder if we should just deprecate auto_expand_replicas and add its functionality to number_of_replicas instead?
The text was updated successfully, but these errors were encountered:
When using
index.auto_expand_replicas
with a value other thanfalse
(its default),index.number_of_replicas
is silently ignored:I kind of wonder if we should just deprecate
auto_expand_replicas
and add its functionality tonumber_of_replicas
instead?The text was updated successfully, but these errors were encountered: