2015-12-16 23:12:01 |
Alexander Bozhenko |
bug |
|
|
added bug |
2015-12-16 23:24:45 |
Alexander Bozhenko |
description |
We have this file:
cat /etc/security/limits.conf
# 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-1gb-nyc3-01 ~]# ulimit -Ha | grep open
open files (-n) 112640
[root@centos-1gb-nyc3-01 ~]# ulimit -Sa | grep open
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 to limits.conf need to add this as well for ubuntu, if we need it 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://stackoverflow.com/a/19996195
http://upstart.ubuntu.com/wiki/Stanzas#limit
E.g. Mongodb is doing that. Check
cat /etc/init/mongodb.conf | grep limit
limit nofile 64000 64000
For cenots 6 it is similar syntax, see http://serverfault.com/a/624107
And for centos7 it is in systemd:
[root@localhost ~]# cat /usr/lib/systemd/system/mongod.service | grep -i limit
LimitNOFILE=64000 |
We have this file:
cat /etc/security/limits.conf
# 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-1gb-nyc3-01 ~]# ulimit -Ha | grep open
open files (-n) 112640
[root@centos-1gb-nyc3-01 ~]# ulimit -Sa | grep open
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://stackoverflow.com/a/19996195
http://upstart.ubuntu.com/wiki/Stanzas#limit
E.g. Mongodb is doing that. Check
cat /etc/init/mongodb.conf | grep limit
limit nofile 64000 64000
For cenots 6 it is similar syntax, see http://serverfault.com/a/624107
And for centos7 it is in systemd:
[root@localhost ~]# cat /usr/lib/systemd/system/mongod.service | grep -i limit
LimitNOFILE=64000 |
|
2015-12-16 23:28:20 |
Alexander Bozhenko |
description |
We have this file:
cat /etc/security/limits.conf
# 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-1gb-nyc3-01 ~]# ulimit -Ha | grep open
open files (-n) 112640
[root@centos-1gb-nyc3-01 ~]# ulimit -Sa | grep open
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://stackoverflow.com/a/19996195
http://upstart.ubuntu.com/wiki/Stanzas#limit
E.g. Mongodb is doing that. Check
cat /etc/init/mongodb.conf | grep limit
limit nofile 64000 64000
For cenots 6 it is similar syntax, see http://serverfault.com/a/624107
And for centos7 it is in systemd:
[root@localhost ~]# cat /usr/lib/systemd/system/mongod.service | grep -i limit
LimitNOFILE=64000 |
We have this file:
cat /etc/security/limits.conf
# 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-1gb-nyc3-01 ~]# ulimit -Ha | grep open
open files (-n) 112640
[root@centos-1gb-nyc3-01 ~]# ulimit -Sa | grep open
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://stackoverflow.com/a/19996195
http://upstart.ubuntu.com/wiki/Stanzas#limit
E.g. Mongodb is doing that. Check
cat /etc/init/mongodb.conf | grep limit
limit nofile 64000 64000
For cenots 6 it is similar syntax, see http://serverfault.com/a/624107
And for centos7 it is in systemd:
[root@localhost ~]# cat /usr/lib/systemd/system/mongod.service | grep -i limit
LimitNOFILE=64000
Note that mongodb used just as example. |
|
2015-12-16 23:46:27 |
Alexander Bozhenko |
description |
We have this file:
cat /etc/security/limits.conf
# 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-1gb-nyc3-01 ~]# ulimit -Ha | grep open
open files (-n) 112640
[root@centos-1gb-nyc3-01 ~]# ulimit -Sa | grep open
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://stackoverflow.com/a/19996195
http://upstart.ubuntu.com/wiki/Stanzas#limit
E.g. Mongodb is doing that. Check
cat /etc/init/mongodb.conf | grep limit
limit nofile 64000 64000
For cenots 6 it is similar syntax, see http://serverfault.com/a/624107
And for centos7 it is in systemd:
[root@localhost ~]# cat /usr/lib/systemd/system/mongod.service | grep -i limit
LimitNOFILE=64000
Note that mongodb used just as example. |
We have this file:
cat /etc/security/limits.conf
# 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-1gb-nyc3-01 ~]# ulimit -Ha | grep open
open files (-n) 112640
[root@centos-1gb-nyc3-01 ~]# ulimit -Sa | grep open
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://stackoverflow.com/a/19996195
http://upstart.ubuntu.com/wiki/Stanzas#limit
E.g. Mongodb is doing that. Check
cat /etc/init/mongodb.conf | grep limit
limit nofile 64000 64000
For cenots 6 it is similar syntax, see http://serverfault.com/a/624107
And for centos7 it is in systemd:
[root@localhost ~]# cat /usr/lib/systemd/system/mongod.service | grep -i limit
LimitNOFILE=64000
Note that mongodb used just as example.
See also about limits:
https://www.rdoproject.org/documentation/tunings-and-tweaks/ |
|
2015-12-17 10:42:03 |
Ilya Kutukov |
fuel: milestone |
|
8.0 |
|
2015-12-17 10:43:12 |
Ilya Kutukov |
fuel: assignee |
|
Fuel Library Team (fuel-library) |
|
2015-12-17 10:43:16 |
Ilya Kutukov |
fuel: importance |
Undecided |
High |
|
2015-12-17 10:43:20 |
Ilya Kutukov |
fuel: status |
New |
Confirmed |
|
2015-12-17 10:43:27 |
Ilya Kutukov |
tags |
|
area-library low-hanging-fruit |
|
2015-12-17 10:47:07 |
Ilya Kutukov |
fuel: importance |
High |
Medium |
|
2015-12-17 10:47:12 |
Ilya Kutukov |
fuel: milestone |
8.0 |
8.0-updates |
|
2015-12-17 10:56:54 |
Kyrylo Galanov |
fuel: status |
Confirmed |
Incomplete |
|
2015-12-17 11:26:41 |
Ilya Kutukov |
fuel: milestone |
8.0-updates |
8.0 |
|
2015-12-17 13:59:26 |
Bogdan Dobrelya |
fuel: importance |
Medium |
High |
|
2015-12-17 14:01:12 |
Bogdan Dobrelya |
tags |
area-library low-hanging-fruit |
area-library |
|
2015-12-17 14:09:27 |
Bogdan Dobrelya |
marked as duplicate |
|
1429553 |
|