- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我有一个 Postgres BDR 集群,它有 3 个节点“Ready”和 3 个节点“Parted”。
如果我执行 SELECT * FROM bdr.bdr_nodes
,将显示以下信息:
-[ RECORD 1 ]------+-------------------------
node_sysid | 6153716379158074503
node_timeline | 1
node_dboid | 16385
node_status | r
node_name | node3
node_local_dsn | host=x.x.x.241 [...]
node_init_from_dsn | host=x.x.x.47 [...]
-[ RECORD 2 ]------+-------------------------
node_sysid | 6153716914784688297
node_timeline | 1
node_dboid | 16385
node_status | r
node_name | node2
node_local_dsn | host=x.x.x.5 [...]
node_init_from_dsn | host=x.x.x.47 [...]
-[ RECORD 3 ]------+-------------------------
node_sysid | 6170758438846557459
node_timeline | 1
node_dboid | 16384
node_status | r
node_name | node4
node_local_dsn | host=x.x.x.128 [...]
node_init_from_dsn | host=x.x.x.47 [...]
-[ RECORD 4 ]------+-------------------------
node_sysid | 6153716402564903569
node_timeline | 1
node_dboid | 16385
node_status | k
node_name | node1
node_local_dsn | host=x.x.x.47 [...]
node_init_from_dsn |
-[ RECORD 5 ]------+-------------------------
node_sysid | 6170830020100809103
node_timeline | 1
node_dboid | 16385
node_status | k
node_name | node6
node_local_dsn | host=x.x.x.48 [...]
node_init_from_dsn | host=x.x.x.241 [...]
-[ RECORD 6 ]------+-------------------------
node_sysid | 6170839982079996801
node_timeline | 1
node_dboid | 16385
node_status | c
node_name | node8
node_local_dsn | host=x.x.x.142 [...]
node_init_from_dsn | host=x.x.x.241 [...]
-[ RECORD 7 ]------+-------------------------
node_sysid | 6170833985333433816
node_timeline | 1
node_dboid | 16385
node_status | k
node_name | node7
node_local_dsn | host=x.x.x.48 [...]
node_init_from_dsn | host=x.x.x.241 [...]
我正在尝试加入 node8
。但这不会发生。错误如下:
d= p=5521 a=ERROR: 08006: could not connect to the primary server: could not connect to server: Connection timed out
Is the server running on host "x.x.x.48" and accepting
TCP/IP connections on port 5432?
d= p=5521 a=DETAIL: Connection string is 'host=x.x.x.48 [...]'
该错误意味着它正在尝试连接到已被杀死或删除的节点。为什么要尝试连接到被杀死或删除的节点?我该如何解决这种情况?
以下命令用于加入node8
SELECT bdr.bdr_group_join(
local_node_name := 'node8',
node_external_dsn := 'host=x.x.x.142 [...]',
join_using_dsn := 'host=x.x.x.241 [...]'
);
BDR 已根据 this instructions 安装(Debian Wheezy):
curl -sSL https://manageacloud.com/api/cm/configuration/postgresql-bdr/debian/manageacloud-production-script.sh | bash
表bdr.bdr_connections
:
-[ RECORD 1 ]----------+---------------------
conn_sysid | 6170839982079996801
conn_timeline | 1
conn_dboid | 16385
conn_origin_sysid | 0
conn_origin_timeline | 0
conn_origin_dboid | 0
conn_is_unidirectional | f
conn_dsn | host=x.x.x.142 [...]
conn_apply_delay |
conn_replication_sets | {default}
-[ RECORD 2 ]----------+----------------------
conn_sysid | 6153716402564903569
conn_timeline | 1
conn_dboid | 16385
conn_origin_sysid | 0
conn_origin_timeline | 0
conn_origin_dboid | 0
conn_is_unidirectional | f
conn_dsn | host=x.x.x.47 [...]
conn_apply_delay |
conn_replication_sets | {default}
-[ RECORD 3 ]----------+-----------------------
conn_sysid | 6153716379158074503
conn_timeline | 1
conn_dboid | 16385
conn_origin_sysid | 0
conn_origin_timeline | 0
conn_origin_dboid | 0
conn_is_unidirectional | f
conn_dsn | host=x.x.x.241 [...]
conn_apply_delay |
conn_replication_sets | {default}
-[ RECORD 4 ]----------+-----------------------
conn_sysid | 6153716914784688297
conn_timeline | 1
conn_dboid | 16385
conn_origin_sysid | 0
conn_origin_timeline | 0
conn_origin_dboid | 0
conn_is_unidirectional | f
conn_dsn | host=x.x.x.5 [...]
conn_apply_delay |
conn_replication_sets | {default}
-[ RECORD 5 ]----------+-----------------------
conn_sysid | 6170758438846557459
conn_timeline | 1
conn_dboid | 16384
conn_origin_sysid | 0
conn_origin_timeline | 0
conn_origin_dboid | 0
conn_is_unidirectional | f
conn_dsn | host=x.x.x.128 [...]
conn_apply_delay |
conn_replication_sets | {default}
版本:
# SELECT bdr.bdr_version();
bdr_version
-------------------
0.9.1-2015-05-26-
(1 row)
最佳答案
这是 BDR 中的错误。我刚刚在我的 bdr-plugin/next
树的本地副本中修复了它,并将更改推送到 bdr-plugin/REL0_9_STABLE
以包含在 0.9.3 中一次我已经在本地测试过了。
问题是在作为节点加入的一部分在对等节点上创建插槽期间,我们没有根据 bdr.bdr_nodes.state
过滤掉 bdr.bdr_connections
行.
删除没有相应bdr.bdr_nodes
条目的任何bdr.bdr_connections
条目,或者bdr.bdr_nodes
条目有state = 'k'
在 0.9.2 及更早版本中解决此问题。
关于postgresql - 加入 Postgres BDR 节点使用过时的 DSN,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31375689/
我是非洲的一名学生,在我们的土地上,确实存在缓慢且昂贵的互联网连接,这就是为什么每当我们听到安装软件的“在线存储库”方法这个词时都会害怕得发抖。该死的,这通常意味着你必须去别处看看。 问题。(如果没有
我正在使用 OpenCV 1 进行一些图像处理,并且对 cvSetErrMode 函数(它是 CxCore 的一部分)感到困惑。 OpenCV 具有三种错误模式。 叶:调用错误处理程序后程序终止。 父
安装新版 IDEA.14 后,(maven)项目的部署显着增加(从 15 秒增加到 47 秒)。 最佳答案 原因: IDEA 使用 捆绑 Maven的版本 解决方案:设置 (ctrl+alt+S) -
在 .NET 中,您可以将某些方法标记为过时,以便开发人员在尝试使用已弃用的方法时收到警报。 Private Sub FormerMethod() 问题是您只能在您控制的类中执行此操作。当您希望开发
一段时间以来,我一直在尝试自己解决这个问题,但一直没有成功。当我大约有 10% 的时间重新部署我的 Rails 应用程序时,就会发生这种情况。其他 90% 的时间部署顺利进行。 我试了又试,还是没成功
已关闭。此问题需要 debugging details 。目前不接受答案。 编辑问题以包含 desired behavior, a specific problem or error, and the
我正在学习 HTTP/2 协议(protocol)。它是一个带有小消息帧的二进制协议(protocol)。它允许在单个 TCP 连接上进行流复用。从概念上讲,它似乎与 WebSockets 非常相似。
在 Matlabs 的最新版本中,specgram 函数被 spectrogram 取代,文档说明: Note. To obtain the same results for the removed
我们试图在构建时标记外部类型(如 ConfigurationManager)的使用。 自定义代码分析字典可以提供帮助 [1],但仅限于项目中包含源代码的情况。同样,Obsolete 属性适用于项目中包
我将 Anaconda 与 Python 3 结合使用,并尝试安装 cc 包,这是 uber h3 包的要求。 尝试通过以下方式在 anaconda 命令行中安装时: pip install cc 我
我在 Razor 中创建了一个专门用于显示货币的显示模板,现在我想在我的代码中删除它并替换为接受字符串格式(我可以将其设置为“C”)的标准文本显示模板。 然而,出现了很多次,所以我想使用类似 [Obs
我希望我的网站具有如下所示的 URL: example.com/2010/02/my-first-post 我有我的 Post带 slug 的模型字段('我的第一篇文章')和 published_on
4.7 并喜欢在 qgraphicsview 上叠加两个图像。顶部的图像应是半透明的,以便能够透过它看到。最初,两个图像都是完全不透明的。我期望存在一些为每个像素设置全局 alpha 值的函数,但似乎
总结: 我在我的 Swift 代码中犯了一个错误,我已经修复了它。然后我问自己为什么会这样,我该如何避免。我尝试了一些方法,但没有任何帮助。 我把错误和我的想法放在下面。我希望你能教我避免这种错误的正
我正在尝试重命名在 SVN 中跟踪的 Java 包。这一切似乎都有效。它将代码移动到新包等。然而,噩梦就在那时开始,乐趣就开始了,这取决于你的观点。摆脱旧包很难。 我陷入了“过时”或“不存在”消息的循
我们使用 NLog 或 Serilog 进行日志记录。我们正忙于将系统从 ASP.NET 移植到 ASP.NET Core,这 has logging built in . 理想情况下,我们希望放弃
ETag header 的定义 ( https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/ETag ): The ETag HTTP re
我是一名优秀的程序员,十分优秀!