I am experiencing problems with availability of map-reduce views after node failure. When node fails, any query to a view from control panel timeouts after 60 seconds and our application client (in node.js, using email@example.com ) reports cryptic error “error : parsing failed” after 15 seconds.
We are running couchbase-community-4.1.0 (dockerized) with 5 nodes. Bucket configured with:
- Replicas enabled, number: 2
- View index replicas enabled
- Auto-failover is enabled with timeout of 30 seconds
Documentation on Views and High Availability led me to believe that after a failover of node view queries should be served from a replica; this is not happening. Just after triggering failover cluster begins to rebuild index on this bucket and view queries fail.
Said queries are issued with:
couchbase.ViewQuery.from("bucket", "history") .on_error(couchbase.ViewQuery.ErrorMode.STOP) .stale(couchbase.ViewQuery.Update.NONE) .reduce(true);
Is there a configuration option on high availability that we are missing? Right now failure of single node disables our whole application, which is a game-breaker for us.