Single-region datastore behind a multi-region SLA

errordatastore-single-region

The design promises multi-region availability, but this datastore sits in one region and does not replicate. A region outage takes the system of record with it.

Severity
error
Selects
every node of kind sql-database
Components in scope
76
What it checks

It looks at every node of kind sql-database, and fires when:

  • — all of these hold:
  • — the design requirement `availability.multiRegion` is true
  • — the node sits inside exactly 1 region group
  • — the node's `replication` is "none"
Message
Datastore '{{node.id}}' is single-region with no replication, but the design requires multi-region availability.

{{node.id}} style paths are filled in from the node, the edge or the design the finding is about.

Applies to · 76 components
Tripped by · 5

Reference designs whose broken twin names this rule in its header. The gate reads the same header, and fails when a rule no design trips.

Source
# yaml-language-server: $schema=../schema/rule.schema.json
# The design promises multi-region availability, but this datastore lives in one region
# with no replication. A region outage takes the system of record with it.
# Tripped by designs/multi-region-web.broken.yaml.
schemaVersion: "1"
type: "rule"
id: "datastore-single-region"
severity: "error"
select:
  node:
    kind: "sql-database"
when:
  all:
    - requirement: "availability.multiRegion"
      equals: true
    - inGroup:
        kind: "region"
        count:
          eq: 1
    - prop: "replication"
      equals: "none"
message: "Datastore '{{node.id}}' is single-region with no replication, but the design requires multi-region availability."

The same page as markdown, for an agent: /catalogue/rules/datastore-single-region.md