couchbase - Using 4 nodes on 4 servers, 1 bucket with 3 replicas and items count changes after stoping one node -
i've been testing couchbase understand how replication , consistency works in couchbase.
i've installed 4 nodes on 4 severs , created 1 bucket 3 replicas , created appr 1500000 kv pairs.
after creating data , stop couchbase server on 1 of nodes command (service couchbase-server stop)
and on admin interface, shows me have apprx 1000000 kv pairs , showing me correct item count.
and simple count views showing me same results erors messages telling me 1 node not available :
{"rows":[ {"key":null,"value":1058754} ], "errors":[ {"from":"http://192.168.100.9:8092/_view_merge/?limit=10","reason":"{econnrefused,[{lhttpc_client,send_request,1},\n {lhttpc_client,execute,9},\n {lhttpc_client,request,9}]}"} ] }
i understand error info why item counts changed , i've set bucket 3 replicas ?
when node disappeared cluster (stop or failure) data not available until failover occurs. (this manual or automatic).
you need failover node data available, , of time rebalance after fail over.
see http://www.couchbase.com/docs/couchbase-manual-2.0/couchbase-admin-tasks-failover.html
Comments
Post a Comment