influxdb icon indicating copy to clipboard operation
influxdb copied to clipboard

always get one localhost server by "SHOW SERVERS".

Open just2d opened this issue 10 years ago • 4 comments

version 0.9.6.1 I followed the instructions here:https://influxdb.com/docs/v0.9/guides/clustering.html,start three raft servers.

all 3 raft servers configured like below,hostname is the real ip.

[meta]
  hostname = "10.125.25.51"
  bind-address = ":8088"

but there always one "localhost:8088" server,I wanna know which server is that.

Connected to http://localhost:8086 version 0.9.6.1 InfluxDB shell 0.9.6.1

show servers

id  cluster_addr        raft    raft-leader
1   10.125.25.51:8088   true    false
2   localhost:8088      false   false
3   10.125.25.34:8088   true    true
4   10.125.25.63:8088   true    false

just2d avatar Dec 22 '15 08:12 just2d

@just2d can you paste in the contents of the meta/peers.json file from each of the three nodes?

beckettsean avatar Dec 22 '15 23:12 beckettsean

@beckettsean they are all identical

#cat peers.json 
["10.125.25.34:8088","10.125.25.51:8088","10.125.25.63:8088"]

just2d avatar Dec 23 '15 02:12 just2d

I stopped all three node, deleted everything under /var/lib/influxdb/meta,and restarted them one by one. everything seems fine till now. I'll let you know if the error occur again :)

just2d avatar Dec 23 '15 04:12 just2d

@just2d Thank you for the update. Let us know if the problem comes back.

rossmcdonald avatar Dec 23 '15 16:12 rossmcdonald