Hosting Keystone JS with MongoDB in AWS?

1,071 views
Skip to first unread message

Pradeep Gokul

unread,
May 18, 2016, 7:18:53 AM5/18/16
to Keystone JS
Hi, there I have been trying to host my keystone site on Amazon Web Service, any thought?

Ryan Cole

unread,
Jun 15, 2016, 5:00:49 AM6/15/16
to Keystone JS
I'm curious to hear how this went. Do you run the app and the DB service in the same VM? Seperate VMs?

Vladimir Ilic

unread,
Jun 15, 2016, 12:07:59 PM6/15/16
to Keystone JS
We are using AWS and keystone for our project and our infrastructure is similar to this:
  1. All our code is baked inside docker containers.
  2. We have (depending on EC2 instance) 2-4 containers running behind HAProxy (and ELB in front of it). Depending to environment we have from one to many EC2 instances always active (auto scaling is up).
  3. MongoDb is replica set with multiple nodes (separated EC2 instances).
All works like a charm (except when master mongo instance is down, keystone does not reconnect automatically to the new one).

Ryan Cole

unread,
Jul 5, 2016, 4:21:33 AM7/5/16
to Keystone JS
I still don't feel like I understand the nuts and bolts of mongo enough to be comfortable hosting my own instances like that. :p

Jonathan Watson

unread,
Jul 5, 2016, 5:26:59 PM7/5/16
to Keystone JS
For small applications I've had no problems running Keystone and Mongo on the same (micro or small) VM in AWS with CloudFlare in front to cache the pages. These were not mission critical apps though and your mileage may vary. Certainly for anything more than a basic app a clustered solution as described above might be much more suitable. 
Reply all
Reply to author
Forward
0 new messages