Skip to content

Enable bootstrap.memory_lock for Elasticsearch nodes (sandbox) (#255)#257

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

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

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 e6e0bbe into main Mar 6, 2026
2 checks passed
@akuzminsky akuzminsky deleted the issue-255-bootstrap-memory-lock-sandbox branch March 6, 2026 22:09
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