Skip to content

celingest/mongo-formation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

MongoFormation

These are our CloudFormation templates to create a testbed to benchmark MongoDB in AWS using different AMIs types and Performance Optimized EBS with PIOPS.

We used the templates provided by 10gen at MongoDB website Automating Deployment with CloudFormation as a reference, modifying parts according to our needs:

  • Limit the access to only one IP/Network;
  • Deploy using the latest AMIs and two different Availability Zones;
  • Permit the use of MongoDB's REST interface;
  • Use an optimized setup;
  • Spread Replicas over optimized EBS using LVM instead of Raid10 or Raid0;
  • Add extra checks and configurations to fully automate the process;
  • Extra tags on CloudFormation objects to facilitate their identification.

Benchmark's Results are available at our blog Benchmarking MongoDB Replica Set in AWS and templates are commented at Creating MongoDB Replicas with CloudFormation. )

To use the templates

The easiest way is to download MongoStackCLNGS-2.cftemplate then go to AWS:CloudFormation -> Create New Stack -> Upload a Template File, choose the file you just downloaded. Now You can fill the form and launch the CloudFormation.

You can also use directly the RAW version of this file and use its url: https://raw.github.com/celingest/mongo-formation/master/MongoStackCLNGS-2.cftemplate in Create New Stack -> Provide a Template URL.

Our template uses an external template file located in our S3 bucket: https://s3-eu-west-1.amazonaws.com/mongodb-clngs/MongoNodeCLNGS-2.cftemplate, you can download the https://raw.github.com/celingest/mongo-formation/master/MongoNodeCLNGS-2.cftemplate file and upload it to your own URL, then modify the main template.

Update

Last template release works seamlessy also in EC2 Default VPC. You can find the more details in our Blog: MongoDB 2.4 Replicas with CloudFormation in Default VPC

Credits

Celingest

Blog Celingest

AWS Profile

About

AWS CloudFormation template for MongoDB 3-node ReplicaSet

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published