pires / kubernetes-elasticsearch-cluster

Elasticsearch cluster on top of Kubernetes made easy.
Apache License 2.0
1.51k stars 690 forks source link

max file descriptors is too low on AWS EKS #215

Open ksemaev opened 6 years ago

ksemaev commented 6 years ago

So debugged it from very begining on my node:

systcl -a | grep vm.max_map_count
>vm.max_map_count = 262144
cat /proc/sys/fs/file-max
>1636119
ulimit -Hn
>4096

docker pull quay.io/pires/docker-elasticsearch-kubernetes:6.2.3
systcl -a | grep vm.max_map_count
>vm.max_map_count = 262144
cat /proc/sys/fs/file-max
>1636119
ulimit -Hn
>4096

/run.sh
>...
>ERROR: [1] bootstrap checks failed
>[1]: max file descriptors [4096] for elasticsearch process is too low, increase to at least [65536]

I believe that you should specify in prerequsites ulimit setup

ksemaev commented 6 years ago

In my case it was defaut docker setup on EKS, had to do on node (or add to AMI): sed -i -e 's/1024:4096/65536:65536/g' /etc/sysconfig/docker

pires commented 6 years ago

Thanks for the suggestion. I'll leave this here for future reference.

gageorsburn commented 6 years ago

Out of all of the cat memes on the internet, there exists only one issue for this and it was extremely difficult to find.

pires commented 6 years ago

Hopefully, this tweet will help.

slavaaaaaaaaaa commented 6 years ago

@ksemaev just wondering, what were the symptoms of this?

ksemaev commented 6 years ago

@smaslennikov elastic was starting log with that warning message

maauso commented 5 years ago

Hi,

we found the same problem using the last amazon ami (ami-0440e4f6b9713faf6), but if we use the previous one (ami-0b2ae3c6bda8b5c06), we didn't find this problem.