Commit d2d7ebbe authored by Rafael Monnerat's avatar Rafael Monnerat

Get Zope Cluster Amount from .cfg

This change permit the small projects determinate their cluster
configuration without require to write new recipes.
parent 8ed71aac
...@@ -130,8 +130,12 @@ class Recipe(BaseSlapRecipe): ...@@ -130,8 +130,12 @@ class Recipe(BaseSlapRecipe):
thread_amount_per_zope = int(self.options.get( thread_amount_per_zope = int(self.options.get(
'cluster_zope_thread_amount', 1)) 'cluster_zope_thread_amount', 1))
activity_node_amount = 2 activity_node_amount = int(self.options.get(
user_node_amount = 2 "cluster_activity_node_amount", 2))
user_node_amount = int(self.options.get(
"cluster_user_node_amount", 2))
ip = self.getLocalIPv4Address() ip = self.getLocalIPv4Address()
storage_dict = self._requestZeoFileStorage('Zeo Server 1', 'main') storage_dict = self._requestZeoFileStorage('Zeo Server 1', 'main')
......
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