Re: Adding a node to cluster

2016-09-06 Thread Russell Branca
Good catch, it should have included the db ;-) -Russell On Tuesday, September 6, 2016, Joey Samonte wrote: > In the example you gave for the replication, why is the target " > test2.bar.com", and not "test2.bar.com/my_db"? > > > From: chewbra...@apache.org > > Date: Tue, 6 Sep 2016 19:34:43 -

RE: Adding a node to cluster

2016-09-06 Thread Joey Samonte
In the example you gave for the replication, why is the target "test2.bar.com", and not "test2.bar.com/my_db"? > From: chewbra...@apache.org > Date: Tue, 6 Sep 2016 19:34:43 -0700 > Subject: Re: Adding a node to cluster > To: dev@couchdb.apache.org > > CouchDB "replication" uses the HTTP API to

RE: Adding a node to cluster

2016-09-06 Thread Joey Samonte
Thanks for this. It clarified things for me. :) Will try it if it works in my case. > From: chewbra...@apache.org > Date: Tue, 6 Sep 2016 19:34:43 -0700 > Subject: Re: Adding a node to cluster > To: dev@couchdb.apache.org > > CouchDB "replication" uses the HTTP API to replicate a database, wher

RE: Adding a node to cluster

2016-09-06 Thread Joey Samonte
I have added a node 2 to a cluster. From node 1, looking at _membership shows this: {"all_nodes":["couchdb@localhost"],"cluster_nodes":["couc...@xx.xx.xx.xx","couchdb@localhost"]} But looking at _membership at node 2, it shows differently: {"all_nodes":["couchdb@localhost"],"cluster_nodes":["

Re: Adding a node to cluster

2016-09-06 Thread Russell Branca
CouchDB "replication" uses the HTTP API to replicate a database, whereas the somewhat confusingly named "internal replication" is used within the cluster itself as a way to synchronize state between the shard replicas. The protocol for internal replication uses the Erlang distribution protocol to c

RE: Adding a node to cluster

2016-09-06 Thread Joey Samonte
I think I understand it. Hoping to find more documentation on it. > From: wickedg...@gmail.com > Date: Tue, 6 Sep 2016 15:55:00 -0700 > Subject: Re: Adding a node to cluster > To: dev@couchdb.apache.org > > Nodes in the cluster do not replicate to one another. > > Replication takes place betwee

RE: Adding a node to cluster

2016-09-06 Thread Joey Samonte
This is confusing. So how does a database that spans multiple nodes gets replicated? > From: wickedg...@gmail.com > Date: Tue, 6 Sep 2016 15:55:00 -0700 > Subject: Re: Adding a node to cluster > To: dev@couchdb.apache.org > > Nodes in the cluster do not replicate to one another. > > Replicatio

Re: Adding a node to cluster

2016-09-06 Thread Eli Stevens (Gmail)
Nodes in the cluster do not replicate to one another. Replication takes place between databases. A single node isn't a database; a clustered database spans multiple nodes. Each node has a black-box lump of data that happens to have a fraction of a database inside, but that's an implementation det

RE: Adding a node to cluster

2016-09-06 Thread Joey Samonte
If you have two nodes in the cluster, the replication should be two-way between the nodes? What if there are three nodes? How should the replication be setup between them? > Subject: Re: Adding a node to cluster > From: sebastianrothbuc...@googlemail.com > Date: Mon, 5 Sep 2016 23:08:04 +0200 >

Re: Adding a node to cluster

2016-09-06 Thread Sebastian Rothbucher
Hi, as always (esp. with security): it depends and you should have a thorough plan about how 2 secure. There is really no serious general and binary answer to the question. From a functional point of view, the nodes in a cluster need to talk to each other over Erlang RPC and calling applications n