cratedb 集群搭建说明


此为搭建说明,实际上搭建过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


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM