Elasticsearch max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
2025. 2. 15. 00:22ㆍk8s/EFK
- This setting controls the number of memory-mapped areas for a process.
- Elasticsearch requires at least 262144 for performance.
- If it is too low, Elasticsearch cannot allocate enough memory pages, causing crashes.
조치
initContainers:
- name: fix-permissions
image: busybox
command: ["sh", "-c", "sysctl -w vm.max_map_count=262144"]
securityContext:
privileged: true
# 확인
kubectl logs -f {pod} -n {namespace} -c fix-permissions
kubectl exec -it {pod} -n {namespace} -- sysctl vm.max_map_count
pod에서 설정하는 경우, host server에 영향을 미침
'k8s > EFK' 카테고리의 다른 글
elasticsearch cluster 구성을 위한 인증서 생성 (0) | 2025.03.01 |
---|---|
elasticsearch cluster 구성 (0) | 2025.03.01 |
Elasticsearch dynamic storage mount 하기 (0) | 2025.02.13 |
Elasticsearch xpack.monitoring.elasticsearch.collection.enabled (0) | 2025.02.12 |
Elasticsearch xpack.monitoring.collection.enabled deprecated 예정 (0) | 2025.02.12 |