Skip to main content

Module node

Module node 

Source
Expand description

Canonical node identity ({provider}-{region}-{node}-{hash}-{count}). Canonical node identity.

A structured {provider}-{region}-{node}-{deployment_hash}-{count} id so multi-deployment hosting — and replicas of one deployment on one host — don’t collide, and so placement can read a server’s region straight off its id.

provider, node, and deployment_hash are dash-free tokens; region may contain dashes (us-east-1); count is a non-negative integer. The parser peels from both ends — count and deployment_hash off the tail, provider off the head — so the dashes left in the middle all belong to region.

Structs§

NodeId
A parsed canonical node id.