Skip to content

Commit

Permalink
Enable memory overcommit in Redis
Browse files Browse the repository at this point in the history
  • Loading branch information
Ignasi Barrera committed Nov 29, 2012
1 parent 02ad89d commit 31eee19
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions kahuna/utils/redis.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ def install(version):
"/usr/local/src/redis/redis.conf"))
script.append(Statements.appendFile("/etc/sysctl.conf",
["vm.overcommit_memory = 1"]))
script.append(Statements.exec("sysctl vm.overcommit_memory=1"))
script.append(Statements.exec(
"/usr/local/bin/redis-server /usr/local/src/redis/redis.conf"))
return script

0 comments on commit 31eee19

Please sign in to comment.