Nomad: system job need not support scaling stanza

Created on 21 Jul 2020  路  1Comment  路  Source: hashicorp/nomad

Nomad version

Nomad v0.12.0 (8f7fbc8e7b5a4ed0d0209968faf41b238e6d5817)

Operating system and Environment details

CentOS 7/8

Issue

If the job type is system, it need not allow the scaling stanza ...

Reproduction steps

Use the example job, and then add the scaling stanza as below.

Job file (if appropriate)

job "system_multiple" {
  type = "system"

  datacenters = ["dc1"]

  group "cache" {
    count = 1

    scaling {
      enabled = true
      min = 1
      max = 5
    }

    task "redis" {
      driver = "docker"

      config {
        image = "redis:3.2"

        port_map {
          db = 6379
        }
      }

      resources {
        cpu    = 500
        memory = 256

        network {
          mbits = 10
          port "db" {}
        }
      }
    }
  }
}

Tagging:
@cgbaker

themautoscaling typbug

Most helpful comment

thanks for writing this up @shantanugadgil!

>All comments

thanks for writing this up @shantanugadgil!

Was this page helpful?
0 / 5 - 0 ratings