Versions Compared

Key

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

...

Section
bordertrue
Column
width60%
Code Block
languagejs
themeEclipse
titleExtensible HPA Hyper-Threading Policy Example
linenumberstrue
collapsetrue
{
  "service": "hpaHyperThreadingPolicy",
  "policyName": "oofBeijing.hyperThreadingPolicy_vGMuxInfra",
  "description": "Hyper threading policy for vGMuxInfra",
  "templateVersion": "0.0.1",
  "version": "oofBeijing",
  "priority": "3",
  "riskType": "test",
  "riskLevel": "2",
  "guard": "False",
  "content": {
    "hyperThreadingProperties": [
	  {"attribute": "hpaFeature", "value": "NUMA", "operator": "=", "unit": ""},
	  {"attribute": "architecture", "value": "INTELx64", "operator": "=", "unit": ""},
	  {"attribute": "mandatory", "value": "true", "operator": "=", "unit": ""},
	  {"attribute": "score", "value": "4", "operator": "=", "unit": ""},
      {"attribute": "cpuCores", "value": "4", "operator": ">=", "unit": ""},
      {"attribute": "cpuCores", "value": "10", "operator": "<=", "unit": ""},
      {"attribute": "cpuThreads", "value": "2", "operator": ">", "unit": ""},
      {"attribute": "cpuThreadsPolicy", "value": "dedicated", "operator": "=", "unit": ""},
      {"attribute": "cpuSockets", "values": ["2", "4", "6"], "operator": "any", "unit": ""},
	  {"attribute": "memory", "value": 8, "operator": ">", "unit": "GB"}
    ],
    "identity": "hyperThreading_vGMuxInfra",
    "policyScope": ["vCPE", "US", "INTERNATIONAL", "ip", "vGMuxInfra"],
    "type": "hpaHyperThreadingPolicy",
    "resourceInstanceType": ["vGMuxInfra"]
  }
}
Column
width45%
Expand
titleComments and Notes: HPA Hyper-Threading Policy Example
  • Underlying model to generate this policy example is extensible
    and can be used to generate other HPA policies.
  • The value domain of the operator field is <, <=, >, >=, =, !=,
    any, all, many where any represents one from a set,
    all represents all the values of a set, and many represents more
    than one from a set.
  • The model can capture simple expressions. This example captures;
    4<=cpuCores<=10, cpuThreads>2, cpuThreadsPolicy=dedicated,
    cpuSockets is one from {2, 4, 6}, memory>8GB, etc.
  • Instead of modeling policy scope over multiple explicite dimentions,
    it is modeled as a list of tags/strings to achieve extensiblity and
    support model-agnostic getConfig query.

...