Skip to content

[TASK] Reduce default ES replica auto-expansion #34640

@wezell

Description

@wezell

Description

Our current ES configuration hardcodes the ES config value index.auto_expand_replicas=0-all. This means that if are running an index in an ES cluster with 4 data nodes, elasticsearch will automatically set an index's replicas to 4. This number of replicas are unnecessary and consumes too much disk space and network traffic to keep in sync.

By default we should only expand to 1 index replica for redundancy. Any more than that becomes overkill.

Acceptance Criteria

  • change default for index.auto_expand_replicas to 0-1
  • Allow for the value to configured via env variable.

Priority

None

Additional Context

https://dotcms.slack.com/archives/C06TM536N9J/p1770991967073849?thread_ts=1770991961.739489&cid=C06TM536N9J

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    Status

    New

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions