PgPool Replication - 直接插入Master,会不会复制到Slave

PgPool Replication - Directly insert into Master, will it replicate to the Slave

我正在查看带有 PgPool 的 PostgreSQL 9.4 流式复制以实现负载平衡与使用 PgPool 复制。由于 PgPool 复制是基于语句/中间件的,这是否意味着如果我直接在 PgPool 之外更新 Master,它就不会复制? PgPool会检测到master和slave不同步吗?

在此先感谢您的帮助。

If I directly update the Master outside of PgPool it will not replicate?

你是对的。

Will PgPool detect that the master and slave are out of sync?

某种程度上——它可以监视语句并检查所有服务器 return 是否具有相同的结果,具体取决于 replication_stop_on_mismatch.

等配置设置

总的来说,pgpool 复制相当粗糙,你应该使用内置的流复制功能,除非你有很好的理由。