Ulimits are not applied to services, and for root user on ubuntu
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Fuel for OpenStack |
Incomplete
|
High
|
Fuel Library (Deprecated) |
Bug Description
We have this file:
cat /etc/security/
# Raising open file limit for OpenStack services
* soft nofile 102400
* hard nofile 112640
In centos 6 an 7 those limits are applied for users, including root.
[root@centos-
open files (-n) 112640
[root@centos-
open files (-n) 102400
On ubuntu manpage says this:
NOTE: group and wildcard limits are not applied to the root user. To set a limit for the root user, this field
must contain the literal username root.
And ulimits are not applied to root:
root@:~# ulimit -Ha | grep open
open files (-n) 4096
root@:~# ulimit -Sa | grep open
open files (-n) 1024
So limits.conf require this as well for ubuntu, if we need limits set for root:
root soft nofile 102400
root hard nofile 112640
Also, options from limits.conf are not applied to upstart jobs in Ubuntu, and to sysvinit scripts in centos6 and systemd in centos7.
They are only applied for process started from shell under particluar user.
You can check it by doing
cat /proc/PID/limits
Some services have default ulimit values.
So, if we really need that ulimit set for openstack services we need to add ulimits to upstart jobs for ubuntu:
http://
http://
E.g. Mongodb is doing that. Check
cat /etc/init/
limit nofile 64000 64000
For cenots 6 it is similar syntax, see http://
And for centos7 it is in systemd:
[root@localhost ~]# cat /usr/lib/
LimitNOFILE=64000
Note that mongodb used just as example.
See also about limits:
https:/
description: | updated |
description: | updated |
description: | updated |
Changed in fuel: | |
milestone: | none → 8.0 |
assignee: | nobody → Fuel Library Team (fuel-library) |
importance: | Undecided → High |
status: | New → Confirmed |
tags: | added: area-library low-hanging-fruit |
Changed in fuel: | |
importance: | High → Medium |
milestone: | 8.0 → 8.0-updates |
Changed in fuel: | |
milestone: | 8.0-updates → 8.0 |
Hello,
What services are affected by this issue in particular?
--
Kyrylo