Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Table of Contents
maxLevel3

Sample deployment policy definition JSON

The following are sample configurations that can be used in a JSON to define a deployment policy:

Excerpt
Code Block
{
  "id": "deployment-policy-1",
  "networkPartitions": [
    {
      "id": "network-partition-1",
      "partitionAlgo": "one-after-another",
      "partitions": [
        {
          "id": "partition-1",
          "partitionMax": 20
        }
      ]
    }
  ]
}

Property definitions

All the properties that correspond to the deployment policy resource are explained as follows: 

Main property definitions

PropertyDescriptionData
Type 
Example
Value 
JSONUI
Anchor
id
id
id
Deployment policy IDXID of the deployment policy.YesN/AString

deployment-policy-1

Anchor
networkPartitions1
networkPartitions1
networkPartitions
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.

YesN/AnetworkPartitions arrayN/A

Sub-properties

networkPartitions
PropertyDescriptionData
Type 
Example
Value
JSONUI
Anchor
id2
id2
id
Network Partition IDX Unique ID of the network partition.YesN/A Stringopenstack_R1
Anchor
provider
provider
provider
  The name of the IaaS provider.YesN/AString 

Anchor
partitionAlgo
partitionAlgo
partitionAlgo

Network Partition Algorithm 

The sequence used to spawn up instances between partitions when scaling up. The available partition algorithms are as follows:

  • One after another
  • Round robin
YesN/AStringround-robin,
one-after-another
Anchor
partitions1
partitions1
partitions
Partitions The conditions that will be applied to the partitions that need to be deployed. For more information on the sub-properties, see partitions.YesN/Apartitions arrayN/A
partitions
PropertyDescription

Data
Type 

Example
Value
JSONUI
Anchor
id3
id3
id
Partition IDX Unique ID of the partition. YesN/A String P1
Anchor
description
description
description            
  A summarized description on the partition.  String 
Anchor
property
property
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 

Anchor
partitionMax
partitionMax
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. YesN/AInt6
property

Property

Description

Data
Type

Example

JSON

UI

Anchor
name
name
name

Name 

Name of the property.

Yes

N/A

String

region, zone

Anchor
value
value
value

Value 

Value corresponding to the property.  

Yes

N/A

String

al-southeast-1,
ap-southeast-1a