{
"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_-feature" : "cpuTopology",
"mandatory" : "True",
"architecture": "generic",
"featureAttributes "hpa-version": "v1",
"hpa-feature-attributes": [
{"hpa-attribute-key":"numCpuSockets", "valueshpa-attribute-value": "2","operator": ">=", "unit": ""},
{"hpa-attribute-key":"numCpuSockets", "values"hpa-attribute-value": "4","operator": "<=", "unit": ""},
{"hpa-attribute-key":"numCpuCores", "hpa-attribute-value": "2", "operator":">=", "unit": ""},
{"hpa-attribute-key":"numCpuCores", "hpa-attribute-value": "4", "operator":"<=", "unit": ""},
{"hpa-attribute-key":"numCpuThreads", "hpa-attribute-value": "4", "operator":">=", "unit": ""},
{"hpa-attribute-key":"numCpuThreads", "hpa-attribute-value": "8", "operator":"<=", "unit": ""}
]
},
{
"hpa_-feature" : "basicCapabilities",
"mandatory" : "True",
"architecture": "generic",
"hpa-version": "featureAttributes"v1",
"hpa-feature-attributes": [
{"hpa-attribute-key": "numVirtualCpu", "hpa-attribute-value": "6", "operator": "=", "unit": ""},
{"hpa-attribute-key": "virtualMemSize", "hpa-attribute-value":"6", "operator": "=", "unit": "GB"}
]
},
{
"hpa_-feature" : "ovsDpdk",
"mandatory" : "False",
"score" : "3",
"architecture": "generic",
"featureAttributeshpa-version": ["v1",
{"attribute":"dataProcessingAccelerationLibrary", ""hpa-feature-attributes": [
{"hpa-attribute-key":"dataProcessingAccelerationLibrary", "hpa-attribute-value":"ovsDpdk_version", "operator": "=", "unit":""}
]
},
{
"hpa_-feature" : "cpuInstructionSetExtensions",
"mandatory" : "True",
"architecture": "INTEL-64",
"featureAttributes "hpa-version": "v1",
"hpa-feature-attributes": [
{"hpa-attribute-key":"instructionSetExtensions", "hpa-attribute-value":["<CPUINST>", "<CPUINST>"] "operator": "ALL", "unit":""}
]
}
]
},
{
"flavorLabel": "flavor_label_vm_02",
"flavorProperties":[
{
"hpa_-feature" : "cpuPinningy",
"mandatory" : "True",
"architecture": "generic",
"featureAttributeshpa-version": [
"v1",
{"attribute":"logicalCpuThreadPinningPolicy", "value":hpa-feature-attributes": [
{"hpa-attribute-key":"logicalCpuThreadPinningPolicy", "hpa-attribute-value":"<CPUTHREADPOLICY>", "operator": "=", "unit":""},
{"hpa-attribute-key":"logicalCpuPinningPolicy", "hpa-attribute-value": "<CPUPOLICY>","operator": "=", "unit":""},
]
},
{
"hpa_-feature" : "basicCapabilities",
"mandatory" : "True",
"architecture": "generic",
"featureAttributes "hpa-version": "v1",
"hpa-feature-attributes": [
{"hpa-attribute-key": "numVirtualCpu", "hpa-attribute-value": "6", "operator": "=", "unit": ""},
{"hpa-attribute-key": "virtualMemSize", "hpa-attribute-value":"6", "operator": "=", "unit": "GB"}
]
},
{
"hpa_-feature" : "localStorage",
"mandatory" : "False",
"score" : "5",
"architecture": "generic",
"featureAttributeshpa-version": ["v1",
{"attribute""hpa-feature-attributes": [
{"hpa-attribute-key": "diskSize", "hpa-attribute-value": "2", "operator": "=", "unit": "GB"},
{"hpa-attribute-key": "ephemeralDiskSize", "hpa-attribute-value": "2", "operator": "=", "unit": "GB"},
{"hpa-attribute-key": "swapMemSize", "hpa-attribute-value":"16", "operator": "=", "unit": "MB"},
]
},
{
"hpa_-feature" : "pcie",
"mandatory" : "True",
"architecture": "generic",
"featureAttributeshpa-version": "v1",
"hpa-feature-attributes": [
{"hpa-attribute-key": "pciCount", "hpa-attribute-value": "2", "operator": "=", "unit": ""},
{"hpa-attribute-key": "pciVendorId", "hpa-attribute-value":"8086", "operator": "=", "unit": ""},
{"hpa-attribute-key": "pciDeviceId", "hpa-attribute-value": "2", "operator": "=", "unit": ""}
{"hpa-attribute-key": "functionType", "hpa-attribute-value": "<PCITYPEVALUE>","operator": "=", "unit": ""}
]
}
]
},
{
"flavorLabel": "flavor_label_vm_03",
"flavorProperties":[
{
"hpa_-feature" : "numa",
"mandatory" : "False",
"score" : "5",
"architecture": "generic",
"hpa-version": "v1",
"featureAttributeshpa-feature-attributes": [
{"hpa-attribute-key": "numaNodes", "hpa-attribute-value": "2", "operator": "=", "unit": ""},
{"hpa-attribute-key": "numaCpu-0", "valueshpa-attribute-value":"2", "operator": "=", "unit": ""},
{"hpa-attribute-key": "numaMem-0", "hpa-attribute-value": "2048", "operator": "=", "unit": "MB"}
{"hpa-attribute-key": "numaCpu-1", "valueshpa-attribute-value":"4", "operator": "=", "unit": ""},
{"hpa-attribute-key": "numaMem-1", "value": "4096", "operator": "=", "unit": "MB"}
]
},
{
"hpa_-feature" : "basicCapabilities",
"mandatory" : "True",
"architecture": "generic",
"featureAttributeshpa-version": [
"v1",
{"attributehpa-feature-attributes": "numVirtualCpu", "value": [
{"hpa-attribute-key": "numVirtualCpu", "hpa-attribute-value": "6", "operator": "=", "unit": ""},
{"hpa-attribute-key": "virtualMemSize", "hpa-attribute-value":"6", "operator": "=", "unit": "GB"}
]
},
{
"hpa_-feature" : "hugePages",
"mandatory" : "False",
"score" : "7",
"architecture": "generic",
"featureAttributes"hpa-version": "v1",
"hpa-feature-attributes": [
{"hpa-attribute-key": "memoryPageSize", "hpa-attribute-value": "<MEMORYPAGESIZE>", "operator": "=", "unit": ""}
]
}
]
}
]
}
}
|