Make cluster nodes to communicate with each other by private network and allow client connections from public network.


#1

Some introduction:
I have four nodes in private network with IP’s

  • 192.168.0.1
  • 192.168.0.2
  • 192.168.0.3

And also each node has public IP/hostname

Currently I’ve configured cluster to use hostnames.
Everything is ok and all clients have access to cluster.
And nodes communicate with each other by hostnames - by public network. And it’s slower than private network.

If I configure cluster using private IP’s, clients that’re not in private network will not be able to access the cluster.

How should I configure cluster to make nodes communicate with each other by private network and allow client from public network access it?
Thanks.


#2

Hi @dub,

This is definitely an issue we’re aware of and working on that will be available in a future release. It’s come up in the context of various cloud providers, but the improvement should also be able to help you out.


#3

Hi Matthew
Is this feature now available?
I have got the following version of Couchbase database in my system:

couchbase-server-community-4.5.0-2601.x86_64

Regards
Damian


#4

Are you not able to use host files or DNS on the nodes, so that the external names resolve to the internal IPs?

That way clients still get the correct external names, but the cluster comms is internal.


#5

I have actually used the internal comms for adding hosts to the cluster and it seems that both internal/external communication is taken care of. I think using DNS/ host files would have complicated a matter as you would not know which ones are used by the system /etc and we have got no DNS available on this system.

I would like to know if this is the supported configuration on the couchbase system.

I have got Eth0 - public IP -< available externally
and Eth1 - private IP (RFC1918) -< used for adding hosts into the cluster and for private comms.

Dub, which version of Couchbase have you used?


#6

hi Matthew, any idea which version it was not supported in and whether it is now supported in 4.5?


#7

@emboss,

I’m working getting the details (and a case number if I can find one), but I think there plan is to support it in 5.5. (I’m not sure if it’s supported in the current 5.5 developer build that’s available for download).


#8

Thank you Matthew, how about 4.5.0 community. Is this not supported either?


Use cloud server config couchbase server cluster question
#9

Is there a setup guide on how to do this from admin? I’m also looking for a set up where internode communication is on internal netowork