Skip to content
This repository has been archived by the owner on Jul 11, 2020. It is now read-only.

Commit

Permalink
set overcommit_memory to 1 to allow redis to save in the background
Browse files Browse the repository at this point in the history
  • Loading branch information
dwradcliffe committed Aug 27, 2014
1 parent 437aba9 commit b443931
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
5 changes: 4 additions & 1 deletion Berksfile.lock
Expand Up @@ -267,10 +267,11 @@ GRAPH
rubygems-people (0.0.28)
sudo (>= 0.0.0)
user (>= 0.0.0)
rubygems-redis (0.0.3)
rubygems-redis (0.0.4)
redisio (>= 0.0.0)
rubygems (>= 0.0.0)
rubygems-backups (>= 0.0.0)
sysctl (>= 0.0.0)
rubygems-repo (0.0.25)
aptly (>= 0.0.0)
nginx (>= 0.0.0)
Expand All @@ -292,6 +293,8 @@ GRAPH
windows (>= 1.8.8)
yum (>= 0.0.0)
sudo (2.7.0)
sysctl (0.6.0)
ohai (>= 0.0.0)
ulimit (0.3.2)
unicorn (2.0.0)
user (0.3.0)
Expand Down
3 changes: 2 additions & 1 deletion cookbooks/rubygems-redis/metadata.rb
@@ -1,10 +1,11 @@
name 'rubygems-redis'
maintainer 'RubyGems.org ops team'

version '0.0.3'
version '0.0.4'

depends 'redisio'
depends 'rubygems'
depends 'rubygems-backups'
depends 'sysctl'

supports 'ubuntu'
3 changes: 3 additions & 0 deletions cookbooks/rubygems-redis/recipes/default.rb
Expand Up @@ -5,6 +5,9 @@

include_recipe 'rubygems'

node.default['sysctl']['params']['vm']['overcommit_memory'] = 1
include_recipe 'sysctl::apply'

node.default['redisio']['default_settings']['loglevel'] = 'notice'

include_recipe 'redisio::install'
Expand Down

0 comments on commit b443931

Please sign in to comment.