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

Commit b443931

Browse files
committedAug 27, 2014
set overcommit_memory to 1 to allow redis to save in the background
1 parent 437aba9 commit b443931

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed
 

‎Berksfile.lock

+4-1
Original file line numberDiff line numberDiff line change
@@ -267,10 +267,11 @@ GRAPH
267267
rubygems-people (0.0.28)
268268
sudo (>= 0.0.0)
269269
user (>= 0.0.0)
270-
rubygems-redis (0.0.3)
270+
rubygems-redis (0.0.4)
271271
redisio (>= 0.0.0)
272272
rubygems (>= 0.0.0)
273273
rubygems-backups (>= 0.0.0)
274+
sysctl (>= 0.0.0)
274275
rubygems-repo (0.0.25)
275276
aptly (>= 0.0.0)
276277
nginx (>= 0.0.0)
@@ -292,6 +293,8 @@ GRAPH
292293
windows (>= 1.8.8)
293294
yum (>= 0.0.0)
294295
sudo (2.7.0)
296+
sysctl (0.6.0)
297+
ohai (>= 0.0.0)
295298
ulimit (0.3.2)
296299
unicorn (2.0.0)
297300
user (0.3.0)

‎cookbooks/rubygems-redis/metadata.rb

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
name 'rubygems-redis'
22
maintainer 'RubyGems.org ops team'
33

4-
version '0.0.3'
4+
version '0.0.4'
55

66
depends 'redisio'
77
depends 'rubygems'
88
depends 'rubygems-backups'
9+
depends 'sysctl'
910

1011
supports 'ubuntu'

‎cookbooks/rubygems-redis/recipes/default.rb

+3
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55

66
include_recipe 'rubygems'
77

8+
node.default['sysctl']['params']['vm']['overcommit_memory'] = 1
9+
include_recipe 'sysctl::apply'
10+
811
node.default['redisio']['default_settings']['loglevel'] = 'notice'
912

1013
include_recipe 'redisio::install'

0 commit comments

Comments
 (0)