RE : Ulimit property

Hi All,

Can we set Ulimit -l unlimited in RHEL servers as my servers running on production.es suggesting to give unlimited ulimit but my question is is it safe to enable Ulimit -l unlimited for root user on production servers?

Thanks
phani

For root? Surely you're not running Elasticsearch as root?

Yes Magnus for root only .I am running elasticsearch as root.

Please don't run Elasticsearch as root. I can't imagine that there's any good reason for doing so.

Hi magnus ,

Thank you for suggesting so if i run elasticsearch under elastisearch user so we can set ulimit unlimited for elasticsearch user instead of defining in root am I correct?

Thanks
phani

Yes, you can raise the ulimit for the Elasticsearch user too.

Make sure you read this chapter - https://www.elastic.co/guide/en/elasticsearch/guide/current/deploy.html