Couchbase
  • Why NoSQL?
  • Couchbase Server
  • Download
  • Resources
  • Careers
Home | Forums | Couchbase | Couchbase Server 2.0

Replicas not working

2 replies [Last post]
  • Login or register to post comments
Sun, 03/10/2013 - 16:13
danielwertheim
Offline
Joined: 03/10/2013
Groups: None

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

Top
  • Login or register to post comments
Mon, 03/11/2013 - 07:04
tgrall
Offline
Joined: 09/05/2012
Groups: None

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

Top
  • Login or register to post comments
Tue, 03/12/2013 - 14:55
danielwertheim
Offline
Joined: 03/10/2013
Groups: None

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

Top
  • Login or register to post comments
  • Login or register to post comments
  • Login
  • Register

Company

  • About Us
  • Leadership
  • Customers
  • Partners
  • Contact Us

Product

  • Couchbase Server
  • Couchbase SDKs
  • Use Cases
  • Documentation
  • Forums

Open Source

  • Couchbase Project
  • Couchbase vs. CouchDB

Commercial

  • Subscriptions & Support
  • Training & Services

News

  • Blog
  • Newsletter
  • Press Releases
  • Buzz

Follow Us

    
  • Customer Login
  • Terms of Service
  • Privacy Policy
  • Trademark Policy
  • Site Map

© 2013 COUCHBASE All rights reserved.

Sign in to Couchbase Community

close
  • Create new account
  • Request new password
You are logging into the Forums, Wiki and Issue Tracker