Set redis file descriptor limit when run via pacemaker
The current redis file descriptor limit is 4096 because of two reasons:
- It is run via the redis user
- It is not started via systemd which has explicit LimitNOFILE set to
10240 (which matches the default configuration of maximum 10000
clients)
Create an /etc/security/limits.d/redis.conf file in order to increase
the fd limit value With this change we correctly get the following
limits:
[root@overcloud-controller-0 ~]# pcs status |grep -A2 redis
Master/Slave Set: redis-master [redis]
Masters: [ overcloud-controller-2 ]
Slaves: [ overcloud-controller-0 overcloud-controller-1 ]
[root@overcloud-controller-0 ~]# cat /proc/`pgrep redis`/limits | grep open
Max open files 10240 10240 files
Previously this limit was set to 4096.
Change-Id: I7691581bad92ad9442cecd82cf44f5ac78ed169f
Closes-Bug: #1635334
(cherry picked from commit 03a68a5c8cdbabcf6e152b9aca62f1007c713b5c)
Reviewed: https:/ /review. openstack. org/393343 /git.openstack. org/cgit/ openstack/ puppet- tripleo/ commit/ ?id=9e9b64be7a8 aa48acf349e3769 fd7e93577d1969
Committed: https:/
Submitter: Jenkins
Branch: stable/newton
commit 9e9b64be7a8aa48 acf349e3769fd7e 93577d1969
Author: Michele Baldessari <email address hidden>
Date: Fri Oct 21 10:02:39 2016 +0200
Set redis file descriptor limit when run via pacemaker
The current redis file descriptor limit is 4096 because of two reasons:
- It is run via the redis user
- It is not started via systemd which has explicit LimitNOFILE set to
10240 (which matches the default configuration of maximum 10000
clients)
Create an /etc/security/ limits. d/redis. conf file in order to increase overcloud- controller- 0 ~]# pcs status |grep -A2 redis controller- 2 ] controller- 0 overcloud- controller- 1 ]
the fd limit value With this change we correctly get the following
limits:
[root@
Master/Slave Set: redis-master [redis]
Masters: [ overcloud-
Slaves: [ overcloud-
[root@ overcloud- controller- 0 ~]# cat /proc/`pgrep redis`/limits | grep open
Max open files 10240 10240 files
Previously this limit was set to 4096.
Change-Id: I7691581bad92ad 9442cecd82cf44f 5ac78ed169f f6e152b9aca62f1 007c713b5c)
Closes-Bug: #1635334
(cherry picked from commit 03a68a5c8cdbabc