Bump ulimit for rabbitmq to support loads of connections
This commit is contained in:
parent
f5e46b121f
commit
59a167a46d
@ -508,7 +508,8 @@ def config_changed():
|
||||
# Add archive source if provided
|
||||
add_source(config('source'), config('key'))
|
||||
apt_update(fatal=True)
|
||||
|
||||
# Copy in defaults file for updated ulimits
|
||||
shutil.copyfile('templates/rabbitmq-server', '/etc/default/rabbitmq-server')
|
||||
# Install packages to ensure any changes to source
|
||||
# result in an upgrade if applicable.
|
||||
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
|
Loading…
Reference in New Issue
Block a user