3
0

OP#179 add service control units for memory consumption

This commit is contained in:
2025-12-03 12:24:44 +01:00
parent c1f8eb8adf
commit 1c95467582
4 changed files with 21 additions and 0 deletions

View File

@@ -2,6 +2,12 @@
##### File created by Puppet - manual changes will be overwritten #####
###############################################################################
[Service]
MemoryMax=<%= @ps_max_mem %>
MemoryHigh=<%= @ps_high_mem %>
MemorySwapMax=<%= @ps_swap_mem %>
OOMScoreAdjust=<%= @ps_oom_score %>
Environment="GOMAXPROCS=<%= @ps_max_procs %>"
ExecStart=
ExecStart=/usr/bin/prometheus \
--config.file=/etc/prometheus/prometheus.yml \