Files
nomad/e2e/metrics/input/cpustress.hcl
Seth Hoenig a28e5b6965 e2e: refactor metrics test to use NSD and WI (#19022)
* e2e: remove old metrics suite

* e2e: install stress on e2e jammy image

* e2e: overhaul metrics test to use nomad service discovery, workload identity

* e2e: format metrics hcl files and copywrite

* e2e: undo tf lock file

* e2e: undo reg auth file perms

* e2e: format cpustress.hcl
2023-11-09 08:21:16 -06:00

47 lines
737 B
HCL

# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: BUSL-1.1
job "cpustress" {
# make sure every node has nonzero cpu usage metrics
type = "system"
group "cpustress" {
constraint {
attribute = "${attr.kernel.name}"
value = "linux"
}
restart {
attempts = 0
mode = "fail"
}
update {
min_healthy_time = "4s"
}
service {
provider = "nomad"
name = "stress"
tags = ["cpu"]
}
task "cpustress" {
driver = "pledge"
config {
command = "stress"
args = ["--cpu", "1"]
promises = "stdio rpath proc"
}
resources {
cpu = 100
memory = 64
}
}
}
}