Jeff Lee
Jeff Lee

Reputation: 35

Unable to create cluster at influxdb

I was trying to setup a 3-node influxdb cluster using influxDB 0.9.4 but failed.

I was following the instructions as stated at https://influxdb.com/docs/v0.9/guides/clustering.html

To setup the cluster, I have done the followings:

However, in the web interface (10.10.1.88:8083), the query "show servers" only return the node itself. That is

    id  cluster_addr    raft
    1   "10.10.1.88:8088"   true

which implies that the raft cluster is not healthy at all

Is there any step I missed?

p.s. Node A, B and C are running Ubuntu 14.04.3 LTS.

--------------------------- Add ------------------- Use show servers command only show the server own ip. If I try to create database of random one of the server, the other server will sync and the database with same name appear too. If i try to add measurement and data, the others server can not sync unlike database.

Upvotes: 0

Views: 637

Answers (2)

Alez
Alez

Reputation: 2689

The issue may be related to the presence of some files in "meta" folder. This cause the node to keep the old configuration instead of update to the cluster configuration.

For each node, try to:

  • stop influxdb
  • configure the node, as the guide explains
  • remove all the content of meta folder
  • start influxdb

Hope this helps!

Upvotes: 0

beckettsean
beckettsean

Reputation: 1846

Delete the meta/peers.json file from each server and try again. The contents of that file override any command line settings regarding the cluster.

Upvotes: 1

Related Questions