Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>There are two different ways this can happen, either with moxi or without moxi.</p> <p>Without Moxi (Smart Client)</p> <p>The the client makes a connection with Couchbase it will first get a list of all of the servers in the cluster and the vbucket map. It then makes a connection to each server in the cluster. When you do a multi-operation the client will consult with the vbucket map that it contains and figure out which vbucket the server belongs. If we have three servers then the client will put together up to three multi-operations and send each to the corresponding server that contains all of the keys in that multi-operation. Each server will respond to the client and the client will put all of the results together into on set of results.</p> <p>With Moxi</p> <p>In this case the client doesn't know about the cluster or the vbucket map, but moxi does. The client will send all keys to moxi and then moxi will take care of splitting them up and sending them to the appropriate servers.</p> <p>Sever Down Scenario:</p> <p>If a server is down or busy then all keys in that server specific multi-operation will fail. The client should return you the keys that it could get from the other servers and alert you of the error.</p> <p>Rebalancing Scenario:</p> <p>During a rebalance there is a small chance that a request will be sent to the wrong server. In this case the client should retry the operation on the correct server. During rebalance each client should receive a "fast-forward" vbucket map that says where all of the vbuckets will be after the rebalance. It will use the server in this vbucket map for the retry.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload