Versions Compared

Key

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

...

Section
bordertrue
Column
width60%
Code Block
languagejs
themeEclipse
titleTemplate for the HPA policies
linenumberstrue
collapsetrue
{
    "service": "{the model name of a policy}",
    "policyName": "{policy scope folder}.{policy name; must be unique}",
    "description": "{description of a policy}",
    "templateVersion": "{policy model version}",
    "version": "{policy version}",
    "priority": "{priority in 1-10; larger the number higher the priority is}",
    "riskType": "{the type of risk}",
    "riskLevel": "{the level of risk}",
    "guard": "{True/False flag to indicate whether guard is applicable or not}",
    "content": { 
      "resourcesresource": "{resource name}",
      "identity": "{policy identity}",
      "policyScope": ["{a tag representing policy scope}"],
      "typepolicyType": "{policy type}",
      "flavorFeatures": [
        {
          "flavorLabel": "{VM/VFC id}",
          "flavorProperties":[
            {
              "hpa-featurehpaFeature" : "{HPA feature type}",
              "mandatory" : "{mandatoriness of the feature}",
              "score" : "{priority of this feature if the feature is not mandatory for VM}"
              "architecture": "{supported architecuture}",
              "hpa-versionhpaVersion": "{version for hpa capability}",
              "hpa-feature-attributeshpaFeatureAttributes": [
                {
                  "hpa-attribute-keyhpaAttributeKey": "{attribute name}", 
                  "hpa-attribute-valuehpaAttributeValue": "{attribute value}",
                  "operator": "{comparison operator}", 
                  "unit": "{the unit of an attribute}"}
              ]
            }
          ] 
        }
      ]
    }
}
Column
width45%
Expand
titleComments and Notes: HPA CPU Topology Policy Example

Template for the HPA policies.

Section
bordertrue
Column
width60%
Code Block
languagejs
themeEclipse
titleHPA Policy Example
linenumberstrue
collapsetrue
{
    "service": "hpaPolicy",
    "policyName": "oofBeijing.hpaPolicy_vGMuxInfra",
    "description": "HPA policy for vGMuxInfra",
    "templateVersion": "0.0.1",
    "version": "1.0",
    "priority": "3",
    "riskType": "test",
    "riskLevel": "2",
    "guard": "False",
    "content": { 
      "resources": "vGMuxInfra",
      "identity": "hpaPolicy_vGMuxInfra",
      "policyScope": ["vCPE", "US", "INTERNATIONAL", "ip", "vGMuxInfra"],
      "typepolicyType": "hpaPolicy",
      "flavorFeatures": [
        {
          "flavorLabel": "flavor_label_vm_01",
          "flavorProperties":[
            {
              "hpa-featurehpaFeature" : "cpuTopology",
              "mandatory" : "True",
              "architecture": "generic",
              "hpa-feature-attributeshpaFeatureAttributes": [
                {"hpa-attribute-keyhpaAttributeKey":"numCpuSockets", "hpa-attribute-valuehpaAttributeValue": "2","operator": ">=", "unit": ""},
                {"hpa-attribute-keyhpaAttributeKey":"numCpuSockets", "hpa-attribute-valuehpaAttributeValue": "4","operator": "<=", "unit": ""},
                {"hpa-attribute-keyhpaAttributeKey":"numCpuCores", "hpa-attribute-valuehpaAttributeValue": "2", "operator":">=", "unit": ""},
                {"hpa-attribute-keyhpaAttributeKey":"numCpuCores", "hpa-attribute-valuehpaAttributeValue": "4", "operator":"<=", "unit": ""},
                {"hpa-attribute-keyhpaAttributeKey":"numCpuThreads", "hpa-attribute-valuehpaAttributeValue": "4", "operator":">=", "unit": ""},
                {"hpa-attribute-keyhpaAttributeKey":"numCpuThreads", "hpa-attribute-valuehpaAttributeValue": "8", "operator":"<=", "unit": ""}
              ]
            },
            {
              "hpa-feature" : "basicCapabilities",
              "mandatory" : "True",
              "architecture": "generic",
              "hpa-feature-attributes": [
                {"hpa-attribute-keyhpaAttributeKey": "numVirtualCpu", "hpa-attribute-valuehpaAttributeValue": "6", "operator": "=", "unit": ""},
                {"hpa-attribute-keyhpaAttributeKey": "virtualMemSize", "hpa-attribute-valuehpaAttributeValue":"6", "operator": "=", "unit": "GB"}
              ]
            },
            {
              "hpa-feature" : "ovsDpdk",
              "mandatory" : "False",
              "score" : "3",
              "architecture": "generic",
              "hpa-feature-attributes": [
                 {"hpa-attribute-keyhpaAttributeKey":"dataProcessingAccelerationLibrary", "hpa-attribute-valuehpaAttributeValue":"ovsDpdk_version", "operator": "=", "unit":""}
              ]
            },
            {
              "hpa-feature" : "cpuInstructionSetExtensions",
              "mandatory" : "True",
              "architecture": "INTEL-64",
              "hpa-feature-attributes": [
                {"hpa-attribute-keyhpaAttributeKey":"instructionSetExtensions", "hpa-attribute-valuehpaAttributeValue":["<CPUINST>", "<CPUINST>"] "operator": "ALL", "unit":""}
              ]
            }
          ] 
        },
        {
          "flavorLabel": "flavor_label_vm_02",
          "flavorProperties":[
            {
              "hpa-feature" : "cpuPinningy",
              "mandatory" : "True",
              "architecture": "generic",
              "hpa-feature-attributes": [
                {"hpa-attribute-keyhpaAttributeKey":"logicalCpuThreadPinningPolicy", "hpa-attribute-valuehpaAttributeValue":"<CPUTHREADPOLICY>", "operator": "=", "unit":""},
                {"hpa-attribute-keyhpaAttributeKey":"logicalCpuPinningPolicy", "hpa-attribute-valuehpaAttributeValue": "<CPUPOLICY>","operator": "=", "unit":""},
              ]
            },
            {
              "hpa-feature" : "basicCapabilities",
              "mandatory" : "True",
              "architecture": "generic",
              "hpa-feature-attributes": [
                {"hpa-attribute-keyhpaAttributeKey": "numVirtualCpu", "hpa-attribute-valuehpaAttributeValue": "6", "operator": "=", "unit": ""},
                {"hpa-attribute-keyhpaAttributeKey": "virtualMemSize", "hpa-attribute-valuehpaAttributeValue":"6", "operator": "=", "unit": "GB"}
              ]
            },
            {
              "hpa-feature" : "localStorage",
              "mandatory" : "False",
              "score" : "5",
              "architecture": "generic",
              "hpa-feature-attributes": [
                {"hpa-attribute-keyhpaAttributeKey": "diskSize", "hpa-attribute-valuehpaAttributeValue": "2", "operator": "=", "unit": "GB"},   
      	        {"hpa-attribute-keyhpaAttributeKey": "ephemeralDiskSize", "hpa-attribute-valuehpaAttributeValue": "2", "operator": "=", "unit": "GB"},
		        {"hpa-attribute-keyhpaAttributeKey": "swapMemSize", "hpa-attribute-valuehpaAttributeValue":"16", "operator": "=", "unit": "MB"},
              ]
            },
            {
              "hpa-feature" : "pcie",
              "mandatory" : "True",
              "architecture": "generic",
              "hpa-feature-attributes": [
                {"hpa-attribute-keyhpaAttributeKey": "pciCount", "hpa-attribute-valuehpaAttributeValue": "2", "operator": "=", "unit": ""},
                {"hpa-attribute-keyhpaAttributeKey": "pciVendorId", "hpa-attribute-valuehpaAttributeValue":"8086", "operator": "=", "unit": ""},
	            {"hpa-attribute-keyhpaAttributeKey": "pciDeviceId", "hpa-attribute-valuehpaAttributeValue": "2", "operator": "=", "unit": ""} 
                {"hpa-attribute-keyhpaAttributeKey": "functionType", "hpa-attribute-valuehpaAttributeValue": "<PCITYPEVALUE>","operator": "=", "unit": ""} 
              ]
            }
          ] 
        },
        {
          "flavorLabel": "flavor_label_vm_03",
          "flavorProperties":[
            {
              "hpa-feature" : "numa",
              "mandatory" : "False",
              "score" : "5",
              "architecture": "generic",
              "hpa-feature-attributes": [
                {"hpa-attribute-keyhpaAttributeKey": "numaNodes", "hpa-attribute-valuehpaAttributeValue": "2", "operator": "=", "unit": ""},
                {"hpa-attribute-keyhpaAttributeKey": "numaCpu-0", "hpa-attribute-valuehpaAttributeValue":"2", "operator": "=", "unit": ""},
                {"hpa-attribute-keyhpaAttributeKey": "numaMem-0", "hpa-attribute-value""hpaAttributeValue": "2048", "operator": "=", "unit": "MB"}
                {"hpa-attribute-keyhpaAttributeKey": "numaCpu-1", "hpa-attribute-valuehpaAttributeValue":"4", "operator": "=", "unit": ""},
                {"hpa-attribute-keyhpaAttributeKey": "numaMem-1", "value": "4096", "operator": "=", "unit": "MB"}
              ]
            },
            {
              "hpa-feature" : "basicCapabilities",
              "mandatory" : "True",
              "architecture": "generic",
              "hpa-feature-attributes": [
                {"hpa-attribute-keyhpaAttributeKey": "numVirtualCpu", "hpa-attribute-valuehpaAttributeValue": "6", "operator": "=", "unit": ""},
                {"hpa-attribute-keyhpaAttributeKey": "virtualMemSize", "hpa-attribute-valuehpaAttributeValue":"6", "operator": "=", "unit": "GB"}
              ]
            },
            {
              "hpa-feature" : "hugePages",
              "mandatory" : "False",
              "score" : "7",
              "architecture": "generic",
              "hpa-feature-attributes": [
                 {"hpa-attribute-keyhpaAttributeKey": "memoryPageSize", "hpa-attribute-valuehpaAttributeValue": "<MEMORYPAGESIZE>", "operator": "=", "unit": ""}
              ]
            }
          ] 
        }
      ]
    }
}
Column
width45%
Expand
titleComments and Notes: HPA CPU Topology Policy Example

The fields in this example policy are typically generated from a TOSCA service model specified by VNF vendors or service designers. This policy cannot be changed during the life-cycle of a service.



CPUTHREADPOLICY = prefer, isolate, require

CPUPOLICY = shared, dedicated

PCIETYPEVALUE: SRIOV, PCI-PASSTHROUGH

CPUINST = aes, avx, sha_ni, mpx, adcx, mpx, pclmulqdq, rdrand,sse, etc

MEMORYPAGESIZE = 4KB (unit=KB), 2MB (unit=MB), 1GB(unit=GB), ANY, Other explicit Page size

Section
bordertrue
Column
width60%
Code Block
languagejs
themeEclipse
titleDistance Policy Example
linenumberstrue
collapsetrue
{
  "service": "distancePolicy",
  "policyName": "oofBeijing.distancePolicy_vGMuxInfra",
  "description": "Distance Policy for vGMuxInfra",
  "templateVersion": "0.0.1",
  "version": "oofBeijing",
  "priority": "3",
  "riskType": "test",
  "riskLevel": "2",
  "guard": "False",
  "content": {
    "distanceProperties": {
      "locationInfo": { "value": "customer_location", "operator": "="},
      "distance": { "value": "500", "operator": "<", "unit": "km" },
    },
  "resourceInstanceType": { "valueresources": ["vGMuxInfra", "operator": "="}vG"],
    } "applicableResources": "any",
    "identity": "distance-vGMuxInfra",
    "policyScope": {
      "serviceType": ["vCPE"],
      "geoRegion": ["US", "INTERNATIONAL"],
      "networkType": ["ip"],
      "resourceInstanceType": ["vGMuxInfra"]
    }["vCPE", "US", "INTERNATIONAL", "ip", "vGMuxInfra"],
    "typepolicyType": "distancePolicy"
  }
}
Column
width45%
Expand
titleComments and Notes: Distance Policy

