grafana / helm-charts

Apache License 2.0
1.65k stars 2.27k forks source link

Loki-distrubuted ruler persistent volume incorrect when replicas > 1 #612

Open nniehoff opened 3 years ago

nniehoff commented 3 years ago

If you deploy the loki-distributed chart setting the ruler.replicas to 2 and the ruler.persistence.enabled to true only 1 pvc gets created preventing the 2nd pod from starting.

kubicgruenfeld commented 2 years ago

According to documentation, to use recording rules, the ruler should be a statefulset anyway to make use of the wal: https://grafana.com/docs/loki/latest/operations/recording-rules/#write-ahead-log-wal