【问题标题】:Cluster configuration problems in cassandra.yaml for multi-node cluster where only 1 public ip is knowncassandra.yaml 中仅知道 1 个公共 IP 的多节点集群的集群配置问题
【发布时间】:2018-08-08 15:09:09
【问题描述】:

我想知道cassandra.yaml的配置参数,即,

  1. listen_address
  2. 广播地址
  3. rpc_address
  4. broadcast_rpc_address

在特定场景中的单个节点上。

场景:6 节点集群有各自的私有 IP,但只有一个节点有公共 IP。

要求:远程python应用访问集群

我在每个节点上的尝试:

  1. listen_address:各自的private IP
  2. 广播地址:blank
  3. rpc_address:blank except 在公共 ip 为 0.0.0.0 的节点上
  4. broadcast_rpc_address: blank except 在以公共 ip 作为其 public ip 的节点上

我尝试从我的应用程序 Cluster(['public ip'], port=9042) 发出,但我收到了最终导致关闭我的应用程序的警告:

WARNING:cassandra.cluster:Failed to create connection pool for new 主机 192.xxx.xx.3:

【问题讨论】:

    标签: cassandra cassandra-3.0


    【解决方案1】:

    我建议为每台机器添加两个接口。

    其中一个是listen_address 一个用于rpc_address。 在这种方法中,您不使用 broadcast_rpc_address。

    但是,如果您使用公共 ip,则必须为所有节点设置一个通用地址。其中只有一个不能有公共地址。

    【讨论】:

      猜你喜欢
      • 2020-12-05
      • 1970-01-01
      • 2019-07-22
      • 2011-11-22
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-07-03
      相关资源
      最近更新 更多