MCPcopy Index your code
hub / github.com/ModelTC/LightLLM / config_server_start

Function config_server_start

lightllm/server/api_start.py:420–453  ·  view source on GitHub ↗
(args)

Source from the content-addressed store, hash-verified

418
419
420def config_server_start(args):
421 set_unique_server_name(args)
422 if args.run_mode != "config_server":
423 return
424
425 logger.info(f"all start args:{args}")
426
427 set_env_start_args(args)
428
429 command = [
430 "gunicorn",
431 "--workers",
432 "1",
433 "--worker-class",
434 "uvicorn.workers.UvicornWorker",
435 "--bind",
436 f"{args.config_server_host}:{args.config_server_port}",
437 "--log-level",
438 "info",
439 "--access-logfile",
440 "-",
441 "--error-logfile",
442 "-",
443 "--preload",
444 "lightllm.server.config_server.api_http:app",
445 "--timeout",
446 f"{get_lightllm_gunicorn_time_out_seconds()}",
447 "--keep-alive",
448 f"{get_lightllm_gunicorn_keep_alive()}",
449 ]
450
451 http_server_process = subprocess.Popen(command)
452 setup_signal_handlers(http_server_process, process_manager)
453 http_server_process.wait()

Callers 1

api_server.pyFile · 0.85

Tested by

no test coverage detected