【问题标题】:elasticsearch in docker cluster name is same but not clusteringdocker集群名称中的elasticsearch相同但不是集群
【发布时间】:2016-07-20 12:15:44
【问题描述】:

$ curl localhost:9200/_cat/health?v

epoch 时间戳集群状态 node.total node.data shards pri relo init unassign pending_tasks max_task_wait_time active_shards_percent 1469016273 12:04:33 jh-簇绿色 1 1 0 0 0 0 0 0 - 100.0%

$ curl localhost:9201/_cat/health?v

epoch 时间戳集群状态 node.total node.data shards pri relo init unassign pending_tasks max_task_wait_time active_shards_percent 1469016277 12:04:37 jh-集群绿色 1 1 0 0 0 0 0 0 - 100.0%

我不知道为什么会出现这种情况。 Nodes的配置文件是一样的,

【问题讨论】:

    标签: elasticsearch docker cluster-computing


    【解决方案1】:

    粘贴您的弹性配置,顺便说一句,这是我在本地集群的配置(1 个主写入 1 个从读取):

    主节点:

    cluster.name: musement
    network.bind_host: 0.0.0.0
    transport.tcp.port: 9301
    http.port: 9201
    
    node.master: true
    node.data: false
    discovery.zen.minimum_master_nodes: 1
    discovery.zen.ping.timeout: 3s
    discovery.zen.ping.multicast.enabled: false
    discovery.zen.ping.unicast.hosts: ["pippo.int:9300"]
    

    从节点:

    cluster.name: musement
    network.bind_host: 0.0.0.0
    transport.tcp.port: 9300
    http.port: 9200
    discovery.zen.minimum_master_nodes: 1
    discovery.zen.ping.timeout: 3s
    discovery.zen.ping.multicast.enabled: false
    discovery.zen.ping.unicast.hosts: ["pippo.int:9301"]
    

    pippo.int 是我电脑的 eth0

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2015-04-22
      • 2017-05-20
      • 1970-01-01
      • 2022-01-05
      • 2020-04-07
      • 2012-02-24
      • 2014-03-27
      • 1970-01-01
      相关资源
      最近更新 更多