Couchbase
  • Why NoSQL?
  • Couchbase Server
  • Download
  • Resources
  • Careers
Home | Forums | Couchbase | Couchbase Server 1.8.x

Issues about Couchbase cluster

2 replies [Last post]
  • Login or register to post comments
Thu, 09/06/2012 - 02:27
dew_ice
Offline
Joined: 09/05/2012
Groups: None

hi guys,
I met a issue about couchbase cluster connection, anyone who can give me some helps?
Following are details:

I setup 3 server nodes in 1 cluster, let's named ServerNodeA, ServerNodeB, ServerNodeC.
3 nodes join as a cluster, it works well.

At the client side (with Java), my connect code is like that:

List uris = new ArrayList();

uris.add(URI.create("http://ServerNodeA:8091/pools"));
uris.add(URI.create("http://ServerNodeB:8091/pools"));
uris.add(URI.create("http://ServerNodeC:8091/pools"));

CouchbaseConnectionFactory cf = new CouchbaseConnectionFactory(uris, "default", "");
CouchbaseClient client = new CouchbaseClient(cf);

For additional, in our project, we just connect the couchbase at the first time,
we will not close the connection, this is to avoid performance issue.

now the issue comes:
After the application start(it means the connection is already setup, we can get/save data),
If ServerNodeA down, and after the auto fail-over in cluster, the CouchbaseClient still not work;
but if ServerNodeB or ServerNodeC down, after the auto fail-over, the CouchbaseClient can works.

and if i change the order in the URI list(at the java code), the condition changes.
so we can find that if the 1st server node in the list down, the CouchbaseClient doesn't work.

So how can i resolve this problem?
thanks for your help.

Top
  • Login or register to post comments
Wed, 09/12/2012 - 18:46
dew_ice
Offline
Joined: 09/05/2012
Groups: None

anyone can help me ? Thanks.

Top
  • Login or register to post comments
Mon, 10/01/2012 - 11:35
nosql_man
Offline
Joined: 10/01/2012
Groups: None

Try using Aerospike. It is much more easier and reliable than couchbase. www.aerospike.com

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