LoginSignup
3
4

More than 5 years have passed since last update.

InfluxDB 0.9.3のClustering

Posted at

はじめに

InfluxDB0.9.3のClusteringでちょっとハマったのでメモしておく。

環境

  • OS: CentOS7.1
  • InfluxDB: 0.9.3
  • firstnode: 10.6.0.14
  • secondnode: 10.6.0.142

Install

以下のコマンドでインストールする。

$ sudo yum -y install https://s3.amazonaws.com/influxdb/influxdb-0.9.3-1.x86_64.rpm
$

Configファイル作成

以下のコマンドでconfigファイルの雛形を作成。

$  /opt/influxdb/influxd config >> influxd.conf

Configファイルの編集

https://influxdb.com/docs/v0.9/guides/clustering.html
にあるようにhostname部分の編集と、clusteringの部分でclusterメンバの設定をしてやる。

influxd.conf
[meta]
....
  hostname = "(10.6.0.14|10.6.0.142)"
  bind-address = ":8088"
....  
[cluster]
  peers = ["10.6.0.14:8088","10.6.0.142:8088"]
....

起動

FirstNode

最初のノードはオプションを付けずに起動。

$ /opt/influxdb/influxd -config influxd.conf 

SecondNode

最初のノード以外はjoinオプションを追加して起動してやる。

$ /opt/influxdb/influxd -config influxd.conf -join 10.6.0.100:8088

確認

GUIかCUIで以下のコマンドを実行して認識されていればおk。

influxdb_clustering.png

おしまい。

3
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
4