--- alwaysopen: false categories: - docs - operate - rs db_type: database description: Verify if a Redis Software database is available to perform read and write operations and can respond to queries from client applications. linkTitle: Check database availability title: Check database availability for monitoring and load balancers toc: 'true' weight: 80 aliases: /operate/rs/databases/durability-ha/db-availability/ url: '/operate/rs/7.22/monitoring/db-availability/' --- You 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. {{}} Database availability does not guarantee data availability. {{}} ## Check database availability for monitoring To monitor database availability, use the following REST API request: ```sh GET /v1/bdbs//availability ``` If 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. Returns the status code 200 OK if the database is available. If the database is unavailable, returns an error status code and a JSON object that contains [`error_code` and `description` fields]({{}}). ## Check local database endpoint availability for load balancers To check database availability when using a load balancer and the recommended `all-nodes` proxy policy, use the local database endpoints for each node: ```sh GET /v1/local/bdbs//endpoint/availability ``` Returns HTTP status code 200 OK if all primary (master) shards are reachable from the local database endpoint. If the local database endpoint is unavailable, returns an error status code and a JSON object that contains [`error_code` and `description` fields]({{}}). ## Availability by database status The following table shows the relationship between a database's status and availability. For more details about the database status values, see [BDB status field]({{}}). | Database status | Availability | |-----------------|--------------| | active | Available | | active-change-pending | Available | | creation-failed | :x: Not available | | delete-pending | :warning: Availability not guaranteed | | import-pending | Available | | pending | Available | | recovery | :x: Not available | ## Known issues - RS155734: Endpoint availability metrics do not work as expected due to a calculation error.