github.com/hernad/nomad@v1.6.112/e2e/scaling/input/namespace_default_2.nomad (about) 1 # Copyright (c) HashiCorp, Inc. 2 # SPDX-License-Identifier: MPL-2.0 3 4 job "horizontally_scalable" { 5 datacenters = ["dc1"] 6 type = "service" 7 8 update { 9 health_check = "task_states" 10 } 11 12 constraint { 13 attribute = "${attr.kernel.name}" 14 value = "linux" 15 } 16 17 group "horizontally_scalable" { 18 19 count = 4 20 21 scaling { 22 min = 2 23 max = 3 24 enabled = true 25 26 policy {} 27 } 28 29 task "test" { 30 driver = "raw_exec" 31 32 config { 33 command = "bash" 34 args = ["-c", "sleep 15000"] 35 } 36 } 37 } 38 }