Aris
Aris

Reputation: 77

How to configure the java client for couchbase to auto-reconnect?

How to configure the java client for couchbase to auto-reconnect?

Is it turned on by default? Also, it will be great if somebody can help to show how to do it using spring-data-couchbase.

Upvotes: 1

Views: 876

Answers (1)

Simon Baslé
Simon Baslé

Reputation: 28351

Both the 1.4.x and 2.x generations of Couchbase Java SDKs will auto-reconnect when a node is (re)introduced to the cluster through a rebalance event. Spring-data-couchbase being (currently) based on the 1.4.x SDK, it should transparently reconnect as well.

Upvotes: 2

Related Questions