github.com/bigcommerce/nomad@v0.9.3-bc/e2e/deployment/input/deployment_auto1.nomad (about)

     1  job "deployment_auto.nomad" {
     2    datacenters = ["dc1"]
     3  
     4    group "one" {
     5      count = 3
     6  
     7      update {
     8        max_parallel = 3
     9        auto_promote = true
    10        canary = 2
    11      }
    12  
    13      task "one" {
    14        driver = "raw_exec"
    15  
    16        config {
    17  	command = "/bin/sleep"
    18  	# change args to update the job, the only changes
    19  	args = ["1000001"]
    20        }
    21  
    22        resources {
    23  	cpu    = 20
    24  	memory = 20
    25        }
    26      }
    27    }
    28  
    29    group "two" {
    30      count = 3
    31  
    32      update {
    33        max_parallel = 2
    34        auto_promote = true
    35        canary = 2
    36        min_healthy_time = "2s"
    37      }
    38  
    39      task "two" {
    40        driver = "raw_exec"
    41  
    42        config {
    43  	command = "/bin/sleep"
    44  	# change args to update the job, the only changes
    45  	args = ["2000001"]
    46        }
    47  
    48        resources {
    49  	cpu    = 20
    50  	memory = 20
    51        }
    52      }
    53    }
    54  }