mirror of
https://github.com/floci-io/floci.git
synced 2026-11-26 15:21:05 -05:00
Worker authentication accepts the node role's EC2 entry and names the node by its session name, the instance ID. The entry is also made after an authentication-mode change while compute is on, and never for a cluster being deleted. CreateCluster makes it together with the cluster record, and DeleteCluster removes it before the record, both under the same lock, so a failed or concurrent create or delete leaves none behind. A client-token retry makes the entry only for a request that changes Auto Mode or the authentication mode, and a failed create keeps its own error when the entry cleanup fails too.