Replication
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.
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!
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
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.
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!