> For the complete documentation index, see [llms.txt](https://docs.perfectscale.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.perfectscale.io/2.0-self-hosted-or-perfectscale-documentation/product-overview/high-availability-overview.md).

# High Availability overview

## PostgreSQL High Availability <a href="#postgresql-ha" id="postgresql-ha"></a>

Postgres in high-availability mode uses three Postgres instances and one PgPool instance. For HA, Postgres uses RepMgr, part of the bitnami/postgresql-repmgr image.&#x20;

RepMgr ensures HA using automatic membership control. If the primary is down, any of the replica nodes will be promoted as primary to avoid data loss.&#x20;

PgPool handles the connection to the Postgres instances and is responsible for spreading the queries among these instances.

## MinIO High Availability <a href="#minio-ha" id="minio-ha"></a>

MinIO HA mode uses two standalone instances with Site replication and a single load balancer (Kubernetes service) in front of them.

MinIO peer sites can proxy GET/HEAD requests for an object to other peers to check if it exists. This allows a site that is healing or lagging behind other peers to return an object that persisted in other sites.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.perfectscale.io/2.0-self-hosted-or-perfectscale-documentation/product-overview/high-availability-overview.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