The fields in this example policy are typically generated from a TOSCA service model specified by VNF vendors or service designers. However, the policy can be updated over time by operators.

Section
bordertrue
Column
width60%
Code Block
languagejs
themeEclipse
titleHPA Basic Capabilities Policy Example
linenumberstrue
collapsetrue
{
    "hpa-feature" : "basicCapabilities",
    "mandatory" : "False",
    "score" : "5"
    "architecture": "generic",
    "hpa-feature-attributes": [
       {"hpa-attribute-keyhpaAttributeKey": "numVirtualCpu", "hpa-attribute-valuehpaAttributeValue": "6", "operator": "=", "unit": ""},
       {"hpa-attribute-keyhpaAttributeKey": "virtualMemSize", "hpa-attribute-valuehpaAttributeValue":"6", "operator": "=", "unit": "GB"}
    ]
}
Column
width45%
Expand
titleComments and Notes: HPA Basic Capabilities Policy

The fields in this example policy are typically generated from a TOSCA service model specified by VNF vendors or service designers. This policy cannot be changed during the life-cycle of a service.

Section
bordertrue
Column
width60%
Code Block
languagejs
themeEclipse
titleHPA OVS DPDK Policy Example
linenumberstrue
collapsetrue
{
    "hpa-feature" : "ovsDpdk",
    "mandatory" : "False",
    "score" : "5"
    "architecture": "INTEL-64",
    "hpa-feature-attributes": [
      {"hpa-attribute-keyhpaAttributeKey":"dataProcessingAccelerationLibrary", "hpa-attribute-valuehpaAttributeValue":"ovsDpdk_version", "operator": "=", "unit":""}
     ]
}
Column
width45%
Expand
titleComments and Notes: HPA OVS DPDK Policy

The fields in this example policy are typically generated from a TOSCA service model specified by VNF vendors or service designers. This policy cannot be changed during the life-cycle of a service.

For this policy others architectures are also applicable.

Section
bordertrue
Column
width60%
Code Block
languagejs
themeEclipse
titleHPA CPU Pinning Policy Example
linenumberstrue
collapsetrue
{
   "hpa-feature" : "cpuPinning",
   "mandatory" : "False",
   "score" : "5"
   "architecture": "generic",
   "hpa-feature-attributes": [
     {"hpa-attribute-keyhpaAttributeKey":"logicalCpuThreadPinningPolicy", "hpa-attribute-valuehpaAttributeValue":"<CPUTHREADPOLICY>", "operator": "=", "unit":""},
     {"hpa-attribute-keyhpaAttributeKey":"logicalCpuPinningPolicy", "hpa-attribute-value":"hpaAttributeValue": "<CPUPOLICY>","operator": "=", "unit":""},
    ]
}
Column
width45%
Expand
titleComments and Notes: HPA CPU Pinning Policy

The fields in this example policy are typically generated from a TOSCA service model specified by VNF vendors or service designers. This policy cannot be changed during the life-cycle of a service.


CPUTHREADPOLICY = prefer, isolate, require
CPUPOLICY = shared, dedicated


