title: Couchbase, 4 nodes with replicas (not sharding), select from 127.0.0.1
body: <p>We have cluster with 4 nodes and need:</p>
  
  <ol>
  <li>failing any node - no "pending" state of cluster</li>
  <li>all data in all nodes - no sharding, only replication to all nodes</li>
  <li>read ALWAYS from local node</li>
  </ol>
  
  <h2>How to do it?</h2>
  
  <p>UP: Why we need read local:
  6-nodes cluster with 1 node down, select data from python:</p>
  
  <pre class="lang-none prettyprint-override"><code>Traceback (most recent call last):
    File "&lt;stdin&gt;", line 1, in &lt;module&gt;
    File "/usr/local/lib/python2.7/dist-packages/couchbase/connection.py", line 500, in get
      return _Base.get(self, key, ttl, quiet, replica, no_format)
  couchbase.exceptions._NetworkError_0x10 (generated, catch NetworkError): &lt;Key=u'configuration!ivr.conf!ivr_000*308@siptest.ringme.ru', RC=0x10[Network failure], Operational Error, Results=1, C Source=(src/multiresult.c,282)&gt;
  
  Replicas: 2 copies
  
  couchbase on this error MUST read another nodes on error!
  </code></pre>