Metad file Limit

"sudo /usr/local/nebula/scripts/nebula.service status all [WARN] The maximum files allowed to open might be too few: 1024 "

Even though I have changed the file limit to 300000 there are no changes in the metad as seen in the above warning message pasted.

Would like to know the cause for this warning and why was it not changed and how can it be changed.

Dear @genghix

this warning actually comes from this shell function: nebula-graph/utils.sh at 5368115dbb67dc9e7e343cbf7388e4df3c3e1170 · vesoft-inc/nebula-graph · GitHub

Can you help verify this? Create a test_util.sh:

nfile=$(ulimit -n 2>/dev/null)
if [[ ${nfile} -le 1024 ]]; then
    echo "The maximum files allowed to open might be too few: ${nfile}"
else
    echo "The current ulimit is ${nfile}"
fi

Run it:

# ulimit -n 65535
# bash test_util.sh
current ulimit is 65535

# ulimit -n 1023
# bash test_util.sh
The maximum files allowed to open might be too few: 1023

Thanks!