About Cluster Schema

Hi,

We’re developing an application that needs fallback support. But i couldn’t find any clue about that.
For example:
I’ve created a document with id 11456 and another one with 11678.
I have 2 servers right now, balanced.

Couchbase put first one in node#1 and second one in node#2. If i shutdown node#2 i cannot access 11678.
There’s auto-sharding. I know that, and that’s great.

But what i gotta do to make document 11678 accessible even if node#2 is down ?

How many servers should i use, and what should be the infrastructure like ?
2 balanced nodes and 2 replicas i guess, but i need your thoughts about it.

Thanks.

You need to create replicas. That will allow you to failover if a node is down.
You can either use auto-failover or manual failover.

High level feature detail here: http://www.couchbase.com/couchbase-server/features#content3

Manual - http://docs.couchbase.com/couchbase-manual-2.2/#failover-nodes