Postgresql 复制:londiste 与 slony

发布于 2024-10-18 02:28:22 字数 280 浏览 3 评论 0原文

有没有人有很多使用 londiste 的经验?它是用于 postgres 复制的 slony 的替代方案。我一直在用头撞墙,试图让懒惰以我需要的方式工作,并正在寻找任何更简单的方法。

londiste 似乎是一个不错的选择,但在我决定更换之前,我想看看是否有人有任何优点/缺点。

Has anyone had much experience using londiste? It is an alternative to slony for postgres replication. I have been beating my head against the wall trying to get slony to work the way I need it and was looking for any easier way.

londiste seems like a good alternative, but I wanted to see if anyone has any pros/cons before I commit to a switch.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

℡Ms空城旧梦 2024-10-25 02:28:22

我已经使用了这两种方法,并且根据我的要求,Londiste 是一个不错的选择。
我们有一个简单的设置,其中从临时服务器复制表的子集,以通过大批量更新和插入以及在 postgres 8.4、Centos 5.5 和 skytools 2 上运行的日内较小更新进行生存,我们还使用它作为队列组件基于事件的行动。以前我使用过 1.* 系列的 Slony,所以我无法对更新的版本发表评论。

Londiste 的一些优点

  1. 设置简单
  2. 一般易于管理
  3. 8 个月内没有出现任何复制稳健性问题生产用途
  4. 也可以用作复制之外的通用排队系统,并且编写自己的消费者非常简单

一些缺点

  1. 文档非常少
  2. 您在实现 ddl 更改时需要小心
  3. 它不会阻止您进行更改从机
  4. 不能用于级联复制或故障转移/切换用例

我将限制我对 Slony 的评论,因为它的设置和管理很复杂,而且我使用的版本在对网络问题的容忍度方面并不理想Londiste 但可以用于级联复制和切换用例。

I have used both and for my requirements Londiste is a good option.
We have a simple set up where a subset of tables is replicated from a staging server to live by large batch updates and insert and also intraday smaller updates running on postgres 8.4 and Centos 5.5 and skytools 2 and we also use it as the queue component for event based actions. Previously I have used Slony from the 1.* series so I can't comment on more recent versions.

Some Pros for Londiste

  1. Simple to set up
  2. Generally simple to administer
  3. Haven't had any issues with robustness of replication in 8 months of production use
  4. Also can be used as a generic queing system outside of replication and it is quite simple to write your own consumer

Some Cons

  1. Documentation is pretty scant
  2. You need to be careful when implementing ddl changes
  3. It won't stop you from making changes in the slave
  4. Can't be used for cascading replication or failover/switchover use case

I will limit my comment on Slony to my experience that it was complex to set up and administer and the version I used did not compare favourably on tolerance to network issues with Londiste but could have been used for cascading replication and switchover use cases.

一张白纸 2024-10-25 02:28:22

正如之前提到的,Londiste 确实更容易使用。从 2012 年 3 月发布的版本 3 开始,Londiste 支持级联复制和故障转移/切换,以及许多其他新的酷功能。

As mentioned before, Londiste is simpler to use, indeed. And as of version 3, released in March 2012, Londiste supports cascading replication and failover/switchover, as well as a bunch of other new cool features.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文