{
  "id": "db-availability",
  "title": "Check database availability for monitoring and load balancers",
  "url": "https://redis.io/docs/latest/operate/rs/7.8/monitoring/db-availability/",
  "summary": "Verify if a Redis Software database is available to perform read and write operations and can respond to queries from client applications.",
  "content": "\nYou can use the [database availability API]() to verify whether a Redis Software database is available to perform read and write operations and can respond to queries from client applications. Load balancers and automated monitoring tools can use this API to monitor database availability.\n\n\nDatabase availability does not guarantee data availability.\n\n\n## Check database availability for monitoring\n\nTo monitor database availability, use the following REST API request:\n\n```sh\nGET /v1/bdbs/\u003cdatabase_id\u003e/availability\n```\n\nIf the OSS Cluster API is enabled, this request verifies all endpoints for this database are available. Otherwise, it verifies the database has at least one available endpoint.\n\nReturns the status code 200 OK if the database is available.\n\nIf the database is unavailable, returns an error status code and a JSON object that contains [`error_code` and `description` fields]().\n\n## Check local database endpoint availability for load balancers\n\nTo check database availability when using a load balancer and the recommended `all-nodes` proxy policy, use the local database endpoints for each node:\n\n```sh\nGET /v1/local/bdbs/\u003cdatabase_id\u003e/endpoint/availability\n```\n\nReturns the status code 200 OK if the local database endpoint is available.\n\nIf the local database endpoint is unavailable, returns an error status code and a JSON object that contains [`error_code` and `description` fields]().\n\n## Availability by database status\n\nThe following table shows the relationship between a database's status and availability. For more details about the database status values, see [BDB status field]().\n\n| Database status | Availability |\n|-----------------|--------------|\n| active          | \u003cspan title=\"Available\"\u003e\u0026#x2705;\u003c/span\u003e Available |\n| active-change-pending | \u003cspan title=\"Available\"\u003e\u0026#x2705;\u003c/span\u003e Available |\n| creation-failed | \u003cspan title=\"Not available\"\u003e:x:\u003c/span\u003e Not available |\n| delete-pending  | \u003cspan title=\"Availability not guaranteed\" class=\"font-serif\"\u003e:warning:\u003c/span\u003e Availability not guaranteed |\n| import-pending  | \u003cspan title=\"Available\"\u003e\u0026#x2705;\u003c/span\u003e Available |\n| pending         | \u003cspan title=\"Available\"\u003e\u0026#x2705;\u003c/span\u003e Available |\n| recovery        | \u003cspan title=\"Not available\"\u003e:x:\u003c/span\u003e Not available |\n",
  "tags": ["docs","operate","rs"],
  "last_updated": "2026-04-01T08:10:08-05:00"
}

