Skip to content
Snippets Groups Projects
Commit b05519e9 authored by Jan David Mol's avatar Jan David Mol
Browse files

Merge branch 'L2SS-1753-avoid-vector-oom-kill' into 'master'

Resolve L2SS-1753 "Avoid vector oom kill"

Closes L2SS-1753

See merge request !855
parents 76c52ec5 89e4af9a
No related branches found
No related tags found
1 merge request!855Resolve L2SS-1753 "Avoid vector oom kill"
...@@ -55,7 +55,7 @@ job "log-scraping" { ...@@ -55,7 +55,7 @@ job "log-scraping" {
task "vector" { task "vector" {
driver = "docker" driver = "docker"
config { config {
image = "timberio/vector:0.32.1.custom.989ad14-distroless-static" image = "timberio/vector:0.37.0.custom.2ca601b-distroless-static"
ports = ["api"] ports = ["api"]
} }
# docker socket volume mount # docker socket volume mount
...@@ -71,8 +71,8 @@ job "log-scraping" { ...@@ -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 # resource limits are a good idea because you don't want your log collection to consume all resources available
resources { resources {
cpu = 50 # 500 MHz cpu = 50
memory = 100 # 256MB memory = 256
} }
# template with Vector's configuration # template with Vector's configuration
template { template {
...@@ -119,9 +119,6 @@ healthchecks.require_healthy = true ...@@ -119,9 +119,6 @@ healthchecks.require_healthy = true
.nomad.task = .label."com.hashicorp.nomad.task_name" .nomad.task = .label."com.hashicorp.nomad.task_name"
.nomad.group = .label."com.hashicorp.nomad.task_group_name" .nomad.group = .label."com.hashicorp.nomad.task_group_name"
.nomad.namespace = .label."com.hashicorp.nomad.namespace" .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 # delete labels that vary too much or are duplicates
del(.label) del(.label)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment