Skip to content

Alertmanager state is not restored from remote storage if replicationFactor == 1 #2245

Closed
@callumj

Description

@callumj

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:

  1. Run Alertmanager with replicationFactor of 1
  2. Post an alert to AM
  3. Kill the AM process
  4. 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

Additional Context

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions