For clustered nodes, a special property called node_array_index identifies the position of the current virtual machine in the cluster.

The node_array_index property value of the first virtual machine in the cluster is 0, the node_array_index property value of the second virtual machine in the cluster is 1, and so on.

For example, in a deployment with a clustered node, if the first virtual machine is the master virtual machine, then it manages other virtual machines in the cluster as subordinate machines. This master virtual machine must be configured differently. For example, if one of the properties for the component is myPosition, then it must be bound to the predefined self:node_array_index property. The component script can verify whether the value of myPosition property is 0, and if so it can perform an additional configuration.

For clustered nodes, the predefined node array property is all(NodeName:node_array_index). The property gives the indexes of all the virtual machines in the cluster and can be used to identify the size of the cluster.