Section
bordertrue
Column
width60%
Code Block
languagejs
themeEclipse
titleHPA NUMA Policy Example
linenumberstrue
collapsetrue
{
    "hpa-feature" : "numa",
    "mandatory" : "False",
    "score" : "5"
    "architecture": "generic",
    "hpa-feature-attributes": [
       {"hpa-attribute-keyhpaAttributeKey": "numaNodes", "hpa-attribute-valuehpaAttributeValue": "2", "operator": "=", "unit": ""},
       {"hpa-attribute-keyhpaAttributeKey": "numaCpu-0", "hpa-attribute-valuehpaAttributeValue":"2", "operator": "=", "unit": ""},
       {"hpa-attribute-keyhpaAttributeKey": "numaMem-0", "hpa-attribute-valuehpaAttributeValue": "2048", "operator": "=", "unit": "MB"},
       {"hpa-attribute-keyhpaAttributeKey": "numaCpu-1", "hpa-attribute-valuehpaAttributeValue":"4", "operator": "=", "unit": ""},
       {"hpa-attribute-keyhpaAttributeKey": "numaMem-1", "hpa-attribute-valuehpaAttributeValue": "4096", "operator": "=", "unit": "MB"}
    ]
}
Column
width45%
Expand
titleComments and Notes: HPA NUMA Policy

The fields in this example policy are typically generated from a TOSCA service model specified by VNF vendors or service designers. This policy cannot be changed during the life-cycle of a service.

Section
bordertrue
Column
width60%
Code Block
languagejs
themeEclipse
titleHPA CPU Topology Policy Example
linenumberstrue
collapsetrue
{
   "hpa-feature" : "cpuTopology",
   "mandatory" : "False",
   "score" : "5"
   "architecture": "generic",
   "hpa-feature-attributes": [
      {"hpa-attribute-keyhpaAttributeKey":"numCpuSockets", "hpa-attribute-valuehpaAttributeValue": "2","operator": ">=", "unit": ""},
      {"hpa-attribute-keyhpaAttributeKey":"numCpuSockets", "hpa-attribute-valuehpaAttributeValue": "4","operator": "<=", "unit": ""},
      {"hpa-attribute-keyhpaAttributeKey":"numCpuCores", "hpa-attribute-valuehpaAttributeValue": "2", "operator":">=", "unit": ""},
      {"hpa-attribute-keyhpaAttributeKey":"numCpuCores", "hpa-attribute-valuehpaAttributeValue": "4", "operator":"<=", "unit": ""},
      {"hpa-attribute-keyhpaAttributeKey":"numCpuThreads", "hpa-attribute-valuehpaAttributeValue": "4", "operator":">=", "unit": ""},
      {"hpa-attribute-keyhpaAttributeKey":"numCpuThreads", "hpa-attribute-valuehpaAttributeValue": "8", "operator":"<=", "unit": ""}
   ]
}
Column
width45%
Expand
titleComments and Notes: HPA CPU Topology Policy Example

The fields in this example policy are typically generated from a TOSCA service model specified by VNF vendors or service designers. This policy cannot be changed during the life-cycle of a service.

Section
bordertrue
Column
width60%
Code Block
languagejs
themeEclipse
titleAffinity Policy Example
linenumberstrue
collapsetrue
{
    "service": "affinityPolicy",
    "policyName": "oofBeijing.affinityPolicy_vcpe",
    "description": "Affinity policy for vCPE",
    "templateVersion": "1702.03",
    "version": "oofBeijing",
    "priority": "5",
    "riskType": "test",
    "riskLevel": "2",
    "guard": "False",
    "content": {
        "identity": "affinity_vCPE",
        "policyScope": {
            "serviceType": ["vCPE["vCPE", "US", "INTERNATIONAL", "ip", "vGMuxInfra"],
            "geoRegionaffinityProperties": ["US", "INTERNATIONAL"],{
            "networkTypequalifier": ["ipdifferent"],
            "resourceInstanceTypecategory": ["vGMuxInfra", "vG"]"complex"
        },
        "affinityPropertypolicyType": {"affinityPolicy",
            "qualifierresources": {"value": "different["vGMuxInfra", "operator": "="}vG"],
            "categoryapplicableResources": {"value": "complex", "operator": "="}all"
        },
        "type": "affinityPolicy",
        "resourceInstanceType": ["vGMuxInfra", "vG"]
    }
}
Column
width45%
Expand
titleComments and Notes: Affinity Policy

The fields in this example policy are typically generated from a TOSCA service model specified by VNF vendors or service designers. This policy cannot be changed during the life-cycle of a service.

Section
bordertrue
Column
width60%
Code Block
languagejs
themeEclipse
titleCapacity Policy Example
linenumberstrue
collapsetrue
{
    "service": "capacityPolicy",
    "policyName": "oofBeijing.capacityPolicy_vGMuxInfra",
    "description": "Capacity policy for vGMuxInfra",
    "templateVersion": "1702.03",
    "version": "oofBeijing",
    "priority": "5",
    "riskType": "test",
    "riskLevel": "2",
    "guard": "False",
    "content": {
        "identity": "capacity_vGMuxInfra",
        "policyScope": {
            "serviceType": ["VCPE"],
            "geoRegion": ["US", "INTERNATIONAL"],
            "networkType": ["ip"],
            "resourceInstanceType": ["vGMuxInfra"]
        }["vCPE", "US", "INTERNATIONAL", "ip", "vGMuxInfra"],
        "capacityPropertycapacityProperties": {
            "cpu": {"value": 2, "operator": ">"},
            "memory": {"value": 4, "operator": ">", "unit": "GbGB"}
        },
        "typepolicyType": "capacityPolicy",
        "resourceInstanceTyperesources": ["vGMuxInfra"],
     }   "applicableResources": "any"
    }
}
Column
width45%
Expand
titleComments and Notes: Capacity Policy

The fields in this example policy are typically generated from a TOSCA service model specified by VNF vendors or service designers. This policy cannot be changed during the life-cycle of a service.

Section
bordertrue
Column
width60%
Code Block
languagejs
themeEclipse
titleMin Guarantee Policy Example
linenumberstrue
collapsetrue
{
    "service": "minGuaranteePolicy",
    "policyName": "oofBeijing.minGuaranee_vGMuxInfra",
    "description": "Min guarantee policy for vGMuxInfra",
    "templateVersion": "1702.03",
    "version": "oofBeijing",
    "priority": "5",
    "riskType": "test",
    "riskLevel": "2",
    "guard": "False",
    "content": {
        "identity": "minGuarantee_vGMuxInfra",
        "policyScope": {
            "serviceType": ["vCPE"],
            "geoRegion": ["US", "INTERNATIONAL"],
            "networkType": ["ip"],
            "resourceInstanceType": ["vGMuxInfra"]
        },
        "minGuaranteeProperty": {
            "cpu": {"value": "true", "operator": "="},
            "memory": {"value": "false", "operator": "="}
        },
        "type": "minGuaraneePolicy",
        "resourceInstanceType": ["vGMuxInfra"]
    }
}
Column
width45%
Expand
titleComments and Notes: Min Guarantee Policy

The fields in this example policy are typically generated from a TOSCA service model specified by VNF vendors or service designers. This policy cannot be changed during the life-cycle of a service. A min-guarantee policy can be specified using the HPA policy model.

Section
Section
bordertrue
Column
width60%
Code Block
languagejs
themeEclipse
titleOptimization Policy Example
linenumberstrue
collapsetrue
{
    "service": "PlacementOptimizationPolicy",
    "policyName": "oofBeijing.PlacementOptimizationPolicy_vGMuxInfra",
    "description": "Placement Optimization Policy for vGMuxInfra",
    "templateVersion": "1702.03",
    "version": "oofBeijing",
    "priority": "5",
    "riskType": "test",
    "riskLevel": "3",
    "guard": "False",
    "content": {
        "objectiveParameter": {
            "parameterAttributes": [
                {
                    "resourceresources": ["vGMuxInfra"],
                    "customerLocationInfo": "customer_loc",
                    "parameter": "distance",
                    "weight": "1",
                    "operator": "product"=
                },
                {
                    "resourceresources": ["vG"],
                    "customerLocationInfo": "customer_loc",
                    "parameter": "distance",
                    "weight": "1",
                    "operator": "product"
                }
            ],
            "operator": "sum"
        },
        "identity": "optimization",
        "policyScope": {
            "serviceType": ["vCPE"],
            "geoRegion": ["US", "INTERNATIONAL"],
            "networkTypeip":, ["ipvGMuxInfra"],
            "resourceInstanceTypepolicyType": ["vGMuxInfra", "vG"]
        }placementOptimization",
        "typeobjective": "placementOptimizationminimize",
        "objective": "minimize"
    }
}
}
Column
width45%
Expand
titleComments and Notes: Optimization Policy

