-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clustering 0.9.4 - already member of cluster #4429
Comments
You probably have data in your node2 data dir so it is re-using that cluster info. Make sure that directory is empty before starting node 2. |
Hey. I've actually been fighting the same issue for the past, like, 2 days. I can confirm that I do not have any data in the data dir (/var/opt/influxdb/data) on my node2. Additionally, my peers.json file, even if I modify it on node2 to have node1 and node2, will always end up with only node2 in it when I restart InfluxDB. |
@derailed Also, your attempt #2 (using @sandmanahoy Can you post your logs for both node1 and node2? |
@sandmanahoy do you have any environment variables set in the startup scripts? Specifically |
@derailed relying on |
Tx Jason! Using docker to fire off my instances. You are absolutely Tx for looking into this!! On Tue, Oct 13, 2015 at 1:20 PM, Jason Wilder [email protected]
|
/etc/default/influxdb on node2 (node1=TSInfluxA, node2=TSInfluxB): Daemon optionsINFLUXD_OPTS="-join TSInfluxA.cdnqa.com:8088" ps -elf on node2: Logs won't let me attach, but I see this on node2, like OP did: Is there anything else specific from the logs you'd like to see? Thanks again for your help btw :) |
@sandmanahoy This line:
indicates node2 has data in it's |
Wiped the meta directory completely (rm -rf /var/opt/influxdb/meta/*) and restarted Influx and now it's working. Thanks again! |
Hi
I am trying to cluster 2 nodes using 0.9.4 and can't seem to find the right incantation.
I have followed the clustering docs and check the issues but still no dice.
Here are my two attempts that both yield the same results ie
Skipping cluster join: already member of cluster: nodeId=1 raftEnabled=true peers=[influx2:8088]
ATTEMPT #1
Node1 config
[meta]
hostname = "influx1"
bind-address = ":8088"
...
Node2 config
[meta]
hostname = "influx2"
bind-address = ":8088"
...
NOTE influx1/influx2 are defined in etc/hosts
Start node1
influxd run -config influx1.toml
Start node2
influxd run -config influx2.toml -join influx1:8088
Results:
Skipping cluster join: already member of cluster: nodeId=1 raftEnabled=true peers=[influx2:8088]
ATTEMPT #2
Node1 config
[meta]
hostname = "influx1"
bind-address = ":8088"
peers = ["influx1:8088","influx2:8088"]
...
Node2 config
[meta]
hostname = "influx2"
bind-address = ":8088"
peers = ["influx1:8088","influx2:8088"]
...
Start node1
influxd run -config influx1.toml
Start node2
influxd run -config influx2.toml
Results:
Skipping cluster join: already member of cluster: nodeId=1 raftEnabled=true peers=[influx2:8088]
Also show servers on either influx1 or influx2 only show 1 node.
What am I missing?
Tx!!
The text was updated successfully, but these errors were encountered: