Beispiel #1
0
def start_config_server():
    """Starts MongoDB config server.
    """
    run_background("%(mongo_bin)s --configsvr " "--dbpath %(config_dir)s" % env)
    run("sleep 2")
    # run('%(bin_dir)s/mongos --port --configdb %(head)s' % env)
    run_background("%(bin_dir)s/mongos --port 27018 --configdb %(head)s" % env)
Beispiel #2
0
def start_shared_server():
    run("mkdir -p %(data_dir)s/%(host)s" % env)
    run_background("%(mongo_bin)s --shardsvr --port 27017 " "--dbpath %(data_dir)s/%(host)s" % env)