{
  "slug": "railway-mysql-postgres-and-redis-add-ha-commands-ff3767a31236",
  "title": "railway mysql, postgres, and redis add HA commands",
  "tools": [
    "railway"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-08-31T20:44:45.000Z",
  "announced_at": "2026-08-31T20:44:45.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When managing HA for a Railway MySQL, PostgreSQL, or Redis database, use the corresponding engine command: `railway mysql ha`, `railway postgres ha`, or `railway redis ha`.",
    "examples": [
      "railway postgres ha status --service <service>",
      "railway postgres ha convert --service <service> --replicas 2",
      "railway mysql ha <subcommand> [options]"
    ],
    "gotchas": [
      "Version: v5.46.0",
      "--service <service>: Targets a service by name or ID. The PostgreSQL HA examples use this selector.",
      "--replicas <count>: Sets the number of replicas for PostgreSQL HA conversion; the documented example uses 2.",
      "Prerequisite: Install the Railway CLI and authenticate with a Railway account before using it.",
      "Prerequisite: For PostgreSQL HA conversion, use a supported official Railway PostgreSQL image, pin a supported major version (14–18), and have no custom start command.",
      "Prerequisite: For MySQL HA conversion, use the official MySQL image or supported Railway MySQL HA data-node image, a supported version (8 or 9) with a versioned tag, and no custom start command.",
      "MySQL and Redis expose `ha` only; MySQL `pitr` is planned for a next PR, and Redis does not expose `pitr`.",
      "PostgreSQL exposes `ha`, `pitr`, and `pgbouncer`. The CLI help lists only capabilities supported by each engine."
    ]
  },
  "why_it_matters": "Manage high availability for a MySQL, PostgreSQL, or Redis database using the Railway CLI.",
  "before": "Use `railway postgres` for HA management; MySQL and Redis HA commands were not available in the CLI.",
  "sources": [
    "https://github.com/railwayapp/cli/releases/tag/v5.46.0",
    "https://github.com/railwayapp/cli/pull/1143",
    "https://docs.railway.com/databases/postgresql-ha",
    "https://docs.railway.com/databases/mysql-ha",
    "https://docs.railway.com/cli"
  ],
  "rank": 0.95027,
  "judge": {
    "publish": true,
    "judge_model": "codex-cli/gpt-6-luna+typesafe/jev-1.13.0",
    "prompt_version": "extract-v7+enrich-v2+judge-v2x3+jev-publish-v1"
  },
  "review_state": "approved",
  "provenance": {
    "run_id": "wave1b-20261016",
    "verdict_id": "wave1b-20261016:wave1b-20261016-9a9ab67e2eeb02c5-0:gate",
    "evidence_hash": "6d0c3becd355c62e3a7feca5655f0d8c8553744b4d544f6524b6428f0e236d6c"
  },
  "review": {
    "draft_hash": "dc64467c9906292dd35c87746d5b7d87c205899dfdf2145b76e96494f3fb5471",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-07T00:00:00.000Z",
    "decision": "wave1b-20261016:gate",
    "reason": "3 of 3 judge runs approved with p_yes >= 0.9 (mean 0.95 >= 0.9; 2 needed) and Jev gave 0.80 (>= 0.6 needed)."
  }
}
