GithubHelp home page GithubHelp logo

isabella232 / mongodb-cloud-manager Goto Github PK

View Code? Open in Web Editor NEW

This project forked from googlecloudplatform/mongodb-cloud-manager

0.0 0.0 0.0 17 KB

Bootstrap multiple Google Compute Engine instances with the MongoDB Cloud Manager automation agent

License: Apache License 2.0

HTML 100.00%

mongodb-cloud-manager's Introduction

MongoDB via Cloud Manager

Bootstrap multiple Google Compute Engine instances with the MongoDB Cloud Manager agent.

Prerequisites

Google Cloud Platform

  • Create a Google Cloud Platform account (and enable billing)
  • Install and setup the Google Cloud SDK
  • Enable the Deployment Manager and Compute Engine APIs
  • Set your project: gcloud config set project PROJECT-ID
  • Set the preferred zone: gcloud config set compute/zone ZONE

MongoDB Cloud Manager

  • Create a MongoDB Cloud Manager account
  • Navigate to Cloud Manager > Settings > Group Settings and copy the Group ID and Agent API Key at the top of the page, you will need these values below.

Note: MongoDB Cloud Manager is a paid service from MongoDB, Inc. and is governed by the MongoDB Cloud Manager terms of service

Deploying Configuration

Properties

The Deployment Manager template uses a schema that defines and describes the properties required for the deployment:

machineType

zone

mmsGroupId

  • No default value set
  • Use the value from Group Id above when deploying (see example below)

mmsApiKey

  • No default value set
  • Use the value from Agent API Key above when deploying (see example below)

Creating Deployment

Create the deployment using the Deployment Manager configuration template:

$ gcloud deployment-manager deployments create mongodb-cloud-manager \
  --template mongodb-cloud-manager.jinja \
  --properties mmsGroupId:MMSGROUPID,mmsApiKey:MMSAPIKEY

Optionally, to override the default values for machineType or zone use the following:

$ gcloud deployment-manager deployments create mongodb-cloud-manager \
  --template mongodb-cloud-manager.jinja \
  --properties machineType:n1-highmem-8,zone:us-central1-d,mmsGroupId:MMSGROUPID,mmsApiKey:MMSAPIKEY

The Deployment Manager configuration creates three 500GB Persistent SSDs and attaches them to three Compute Engine instances. Each instance then runs a startup script that configures and attaches storage, and installs the MongoDB Cloud Manager automation agent.

Deploy MongoDB using Cloud Manager

Once the instances have completed the setup process, they should be visible via Cloud Manager > Deployment > Servers in a few minutes. To deploy MongoDB, refer to the instructions for Deploying a Replica Set.

Clean Up

First, unmanage the deployment via Cloud Manager. Refer to the documentation on Removing a Process from Management for more information.

Next, delete the deployment from Google Cloud Platform.

Note that all configuration resources (instances, disks) will be deleted.

$ gcloud deployment-manager deployments delete mongodb-cloud-manager

Notes

  • Three instances are created by this configuration, sufficient for a MongoDB Replica Set. To deploy a MongoDB Sharded Cluster, consider adding additional instance entries in the mongodb-cloud-manager.jinja configuration template.
  • Instances are created within the default network however no MongoDB-specific firewall rules are added. To add rules that allow incoming traffic to your MongoDB deployment, refer to the Firewalls documentation.
  • The Google Cloud Platform Pricing Calculator estimate of the monthly costs to run this deplyoment configuration can be found here

mongodb-cloud-manager's People

Contributors

analyticalmonk avatar crcsmnky avatar don4of4 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.