6.2

Table Of Contents
The load_balancer:ip property is also provided. This property refers to the IP address of the first NIC and
NIC0. If a component needs IP addresses of all virtual machines in a cluster, it uses the
all(NodeName:NICx_ip) property. To refer to the IP address of the current virtual machine, self:ip property
is available. This property is useful for clustered nodes, as a component might need to know the virtual
machine it is in, rather than the IP addresses of all the virtual machine in the cluster. To get the properties
for a specific virtual machine in a cluster, you can use the all(NodeName:node_array_index) property. See
Predefined Node Array Index Property.
Predefined Node Array Index Property
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.
Predefined Disk Layout Info Property
Flexible Disks enhances storage flexibility and lets you add additional disks to a node.
To use additional disk information, you must create bindable properties in the service definition and bind
to the disk_layout_info property. The disk_layout_info property contains information of all the disks added
to the application blueprint.
For example, in any application blueprint, the disk information is captured by the blueprint as Disk0,
Disk1, Disk2, and so on.
You can get the following information:
n
name
n
sizeInGb
n
metaTags
n
seq
n
mountPoint
n
fileSystem
Using Application Services
VMware, Inc. 113