You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@couchdb.apache.org by Jens Alfke <je...@couchbase.com> on 2011/09/01 00:04:09 UTC

Re: Documents not added if bind address != used host

On Aug 31, 2011, at 1:38 PM, Markus Jelsma wrote:

Is it considered a feature to be able to end up in this mess - starting two
instances but getting different data depending on bind address?

It’s just a general capability of IP — being able to listen on a specific interface. You have a server listening on the loopback interface only, and another bound to your primary interface. The two instances won't even know about each other, they’re just independent processes. And yes, this is considered very useful in some circumstances, like if a server has two network interfaces with a different IP address on each one and wants to run the same service (but a different instance of it) at each address.

—Jens

Re: Documents not added if bind address != used host

Posted by Markus Jelsma <ma...@openindex.io>.
Jens, Robert, thanks!

> On Aug 31, 2011, at 1:38 PM, Markus Jelsma wrote:
> 
> Is it considered a feature to be able to end up in this mess - starting two
> instances but getting different data depending on bind address?
> 
> It’s just a general capability of IP — being able to listen on a specific
> interface. You have a server listening on the loopback interface only, and
> another bound to your primary interface. The two instances won't even know
> about each other, they’re just independent processes. And yes, this is
> considered very useful in some circumstances, like if a server has two
> network interfaces with a different IP address on each one and wants to
> run the same service (but a different instance of it) at each address.
> 
> —Jens