lxd hosts fail to start elasticsearch service due to insufficent max_map_count
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Elasticsearch Charm |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
When deploying the elasticsearch charm on a localhost lxd cloud, it appears that the charm initally works, but after several minutes when the `update-status` hook re-fires it logs a message `elasticsearch service not running`, on examination of `elasticsearch.
To resolve this it is necessary to set `sysctl -w vm.max_
As a suggestion it might be useful to add a config option to elasticsearch or log an error if a user has vm.max_map_count > 262144 and is using an lxd cloud
This charm is no longer being actively maintained. Please consider using the new Canonical Observability Stack (https:/ /charmhub. io/topics/ canonical- observability- stack) or the opensearch-operator (https:/ /github. com/canonical/ opensearch- operator) instead.