mirror of
https://github.com/floci-io/floci.git
synced 2026-11-23 14:10:49 -05:00
Bootstrap actions "run on cluster after Amazon EMR launches the instance", on every node, and "If you add nodes to a running cluster, bootstrap actions also run on those nodes in the same way". Floci ran them once, as on the primary node, and every node ran from the image they left, so an action's branch for the core or task nodes never ran. Where a cluster's core and task nodes run in containers of their own, each now runs the actions too, in a bootstrap container of its own beside the primary node's, as that node: its node files say CORE or TASK, the cluster's relay answers its instance metadata as that node, its output goes under its own instance id, and the container is kept as the image the node runs from, so it holds what its own actions installed. A node a resize adds runs them before it starts, and one that leaves takes its image with it, so one added again runs them again. AWS terminates a node whose action fails and says only that "If too many instances fail their bootstrap actions, then Amazon EMR terminates the cluster. If just a few instances fail, Amazon EMR attempts to reallocate the failed instances and continue". Floci runs a node's actions again once, in a fresh container, and a second failure ends the cluster with BOOTSTRAP_FAILURE and a message of Floci's after the primary node's, as no source gives AWS's words or an error code for a core or task node.