Skip to main content

unique_pod_name

Function unique_pod_name 

Source
pub fn unique_pod_name(function_name: &str, deploy_id: &str) -> String
Expand description

Build a per-launch unique DNS-1123-safe Pod name. The deterministic pod_name_for name collides whenever the warm pool needs more than one concurrent instance of a function (the RIE serves one invocation at a time), and a still-terminating Pod blocks its replacement (AlreadyExists / “object is being deleted” / NotFound races). Salting the hashed id with a process-monotonic counter yields a fresh, length-bounded name per launch, so instances never collide and a dying Pod never wedges a new one.