Auto make Sync Gateway online after Couchbase Server restart


#1

For some reason, my Couchbase Server will auto restart,and when my Couchbase Server is online, the SG will not notice the Couchbase Server is online, so when I make some request to SG,SG logs says:

2016-05-05T12:36:13.940+08:00 HTTP: #1265:     --> 503 DB is currently under maintenance  (0.0 ms)

I need to send this request to make SG online:

curl -X POST -H "Content-Type:application/json" http://127.0.0.1:4985/sgdb/_online

How can SG auto online after Couchbase Server restart.


#2

Currently there’s no automated reconnect, although there’s a pending enhancement we’re tracking here:


#3

OK, Thank you for replay. I will trace this enhancement.