AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / server / 问题 / 808496
Accepted
nwarriorch
nwarriorch
Asked: 2016-10-12 16:02:05 +0800 CST2016-10-12 16:02:05 +0800 CST 2016-10-12 16:02:05 +0800 CST

corosync 1.4 是否支持公共 IP?

  • 772

我正在创建一个基于云的集群,所以现在我使用单播连接到其他起搏器/corosync 节点。我能够使用私有 IP 创建一个集群。要创建跨区域集群,我想使用公共 IP。我尝试使用通用配置,为 memberaddr 提供公共 IP,为 bindnetaddr 提供节点的公共 IP。像这样的东西

  interface {

           member {
             memberaddr: <public ip 1>
           }
           member {
              memberaddr: <public ip 2>
           }
           member {
              memberaddr: <public ip 3>
           }
           ringnumber: 0
           bindnetaddr: <current nodes public Ip>
           mcastport: 5405
           ttl: 1
  }
  transport: udpu

这是行不通的。难道我做错了什么 ?我能找到的所有参考资料都是 corosync 2.x

谢谢

high-availability amazon-web-services pacemaker corosync linux-ha
  • 2 2 个回答
  • 247 Views

2 个回答

  • Voted
  1. Matt Kereczman
    2016-10-13T08:51:39+08:002016-10-13T08:51:39+08:00

    如果 Corosync 配置适用于您的专用网络,它也应该适用于您的公共网络。我将验证是否存在允许 UDP 端口 5404 和 5405 在节点之间通信的防火墙规则。

    此外,bindnetaddr不一定是 IP 地址;它正在寻找一个网络地址。只需确定您为网络掩码使用了正确的网络地址。

    从 Corosync.conf 手册页:

    bindnetaddr
              This specifies the network address the corosync executive should
              bind to.
    
              bindnetaddr should be an IP address configured on the system, or
              a network address.
    
              For example, if the local interface is 192.168.5.92 with netmask
              255.255.255.0, you should set  bindnetaddr  to  192.168.5.92  or
              192.168.5.0.   If  the local interface is 192.168.5.92 with net‐
              mask  255.255.255.192,  set  bindnetaddr  to   192.168.5.92   or
              192.168.5.64, and so forth.
    
              This  may also be an IPV6 address, in which case IPV6 networking
              will be used.  In this case, the exact address must be specified
              and  there  is  no  automatic selection of the network interface
              within a specific subnet as with IPv4.
    
              If IPv6 networking is used, the nodeid field in nodelist must be
              specified.
    
    • 0
  2. Best Answer
    nwarriorch
    2016-10-22T13:18:48+08:002016-10-22T13:18:48+08:00

    我几乎忘记了这一点,如果有人试图让 corosync 1.4 在具有公共 IP 的云上工作。Corosync 根据您提供的绑定地址绑定到接口,并生成一个绑定地址,该地址将是您的接口地址。

    据我了解,它是将这个 IP 广播给所有节点,这些节点反过来响应这个地址,而不是它接收数据包的地址。

    因此,如果您的公共 IP 不像在某些云上那样在盒子上,那么可能无法像公共 IP 一样使用 Corosync

    • 0

相关问题

  • LVS 集群帮助

  • 适用于 Linux 的良好故障转移/高可用性解决方案?[关闭]

  • 由于 MySQL DRBD Heartbeat 故障转移脚本导致的数据丢失

  • SQL Server - 集群与镜像的高可用性?

  • SQL Server 群集选项

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve