Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

scale: eval creation on scaling assuming service job type #17091

Closed
jrasell opened this issue May 5, 2023 · 0 comments · Fixed by #17092
Closed

scale: eval creation on scaling assuming service job type #17091

jrasell opened this issue May 5, 2023 · 0 comments · Fixed by #17092
Assignees
Labels
stage/accepted Confirmed, and intend to work on. No timeline committment though. theme/autoscaling Issues related to supporting autoscaling type/bug

Comments

@jrasell
Copy link
Member

jrasell commented May 5, 2023

Tested on main, locally on M2 MacOS.

When scaling a job, the resulting evaluation is always created with Type = "Service" regardless of the type parameter within the jobspec that is being scaled. This can result in jobs of type batch being scaled and the created evaluation detailing type service.

JobSpec:

job "example" {
  datacenters = ["dc1"]
  type        = "batch"

  group "cache" {
    count = 2
    network {
      port "db" {
        to = 6379
      }
    }
    task "redis" {
      driver = "docker"
      config {
        image = "redis:7"
        ports = ["db"]
      }
    }
  }
}

When scaling the above job via nomad job scale example 10 the following evaluation is created.

ID                 = 97bc2abd
Create Time        = 31s ago
Modify Time        = 31s ago
Status             = complete
Status Description = complete
Type               = service
TriggeredBy        = job-scaling
Job ID             = example
Namespace          = default
Priority           = 50
Placement Failures = false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stage/accepted Confirmed, and intend to work on. No timeline committment though. theme/autoscaling Issues related to supporting autoscaling type/bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant