Optimize RAM management for Elastic Stack.

This commit is contained in:
t3chn0m4g3
2022-01-14 18:08:55 +00:00
parent 007e786221
commit 2226780086
8 changed files with 29 additions and 15 deletions

View File

@ -136,7 +136,7 @@ services:
restart: always
environment:
- bootstrap.memory_lock=true
# - ES_JAVA_OPTS=-Xms2048m -Xmx2048m
- ES_JAVA_OPTS=-Xms2048m -Xmx2048m
- ES_TMPDIR=/tmp
cap_add:
- IPC_LOCK
@ -147,7 +147,7 @@ services:
nofile:
soft: 65536
hard: 65536
# mem_limit: 4g
mem_limit: 4g
ports:
- "127.0.0.1:64298:9200"
image: "dtagdevsec/elasticsearch:2203"
@ -161,6 +161,7 @@ services:
depends_on:
elasticsearch:
condition: service_healthy
mem_limit: 1g
ports:
- "127.0.0.1:64296:5601"
image: "dtagdevsec/kibana:2203"
@ -176,6 +177,7 @@ services:
condition: service_healthy
env_file:
- /opt/tpot/etc/compose/elk_environment
mem_limit: 2g
image: "dtagdevsec/logstash:2203"
volumes:
- /data:/data