...
Table of Contents | ||
---|---|---|
|
The following are sample configurations that can be used in a JSON to define a deployment policy:
Excerpt | ||
---|---|---|
|
All the properties that correspond to the deployment policy resource are explained as follows:
Property | Description | Data Type | Example Value | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
JSON | UI | ||||||||||||||
| Deployment policy ID | √ | √ | X | ID of the deployment policy. | Yes | N/A | String | deployment-policy-1 | ||||||
| Network Partitions | √ | √ | This defines one or more partitions that are network bound and where communication among the partitions take place very efficiently. For example, in EC2 a partition group can be defined with multiple partitions that belong to the same region. For more information on network partitions, see Network Partitions. For more information on the sub-properties, see 4.1.0 Deployment Policy Resource Definition. networkPartitions. | Yes | N/A | networkPartitions array | N/A |
Property | Description | Data Type | Example Value | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
JSON | UI | ||||||||||||||
| Network Partition ID | √ | √ | X | Unique ID of the network partition. | Yes | N/A | String | openstack_R1 | ||||||
| √ | √ | The name of the IaaS provider. | Yes | N/A | String | |||||||||
| Network Partition Algorithm | √ | √ | The sequence used to spawn up instances between partitions when scaling up. The available partition algorithms are as follows:
| Yes | N/A | String | round-robin, one-after-another | |||||||
| Partitions | √ | √ | The conditions that will be applied to the partitions that need to be deployed. For more information on the sub-properties, see partitions. | Yes | N/A | partitions array | N/A |
Property | Description | Data | Example Value | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
JSON | UI | ||||||||||||||
| Partition ID | √ | √ | X | Unique ID of the partition. | Yes | N/A | String | P1 | ||||||
description | √ | √ | A summarized description on the partition. | String | |||||||||||
property | √ | √ | Properties that correspond to the partition can be sent as name value pairs. For more information on the sub-properties, see 4.1.0 Deployment Policy Resource Definition property. | property array | |||||||||||
partitionMax | partitionMax | √ | √ | Maximum number of instances that can be handled by a partition. For group this means the maximum group instances that can be in a partition. For a cluster this means the maximum members that can be maintained for a cluster instance in a partition. | Yes | N/A | Int | 6 |
Property | Description | Data | Example | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
JSON | UI | ||||||||||||||
| Name | √ | √ | √ | Name of the property. | Yes | N/A | String | region, zone | ||||||
| Value | √ | √ | √ | Value corresponding to the property. | Yes | N/A | String | al-southeast-1, |