Skip to content

Use number_of_replicas and number_of_shards Elasticsearch configuration when it changes  #32872

@Sijoma

Description

@Sijoma

Describe the user problem that you are trying to solve

Operate does not support to reconfigure the number of replicas for a shard if the configuration changes. It also doesn't support changing the number of shards for a template (so that it applies to indexes created in the future). The docs point out this limitation: https://docs.camunda.io/docs/self-managed/operate-deployment/operate-configuration/#settings-for-shards-and-replicas

Our use case requires that we are able to scale up elasticsearch and also change the number of replicas to increase the availability and usage of the nodes.

Describe the solution you'd like to see implemented

  • When I restart Operate with a changed configuration of number_of_replicas
    • The it is applied to both, existing templates and existing indexes on startup (for indexes, also taking the numberOfReplicasForIndices setting into account)
  • When I restart Operate with a changed configuration of number_of_shards
    • Then it is applies to existing templates
    • It is not applied to existing indexes (as that would require splitting or shrinking the index, a fairly heavy operation); this limitation is documented

Optimize already has a way to do this.

This then allows us to increase the the elasticsearch pods and also the data replication.

Describe alternatives you've considered

Additional Context


Definition of Ready - Checklist

  • The issue is not duplicated - the is no other issue about the same user problem in Operate/Tasklist/PDP repository
  • The issue has a meaningful title, description and clear user problem

Metadata

Metadata

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions