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

Replication

4 replies [Last post]
  • Login or register to post comments
Fri, 10/22/2010 - 05:10
filipelenfers
Offline
Joined: 09/24/2010
Groups: None

Hi,

   i created a cluster of 2 servers, i have 2 bucket, 1 memcached and 1 membase. The membase bucket is set do 1 copy replication (so the 2 server mus have the full data, right?).

    But when i stop 1 server, and try do read a data that i already done the store  it returns nothing. When i bring the server up again the data is there (so the persistence is working fine, becouse i didnt store the data again). Im little confused, I thought the data always be there even when 1 server is down, becouse of replication.

 

Filipe.

Top
  • Login or register to post comments
Fri, 10/22/2010 - 08:36
perry
Offline
Joined: 10/11/2010
Groups:

 Filipe, are you clicking "failover" after taking down the first server?

Perry

__________________

Forum support is great for free but sometimes you need a guaranteed response time and dedicated resources for your questions or issues.
Consider purchasing enterprise-level support from Couchbase: http://www.couchbase.com/products-and-services/overview
Call or email "sales -at- couchbase-dot- com" today!

Top
  • Login or register to post comments
Fri, 10/22/2010 - 11:42
filipelenfers
Offline
Joined: 09/24/2010
Groups: None

No. Now I tested clicking on fail over and worked fine! Thanks.

There is some kind of automatic fail over? Something like this: when all the other nodes see a server down, they automatic do the fail over in this server. I using replication in a case that I cant have the data indisponible, waiting for a manual action.

If there isn't this automatic fail over, or plans to do that, i can do something using the rest interface? Something like create a program that check the servers state and when one comes down tell to the other to fail over the server that is down, and when it comes up again do the rebalance.

 

Thanks for the help!

Top
  • Login or register to post comments
Mon, 10/25/2010 - 17:51
perry
Offline
Joined: 10/11/2010
Groups:

We've actually had quite a few discussions about automatic failover and have written this wiki page to help provide some guidance: http://wiki.membase.org/display/membase/Failover+with+Membase

 

You can definitely do what you've described via our REST interface, let me know if you need any help getting that up (http://wiki.membase.org/display/membase/Membase+Management+REST+API)

 

Perry

__________________

Forum support is great for free but sometimes you need a guaranteed response time and dedicated resources for your questions or issues.
Consider purchasing enterprise-level support from Couchbase: http://www.couchbase.com/products-and-services/overview
Call or email "sales -at- couchbase-dot- com" today!

Top
  • Login or register to post comments
Tue, 10/26/2010 - 04:19
filipelenfers
Offline
Joined: 09/24/2010
Groups: None

After reading http://wiki.membase.org/display/membase/Failover+with+Membase, I understanded there are a lot of variables and problems to consider, maybe is more safe have a little more time to the replica get up via human intervention.

The REST API looks pretty simple to use for this automation, we will think in scenarios where there is safe to do automatic fail over and the others that we need to alert someone to do a manual intervention.

 

Thanks.

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