0

I am having hard time understanding resource limits (ulimit) with systemd. As I understand it, systemd brings some additional complexities to setting file descriptor limit.

/etc/security/limits.d/99-name.conf

couchbase hard nofile 100000
couchbase soft nofile 100000

/etc/systemd/system/[SERVICE_NAME].service.d/limits.conf

[Service]
LimitNOFILE=100000

I found this and this, but it rises more questions than answers.

  • Which of the above is correct and why (or is there some other way, or should I set both)?
  • Can I use ulimit command?
  • How do I verify that the limit is really set for a daemon?
  • What about daemons, which relies on ulimit?
030
  • 5,901
  • 13
  • 68
  • 110
NefariousOctopus
  • 579
  • 1
  • 5
  • 9

0 Answers0