From 924d4ac082e9489a031d17c685720bb91ad49c59 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?C=C3=A9dric=20de=20Saint=20Martin?= <cedric.dsm@tiolive.com>
Date: Mon, 14 Jun 2010 13:12:56 +0000
Subject: [PATCH] Adding buildout recipe for memcached-instance

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@36309 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 buildout/instance-profiles/memcached.cfg | 35 ++++++++++++++++++++++++
 buildout/profiles/deployment.cfg         |  2 ++
 2 files changed, 37 insertions(+)
 create mode 100644 buildout/instance-profiles/memcached.cfg

diff --git a/buildout/instance-profiles/memcached.cfg b/buildout/instance-profiles/memcached.cfg
new file mode 100644
index 0000000000..fb9e0968da
--- /dev/null
+++ b/buildout/instance-profiles/memcached.cfg
@@ -0,0 +1,35 @@
+[buildout]
+parts = memcached-instance
+
+[memcached-instance]
+depends =
+  ${create-directories:command}
+recipe = erp5.recipe.memcachedserver
+
+memcached_software_bin = ${buildout:parts-directory}/memcached/bin
+memcached_bin_folder = ${buildout:data-bin-directory}
+memcached_conf_file = ${buildout:etc-directory}/memcached.conf
+
+# Configuration goes here
+# -p
+memcached_tcp_port = 11211
+# -U
+memcached_udp_port = 11211
+# -l
+memcached_host = 127.0.0.1
+# -m
+memcached_memory_size = 64
+# -c
+memcached_simultaneous_connections = 1024
+# -u
+memcached_user = erp5
+# -d
+memcached_run_as_daemon = true
+# -P
+memcached_pid_file = /var/run/memcached.pid
+# -f
+memcached_factor = 1.25
+# -n
+memcached_key_size = 48
+# -t
+memcached_threads = 4
diff --git a/buildout/profiles/deployment.cfg b/buildout/profiles/deployment.cfg
index 7982b6cd7b..912c2e255c 100644
--- a/buildout/profiles/deployment.cfg
+++ b/buildout/profiles/deployment.cfg
@@ -1,5 +1,6 @@
 [buildout]
 extends =
+  ../instance-profiles/memcached.cfg
   ../instance-profiles/mysql-database.cfg
   ../instance-profiles/mysql.cfg
   ../instance-profiles/oood.cfg
@@ -17,6 +18,7 @@ parts =
   mysql-instance
   oood-instance
   supervisor-instance
+  memcached-instance
 
 python = software_definition
 versions = versions
-- 
2.30.9