influxDB v0.11 集群配置


1.首先下載安裝0.11版本之前的influxdb

wget https://repos.influxdata.com/rhel/7/amd64/stable/influxdb-0.11.1-1.x86_64.rpm

yum localinstall influxdb-0.11.1-1.x86_64.rpm

2.對influxdb.conf進行配置


reporting-disabled = true
join = "<NODE_1 IP>:8091,<NODE_2 IP>:8091,..."
[meta]
  enabled = true
  ...
  bind-address = "<IP>:8088"
  ...
  http-bind-address = "<IP>:8091"

...

[data]
  enabled = true

...

[http]
  ...
  bind-address = "<IP>:8086"

如果啟動關聯collectd,需加上

[[collectd]]
enabled = true
bind-address = "<Collectd_Node_IP>:25826"
database = "collectdb"
typesdb = "/usr/share/collectd/types.db"
batch-size = 5000
batch-pending = 10
batch-timeout = "10s"
read-buffer = 0

collectd這邊則需要開啟network插件作為server端

LoadPlugin network
<Plugin "network">
Server "<Collectd_Node_IP>" "25826"
</Plugin>

重啟influxdb服務和colletd服務

3查看influx集群信息
進入influx命令行執行show servers


> show SERVERS
name: data_nodes ----------------
id  http_addr tcp_addr
1   vm1:8086    vm1:8088
2   vm2:8086    vm2:8088


name: meta_nodes ----------------
id  http_addr tcp_addr
1   vm1:8091    vm1:8088
2   vm2:8091    vm2:8088

在其他結點上查看數據已同步則OK


注意!

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



 
粤ICP备14056181号  © 2014-2021 ITdaan.com