mirror of
https://github.com/floci-io/floci.git
synced 2026-11-22 21:50:46 -05:00
ModifyInstanceGroups ignored EC2InstanceIdsToTerminate, "The Amazon EC2 InstanceIds to terminate. After you terminate the instances, the instance group will not return to its original requested size." Floci's instances had no identity of their own: their ids and addresses followed their place in their group, so a group could only shrink from its end. Each instance group now keeps the ordinals of the instances those ids ended, and its instances take the first ordinals that are not among them. The named instances leave ListInstances and, in the docker runner mode, take their core or task node with them, HDFS moving its blocks first, as nodes are named by group and ordinal. The group's requested and running counts go down by as many. Its other instances keep their ids, addresses and nodes, as do the cluster's other groups', and an instance the group gets later takes a new ordinal, not an ended one's. An InstanceCount beside them is the group's size after that. An id that is not one of the group's instances is refused with ValidationException, as ModifyInstanceGroups' other refusals are recorded, and a MASTER group's with the refusal its count gets; AWS's wording for these is not documented, so it is Floci's.