github.com/anth0d/nomad@v0.0.0-20221214183521-ae3a0a2cad06/e2e/events/input/large-job.nomad (about)

     1  job "events" {
     2    datacenters = ["dc1"]
     3  
     4    constraint {
     5      attribute = "${attr.kernel.name}"
     6      value     = "linux"
     7    }
     8  
     9    group "one" {
    10      count = 3
    11  
    12      update {
    13        max_parallel     = 3
    14        auto_promote     = true
    15        canary           = 2
    16        min_healthy_time = "1s"
    17      }
    18  
    19      task "one" {
    20        driver = "raw_exec"
    21  
    22        env {
    23          version = "1"
    24        }
    25  
    26        config {
    27          command = "/bin/sleep"
    28  
    29          # change args to update the job, the only changes
    30          args = ["1000000"]
    31        }
    32  
    33        resources {
    34          cpu    = 20
    35          memory = 2000000
    36        }
    37      }
    38    }
    39  }
    40