mirror of
https://github.com/bigchaindb/bigchaindb.git
synced 2024-10-13 13:34:05 +00:00
Added set_replicas() Fabric function
This commit is contained in:
parent
4046264ef2
commit
de87bdcc5d
9
deploy-cluster-aws/fabfile.py
vendored
9
deploy-cluster-aws/fabfile.py
vendored
@ -168,13 +168,20 @@ def init_bigchaindb():
|
|||||||
run('bigchaindb init', pty=False)
|
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
|
@task
|
||||||
@hosts(public_dns_names[0])
|
@hosts(public_dns_names[0])
|
||||||
def set_shards(num_shards):
|
def set_shards(num_shards):
|
||||||
run('bigchaindb set-shards {}'.format(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
|
# Start BigchainDB using screen
|
||||||
@task
|
@task
|
||||||
@parallel
|
@parallel
|
||||||
|
Loading…
x
Reference in New Issue
Block a user