关于influxdb:InfluxDB集群-节点部署过程

如果集群节点较少,一个node会同时负责meta和data,node上部署的过程同时具备meta和data的治理性能。

启动参数

对于3节点的InfluxDB集群,其启动参数:

//ops1节点
# influxd -config /etc/influxdb/influxdb.conf -join ops1:8091,ops2:8091,ops3:8091 --hostname ops1

//ops2节点
# influxd -config /etc/influxdb/influxdb.conf -join ops1:8091,ops2:8091,ops3:8091 --hostname ops2

//ops3节点
# influxd -config /etc/influxdb/influxdb.conf -join ops1:8091,ops2:8091,ops3:8091 --hostname ops3

启动结束后,应用集群治理命令,能够查问以后集群的节点:

# influxd_ctl show-nodes
============Meta Nodes============
ID      Host            TCPHost
1       ops2:8091       ops2:8088
2       ops3:8091       ops3:8088
3       ops1:8091       ops1:8088

============Data Nodes============
ID      Host    TCPHost

能够看到,meta nodes均已被辨认。

增加data nodes

在其中一个节点上执行:

# influxd_ctl add-data ops1:8088
# influxd_ctl add-data ops2:8088
# influxd_ctl add-data ops3:8088

再查问集群中以后节点:

# influxd_ctl show-nodes
============Meta Nodes============
ID      Host            TCPHost
1       ops2:8091       ops2:8088
2       ops3:8091       ops3:8088
3       ops1:8091       ops1:8088

============Data Nodes============
ID      Host                    TCPHost
1       178.104.163.69:8086     ops2:8088
2       178.104.163.239:8086    ops3:8088
3       178.104.163.205:8086    ops1:8088

能够看到,data-nodes均已退出集群。

【腾讯云】轻量 2核2G4M,首年65元

阿里云限时活动-云数据库 RDS MySQL  1核2G配置 1.88/月 速抢

本文由乐趣区整理发布,转载请注明出处,谢谢。

您可能还喜欢...

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据