Switch back to correct way of setting limits for server processes
This commit is contained in:
parent
d413855fbb
commit
3b0cdaf1de
@ -509,8 +509,7 @@ def config_changed():
|
|||||||
add_source(config('source'), config('key'))
|
add_source(config('source'), config('key'))
|
||||||
apt_update(fatal=True)
|
apt_update(fatal=True)
|
||||||
# Copy in defaults file for updated ulimits
|
# Copy in defaults file for updated ulimits
|
||||||
shutil.copyfile('templates/rabbitmq.limits.conf',
|
shutil.copyfile('templates/rabbitmq-server', '/etc/default/rabbitmq-server')
|
||||||
'/etc/security/limits.d/rabbitmq.limits.conf')
|
|
||||||
# Install packages to ensure any changes to source
|
# Install packages to ensure any changes to source
|
||||||
# result in an upgrade if applicable.
|
# result in an upgrade if applicable.
|
||||||
apt_install(rabbit.PACKAGES, fatal=True)
|
apt_install(rabbit.PACKAGES, fatal=True)
|
||||||
|
3
templates/rabbitmq-server
Normal file
3
templates/rabbitmq-server
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
# Generated by juju
|
||||||
|
# bump ulimit so rabbit can support lots of connections
|
||||||
|
ulimit -n 65536
|
@ -1,5 +0,0 @@
|
|||||||
# Generated by juju
|
|
||||||
# bump ulimit so rabbit can support lots of connections
|
|
||||||
|
|
||||||
rabbitmq soft nofile 65536
|
|
||||||
rabbitmq hard nofile 65536
|
|
Loading…
Reference in New Issue
Block a user