Send cluster mode via startup command
This commit is contained in:
parent
5bc05ea3b0
commit
daf0153c6c
|
|
@ -39,10 +39,10 @@ class ClusterClient(DirectObject.DirectObject):
|
|||
self.daemon.tellServer(serverConfig.serverName,
|
||||
clusterDaemonPort,
|
||||
serverCommand)
|
||||
print 'blah'
|
||||
print 'Begin waitForServers'
|
||||
if not self.daemon.waitForServers(len(configList)):
|
||||
print 'Cluster Client, no response from servers'
|
||||
print 'post blah'
|
||||
print 'End waitForServers'
|
||||
self.qcm=QueuedConnectionManager()
|
||||
self.serverList = []
|
||||
self.msgHandler = ClusterMsgHandler(ClusterClient.MGR_NUM, self.notify)
|
||||
|
|
|
|||
|
|
@ -26,6 +26,7 @@ CLUSTER_DAEMON_PORT = 8001
|
|||
SERVER_STARTUP_STRING = (
|
||||
'!bash ppython -c ' +
|
||||
'"import __builtin__; ' +
|
||||
'__builtin__.clusterMode = \'server\';' +
|
||||
'__builtin__.clusterServerPort = %s;' +
|
||||
'__builtin__.clusterSyncFlag = %d;' +
|
||||
'__builtin__.clusterDaemonClient = \'%s\';' +
|
||||
|
|
|
|||
Loading…
Reference in New Issue