Great questions!
1. How will the new worker node get the same package/artifact during scale-up?
When a new worker node is added to the cluster, it executes the global init script. This means it downloads the package/artifact from the configured index URL, just like the driver node did initially. The new worker node does not get the package from the driver node; instead, it independently downloads it using the global init script.
2. Will the new worker node get the new credentials from the Azure library or use the old credentials?
If the global init script is designed to fetch credentials from the Azure library, the new worker node will execute this script and obtain the latest credentials available at that time. This means that if the credentials have been updated in the Azure library, the new worker node will use the updated credentials to download the package from the configured index URL.
Summary
- New worker nodes will execute the global init script and download the package/artifact from the configured index URL.
- Credentials: If the global init script fetches credentials from the Azure library, the new worker node will use the latest credentials available at the time of execution.
Would you like more details on how to configure the global init script or manage credentials in Azure?