Is your feature request related to a problem? Please describe
We have already supported the scale down of primary and replica under the read-write separation architecture. When performing the scale down operation, it is necessary to ensure the existence of search-only replicas.
However, in production practice (e.g., in the multi-tenant scenario of AI agents), there are indexes with very low write throughput. To save resources, only primaries and replicas are included, and no search-only replicas are configured. In clusters that support remote store, we should support scaling down without search-only shard.
Currently, when determining the status of an index that is in the scale down state, the following rules will be applied.
- When
activeShards is 0, the status is red.
- When
activeShards > 0
activeShards < totalShards, status is yellow
activeShards == totalShards, status is green
Under the current judgment rules, scaling down when the search-only replica is 0 will cause the cluster to turn red, leading to unnecessary concerns.
Describe the solution you'd like
Remove the restriction that a search-only replica must exist when scaling down.
I think the rules for index status can be simplified. In the scaled down state, only two states, yellow and green, should be retained. The new judgment rule is:
activeShards < totalShards, status is yellow
activeShards == totalShards, status is green
Doing so brings the following benefits:
- The red state indicates that there are unassigned primary shards, making the state more explicit.
- When search only shard is
0, perform scale down, and the index status remains green to avoid affecting the monitoring alerts of the cluster.
Related component
Storage
Describe alternatives you've considered
No response
Additional context
No response
Is your feature request related to a problem? Please describe
We have already supported the scale down of primary and replica under the read-write separation architecture. When performing the scale down operation, it is necessary to ensure the existence of search-only replicas.
However, in production practice (e.g., in the multi-tenant scenario of AI agents), there are indexes with very low write throughput. To save resources, only primaries and replicas are included, and no search-only replicas are configured. In clusters that support remote store, we should support scaling down without search-only shard.
Currently, when determining the status of an index that is in the scale down state, the following rules will be applied.
activeShardsis0, the status is red.activeShards>0activeShards < totalShards, status is yellowactiveShards == totalShards, status is greenUnder the current judgment rules, scaling down when the search-only replica is
0will cause the cluster to turn red, leading to unnecessary concerns.Describe the solution you'd like
Remove the restriction that a search-only replica must exist when scaling down.
I think the rules for index status can be simplified. In the scaled down state, only two states, yellow and green, should be retained. The new judgment rule is:
activeShards < totalShards, status is yellowactiveShards == totalShards, status is greenDoing so brings the following benefits:
0, perform scale down, and the index status remains green to avoid affecting the monitoring alerts of the cluster.Related component
Storage
Describe alternatives you've considered
No response
Additional context
No response