Commit cf192e9a authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

add a instance profile of kumo, that can set up a persistent storage (like...

add a instance profile of kumo, that can set up a persistent storage (like flare) and also a volatile storage (like memcached, but supports longer keys and bigger values).


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@41821 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 86556c50
[buildout]
parts =
kumo-server-instance
kumo-manager-instance
kumo-gateway-instance
kumo-volatile-server-instance
kumo-volatile-manager-instance
kumo-volatile-gateway-instance
# persistent storage configuration that works same as flare
[kumo-server-instance]
server-address = 127.0.0.1
server-port = 19800
server-listen-port = 19900
manager-address = ${kumo-manager-instance:manager-address}
manager-port = ${kumo-manager-instance:manager-port}
# you can customise the storage (eg. bucket size etc.) by creating the
# storage file manually beforehand.
# read http://fallabs.com/tokyocabinet/spex-en.html#tcadbapi for the detail.
storage = ${buildout:var-directory}/${:_buildout_section_name_}.tch
supervisor-priority = 30
supervisor-program =
${:supervisor-priority} ${:_buildout_section_name_} ${software_definition:software_home}/parts/kumo/bin/kumo-server [-l ${:server-address}:${:server-port} -L ${:server-listen-port} -m ${:manager-address}:${:manager-port} -s ${:storage}]
[kumo-manager-instance]
manager-address = 127.0.0.1
manager-port = 19700
supervisor-priority = 31
supervisor-program =
${:supervisor-priority} ${:_buildout_section_name_} ${software_definition:software_home}/parts/kumo/bin/kumo-manager [-a -l ${:manager-address}:${:manager-port}]
[kumo-gateway-instance]
manager-address = ${kumo-manager-instance:manager-address}
manager-port = ${kumo-manager-instance:manager-port}
gateway-address = 127.0.0.1
# this gateway port is same as flare's default port
gateway-port = 12121
supervisor-priority = 32
supervisor-program =
${:supervisor-priority} ${:_buildout_section_name_} ${software_definition:software_home}/parts/kumo/bin/kumo-gateway [-F -E -m ${:manager-address}:${:manager-port} -t ${:gateway-address}:${:gateway-port}]
# volatile storage configuration that works same as memcached but
# accepts longer keys and bigger data.
[kumo-volatile-server-instance]
<= kumo-server-instance
server-address = 127.0.0.1
server-port = 29800
server-listen-port = 29900
manager-address = ${kumo-volatile-manager-instance:manager-address}
manager-port = ${kumo-volatile-manager-instance:manager-port}
# this configuration means a RAM storage whose maximum usage is 64MB.
# read http://fallabs.com/tokyocabinet/spex-en.html#tcadbapi for the detail.
storage = *#capsiz=64m
[kumo-volatile-manager-instance]
<= kumo-manager-instance
manager-address = 127.0.0.1
manager-port = 29700
[kumo-volatile-gateway-instance]
<= kumo-gateway-instance
manager-address = ${kumo-volatile-manager-instance:manager-address}
manager-port = ${kumo-volatile-manager-instance:manager-port}
gateway-address = 127.0.0.1
# this gateway port is same as memcached's default port
gateway-port = 11211
......@@ -7,6 +7,7 @@
extends =
../instance-profiles/apache.cfg
../instance-profiles/cloudooo.cfg
../instance-profiles/kumo.cfg
../instance-profiles/kvm.cfg
../instance-profiles/memcached.cfg
../instance-profiles/mysql-database.cfg
......
......@@ -5,6 +5,7 @@
[buildout]
extends =
../instance-profiles/apache.cfg
../instance-profiles/kumo.cfg
../instance-profiles/memcached.cfg
../instance-profiles/mysql-database.cfg
../instance-profiles/mysql.cfg
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment