Using Couchbase Server + Sync Gateway - AMI

530 views
Skip to first unread message

Steven Barlow

unread,
May 20, 2014, 8:45:27 PM5/20/14
to mobile-c...@googlegroups.com
So I fired up the Couchbase Server + Sync Gateway - Community Edition AMI to an EC2 instance (https://aws.amazon.com/marketplace/pp/B00FA8DO50?sr=0-5). The Couchbase Server is running and available on 8091, but I cannot find any trace of Sync Gateway running (on 4984 or 4985).

There is no information in the Readme.txt on the running instance, or in Couchbase_Usage_Instructions.txt.

So what next? I can't find a config.json, or sync_gateway on the instance, just couchbase-sync-gateway-community_1.0-beta2_x86_64.rpm in /home/ec2-user

It's not entirely clear how to consume this AMI from the provided information, and Google has only provided me with more examples of similarly confused individuals, but no answers!

Cheers,
Steven

J. Chris Anderson

unread,
May 20, 2014, 10:27:48 PM5/20/14
to mobile-c...@googlegroups.com
I'm sorry about that. I haven't tried the AMI yet, so thanks for letting us know it's not clear enough. I know this won't be a satisfying answer, but it might be worth pulling down the beta3.1 rpm from http://www.couchbase.com/download#cb-mobile anyway as we fixed a few things since then.

Chris
 

Traun Leyden

unread,
May 27, 2014, 11:32:41 AM5/27/14
to mobile-c...@googlegroups.com

I'm chomping at the bit to create a Dockerfile for Sync Gateway, which would allow it to be launched in a Docker container.  (EC2 doesn't have direct support for Docker yet, but Docker can easily be installed on Ubuntu running on EC2)

I'll post an announcement to the group once I get that done. 


--
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/642073b6-03dc-4d94-b601-5418aba599c1%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Steven Barlow

unread,
May 28, 2014, 3:02:22 AM5/28/14
to mobile-c...@googlegroups.com
After installing my own updated instance of Sync-Gateway, from the new 1.0.0 rpm, I am treated to the important information:


You have successfully installed Couchbase Sync Gateway.


You can start Couchbase Sync Gateway by using the following command:


/opt/couchbase-sync-gateway/bin/sync_gateway



It may be worth including that snippet of goodness somewhere in the AMI instructions! ;)

Cheers,
Steven

Traun Leyden

unread,
Jun 23, 2014, 1:14:35 AM6/23/14
to mobile-c...@googlegroups.com

I've tried maintaining Amazon AMI's before, and found them pretty difficult and time consuming to maintain.  Re-baking an image is a fairly tedious process.  

Docker containers, OTOH, feel much easier to maintain.  Edit a Dockerfile, push a button on a website, and a few minutes later you have a shiny new image -- it's really that easy.

I'm on a mission to make it trivial to spin up a Docker-based cluster of Sync Gateway / Couchbase Server nodes.

As a first step, I've written up two blog posts that walk through the process of doing this:

* Running a Couchbase Cluster on Google Compute Engine
 
 I chose GCE initially because their tooling is so easy to use, but at some point I'm planning to adapt these instructions to Amazon EC2.  This shouldn't be hard, since IAAS/PAAS portability is the big selling point of Docker.  



--
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.

Todd Freese

unread,
Jun 23, 2014, 9:50:41 AM6/23/14
to mobile-c...@googlegroups.com
+1 for this on EC2!

Todd

Traun Leyden

unread,
Jun 23, 2014, 10:46:59 AM6/23/14
to mobile-c...@googlegroups.com

What would your "ideal architecture" look like on EC2?

Several Couchbase Server nodes, each running on their own instance and visible to each other but invisible to the outside world?  (btw which version of Couchbase Server?)

Fronted by a tier of Sync Gateways with port 4984 visible to the outside world?  



On Mon, Jun 23, 2014 at 6:50 AM, Todd Freese <to...@filmworkers.com> wrote:
+1 for this on EC2!

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.

Todd Freese

unread,
Jun 23, 2014, 12:27:49 PM6/23/14
to mobile-c...@googlegroups.com
tI would be great to have 2 setups. One with SG running on same CB node for smaller sites, and one where SG is it's own node for larger nodes.

Todd

Traun Leyden

unread,
Jun 23, 2014, 12:41:45 PM6/23/14
to mobile-c...@googlegroups.com, mobile-c...@googlegroups.com
So initially a single ec2 instance with single node cb server and an SG?

Sent from my iPhone

On Jun 23, 2014, at 9:27 AM, Todd Freese <to...@filmworkers.com> wrote:

tI would be great to have 2 setups. One with SG running on same CB node for smaller sites, and one where SG is it's own node for larger nodes.

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.

Todd Freese

unread,
Jun 23, 2014, 1:31:02 PM6/23/14
to mobile-c...@googlegroups.com
Yes, that would be great as a dev server.

Todd

Traun Leyden

unread,
Sep 4, 2014, 8:54:52 PM9/4/14
to mobile-c...@googlegroups.com

I just found out that ElasticBox offers Couchbase Server and Sync Gateway hosting.

You can use it with any of the following IAAS providers:

* AWS
* Google Compute Engine
* Azure

I haven't tried it yet, but it looks great.  They even let you login w/ your github account.

William Hoang

unread,
Sep 5, 2014, 7:48:37 PM9/5/14
to mobile-c...@googlegroups.com
Using ElasticBox and deploying Couchbase Server in AWS, I am getting:
================================================================================  Error executing action `enable` on resource 'service[couchbase-server]' ================================================================================  Chef::Exceptions::Service ------------------------- service[couchbase-server]: unable to locate the init.d script! 

Is anyone else seeing this?  Not sure which Linus distribution is being used but 'init.d' script is not found.

Todd Freese

unread,
Jan 26, 2015, 7:32:39 PM1/26/15
to mobile-c...@googlegroups.com
When using the AMI, how do I start and stop SG? 

Todd
Reply all
Reply to author
Forward
0 new messages