Refactor memory limit configuration for Elasticsearch service; move to deploy resources section
This commit is contained in:
parent
2eb04397e5
commit
ee6a1b21c7
1 changed files with 5 additions and 1 deletions
|
@ -41,7 +41,11 @@ services:
|
|||
- ES_JAVA_OPTS=-Xms6g -Xmx6g
|
||||
- bootstrap.memory_lock=true
|
||||
restart: unless-stopped
|
||||
mem_limit: 8g
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
memory: 8g
|
||||
|
||||
ulimits:
|
||||
memlock:
|
||||
soft: -1
|
||||
|
|
Loading…
Add table
Reference in a new issue