The fields in this example policy are typically generated from a TOSCA service model specified by VNF vendors or service designers. This policy cannot be changed during the life-cycle of a service.



Section
bordertrue
Column
width60%
Code Block
languagejs
themeEclipse
titleHPA PCIe Policy Example
linenumberstrue
collapsetrue
{
    "hpa-feature" : "pcie",
    "mandatory" : "False",
    "score" : "5"
    "architecture": "generic",
    "hpa-feature-attributes": [
      {"hpa-attribute-keyhpaAttributeKey": "pciCount", "hpa-attribute-valuehpaAttributeValue": "2", "operator": "=", "unit": ""},
      {"hpa-attribute-keyhpaAttributeKey": "pciVendorId", "hpa-attribute-valuehpaAttributeValue":"8086", "operator": "=", "unit": ""},
	  {"hpa-attribute-keyhpaAttributeKey": "pciDeviceId", "hpa-attribute-valuehpaAttributeValue": "2", "operator": "=", "unit": ""} 
      {"hpa-attribute-keyhpaAttributeKey": "functionType", "hpa-attribute-valuehpaAttributeValue": "<PCIETYPEVALUE>","operator": "=", "unit": ""} 
     ]
}
Column
width45%
Expand
titleComments and Notes: HPA PCIe Policy Example

PCIETYPEVALUE: SRIOV, PCI-PASSTHROUGH

Section
bordertrue
Column
width60%
Code Block
languagejs
themeEclipse
titleHPA Local Storage Policy Example
linenumberstrue
collapsetrue
{
    "hpa-feature" : "localStorage",
    "mandatory" : "False",
    "score" : "5"
    "architecture": "generic",
    "hpa-feature-attributes": [
       {"hpa-attribute-keyhpaAttributeKey": "diskSize", "hpa-attribute-valuehpaAttributeValue": "2", "operator": "=", "unit": "GB"},   
       {"hpa-attribute-keyhpaAttributeKey": "ephemeralDiskSize", "hpa-attribute-valuehpaAttributeValue": "2", "operator": "=", "unit": "GB"},
	   {"hpa-attribute-keyhpaAttributeKey": "swapMemSize", "hpa-attribute-valuehpaAttributeValue":"16", "operator": "=", "unit": "MB"},
     ]
}
Column
width45%
Expand
titleComments and Notes: HPA Generic Attributes Policy Example

The fields in this example policy are typically generated from a TOSCA service model specified by VNF vendors or service designers. This policy cannot be changed during the life-cycle of a service.

Section
bordertrue
Column
width60%
Code Block
languagejs
themeEclipse
titleHPA CPU Instruction Set Extensions Policy Example
linenumberstrue
collapsetrue
{
    "hpa-feature" : "cpuInstructionSetExtensions",
    "mandatory" : "False",
    "score" : "5"
    "architecture": "INTEL-64",
    "hpa-feature-attributes": [
      {"hpa-attribute-keyhpaAttributeKey":"instructionSetExtensions", "hpa-attribute-valuehpaAttributeValue":["<CPUINST>", "<CPUINST>"] "operator": "ALL", "unit":""}
     ]
}
Column
width45%
Expand
titleComments and Notes: HPA CPU Instruction Set Extensions Policy Example
instructionSetExtensions attribute has a list of all instruction set extensions required. 
CPUINST = aes, avx, sha_ni, mpx, adcx, mpx, pclmulqdq, rdrand,sse, etc
Section
bordertrue
Column
width60%
Code Block
languagejs
themeEclipse
titleHPA Huge Pages Policy Example
linenumberstrue
collapsetrue
{
    "hpa-feature" : "hugePages",
    "mandatory" : "False",
    "score" : "5"
    "architecture": "generic",
    "hpa-feature-attributes": [
      {"hpa-attribute-keyhpaAttributeKey": "memoryPageSize", "hpa-attribute-valuehpaAttributeValue": "<MEMORYPAGESIZE>", "operator": "=", "unit": ""}
    ]
}
Column
width40%
Expand
titleComments and Notes: HPA Huge Pages Policy Example

