Running a Sync Gateway Cluster Under CoreOS on AWS

42 views
Skip to first unread message

Traun Leyden

unread,
Dec 15, 2014, 10:28:18 PM12/15/14
to mobile-c...@googlegroups.com

I just wrote up a blog post which walks through how to run a 3 node Couchbase Server + Sync Gateway cluster on AWS:


Also it covers firing up more Sync Gateway nodes and setting up an Elastic Load Balancer.

Todd Freese

unread,
Dec 16, 2014, 10:34:50 AM12/16/14
to mobile-c...@googlegroups.com, tle...@couchbase.com
This is really great. It would be nice to also have support for using Nginx for load balancing as well since ELB seems to have issues with SG.

Todd


Traun Leyden

unread,
Dec 16, 2014, 2:30:20 PM12/16/14
to mobile-c...@googlegroups.com
Hey Todd,

Great feedback, and I would have done it in the first pass if it wasn't for the complexity involved.

Luckily Andy Reslan has written up a guide on that:


and at some point I will loop back around and fold this into the deploy script.

Can you give details about the issues you are seeing with ELB?

On Tue, Dec 16, 2014 at 7:34 AM, Todd Freese <to...@filmworkers.com> wrote:
This is really great. It would be nice to also have support for using Nginx for load balancing as well since ELB seems to have issues with SG.

Todd


--
You received this message because you are subscribed to the Google Groups "Couchbase Mobile" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mobile-couchba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mobile-couchbase/2c72fa5b-dac9-4a17-869e-e521968cc3e7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Todd Freese

unread,
Dec 17, 2014, 9:27:52 AM12/17/14
to mobile-c...@googlegroups.com, tle...@couchbase.com
ELB does not support CBL long polling. It drops the connection after 1 min.

Todd

Jens Alfke

unread,
Dec 17, 2014, 11:52:35 AM12/17/14
to mobile-c...@googlegroups.com, tle...@couchbase.com

> On Dec 17, 2014, at 6:27 AM, Todd Freese <to...@filmworkers.com> wrote:
>
> ELB does not support CBL long polling. It drops the connection after 1 min.

The iOS replicator will use WebSockets; do those work properly?

On other platforms this can be worked around on the client side by setting the _changes feed's heartbeat to 45 seconds or so. To do this, set the replicator option "heartbeat" to 45000, via Replication.customProperties or from the REST API just adding that property to the JSON body.

—Jens
Reply all
Reply to author
Forward
0 new messages