Skip to content

Enable bootstrap.memory_lock for Elasticsearch nodes (development) (#255)#256

Merged
akuzminsky merged 1 commit intomainfrom
issue-255-bootstrap-memory-lock
Mar 6, 2026
Merged

Enable bootstrap.memory_lock for Elasticsearch nodes (development) (#255)#256
akuzminsky merged 1 commit intomainfrom
issue-255-bootstrap-memory-lock

Conversation

@akuzminsky
Copy link
Member

Gate on $facts['elasticsearch']['memory_lock'] so existing nodes
without the fact are unaffected. When enabled:

  • Set bootstrap.memory_lock: true in elasticsearch.yml
  • Add systemd override with LimitMEMLOCK=infinity
  • Set vm.swappiness=1 via sysctl

)

Gate on $facts['elasticsearch']['memory_lock'] so existing nodes
without the fact are unaffected. When enabled:
- Set bootstrap.memory_lock: true in elasticsearch.yml
- Add systemd override with LimitMEMLOCK=infinity
- Set vm.swappiness=1 via sysctl
@akuzminsky akuzminsky merged commit dcf756e into main Mar 6, 2026
2 checks passed
@akuzminsky akuzminsky deleted the issue-255-bootstrap-memory-lock branch March 6, 2026 21:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants