NodeSetup Class
- java.
lang. Object - com.
microsoft. azure. management. batchai. NodeSetup
- com.
public class NodeSetup
Node setup settings.
Method Summary
Modifier and Type | Method and Description |
---|---|
Mount |
mountVolumes()
Get mount volumes to be available to setup task and all jobs executing on the cluster. The volumes will be mounted at location specified by $AZ_BATCHAI_MOUNT_ROOT environment variable. |
Performance |
performanceCountersSettings()
Get settings for performance counters collecting and uploading. |
Setup |
setupTask()
Get setup task to run on cluster nodes when nodes got created or rebooted. The setup task code needs to be idempotent. Generally the setup task is used to download static data that is required for all jobs that run on the cluster VMs and/or to download/install software. |
Node |
withMountVolumes(MountVolumes mountVolumes)
Set mount volumes to be available to setup task and all jobs executing on the cluster. The volumes will be mounted at location specified by $AZ_BATCHAI_MOUNT_ROOT environment variable. |
Node |
withPerformanceCountersSettings(PerformanceCountersSettings performanceCountersSettings)
Set settings for performance counters collecting and uploading. |
Node |
withSetupTask(SetupTask setupTask)
Set setup task to run on cluster nodes when nodes got created or rebooted. The setup task code needs to be idempotent. Generally the setup task is used to download static data that is required for all jobs that run on the cluster VMs and/or to download/install software. |
Method Details
mountVolumes
public MountVolumes mountVolumes()
Get mount volumes to be available to setup task and all jobs executing on the cluster. The volumes will be mounted at location specified by $AZ_BATCHAI_MOUNT_ROOT environment variable.
Returns:
performanceCountersSettings
public PerformanceCountersSettings performanceCountersSettings()
Get settings for performance counters collecting and uploading.
Returns:
setupTask
public SetupTask setupTask()
Get setup task to run on cluster nodes when nodes got created or rebooted. The setup task code needs to be idempotent. Generally the setup task is used to download static data that is required for all jobs that run on the cluster VMs and/or to download/install software.
Returns:
withMountVolumes
public NodeSetup withMountVolumes(MountVolumes mountVolumes)
Set mount volumes to be available to setup task and all jobs executing on the cluster. The volumes will be mounted at location specified by $AZ_BATCHAI_MOUNT_ROOT environment variable.
Parameters:
Returns:
withPerformanceCountersSettings
public NodeSetup withPerformanceCountersSettings(PerformanceCountersSettings performanceCountersSettings)
Set settings for performance counters collecting and uploading.
Parameters:
Returns:
withSetupTask
public NodeSetup withSetupTask(SetupTask setupTask)
Set setup task to run on cluster nodes when nodes got created or rebooted. The setup task code needs to be idempotent. Generally the setup task is used to download static data that is required for all jobs that run on the cluster VMs and/or to download/install software.
Parameters:
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for