mirror of
https://github.com/kemko/nomad.git
synced 2026-01-04 17:35:43 +03:00
* 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
47 lines
737 B
HCL
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
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|