Commit 86e09a9b authored by Grégory Wisniewski's avatar Grégory Wisniewski

Don't allocate a port for a storage, it will do it by itself.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@2352 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 50736599
...@@ -209,11 +209,10 @@ class NEOCluster(object): ...@@ -209,11 +209,10 @@ class NEOCluster(object):
}) })
# create storage nodes # create storage nodes
for index, db in enumerate(db_list): for index, db in enumerate(db_list):
port = self.__allocatePort()
self.__newProcess(NEO_STORAGE, { self.__newProcess(NEO_STORAGE, {
'--cluster': self.cluster_name, '--cluster': self.cluster_name,
'--name': 'storage_%d' % index, '--name': 'storage_%d' % index,
'--bind': '127.0.0.1:%d' % (port, ), '--bind': '127.0.0.1',
'--masters': self.master_nodes, '--masters': self.master_nodes,
'--database': '%s:%s@%s' % (db_user, db_password, db), '--database': '%s:%s@%s' % (db_user, db_password, db),
'--adapter': adapter, '--adapter': adapter,
......
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