Commit 6554f8d4 authored by Benjamin Blanc's avatar Benjamin Blanc

scalability: up

parent 010ef28f
...@@ -329,7 +329,7 @@ md5sum = c745d794b28cae64feba527f894d7340 ...@@ -329,7 +329,7 @@ md5sum = c745d794b28cae64feba527f894d7340
[template-scalability] [template-scalability]
< = download-base < = download-base
filename = instance-scalability.cfg.in filename = instance-scalability.cfg.in
md5sum = 87faf70feb657c89a6be0b94551946a5 md5sum = 23c7bbbb14507239524ac86ccf43f686
[template-zeo] [template-zeo]
< = download-base < = download-base
......
...@@ -10,7 +10,8 @@ parts = ...@@ -10,7 +10,8 @@ parts =
binary-wrap-performance-tester binary-wrap-performance-tester
erp5-bootstrap erp5-bootstrap
erp5-promise erp5-promise
promise-erp5-site # promise-erp5-site
publish
eggs-directory = {{ eggs_directory }} eggs-directory = {{ eggs_directory }}
develop-eggs-directory = {{ develop_eggs_directory }} develop-eggs-directory = {{ develop_eggs_directory }}
...@@ -29,13 +30,15 @@ name = ERP5 Cluster ...@@ -29,13 +30,15 @@ name = ERP5 Cluster
software-url = ${slap-connection:software-release-url} software-url = ${slap-connection:software-release-url}
software-type = cluster software-type = cluster
sla-computer_guid = {{ slapparameter_dict.get('launcher-computer-guid', computer_id) }} sla-computer_guid = {{ slapparameter_dict.get('launcher-computer-guid', computer_id) }}
config = {% set additional_scalability_zope = {'scalability':{'family':'scalability', 'computer-guid':computer_id}} -%}
use-ipv6 {% do slapparameter_dict.get('cluster').get('zope-partition-dict').update( additional_scalability_zope ) -%}
${:extra-config} {% set cluster_parameter_dict = slapparameter_dict.get('cluster', {}) -%}
extra-config = config = {{ cluster_parameter_dict.keys() | join(' ') }}
config-use-ipv6 = {{ dumps(slapparameter_dict.get('use-ipv6', False)) }} {% for key, value in cluster_parameter_dict.items() -%}
return = mariadb-url family-scalability-site_url kumofs-url memcached-url cloudooo-url config-{{ key }} = {{ dumps(value) }}
{% endfor -%}
return = mariadb-url family-scalability memcached-persistent-url memcached-volatile-url cloudooo-url
# Create wrapper # Create wrapper
[binary-wrap-launcher] [binary-wrap-launcher]
...@@ -80,6 +83,7 @@ log-path = ${binary-wrap-launcher:log-path} ...@@ -80,6 +83,7 @@ log-path = ${binary-wrap-launcher:log-path}
recipe = slapos.cookbook:mkdirectory recipe = slapos.cookbook:mkdirectory
log = ${rootdirectory:var}/log log = ${rootdirectory:var}/log
services = ${rootdirectory:etc}/run services = ${rootdirectory:etc}/run
promises = ${rootdirectory:etc}/promise/
[rootdirectory] [rootdirectory]
recipe = slapos.cookbook:mkdirectory recipe = slapos.cookbook:mkdirectory
...@@ -87,38 +91,34 @@ etc = ${buildout:directory}/etc ...@@ -87,38 +91,34 @@ etc = ${buildout:directory}/etc
var = ${buildout:directory}/var var = ${buildout:directory}/var
bin = ${buildout:directory}/bin bin = ${buildout:directory}/bin
[erp5-bootstrap] [erp5-bootstrap]
recipe = slapos.cookbook:erp5.bootstrap recipe = slapos.cookbook:erp5.bootstrap
runner-path = ${basedirectory:services}/erp5-bootstrap runner-path = ${basedirectory:services}/erp5-bootstrap
mysql-url = ${erp5-cluster:connection-mariadb-url} mysql-url = ${erp5-cluster:connection-mariadb-url}
zope-url = # Must look like : https://user:password@ip:port/site_id
zope-url = ${erp5-cluster:site_url}/{{ site_id }} # But actually looks like : https://ip:port/site_id
#zope-url = ${erp5-cluster:connection-family-scalability}/{{ site_id }}
zope-url = https://zope:insecure@192.168.241.110:2153/erp5
[erp5-promise] [erp5-promise]
recipe = slapos.cookbook:erp5.promise recipe = slapos.cookbook:erp5.promise
promise-path = {{ promise_path }} promise-path = {{ promise_path }}
kumofs-url = ${erp5-cluster:connection-kumofs-url} kumofs-url = ${erp5-cluster:connection-memcached-persistent-url}
memcached-url = ${erp5-cluster:connection-memcached-url} memcached-url = ${erp5-cluster:connection-memcached-volatile-url}
cloudooo-url = ${erp5-cluster:connection-cloudooo-url} cloudooo-url = ${erp5-cluster:connection-cloudooo-url}
smtp-url = smtp-url =
bt5 = bt5 =
bt5-repository-url = bt5-repository-url =
[zope-instance] #[promise-erp5-site]
promise-path = {{ promise_path }} #recipe = slapos.cookbook:check_url_available
site-id = {{ site_id }} #path = ${basedirectory:promises}/erp5site
#url = ${erp5-cluster:connection-family-scalability}/{{ site_id }}
[promise-erp5-site] #dash_path = {{ dash_location }}/bin/dash
recipe = slapos.cookbook:check_url_available #curl_path = {{ curl_location }}/bin/curl
path = ${basedirectory:promises}/erp5site
url = ${erp5-cluster:site_url}/{{ site_id }}
dash_path = {{ dash_location }}/bin/dash
curl_path = {{ curl_location }}/bin/curl
[publish]
recipe = slapos.cookbook:publish.serialised
test = test
{% endif %} {% endif %}
\ No newline at end of file
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