Skip to content
Snippets Groups Projects

Resolve L2SS-1753 "Avoid vector oom kill"

Merged Jan David Mol requested to merge L2SS-1753-avoid-vector-oom-kill into master
1 file
+ 3
6
Compare changes
  • Side-by-side
  • Inline
@@ -55,7 +55,7 @@ job "log-scraping" {
task "vector" {
driver = "docker"
config {
image = "timberio/vector:0.32.1.custom.989ad14-distroless-static"
image = "timberio/vector:0.37.0.custom.2ca601b-distroless-static"
ports = ["api"]
}
# docker socket volume mount
@@ -71,8 +71,8 @@ job "log-scraping" {
}
# resource limits are a good idea because you don't want your log collection to consume all resources available
resources {
cpu = 50 # 500 MHz
memory = 100 # 256MB
cpu = 50
memory = 256
}
# template with Vector's configuration
template {
@@ -119,9 +119,6 @@ healthchecks.require_healthy = true
.nomad.task = .label."com.hashicorp.nomad.task_name"
.nomad.group = .label."com.hashicorp.nomad.task_group_name"
.nomad.namespace = .label."com.hashicorp.nomad.namespace"
.nomad.node = .label."com.hashicorp.nomad.node_name"
.nomad.job_id = .label."com.hashicorp.nomad.job_id"
.nomad.node_id = .label."com.hashicorp.nomad.node_id"
# delete labels that vary too much or are duplicates
del(.label)
Loading