ITPub博客

首页 > 数据库 > > cratedb 集群搭建说明

cratedb 集群搭建说明

作者:u_9ff4c058a0e0 时间:2022-05-06 17:12:29 0 删除 编辑

此为搭建说明,实际上搭建过es 集群的都是可以的,和es 基本一样

配置文件 crate.yaml

参考集群架构图

集群名称

cluster.name: my_cluster

每个node节点名称

如果省略会自动生产,必须唯一

node.name: node1

集群transport 端口

transport.tcp.port:  4350-4360

节点网络发现配置

可以使用dns ,或者直接配置ip:port 模式

discovery.zen.ping.unicast.hosts:
  - 10.0.1.101:4300
  - 10.0.1.102:4300
  - 10.0.1.103:4300

master 选举模式

(N / 2) + 1
参考三个节点,需要两个master
 discovery.zen.minimum_master_nodes: 2
同时需要设置 node.master:  true|false

参考配置

https://crate.io/docs/crate/reference/en/latest/config/node.html 
https://crate.io/docs/crate/guide/en/latest/scaling/multi-node-setup.html

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/69999831/viewspace-3150086/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2022-02-11

  • 博文量
    1828
  • 访问量
    20600