Commit c69b48e6 authored by Łukasz Nowak's avatar Łukasz Nowak

Allow to configure amount of threads in Zope node.

parent edc89dbb
......@@ -614,10 +614,11 @@ class Recipe(BaseSlapRecipe):
return dict(host=ip, port=port)
def installZope(self, ip, port, name, zodb_configuration_string,
with_timerservice=False, tidstorage_config=None):
with_timerservice=False, tidstorage_config=None, thread_amount=1):
# Create zope configuration file
zope_config = dict(
products=self.options['products'],
thread_amount=thread_amount
)
zope_config['zodb_configuration_string'] = zodb_configuration_string
zope_config['instance'] = self.erp5_directory
......
......@@ -19,7 +19,7 @@ instancehome $INSTANCE
debug-mode off
# One thread is safe enough
zserver-threads 1
zserver-threads %(thread_amount)s
# File location
pid-filename %(pid-filename)s
......
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