github.com/Ilhicas/nomad@v1.0.4-0.20210304152020-e86851182bc3/jobspec/test-fixtures/task-scaling-policy-multi-cpu.hcl (about)

     1  job "foo" {
     2    task "bar" {
     3      driver = "docker"
     4  
     5      scaling "cpu" {
     6        enabled = true
     7        min     = 50
     8        max     = 1000
     9  
    10        policy {
    11          test = "cpu"
    12        }
    13      }
    14  
    15      scaling "cpu" {
    16        enabled = true
    17        min     = 50
    18        max     = 1000
    19  
    20        policy {
    21          test = "cpu"
    22        }
    23      }
    24  
    25    }
    26  }
    27