diff options
author | zhanggang <zhanggang@cmss.chinamobile.com> | 2018-07-16 20:33:29 +0800 |
---|---|---|
committer | zhanggang <zhanggang@cmss.chinamobile.com> | 2018-08-07 17:42:36 +0800 |
commit | f06f65dcba13894183bde048577815fcb3bfc57a (patch) | |
tree | fe053258e5a7d6ff98a05fa0c63b905e62846f80 /trove/common/cfg.py | |
parent | 87fd1c4b0ec1f0788c0e0478acf80e7e280c16a4 (diff) | |
download | trove-f06f65dcba13894183bde048577815fcb3bfc57a.tar.gz |
Add extended properties support for mongo cluster.
Currently when create a mongodb cluster, mongos and configsvr
use the volume_size of replica-set node. But mongos and configvr
are not data node, they don't need volume space as large as data
node. This patch attend to help user specify the number, the volume
size and the volume type of mongos/configserver with
extended_properties[1] argument when creating mongodb. Currently,
the supported parameters are, num_configsvr, num_mongos,
configsvr_volume_size, configsvr_volume_type, mongos_volume_size
and mongos_volume_type.
[1] https://review.openstack.org/#/c/206931/
Closes-Bug: #1734907
Signed-off-by: zhanggang <zhanggang@cmss.chinamobile.com>
Change-Id: Ie48f3961b21f926f983c6713a76b0492952cf4c7
Diffstat (limited to 'trove/common/cfg.py')
-rw-r--r-- | trove/common/cfg.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/trove/common/cfg.py b/trove/common/cfg.py index c1027eaa..7d8034ab 100644 --- a/trove/common/cfg.py +++ b/trove/common/cfg.py @@ -1080,6 +1080,10 @@ mongodb_opts = [ cfg.IntOpt('num_query_routers_per_cluster', default=1, help='The number of query routers (mongos) to create ' 'per cluster.'), + cfg.IntOpt('query_routers_volume_size', default=10, + help='Default volume_size (in GB) for query routers (mongos).'), + cfg.IntOpt('config_servers_volume_size', default=10, + help='Default volume_size (in GB) for config_servers.'), cfg.BoolOpt('cluster_support', default=True, help='Enable clusters to be created and managed.'), cfg.BoolOpt('cluster_secure', default=True, |