I have 3 node replica. One of them has crashed. Start to initial sync by deleting data directory. After 7-8 hours later primary mongo was restarted because of Too many open files.
Two times initial sync failed. Is there a solution ? How many limit should I set ?
{"t":{"$date":"2023-06-10T13:33:05.288+00:00"},"s":"I", "c":"CONNPOOL", "id":22572, "ctx":"MirrorMaestro","msg":"Dropping all pooled connections","attr":{"hostAndPort":"11.1.1.1:27017","error":"HostUnreachable: Error connecting to 11.1.1.1:27017 :: caused by :: Too many open files"}}
ulimits;
core file size (blocks, -c) unlimited
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 337612
max locked memory (kbytes, -l) unlimited
max memory size (kbytes, -m) unlimited
open files (-n) 200000
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority (-r) 0
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes (-u) 200000
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited