简体   繁体   English

PgPool复制-直接插入Master,它将复制到Slave

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

I am looking at PostgreSQL 9.4 Streaming Replication with PgPool for Load Balancing vs. using PgPool replication. 我正在查看使用PgPool实现负载平衡的PostgreSQL 9.4流式复制与使用PgPool复制。 Since PgPool replication is statement / middleware based does it mean that if I directly update the Master outside of PgPool it will not replicate? 由于PgPool复制是基于语句/中间件的,这是否意味着如果我直接在PgPool之外更新Master,它将不会复制? Will PgPool detect that the master and slave are out of sync? PgPool是否会检测到主机和从机不同步?

Thanks in advance for your help. 在此先感谢您的帮助。

If I directly update the Master outside of PgPool it will not replicate? 如果我直接在PgPool之外更新Master,它将不会复制?

You are correct. 你是对的。

Will PgPool detect that the master and slave are out of sync? PgPool是否会检测到主机和从机不同步?

Sort of--it can monitor statements and check to see if all servers return the same result depending on configuration settings such as replication_stop_on_mismatch . 排序-它可以监视语句并检查所有服务器是否根据配置设置(例如replication_stop_on_mismatch返回相同的结果。

Overall, pgpool replication is quite crude, you ought to use the built-in streaming replication feature unless you have a really good reason otherwise. 总体而言,pgpool复制是非常粗糙的,除非您有充分的理由,否则应使用内置的流复制功能。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM