need to add ulimit arg for kolla docker run when use elasticsearch 5.4

Bug #1690842 reported by MarginHu
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
kolla
Fix Released
Undecided
Unassigned

Bug Description

Hi Guys:
I'm using elasticsearch 5.4 in kolla, but I met memlock failed as following:

[2017-05-15T13:22:41,304][INFO ][o.e.b.BootstrapChecks ] [192.168.102.21] bound or publishing to a non-loopback or non-link-local address, enforcing bootstrap checks
ERROR: bootstrap checks failed
memory locking requested for elasticsearch process but memory is not locked

according to elasticsearch doc:
https://www.elastic.co/guide/en/elasticsearch/reference/5.2/docker.html#docker-configuration-methods

run elasticsearch container should be with arguments "--cap-add=IPC_LOCK --ulimit memlock=-1:-1 --ulimit nofile=65536:65536"

I have found "cap_add" in kolla_docker.py but not ulimit.

Revision history for this message
Michal Nasiadka (mnasiadka) wrote :
Changed in kolla:
status: New → Fix Released
Revision history for this message
Gaëtan Trellu (goldyfruit) wrote :

The ulimit still not supported which could be an issue for Neutron agents if too many files are open.

Bug: https://bugs.launchpad.net/oslo.rootwrap/+bug/1760471
Review: https://review.openstack.org/#/c/559268/

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.