Closed
Description
Describe the bug
Alertmanager state is not restored from remote storage if replicationFactor == 1: https://github.com/grafana/mimir/blob/main/pkg/alertmanager/state_replication.go#L205
I understand that running replicationFactor at 1 is a bad idea but for dev or staging environments it usually makes sense to keep things simple or cut down on costs.
I was wondering if this is intentional that we skip reading from storage in these cases?
To Reproduce
Steps to reproduce the behavior:
- Run Alertmanager with replicationFactor of 1
- Post an alert to AM
- Kill the AM process
- Observe state is not restored from storage
Expected behavior
State should be read from storage if no replication option is available
Environment
- Infrastructure: k8s
- Deployment tool: manual