Content differences:
--- /etc/systemd/system/thanos-compact.service.d/puppet-override.conf.orig
+++ /etc/systemd/system/thanos-compact.service.d/puppet-override.conf
@@ -1,7 +1,15 @@
[Service]
+
+# Local restart is blocked if a new relabel-config-file is pending deployment via the cookbook.
+# In this case, the restart must be performed using the sre.o11y.thanos-compact-restart cookbook.
+
Slice=thanos.slice
# force sigkill due to https://github.com/thanos-io/thanos/issues/6398
SendSIGKILL=yes
+ExecReload=
+ExecReload=/bin/bash -c "/usr/bin/cmp -s /etc/thanos-compact/relabel.yaml.unreferenced /etc/thanos-compact/relabel.yaml && /bin/kill -HUP $MAINPID || (echo 'New relabel config file pending deployment. Restart must be performed using the sre.o11y.thanos-compact-restart cookbook.'; exit 1)"
+ExecStartPre=
+ExecStartPre=/bin/bash -c "/usr/bin/cmp -s /etc/thanos-compact/relabel.yaml.unreferenced /etc/thanos-compact/relabel.yaml || (echo 'New relabel config file pending deployment. Restart must be performed using the sre.o11y.thanos-compact-restart cookbook.'; exit 1)"
ExecStart=
ExecStart=/usr/bin/thanos compact \
--http-address 0.0.0.0:12902 \
@@ -15,4 +23,5 @@
--compact.concurrency 2 \
--downsample.concurrency 2 \
--block-meta-fetch-concurrency 96 \
+ --selector.relabel-config-file /etc/thanos-compact/relabel.yaml \
--wait
Exec[systemd daemon-reload for thanos-compact.service (thanos-compact)]
- Parameters differences:
--- Exec[systemd daemon-reload for thanos-compact.service (thanos-compact)].orig
+++ Exec[systemd daemon-reload for thanos-compact.service (thanos-compact)]
+ notify => ['Service[thanos-compact]']