||
Skip to end of metadata
Go to start of metadata

An application policy defines the application availability in network partitions. Thereby, it would define whether to start the application in all the network partitions or whether to carryout cloud bursting. A sample application policy definition, together with information on all the properties that can be added in an application policy definition JSON are as follows:

Sample application policy definition JSON

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

{
  "id": "application-policy-1",
  "algorithm": "one-after-another",
  "networkPartitions": [
    "network-partition-mock"
  ],
  "properties": [
    
  ]
}

Property definitions

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

  • W = Writable
  • R = Readable
  • U = Updatable
  • M = Mandatory (Required)
  • DV = Default Value

Main properties

PropertyWRUDescriptionMDVData
Type 
Example
JSONUI

id

  ID of the application policy.YesN/AStringapplication-policy-1
algorithm
  Defines the algorithm that needs to be applied between network partitions. The available algorithms are as follows:
  • One after another
  • All at once
YesN/AStringone-after-another
networkPartitions
  This defines one or more partitions that are network bound and where communication among the partitions take place very efficiently. For more information, see Partition Groups.YesN/AStringnetwork-partition-1
properties
  This defines any properties that need to be passed in the application policy JSON. The properties will be listed as name value pairs. For more information on the sub-properties, see properties.NoN/Aproperties arrayN/A

Sub-properties

properties
PropertyWRUDescriptionMDVData
Type 
Example
JSONUI
name  Name of the property being passed as a name value pair.NoN/AString

key-1

value  Value that corresponds to the name value pair.NoN/AStringvalue-2
  • No labels