mirror of
https://github.com/floci-io/floci.git
synced 2026-11-26 15:21:05 -05:00
A cluster's instance groups and fleets reported RUNNING, with all their capacity, from its creation until it was TERMINATED, whatever state the cluster itself was in. InstanceGroupState and InstanceFleetState have PROVISIONING, BOOTSTRAPPING and TERMINATING too, and the Management Guide's events end an instance fleet's provisioning with "Provisioning for instance fleet ... is complete ... The instance fleet now has On-Demand capacity of Num". No source says when each applies, so they now follow the cluster's state, Floci's reading: PROVISIONING while it is STARTING, with nothing running or provisioned yet, BOOTSTRAPPING with every instance up for its bootstrap actions, RUNNING while it runs or waits, and TERMINATING as it ends, the instances still running. One added later takes the state its cluster's others are in. ListInstances gives each instance its group's or fleet's state, lists those being provisioned, and filters by InstanceStates per instance. A cluster terminated while it is STARTING keeps listing the instances it was provisioning, still PROVISIONING and none of them running, until it is TERMINATED, so the same instances are listed throughout.