MEMORYPAGESIZE = 4KB (unit=KB), 2MB (unit=MB), 1GB(unit GB), ANY, Other explicit Page size

...

Section
bordertrue
Column
width60%
Code Block
languagejs
themeEclipse
titleHPA Huge Pages Policy Example
linenumberstrue
collapsetrue
{
    "service": "vnfPolicy",
    "policyName": "oofBeijing.vnfPolicy_vGMuxInfra",
    "description": "vnfPolicy",
    "templateVersion": "1702.03",
    "version": "oofBeijing",
    "priority": "6",
    "riskType": "test",
    "riskLevel": "3",
    "guard": "False",
    "content": {
        "identity": "vnf_vGMuxInfra",
        "policyScope": ["vCPE", "INTERNATIONAL", "ip", "vGMuxInfra"],
        "policyType": "vnf_policy",
        "resources": ["vGMuxInfra"],
        "applicableResources": "any",
        "vnfProperties": [
            {
                "inventoryProvider": "aai",
                "serviceType": "",
                "inventoryType": "cloudRegionId",
                "customerId": ""
            },
            {
                "inventoryProvider": "multicloud",
                "serviceType": "HNGATEWAY",
                "inventoryType": "serviceInstanceId",
                "customerId": "21014aa2-526b-11e6-beb8-9e71128cae77"
            }
        ]
    }
}
Column
width40%
Expand
titleComments and Notes: HPA Huge Pages Policy Example

MEMORYPAGESIZE = 4KB (unit=KB), 2MB (unit=MB), 1GB(unit GB), ANY, Other explicit Page size

Anchor
OOF-CMSO Policies
OOF-CMSO Policies
OOF-CMSO Policies

TBD

Modes for Fetching Policies

OOF can fetch optimzation policies using the getConfig API of the policy system. The policies can be searched and filtered in two different modes; by-name and by-scope from the policy system.

By-name: OOF can send an explicite policy name or a

TBD

Modes for Fetching Policies

OOF can fetch optimzation policies using the getConfig API of the policy system. The policies can be searched and filtered in two different modes; by-name and by-scope from the policy system.

By-name: OOF can send an explicite policy name or a regular expression matching a set of policy names as a part of the getConfig API payload. In return, OOF expects to receive a specific policy or a set of policies with name matching to the regular expression.

By-scope: A scope is the domain to which a policy is applicable. Scope information can be captured as a set of attribute-value pairs, which can be sent as a part of the getConfig API payload. In response, the policy system is expected to return a set of policies with the matching attribute-value pairs. A policy can only be included in the response if all the matching attribute-value pairs exist.OOF can requerst prioritization by enabling a prioritization flag in the getConfig API call to the policy system, and expects to receive a single policy with the highest priority policy among the set of policies meeting the search criteria.pairs exist.

OOF can requerst prioritization by enabling a prioritization flag in the getConfig API call to the policy system, and expects to receive a single policy with the highest priority policy among the set of policies meeting the search criteria.

TOSCA Policy Models

The following TOSCA policy models need to be uploaded as a dictionary during the deployment-time of an optimization application. Currently, the model uploading porcess is manual since the policy system does not offer an interface to upload models programatically. Once the models are uploaded, policy templates are created in the policy portal/GUI using which optimization policies can be created. Alternatively, the policy system offers CRUD REST APIs using which the policies can be managed by the application.