使用 AWS re:Post 即表示您同意 AWS re:Post 使用條款

Use RDS Postgres Replicas as a cluster

0

RDS Postgres allows adding up to 5 replicas. But when I create a replica, it creates it as a single instance, not as a cluster. If I want to add RDS Postgres Replicas in a cluster, so that they all can share load from my application, how can I do this ? (so that application can handle more load)

I know this is possible with Aurora replicas, as Aurora creates a cluster of replicas which has single endpoint and which can scale in or scale out. But All normal RDS Postgres Replicas are created like single instances with different endpoints.

Is it possible to make RDS postgres replicas as a cluster with 1 endpoint?

2 個答案
1
已接受的答案

RDS replicas do not provide out of the box load balancing capability amongst all running readers. Each once has its own endpoint, and you would have to manually put a load balancer/driver in front of it for re-routing connections as per requirement.

AWS
已回答 3 年前
0

In Aurora the single cluster endpoint will always connect to the single read/write instance in the cluster. The replicas are read only and must be chosen explicitly by the application in order to be used. RDS replicas function the same way. In order to switch between them you need to run a load balancer for the DB or you need to have your application choose which database to use.

已回答 3 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南