Skip to main content

Module service

Module service 

Source
Expand description

Service-level container lifecycle management

Structs§

ContainerInfo
Per-container summary surfaced to callers (API / ps).
DeploymentContainerView
A live deployment container enriched for Docker-compat ps rows and for name resolution. Produced by ServiceManager::list_container_views.
ServiceInstance
Service instance manages a single service’s containers
ServiceManager
Service manager for multiple services
ServiceManagerBuilder
Builder for constructing a ServiceManager with optional subsystems.

Functions§

swarm_id_of
The swarm identity of a service spec, if it is a member of an inference swarm: spec.resources.gpu.sharding.swarm_id. None for ordinary services.
swarm_member_replicas
Desired replica count for a single swarm member. Swarm members are single-unit ring stages / coordinators, so the gang treats each as one replica; we still honor an explicit Fixed/Adaptive intent (defaulting to

Type Aliases§

RegistryCredentialStoreHandle
Shared handle to the daemon’s registry-credential store, used by the supervisor to resolve zlayer login credentials (and the ~/.docker/config.json fallback) for a service’s image when recreating a container outside the API create handler (restore / drift / scale). Matches the concrete type wired into the API state in serve.rs.