From de87bdcc5da01c476b375ef1b0ad2ef3740ffb5c Mon Sep 17 00:00:00 2001 From: troymc Date: Mon, 18 Jul 2016 11:11:50 +0200 Subject: [PATCH] Added set_replicas() Fabric function --- deploy-cluster-aws/fabfile.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/deploy-cluster-aws/fabfile.py b/deploy-cluster-aws/fabfile.py index 42f38961..e65bef04 100644 --- a/deploy-cluster-aws/fabfile.py +++ b/deploy-cluster-aws/fabfile.py @@ -168,13 +168,20 @@ def init_bigchaindb(): run('bigchaindb init', pty=False) -# Set the number of shards (in the backlog and bigchain tables) +# Set the number of shards (in all tables) @task @hosts(public_dns_names[0]) def set_shards(num_shards): run('bigchaindb set-shards {}'.format(num_shards)) +# Set the number of replicas (in all tables) +@task +@hosts(public_dns_names[0]) +def set_replicas(num_replicas): + run('bigchaindb set-replicas {}'.format(num_replicas)) + + # Start BigchainDB using screen @task @parallel