ECE Installation and Openfile values

Though, the right value is set for the open file descriptors, the installer still reports requirements not met.

Checking OS kernel cgroup.memory... PASSED
 - OS setting 'cgroup.memory' should be set to cgroup.memory=nokmem
Checking OS minimum ephemeral port... PASSED
Checking OS max open file descriptors per process... FAILED
  OS setting for max open file descriptors per process should be >= 65536, currently 1024
Checking OS max open file descriptors system-wide... PASSED
 - OS setting for max open file descriptors system-wide should be >= 2708550, currently 2097152
Checking OS file system and Docker storage driver compatibility... PASSED
Checking OS file system storage driver permissions... PASSED

Errors have caused Elastic Cloud Enterprise installation to fail
Some of the prerequisites failed: [OS max open file descriptors per process], please fix before continuing
[elasticsearch@ip-10-124-136-26 ~]$ ulimit -a
core file size          (blocks, -c) 0
data seg size           (kbytes, -d) unlimited
scheduling priority             (-e) 0
file size               (blocks, -f) unlimited
pending signals                 (-i) 509707
max locked memory       (kbytes, -l) 64
max memory size         (kbytes, -m) unlimited
open files                      (-n) 65536
pipe size            (512 bytes, -p) 8

Entries in the /etc/security/limits.conf

elasticsearch soft nofile 65536
elasticsearch hard nofile 65536
root soft nofile 65536
root hard nofile 65536

  •           soft    nofile          65536
  •           hard    nofile          65536

elasticsearch memlock unlimited

The values mentioned in the snippet do not seem to match ECE documented installation steps so I assume some other steps were not followed and might cause this. I would suggest following the appropriate doc depending on the OS and verifying all the steps to prepare the host

Note ulimit should be run inside a docker container if you want to test so it might give more relevant than running on the server directly:

$ docker run -it busybox sh
/ # cat /proc/sys/fs/file-max
1 Like