Bump ulimit for rabbitmq to support loads of connections

This commit is contained in:
james.page@ubuntu.com 2014-05-01 11:40:32 +01:00
parent f5e46b121f
commit 59a167a46d
2 changed files with 5 additions and 1 deletions

View File

@ -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)

View File

@ -0,0 +1,3 @@
# Generated by juju
# bump ulimit so rabbit can support lots of connections
ulimit -n 65536