cortex-helm-chart icon indicating copy to clipboard operation
cortex-helm-chart copied to clipboard

Run rulers as a StatefulSet

Open disambiguationuk opened this issue 3 years ago • 2 comments
trafficstars

We're using a sidecar to render and load rules for the ruler. On restart though the ruler would lose it's rules cache definitions until the sidecar grabs a new set of rules. Switching the rulers to run as a StatefulSet would mitigate this issue, are there any gotchas that mean we should run it as a Deployment rather than a StatefulSet?

disambiguationuk avatar Aug 05 '22 17:08 disambiguationuk

We're using a sidecar to render and load rules for the ruler. On restart though the ruler would lose it's rules cache definitions until the sidecar grabs a new set of rules. Switching the rulers to run as a StatefulSet would mitigate this issue, are there any gotchas that mean we should run it as a Deployment rather than a StatefulSet?

No I don't think so. You would have to switch from the default empityDir volumes too

nschad avatar Aug 28 '22 17:08 nschad

Ok we've been doing a bit of work to get this to work with our custom sidecars, it's working but there's some fun with permissions in the default /data/rules path. Will open a PR when it's stable.

disambiguationuk avatar Sep 05 '22 21:09 disambiguationuk

This issue has been automatically marked as stale because it has not had any activity in the past 30 days. It will be closed in 15 days if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Oct 16 '22 02:10 stale[bot]