Develop lifecycle scripts interactively on a HyperPod cluster node
This section explains how you can interactively develop lifecycle scripts without repeatedly creating and deleting a HyperPod cluster.
-
Create a HyperPod cluster with the base lifecycle scripts.
-
Log in to a cluster node.
-
Develop a script (
configure_xyz.sh
) by editing and running it repeatedly on the node.-
HyperPod runs the lifecycle scripts as the root user, so we recommend that you run the
configure_xyz.sh
as the root user while developing to make sure that the script is tested under the same condition while run by HyperPod.
-
-
Integrate the script into
lifecycle_script.py
by adding a code line similar to the following.ExecuteBashScript("./utils/
configure_xyz.sh
").run() -
Upload the updated lifecycle scripts to the S3 bucket that you initially used for uploading the base lifecycle scripts.
-
Test the integrated version of
lifecycle_script.py
by creating a new HyperPod cluster.