I've been having issues with my ELK deployment. Its on docker and the CPU/Load usage is always high for some reason I still cannot find.
Each ES node has 4GB memory assigned, total memory on the machine is 32GB.
I've tried disabling swapping, bootstrap memory lock and other solutions I've been able to find in the forums but none of them seems to work
the docker-compose file is
version: '2.2'
services:
es-node01:
image: docker.elastic.co/elasticsearch/elasticsearch:7.14.1
container_name: es-node01
environment:
- node.name=es-node01
- cluster.name=es-docker-cluster
- discovery.seed_hosts=es-node02,03
- cluster.initial_master_nodes=es-node01,es-node02,es-node03
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms4048m -Xmx4048m"
# - xpack.security.enabled=true
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- nes-node01:/usr/share/elasticsearch/data
# - /opt/ELK/elasticsearch/config/:/usr/share/elasticsearch/config/
ports:
- 9200:9200
networks:
- elastic
logging:
driver: "json-file"
options:
max-size: "100m"
max-file: "3"
es-node02:
image: docker.elastic.co/elasticsearch/elasticsearch:7.14.1
container_name: es-node02
environment:
- node.name=es-node02
- cluster.name=es-docker-cluster
- discovery.seed_hosts=es-node01,es-node03
- cluster.initial_master_nodes=es-node01,es-node02,es-node03
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms4048m -Xmx4048m"
# - xpack.security.enabled=true
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- nes-node02:/usr/share/elasticsearch/data
# - /opt/ELK/elasticsearch/config/:/usr/share/elasticsearch/config/
ports:
- 9200
networks:
- elastic
logging:
driver: "json-file"
options:
max-size: "100m"
max-file: "3"
es-node03:
image: docker.elastic.co/elasticsearch/elasticsearch:7.14.1
container_name: es-node03
environment:
- node.name=es-node03
- cluster.name=es-docker-cluster
- discovery.seed_hosts=es-node01,es-node02
- cluster.initial_master_nodes=es-node01,es-node02,es-node03
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms4048m -Xmx4048m"
# - xpack.security.enabled=true
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- nes-node03:/usr/share/elasticsearch/data
# - /opt/ELK/elasticsearch/config/:/usr/share/elasticsearch/config/
ports:
- 9200
networks:
- elastic
logging:
driver: "json-file"
options:
max-size: "100m"
max-file: "3"
es-node04:
image: docker.elastic.co/elasticsearch/elasticsearch:7.14.1
container_name: es-node04
environment:
- node.name=es-node04
- cluster.name=es-docker-cluster
- discovery.seed_hosts=es-node01,es-node02,es-node03
- cluster.initial_master_nodes=es-node01,es-node02,es-node03
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms4048m -Xmx4048m"
# - xpack.security.enabled=true
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- nes-node04:/usr/share/elasticsearch/data
# - /opt/ELK/elasticsearch/config/:/usr/share/elasticsearch/config/
ports:
- 9200
networks:
- elastic
logging:
driver: "json-file"
options:
max-size: "100m"
max-file: "3"
kib01:
image: docker.elastic.co/kibana/kibana:7.14.1
container_name: kib01
ports:
- 5601:5601
environment:
ELASTICSEARCH_HOSTS: '["http://es-node01:9200","http://es-node02:9200","http://es-node03: 9200"]'
volumes:
- /opt/ELK/kibana/kibana.yml:/usr/share/kibana/config/kibana.yml
networks:
- elastic
logstash:
image: docker.elastic.co/logstash/logstash:7.14.1
container_name: logstash-node01
ports:
- 9001:9001
- "9002:9002/udp"
- "9003:9003/udp"
networks:
- elastic
volumes:
- /opt/ELK/logstash/config/:/usr/share/logstash/config/
volumes:
nes-node01:
driver: local
nes-node02:
driver: local
nes-node03:
driver: local
nes-node04:
driver: local
networks:
elastic:
driver: bridge
Hot Threads: