From b3cc4136cf4ece58feff73d2a6d8fe4080a5b05c Mon Sep 17 00:00:00 2001 From: Raphael Druon Date: Fri, 2 Aug 2024 01:53:32 -0600 Subject: [PATCH] Use systemd memory control --- lustrefs-exporter/lustrefs_exporter.service | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lustrefs-exporter/lustrefs_exporter.service b/lustrefs-exporter/lustrefs_exporter.service index 3ef8367..0358481 100644 --- a/lustrefs-exporter/lustrefs_exporter.service +++ b/lustrefs-exporter/lustrefs_exporter.service @@ -6,6 +6,8 @@ Documentation=https://github.com/whamcloud/lustrefs-exporter Environment=RUST_LOG=info Restart=on-failure ExecStart=/usr/bin/lustrefs_exporter +MemoryHigh=1750M +MemoryMax=2G [Install] WantedBy=multi-user.target