Skip to main content

instance_name

Function instance_name 

Source
pub fn instance_name(
    stack: &str,
    service: &str,
    slot: u32,
    id: &str,
) -> Result<String>
Expand description

<stack>-<service>-<slot>-<id>, within incus’ 63-character limit. A name that would be longer keeps the start of the service name plus a hash of all of it (<stack>-<svc-prefix>-<hash6>-<slot>-<id>), so two long services in one stack still differ. Nothing parses these names back: replicas are found by their user.isb.* labels.