ray.serve.config.ControllerOptions#
- pydantic model ray.serve.config.ControllerOptions[source]#
Options for the Serve controller actor.
Symmetric with
HTTPOptionsandgRPCOptions: pass toserve.start(controller_options=...)/serve.runfrom Python, or as a top-levelcontroller_options:block inserve run foo.yaml.v0 scope is intentionally narrow: only
runtime_envis exposed, and insideruntime_envonlyenv_varsis accepted. Otherruntime_envfields (pip,working_dir,py_modules,container, …) would mutate Serve’s own dependencies on a detached, long-lived actor and are intentionally rejected by the validator. Per-replica runtime environments belong on the deployment (serve.deployment(runtime_env=...)) instead.Like
HTTPOptions, these options only take effect when the controller is first created. If a Serve controller is already running in the cluster,serve.startwarns and ignores the new options.PublicAPI (alpha): This API is in alpha and may change before becoming stable.