Datacenter stanzas

This is for 4.9

Lets imagine I have 2 DCs. DC1 and DC2.

Lets imagine that DC2 foobar has 20 servers.

And that DC1 has a stanza that looks like this

datacenter foobar {
  tls-node foobar-1.xx.foo.com DC1 4333
}

What are the implications of the stanza not containing all of DC2’s 20 nodes?

Will DC1 just reach out to foobar-1, and foobar-1 will reply with a list of it’s nodes, and thus the real issue is that if foobar-1 was down, that DC1 would not know “who” to ask about nodes?

Jeff.

In Aersopike 5.0, superseded by node-address-port Multiple nodes can be specified. Used as a seed list, similar to dc-node-address-port when not using TLS.

Will DC1 just reach out to foobar-1, and foobar-1 will reply with a list of it’s nodes, and thus the real issue is that if foobar-1 was down, that DC1 would not know “who” to ask about nodes?

That’s correct.

This works the same as the client. It is a seed to connect to any node in the cluster, and if successful it will ask the node it connected to for its cluster members. If more than 1 entry is present, it should traverse the list 1-by-1 until it finds an alive node.

If no alive nodes are found I think it will treat the DC as being down, and keep trying until it is back online. In v4.x you may have data loss, since it uses a digestlog ring buffer.

1 Like

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.