github.com/smithx10/nomad@v0.9.1-rc1/e2e/rescheduling/input/rescheduling_canary.hcl (about)

     1  job "test5" {
     2    datacenters = ["dc1"]
     3    type        = "service"
     4  
     5    group "t5" {
     6      count = 3
     7  
     8      task "t5" {
     9        driver = "raw_exec"
    10  
    11        config {
    12          command = "bash"
    13          args    = ["-c", "sleep 5000"]
    14        }
    15      }
    16  
    17      update {
    18        max_parallel     = 1
    19        canary           = 1
    20        min_healthy_time = "1s"
    21        auto_revert      = false
    22      }
    23  
    24      restart {
    25        attempts = 0
    26        delay    = "0s"
    27        mode     = "fail"
    28      }
    29  
    30      reschedule {
    31        attempts  = 3
    32        interval  = "5m"
    33        delay     = "5s"
    34        unlimited = false
    35      }
    36    }
    37  }