The configurations included in the deployment-policy.json file are as follows:

{
    "id":"isuruh-ec2",
    "partitionGroup":{
       "id":"ec2",
       "partitionAlgo":"one-after-another",
       "partition":[
            {
              "id":"P1",
              "partitionMax":"3",
              "partitionMin":"1"
            }
        ]
    }
}

Parameter definitions

Deployment policy definitions

ParameterDescriptionRequiredDefault valueExample
value 
idUnique ID of the deployment policy.YesN/ADep-policy1
partitionGroup

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.

 You can add parameter definitions on multiple partition groups if required.

For more information, see Partition Groups.

YesN/AN/A
partitionGroup
ParameterDescriptionRequiredDefault valueExample value

id 

Unique ID of the partition group.YesN/AEC2-Group1

partitionAlgo

The sequence used to spawn up instances when scaling up. For more information, see Partition Algorithm.YesN/Around-robin,
one-after-another

partition

The conditions that will be applied to the partitions that have already been deployed.

You can add parameter definitions to define the conditions that will be applied on multiple partitions if required.

For more information, see Partitions.

YesN/AN/A
partition
ParameterDescriptionRequiredDefault valueExample
value

id

The ID of the partition that is already deployed.YesN/AP1

partitionMax

The maximum number of instances that will be maintained for each subscription in this partition when scaling up.YesN/A5

partitionMin 

The minimum number of instances that will be maintained for each subscription in this partition when scaling down.YesN/A1
  • No labels