github.com/Ilhicas/nomad@v1.0.4-0.20210304152020-e86851182bc3/e2e/scaling/input/namespace_default_2.nomad (about)

     1  job "horizontally_scalable" {
     2    datacenters = ["dc1"]
     3    type        = "service"
     4  
     5    update {
     6      health_check = "task_states"
     7    }
     8  
     9    constraint {
    10      attribute = "${attr.kernel.name}"
    11      value     = "linux"
    12    }
    13  
    14    group "horizontally_scalable" {
    15  
    16      count = 4
    17  
    18      scaling {
    19        min     = 2
    20        max     = 3
    21        enabled = true
    22  
    23        policy {}
    24      }
    25  
    26      task "test" {
    27        driver = "raw_exec"
    28  
    29        config {
    30          command = "bash"
    31          args    = ["-c", "sleep 15000"]
    32        }
    33      }
    34    }
    35  }