¡@

Home 

OpenStack Study: conductor.py

OpenStack Index

**** CubicPower OpenStack Study ****

def main():

    objects.register_all()

    config.parse_args(sys.argv)

    logging.setup("nova")

    utils.monkey_patch()

    gmr.TextGuruMeditation.setup_autorun(version)

    server = service.Service.create(binary='nova-conductor',

                                    topic=CONF.conductor.topic,

                                    manager=CONF.conductor.manager)

    workers = CONF.conductor.workers or utils.cpu_count()

    service.serve(server, workers=workers)

    service.wait()