diff options
author | Micah Anderson <micah@leap.se> | 2014-11-20 16:27:35 -0500 |
---|---|---|
committer | Micah Anderson <micah@leap.se> | 2014-11-20 16:32:00 -0500 |
commit | 503a316e67da2b4e0dbae7db28bbd0574fa3739f (patch) | |
tree | c7b3df705ba982163707cf1b97932e60f43a1abb /puppet/modules/site_couchdb | |
parent | dff949811324215278ab7e4c2db5de63d8a6218b (diff) |
ship a modified runit config for bigcouch that raises the open file
descriptor limits to account for bigcouch sync spikes (#4935)
Change-Id: I242fba31f961b6139ec641e1708b170f5c0d009b
Diffstat (limited to 'puppet/modules/site_couchdb')
-rw-r--r-- | puppet/modules/site_couchdb/files/runit_config | 6 | ||||
-rw-r--r-- | puppet/modules/site_couchdb/manifests/bigcouch.pp | 10 |
2 files changed, 16 insertions, 0 deletions
diff --git a/puppet/modules/site_couchdb/files/runit_config b/puppet/modules/site_couchdb/files/runit_config new file mode 100644 index 00000000..169b4832 --- /dev/null +++ b/puppet/modules/site_couchdb/files/runit_config @@ -0,0 +1,6 @@ +#!/bin/bash +exec 2>&1 +export HOME=/home/bigcouch +ulimit -H -n 32768 +ulimit -S -n 32768 +exec chpst -u bigcouch /opt/bigcouch/bin/bigcouch diff --git a/puppet/modules/site_couchdb/manifests/bigcouch.pp b/puppet/modules/site_couchdb/manifests/bigcouch.pp index d71c00c5..16593ec7 100644 --- a/puppet/modules/site_couchdb/manifests/bigcouch.pp +++ b/puppet/modules/site_couchdb/manifests/bigcouch.pp @@ -31,4 +31,14 @@ class site_couchdb::bigcouch { file { '/var/log/bigcouch': ensure => directory } + + file { '/etc/sv/bigcouch/run': + ensure => present, + source => 'puppet:///modules/site_couchdb/runit_config', + owner => root, + group => root, + mode => '0755', + require => Package['couchdb'], + notify => Service['couchdb'] + } } |