Bucardo 不再同步
Bucardo doesn't sync anymore
我安装了 Bucardo 并且一切正常,直到几天后我检查同步是否正确复制了我的数据,我发现它没有!
检查 bucardo 日志我可以找到这个警告:
MCP Warning: Source database for sync "sync_name" has column "column_name" of table "table_name" but target database "db_slave" does not
MCP Validation of sync FAILED
MCP Active syncs: 0
MCP Entering main loop
为什么 bucardo 停止同步?为什么如果我检查 "bucardo status" 我可以看到同步状态是 "Good"?
如果我检查验证:
bucardo validate sync_name
输出是:
Validating sync sync_name ... OK
但这当然不行!
问题是否与我 运行 在我的主数据库上进行迁移有关?
我该如何解决这个问题,使 bucardo 再次同步?
提前致谢!
你知道吗,有时,只是有时,它有助于 (1) 浏览项目提供的文档,以及 (2) 阅读错误消息,它告诉你确切的不满意之处。
https://bucardo.org/wiki/Bucardo/FAQ#Can_Bucardo_replicate_DDL.3F
正如@Richard Huxton 所建议的,我可以在 Bucardo Documentation.
中找到答案
由于 DDL 是操作数据库模式的方式,因此我要寻找的确切内容是:
Bucardo能否复制DDL?
答案不是。
因此,如果源数据库的架构发生变化,Bucardo 将停止同步。
就我而言,我使用的是 Bucardo,因为我的源数据库在 AWS RDS 上,所以我无法手动配置 Postgres 享受他的 Streaming Replication
我安装了 Bucardo 并且一切正常,直到几天后我检查同步是否正确复制了我的数据,我发现它没有!
检查 bucardo 日志我可以找到这个警告:
MCP Warning: Source database for sync "sync_name" has column "column_name" of table "table_name" but target database "db_slave" does not
MCP Validation of sync FAILED
MCP Active syncs: 0
MCP Entering main loop
为什么 bucardo 停止同步?为什么如果我检查 "bucardo status" 我可以看到同步状态是 "Good"?
如果我检查验证:
bucardo validate sync_name
输出是:
Validating sync sync_name ... OK
但这当然不行!
问题是否与我 运行 在我的主数据库上进行迁移有关? 我该如何解决这个问题,使 bucardo 再次同步?
提前致谢!
你知道吗,有时,只是有时,它有助于 (1) 浏览项目提供的文档,以及 (2) 阅读错误消息,它告诉你确切的不满意之处。
https://bucardo.org/wiki/Bucardo/FAQ#Can_Bucardo_replicate_DDL.3F
正如@Richard Huxton 所建议的,我可以在 Bucardo Documentation.
中找到答案由于 DDL 是操作数据库模式的方式,因此我要寻找的确切内容是:
Bucardo能否复制DDL?
答案不是。
因此,如果源数据库的架构发生变化,Bucardo 将停止同步。
就我而言,我使用的是 Bucardo,因为我的源数据库在 AWS RDS 上,所以我无法手动配置 Postgres 享受他的 Streaming Replication