AWS Aurora Postgresql 是否进行自动查询拆分

Does AWS Aurura Postgresql do automatic query splitting

我正在尝试确定 Aurora Postgres 集群端点是否在 reader 和 writer/s 之间执行自动查询读写拆分?或者我需要使用 pgpool2 之类的东西进行拆分?

我尝试用 read/writes 推它,但看起来只有 reader 被击中了?

but it looks like only the reader is being hit?

只有 writer 应该通过集群端点命中。

The cluster endpoint connects you to the primary instance for the DB cluster. You can perform both read and write operations using the cluster endpoint.

https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Aurora.Connecting.html

Aurora 不进行 read/write 拆分。它为您提供了一个集群端点,它自动指向集群的当前写入器,以及一个 read-only 端点,它将您连接到任何一个读取器。

如果集群只有一个实例(Aurora 在技术上不要求您有任何读取器,但在发生故障时恢复将需要更多时间,因为一个实例必须由系统如果失败——但不会丢失任何数据)然后两个端点都会将您带到编写器。