jackyzm

导航

CentOS7配置crate集群

一:编辑配置文件:

  1.1配置文件:

    vim /etc/crate/crate.yml

  1.2编辑crate.yml 的集群名称在166行附近:

    cluster.name: crate-xxx

  1.3编辑node节点名称202行附近:

    node.name: node-01

  1.4主节点设置209行附近与1.9master高可用互相匹配:

    node.master: true

  1.5集群接口400行附近:

    transport.tcp.port: 4300

  1.6后备恢复点425行附近:

    #值要大于discovery.zen.minimum_master_nodes且小于等于gateway.expected_nodes

    gateway.recover_after_nodes: 2

  1.7集群总节点数434行附近:

    gateway.expected_nodes: 3

  1.8Discovery集群发现510行附近:

    discovery.zen.ping.unicast.hosts:

    - 192.168.x.x:4300
    - 192.168.x.y:4300
    - 192.168.x.z:4300

  1.9master高可用526行附近:

    # We highly recommend to set the minimum master nodes as follows:

    # minimum_master_nodes: (N / 2) + 1 where N is the cluster size

    # That will ensure a full recovery of the cluster state.

    discovery.zen.minimum_master_nodes: 2

    要配置218行附近的

      node.master: true

 

posted on 2019-01-21 15:00  jackyzm  阅读(176)  评论(0编辑  收藏  举报