Task Scheduler integration
Failover Clustering in Windows Server 2012 is also integrated into the Task Scheduler, which allows you to configure tasks you want to run on clusters in three ways:
-
ClusterWide tasks are scheduled to run on all nodes in the cluster.
-
AnyNode tasks are scheduled to run on a single, randomly selected cluster node.
-
ResourceSpecific tasks are scheduled to run only on the cluster node that currently owns the specified resource.
You can configure clustered tasks by using PowerShell. Table 1 lists the cmdlets available for this purpose. For more information on any of these cmdlets, use Get-Help <cmdlet>.
Table 1. PowerShell Cmdlets for Configuring Clustered Tasks
PowerShell Cmdlet |
Description |
---|
Register-ClusteredScheduledTask |
Creating a new clustered scheduled task |
Unregister-ClusteredScheduledTask |
Delete a clustered scheduled task |
Set-ClusteredScheduledTask |
Update existing clustered task |
Get-ClusteredScheduledTask |
Enumerating existing clustered tasks |
Efficient automatic management of clustered VMs and other clustered
roles is now possible in Windows Server 2012 by assigning a relative
priority to each VM in the cluster. Once this has been configured, the
cluster will then automatically manage the VM or other clustered role
based on its assigned priority.
Four possible priorities can be assigned to a clustered VM or clustered role:
-
High
-
Medium (the default)
-
Low
-
No Auto Start
Assigning priorities
to clustered VMs or other clustered roles lets you control both the
start order and placement of each VM or other role in the cluster. For
example, VMs that have higher priority are started before those having
lower priority. The benefit of this is to allow you to ensure that the
most important VMs are started first and are running before other VMs
are started. In addition, support for preemption is included so that
low-priority VMs can be automatically shut down in order to free up
resources so that higher-priority VMs can successfully start. And
although Hyper-V in Windows Server 2012 now supports concurrent Live
Migrations, the order in which VMs queued for Live Migration but not
yet migrated can also be determined on the basis of priority.
VMs that have higher priority are also placed on appropriate nodes
before VMs with lower priority. This means, for example, that VMs can
be placed on the nodes that have the best available memory resources,
with memory requirements being evaluated on a per-VM basis. The result
is enhanced failover placement, and this capability is also Non-Uniform Memory Access (NUMA)–aware.
Figure 3 shows Failover Cluster Manager being used to manage a two-node cluster that has two cluster roles running on it: a scale-out file
server and a VM. Right-clicking the clustered VM and selecting Change
Startup Priority allows you to change the priority of the VM from its
default Medium setting to High.