Replicas not working
Hi,
I'm evaluating CouchBase and have setup a test environment. I'm running Version: 2.0.0 community edition (build-1976) on two Windows 2008 R2 servers. I've created one cluster containing one bucket and enabled 1 replicas.
I just tried to add documents via the Web UI. I added some via win#1 and some via win#2 and I can see this in the overview. However, nothing is being replicated so if one node goes down, the failover will loose the data "owned" by the node going down. What am I missing? Do I need to tweak something?
Second question, is there no way of inserting data to a cluster when a node is down? That's what happens for me. When I take one node down, the other will only serve reads.
Thanks,
//Daniel
Hi,
I've a clean cluster with two nodes. Creating one bucket and enabling replicas.
Then I use the .Net client to insert 10000 docs. This gets evenly distributed between the two nodes. Under the Admin console --> Server nodes view, it shows active/replicas 5k/0
If I take down node#2 and insert a new batch of 10000 documents, it somewhat works. The total amount of docs is 15000 and if I query them it seems like only half of the last batch was persisted.
//Daniel
Hello Daniel,
So you have enabled replicas on your bucket : Good.
When you are saying that you "add data on win#1 some on wind#2" how do you achieve that?
It looks like you are not using the client SDK. I think that because when you are working with the SDK you have not clue on which server you are working.
So could you please do:
1- Add the node the cluster
2- Rebalance the data
3- Connect to the cluster using the Client SDK (.Net SDK)
You will see that data are distributed and when you fail over you can write on the node that is stil up.
Regards
Tug
@tgrall