Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Systemd open files limit #535

Merged
merged 2 commits into from
Jun 22, 2017
Merged

Systemd open files limit #535

merged 2 commits into from
Jun 22, 2017

Conversation

tomashejatko
Copy link
Contributor

This basically copies CentOS approach and increases Ubuntu 16.04 compatibility by creating /etc/systemd/system/rabbitmq-server.service.d/limits.conf file

@KZachariassen
Copy link

any news on this one - we really need this

@@ -127,6 +127,27 @@

case $::osfamily {
'Debian': {
if versioncmp($::operatingsystemmajrelease, '16.04') >= 0 {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like this variable is not in many/any of the debian tests causing unit test failures.

hunner added a commit to hunner/puppetlabs-rabbitmq that referenced this pull request Jun 22, 2017
@hunner hunner mentioned this pull request Jun 22, 2017
@bmjen bmjen merged commit a045075 into voxpupuli:master Jun 22, 2017
bmjen added a commit that referenced this pull request Jun 22, 2017
@KZachariassen
Copy link

This is not working for me.

RabbtiMQ 3.6.10
Ubuntu 16.04

To get the ulimit to work for this setup, you have to put:

[Service]
LimitNOFILE=<%= @file_limit %>

In /etc/systemd/system/rabbitmq-server.service.d/override.conf not limit.conf

@tomashejatko
Copy link
Contributor Author

This approach is working for me...

`$ cat /etc/systemd/system/rabbitmq-server.service.d/limits.conf
[Service]
LimitNOFILE=256000

$ rabbitmqctl status | grep -A 4 file_descriptors
{file_descriptors,
[{total_limit,255900},
{total_used,232},
{sockets_limit,230308},
{sockets_used,207}]},
`
Using Ubuntu 16.04 and RabbitMQ 3.6.9

slm0n87 pushed a commit to slm0n87/puppet-rabbitmq that referenced this pull request Mar 7, 2019
slm0n87 pushed a commit to slm0n87/puppet-rabbitmq that referenced this pull request Mar 7, 2019
cegeka-jenkins pushed a commit to cegeka/puppet-rabbitmq that referenced this pull request Mar 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants