Share via


ComputeNode interface

An interface representing ComputeNode.

Properties

affinityId

An identifier which can be passed when adding a Task to request that the Task be scheduled on this Compute Node. Note that this is just a soft affinity. If the target Compute Node is busy or unavailable at the time the Task is scheduled, then the Task will be scheduled elsewhere.

allocationTime

The time at which this Compute Node was allocated to the Pool. This is the time when the Compute Node was initially allocated and doesn't change once set. It is not updated when the Compute Node is service healed or preempted.

certificateReferences

The list of Certificates installed on the Compute Node. For Windows Nodes, the Batch service installs the Certificates to the specified Certificate store and location. For Linux Compute Nodes, the Certificates are stored in a directory inside the Task working directory and an environment variable AZ_BATCH_CERTIFICATES_DIR is supplied to the Task to query for this location. For Certificates with visibility of 'remoteUser', a 'certs' directory is created in the user's home directory (e.g., /home/{user-name}/certs) and Certificates are placed in that directory.

endpointConfiguration

The endpoint configuration for the Compute Node.

errors

The list of errors that are currently being encountered by the Compute Node.

id

The ID of the Compute Node. Every Compute Node that is added to a Pool is assigned a unique ID. Whenever a Compute Node is removed from a Pool, all of its local files are deleted, and the ID is reclaimed and could be reused for new Compute Nodes.

ipAddress

The IP address that other Nodes can use to communicate with this Compute Node. Every Compute Node that is added to a Pool is assigned a unique IP address. Whenever a Compute Node is removed from a Pool, all of its local files are deleted, and the IP address is reclaimed and could be reused for new Compute Nodes.

isDedicated

Whether this Compute Node is a dedicated Compute Node. If false, the Compute Node is a low-priority Compute Node.

lastBootTime

The last time at which the Compute Node was started. This property may not be present if the Compute Node state is unusable.

nodeAgentInfo

Information about the Compute Node agent version and the time the Compute Node upgraded to a new version.

recentTasks

A list of Tasks whose state has recently changed. This property is present only if at least one Task has run on this Compute Node since it was assigned to the Pool.

runningTasksCount

The total number of currently running Job Tasks on the Compute Node. This includes Job Manager Tasks and normal Tasks, but not Job Preparation, Job Release or Start Tasks.

runningTaskSlotsCount

The total number of scheduling slots used by currently running Job Tasks on the Compute Node. This includes Job Manager Tasks and normal Tasks, but not Job Preparation, Job Release or Start Tasks.

schedulingState

Whether the Compute Node is available for Task scheduling. Possible values include: 'enabled', 'disabled'

startTask

The Task specified to run on the Compute Node as it joins the Pool.

startTaskInfo

Runtime information about the execution of the StartTask on the Compute Node.

state

The current state of the Compute Node. The low-priority Compute Node has been preempted. Tasks which were running on the Compute Node when it was preempted will be rescheduled when another Compute Node becomes available. Possible values include: 'idle', 'rebooting', 'reimaging', 'running', 'unusable', 'creating', 'starting', 'waitingForStartTask', 'startTaskFailed', 'unknown', 'leavingPool', 'offline', 'preempted'

stateTransitionTime

The time at which the Compute Node entered its current state.

totalTasksRun

The total number of Job Tasks completed on the Compute Node. This includes Job Manager Tasks and normal Tasks, but not Job Preparation, Job Release or Start Tasks.

totalTasksSucceeded

The total number of Job Tasks which completed successfully (with exitCode 0) on the Compute Node. This includes Job Manager Tasks and normal Tasks, but not Job Preparation, Job Release or Start Tasks.

url

The URL of the Compute Node.

vmSize

