Commit 49b6a83a authored by Julien Muchembled's avatar Julien Muchembled

master: add command line options for upstream cluster/masters

Before it was only possible to specify them in a configuration file.
parent acf91be8
...@@ -33,6 +33,10 @@ parser.add_option('-p', '--partitions', help = 'partitions number') ...@@ -33,6 +33,10 @@ parser.add_option('-p', '--partitions', help = 'partitions number')
parser.add_option('-l', '--logfile', help = 'specify a logging file') parser.add_option('-l', '--logfile', help = 'specify a logging file')
parser.add_option('-D', '--dynamic-master-list', help='path of the file ' parser.add_option('-D', '--dynamic-master-list', help='path of the file '
'containing dynamic master node list') 'containing dynamic master node list')
parser.add_option('-C', '--upstream-cluster',
help='the name of cluster to backup')
parser.add_option('-M', '--upstream-masters',
help='list of master nodes in cluster to backup')
defaults = dict( defaults = dict(
bind = '127.0.0.1:10000', bind = '127.0.0.1:10000',
...@@ -51,6 +55,8 @@ def main(args=None): ...@@ -51,6 +55,8 @@ def main(args=None):
masters = options.masters, masters = options.masters,
replicas = options.replicas, replicas = options.replicas,
partitions = options.partitions, partitions = options.partitions,
upstream_cluster = options.upstream_cluster,
upstream_masters = options.upstream_masters,
) )
config = ConfigurationManager( config = ConfigurationManager(
defaults, defaults,
......
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