Beispiel #1
0
def main(CONF):
    from trove.common import wsgi
    conf_file = CONF.find_file(CONF.api_paste_config)
    workers = CONF.trove_api_workers or processutils.get_worker_count()
    launcher = wsgi.launch('trove', CONF.bind_port or 8779, conf_file,
                           workers=workers)
    launcher.wait()
Beispiel #2
0
def start_server(conf):
    from trove.common import wsgi
    conf_file = conf.find_file(conf.api_paste_config)
    workers = conf.trove_api_workers or processutils.get_worker_count()
    launcher = wsgi.launch('trove', conf.bind_port or 8779, conf_file,
                           workers=workers)
    start_fake_taskmanager(conf)
    launcher.wait()
Beispiel #3
0
def main(CONF):
    from trove.common import wsgi
    conf_file = CONF.find_file(CONF.api_paste_config)
    workers = CONF.trove_api_workers or processutils.get_worker_count()
    launcher = wsgi.launch('trove',
                           CONF.bind_port,
                           conf_file,
                           host=CONF.bind_host,
                           workers=workers)
    launcher.wait()
Beispiel #4
0
def main(conf):
    from trove.common.rpc import service as rpc_service
    from trove.openstack.common import service as openstack_service

    topic = conf.conductor_queue
    server = rpc_service.RpcService(manager=conf.conductor_manager,
                                    topic=topic)
    workers = conf.trove_conductor_workers or processutils.get_worker_count()
    launcher = openstack_service.launch(server, workers=workers)
    launcher.wait()
Beispiel #5
0
def start_server(conf):
    from trove.common import wsgi
    conf_file = conf.find_file(conf.api_paste_config)
    workers = conf.trove_api_workers or processutils.get_worker_count()
    launcher = wsgi.launch('trove',
                           conf.bind_port or 8779,
                           conf_file,
                           workers=workers)
    start_fake_taskmanager(conf)
    launcher.wait()