How to build High available sync-gateway


#1

Hi,
how make sync-gateway high available?
How to monitor Sync-gateway?
i m unable to access http://publicIP:4985 User interface.
what are all the options available?
Can we access Sync-gateway dashboard through UI?

Thanks


#2

Hey @rvuppala, see below:

how make sync-gateway high available?

You can scale the sync gateway nodes horizontally and front them with a load balancer. Two features in particular don’t support high availability in Sync Gateway yet:

  • Shared Bucket / Convergence import (This allows you to perform Couchbase SDK writes directly to the same Bucket that Sync Gateway is using.)

  • SG <-> SG replications.

How to monitor Sync-gateway?

There are some “expvars” (“exposed/exported variables”) which are partially documented here: https://github.com/couchbase/sync_gateway/wiki/expvars. This includes the Go runtime memory statistics.

i m unable to access http://publicIP:4985 User interface.

By default it binds to localhost only for security reasons, since any user that reaches this endpoint has complete access to all data. You never want to expose this publicly, it would be a huge security hole.

what are all the options available?

If you mean configuration options, see https://developer.couchbase.com/documentation/mobile/current/guides/sync-gateway/config-properties/index.html

Can we access Sync-gateway dashboard through UI?

Not yet, but this is in the planning stages.


#3

I m using this for comepletely testing purposes ,
i need this to be open .can you walk me through the steps.

Thanks