Example #1
0
def start(num_servers):
    """Starts a VoltDB cluster.
    """
    num_servers = int(num_servers) - 1
    create_deployment_file(num_servers + 1)

    fablib.run_background('%(voltdb)s create host %(head)s ' % env +
                          'catalog %s/vsfs.jar ' % SCRIPT_DIR +
                          'deployment %s/deployment.xml' % SCRIPT_DIR)
    if num_servers:
        local('sleep 2')
        execute(start_others, hosts=env.workers[:num_servers])
Example #2
0
def start_others():
    fablib.run_background('%(voltdb)s create host %(head)s ' % env +
                          'catalog %s/vsfs.jar ' % SCRIPT_DIR +
                          'deployment %s/deployment.xml' % SCRIPT_DIR)