The size of the virtual machine hosting the Compute Node. For information about available sizes of virtual machines in Pools, see Choose a VM size for Compute Nodes in an Azure Batch Pool (https://docs.microsoft.com/azure/batch/batch-pool-vm-sizes).

Property Details

affinityId

An identifier which can be passed when adding a Task to request that the Task be scheduled on this Compute Node. Note that this is just a soft affinity. If the target Compute Node is busy or unavailable at the time the Task is scheduled, then the Task will be scheduled elsewhere.

affinityId?: string

Property Value

string

allocationTime

The time at which this Compute Node was allocated to the Pool. This is the time when the Compute Node was initially allocated and doesn't change once set. It is not updated when the Compute Node is service healed or preempted.

allocationTime?: Date

Property Value

Date

certificateReferences

The list of Certificates installed on the Compute Node. For Windows Nodes, the Batch service installs the Certificates to the specified Certificate store and location. For Linux Compute Nodes, the Certificates are stored in a directory inside the Task working directory and an environment variable AZ_BATCH_CERTIFICATES_DIR is supplied to the Task to query for this location. For Certificates with visibility of 'remoteUser', a 'certs' directory is created in the user's home directory (e.g., /home/{user-name}/certs) and Certificates are placed in that directory.

certificateReferences?: CertificateReference[]

Property Value

endpointConfiguration

The endpoint configuration for the Compute Node.

endpointConfiguration?: ComputeNodeEndpointConfiguration

Property Value

errors

The list of errors that are currently being encountered by the Compute Node.

errors?: ComputeNodeError[]

Property Value

id

The ID of the Compute Node. Every Compute Node that is added to a Pool is assigned a unique ID. Whenever a Compute Node is removed from a Pool, all of its local files are deleted, and the ID is reclaimed and could be reused for new Compute Nodes.

id?: string

Property Value

string

ipAddress

The IP address that other Nodes can use to communicate with this Compute Node. Every Compute Node that is added to a Pool is assigned a unique IP address. Whenever a Compute Node is removed from a Pool, all of its local files are deleted, and the IP address is reclaimed and could be reused for new Compute Nodes.

ipAddress?: string

Property Value

string

isDedicated

Whether this Compute Node is a dedicated Compute Node. If false, the Compute Node is a low-priority Compute Node.

isDedicated?: boolean

Property Value

boolean

lastBootTime

The last time at which the Compute Node was started. This property may not be present if the Compute Node state is unusable.

lastBootTime?: Date

Property Value

Date

nodeAgentInfo

Information about the Compute Node agent version and the time the Compute Node upgraded to a new version.

nodeAgentInfo?: NodeAgentInformation

Property Value

recentTasks

A list of Tasks whose state has recently changed. This property is present only if at least one Task has run on this Compute Node since it was assigned to the Pool.

recentTasks?: TaskInformation[]

Property Value

runningTasksCount

The total number of currently running Job Tasks on the Compute Node. This includes Job Manager Tasks and normal Tasks, but not Job Preparation, Job Release or Start Tasks.

runningTasksCount?: number

Property Value

number

runningTaskSlotsCount

The total number of scheduling slots used by currently running Job Tasks on the Compute Node. This includes Job Manager Tasks and normal Tasks, but not Job Preparation, Job Release or Start Tasks.

runningTaskSlotsCount?: number

Property Value

number

schedulingState

Whether the Compute Node is available for Task scheduling. Possible values include: 'enabled', 'disabled'

schedulingState?: SchedulingState

Property Value

startTask

The Task specified to run on the Compute Node as it joins the Pool.

startTask?: StartTask

Property Value

startTaskInfo

Runtime information about the execution of the StartTask on the Compute Node.

startTaskInfo?: StartTaskInformation

Property Value

state

The current state of the Compute Node. The low-priority Compute Node has been preempted. Tasks which were running on the Compute Node when it was preempted will be rescheduled when another Compute Node becomes available. Possible values include: 'idle', 'rebooting', 'reimaging', 'running', 'unusable', 'creating', 'starting', 'waitingForStartTask', 'startTaskFailed', 'unknown', 'leavingPool', 'offline', 'preempted'

state?: ComputeNodeState

Property Value

stateTransitionTime

The time at which the Compute Node entered its current state.

stateTransitionTime?: Date

Property Value

Date

totalTasksRun

The total number of Job Tasks completed on the Compute Node. This includes Job Manager Tasks and normal Tasks, but not Job Preparation, Job Release or Start Tasks.

totalTasksRun?: number

Property Value

number

totalTasksSucceeded

The total number of Job Tasks which completed successfully (with exitCode 0) on the Compute Node. This includes Job Manager Tasks and normal Tasks, but not Job Preparation, Job Release or Start Tasks.

totalTasksSucceeded?: number

Property Value

number

url

The URL of the Compute Node.

url?: string

Property Value

string

vmSize

The size of the virtual machine hosting the Compute Node. For information about available sizes of virtual machines in Pools, see Choose a VM size for Compute Nodes in an Azure Batch Pool (https://docs.microsoft.com/azure/batch/batch-pool-vm-sizes).

vmSize?: string

Property Value

string