top

Ways to Host MongoDB On Google Cloud Platform

When we talk about databases, the fastest growing database technology MongoDB comes into the picture.  The world is on the verge of information overload and huge databases are needed to store and manipulate this information. Google Cloud Platform is the cloud computing platform offered by Google which supports the same infrastructure that Google uses for its end user products like Google Search and Youtube. Google allows the deployment of MongoDB on its cloud platform and it has given strength to the organizations and industries dealing with huge databases. Zeolearn offers Mongodb course under the supervision of professional trainers. You can easily deploy the Mongodb to the Cloud platform. You need to consider the following factors before deploying Mongodb to Google Cloud Platform Prerequisites for Deploying MongoDB to Google Cloud Platform Selecting Machine Type Google Compute Engine delivers virtual machines running in Google's innovative data centers and worldwide fiber network. Standard machine type for MongoDB deployment should have good balance of CPU and memory resources. High-memory machine types generally considered as ideal for workloads that require more memory relative to CPUs. Performance in MongoDB servers can be increased by minimizing the disk access. Disk access can be minimized by resizing the MongoDB server instance such that the active working data set can be kept in memory. Deploying MongoDB arbiter servers includes the usage of g1-small. Arbiter are mostly idle and only exchanges heartbeat information with other MongoDB servers. It becomes active for only short period of time when it’s the time to select new primary need .Shared core instances of g1- small is certainly an inexpensive way to reserve critical CPU cycles which are needed infrequently. Configuration of persistent disks High-performing and consistent block storage, two most important things offered by Persistent disks. Persistent disks functionality is similar to the physical disks in a desktop or in a server. These are durable storage devices which are located independently from user’s virtual machine instance, so user can detach or move these disks for keeping the data even after deleting the instances. Compute Engine persistent disks are available as standard hard disk drives (HDD) or solid-state drives (SDD). Sequential read/write workloads are supported by standard persistent disks but it is not useful for random read/write workloads. SSD persistent disks are considered best for MongoDB deployment because they provide the best ratio of price to performance and supports high rates of random input/output operations per second(IOPS). Things Need to take care While Sizing The Disks These things one should keep in mind while sizing the disks for MongoDB data The size should be pre computed and calculated which is needed for users data. The disk size calculated should be checked for performance, whether this size is suitable for the user to write his/her data, journal files and logs. If this is not effective then user should go for larger size. Ways To Deploy Mongodb On Cloud There are number of ways to deploy MongoDB on Cloud Stage, including (but not limited to):Cloud launcher for MongoDB It is considered as the simplest way of deploying MongoDB on Google cloud platform, allowing quick upload of replica set through the web.MongoDB cloud Manager Supporting more complex deployments than the Cloud Launcher , such as complex replica sets or sharded clusters. However, user can configure the Compute Engine instances and deploy software agents manually. Google Cloud Deployment Manager Setting up of MongoDB Cloud Manager automatically includes the resource provisioning and configuration steps .If it is not done automatically anyways users has to do all this manually. Cloud Launcher for MongoDB We can deploy functional software packages that can run on Cloud Platforms very easily and quickly with the help of Google Cloud launcher. It lets the user to deploy the software with the predefined configurations without any manual changes in the software, virtual machine, storage or network settings. Cloud launcher for MongoDB provides a quick deploy of replica with seven virtual machines and simplifying the initial configuration steps. By default, MongoDB replica set is deployed by Cloud Launcher with primary, secondary and arbiter. According to the desired configuration it lets user to choose its preferred machine type and disk type. As the replica set gets uploaded, user can update its cluster information. MongoDB Cloud Manager MongoDB Cloud Manager is the easiest way of running MongoDB on Cloud. MongoDB Cloud Manager constitutes of MongoDB’s configuration, query optimization, monitoring and backup facilities. It provides a backup plan solution for different MongoDB deployments .MongoDB Cloud Manager allows the deployment and configuration of MongoDB replica sets and shared  clusters. It also includes the ability of monitoring ,that allows you to view over one hundred MongoDB metrics, complete with custom alerting and integration with other application performance monitoring solutions. Using MongoDB Cloud Manager with Google Cloud Platform: Creating a MongoDB Cloud Manager account and copy the "mmsGroupId" and "mmsApiKey". Get equipped with Compute Engine instances and persistent disks for your MongoDB cluster. Configuring persistent disks to each Compute Engine instance. MongoDB Cloud Manager Automation agent should be installed and configured. Return to the MongoDB Cloud Manager interface and complete the cluster setup.   MongoDB Cloud Manager using Deployment Manager Cloud Development Manager templates can be used alternatively to perform all of the steps in Setting up MongoDB Cloud Manager. These templates are used to automate the configuration of Compute Engine instances. Deployment Manager allows you to specify all of the resources needed for your MongoDB deployment in a declarative format. In addition, you can parameterize your templates , which allows them to take different input values and makes them more flexible and reusable. Deployment Manager templates are organized into declarative configurations comprised of resource definitions and runtime properties. Deployment Manager allows the user to know about all the resources needed for his/her MongoDB deployment in a declarative format. The templates are parameterized in Deployment manager, which allows them to take different input values and making it more flexible and reusable. Declarative configuration of the templates comprises of resource definitions and runtime properties. Templates provided by MongoDB Cloud Manager allow users to quickly get equipped and configure multiple Compute Engine instances. Each of the instances are associated with persistent SSD for data storage, and automatically configuring the MongoDB Cloud Manager Automation Agent. Following steps are required to use Deployment Manager templates to bootstrap MongoDB Cloud Manager: Creating a MongoDB Cloud Manager account and copying the "mmsGroupId" and "mmsApiKey". Clone the mongodb-cloud-manager GitHub repo. Configuration should be deployed using the values copied earlier, well explained in mongodb-cloud-manager README file. Return to the MongoDB Cloud Manager interface and complete the cluster setup.  
Rated 4.0/5 based on 20 customer reviews
Normal Mode Dark Mode

Ways to Host MongoDB On Google Cloud Platform

Susan May
Blog
29th Jun, 2016
Ways to Host  MongoDB On Google Cloud Platform

When we talk about databases, the fastest growing database technology MongoDB comes into the picture.  The world is on the verge of information overload and huge databases are needed to store and manipulate this information. Google Cloud Platform is the cloud computing platform offered by Google which supports the same infrastructure that Google uses for its end user products like Google Search and Youtube. Google allows the deployment of MongoDB on its cloud platform and it has given strength to the organizations and industries dealing with huge databases. Zeolearn offers Mongodb course under the supervision of professional trainers.

You can easily deploy the Mongodb to the Cloud platform. You need to consider the following factors before deploying Mongodb to Google Cloud Platform

Prerequisites for Deploying MongoDB to Google Cloud Platform

Selecting Machine Type

Mongodb Machine Type

Google Compute Engine delivers virtual machines running in Google's innovative data centers and worldwide fiber network. Standard machine type for MongoDB deployment should have good balance of CPU and memory resources. High-memory machine types generally considered as ideal for workloads that require more memory relative to CPUs.

Performance in MongoDB servers can be increased by minimizing the disk access. Disk access can be minimized by resizing the MongoDB server instance such that the active working data set can be kept in memory.

Deploying MongoDB arbiter servers includes the usage of g1-small. Arbiter are mostly idle and only exchanges heartbeat information with other MongoDB servers. It becomes active for only short period of time when it’s the time to select new primary need .Shared core instances of g1- small is certainly an inexpensive way to reserve critical CPU cycles which are needed infrequently.

Configuration of persistent disks

Mongodb Disk Configuration

High-performing and consistent block storage, two most important things offered by Persistent disks. Persistent disks functionality is similar to the physical disks in a desktop or in a server. These are durable storage devices which are located independently from user’s virtual machine instance, so user can detach or move these disks for keeping the data even after deleting the instances.

Compute Engine persistent disks are available as standard hard disk drives (HDD) or solid-state drives (SDD). Sequential read/write workloads are supported by standard persistent disks but it is not useful for random read/write workloads.

SSD persistent disks are considered best for MongoDB deployment because they provide the best ratio of price to performance and supports high rates of random input/output operations per second(IOPS).

Things Need to take care While Sizing The Disks

Mongodb Disk Sizing

These things one should keep in mind while sizing the disks for MongoDB data

  • The size should be pre computed and calculated which is needed for users data.
  • The disk size calculated should be checked for performance, whether this size is suitable for the user to write his/her data, journal files and logs. If this is not effective then user should go for larger size.

Ways To Deploy Mongodb On Cloud Ways to deploy MongodbThere are number of ways to deploy MongoDB on Cloud Stage, including (but not limited to):Cloud launcher for MongoDB It is considered as the simplest way of deploying MongoDB on Google cloud platform, allowing quick upload of replica set through the web.MongoDB cloud Manager

Supporting more complex deployments than the Cloud Launcher , such as complex replica sets or sharded clusters. However, user can configure the Compute Engine instances and deploy software agents manually.

Google Cloud Deployment Manager

Setting up of MongoDB Cloud Manager automatically includes the resource provisioning and configuration steps .If it is not done automatically anyways users has to do all this manually.

Cloud Launcher for MongoDB

Mongodb Cloud launcher

We can deploy functional software packages that can run on Cloud Platforms very easily and quickly with the help of Google Cloud launcher. It lets the user to deploy the software with the predefined configurations without any manual changes in the software, virtual machine, storage or network settings.

Cloud launcher for MongoDB provides a quick deploy of replica with seven virtual machines and simplifying the initial configuration steps. By default, MongoDB replica set is deployed by Cloud Launcher with primary, secondary and arbiter. According to the desired configuration it lets user to choose its preferred machine type and disk type. As the replica set gets uploaded, user can update its cluster information.

MongoDB Cloud Manager

Mongodb Cloud Manager

MongoDB Cloud Manager is the easiest way of running MongoDB on Cloud. MongoDB Cloud Manager constitutes of MongoDB’s configuration, query optimization, monitoring and backup facilities. It provides a backup plan solution for different MongoDB deployments .MongoDB Cloud Manager allows the deployment and configuration of MongoDB replica sets and shared  clusters. It also includes the ability of monitoring ,that allows you to view over one hundred MongoDB metrics, complete with custom alerting and integration with other application performance monitoring solutions.

Using MongoDB Cloud Manager with Google Cloud Platform:

  • Creating a MongoDB Cloud Manager account and copy the "mmsGroupId" and "mmsApiKey".
  • Get equipped with Compute Engine instances and persistent disks for your MongoDB cluster.
  • Configuring persistent disks to each Compute Engine instance.
  • MongoDB Cloud Manager Automation agent should be installed and configured.
  • Return to the MongoDB Cloud Manager interface and complete the cluster setup.

 

MongoDB Cloud Manager using Deployment Manager

Mongodb Deployment Manager

Cloud Development Manager templates can be used alternatively to perform all of the steps in Setting up MongoDB Cloud Manager. These templates are used to automate the configuration of Compute Engine instances.

Deployment Manager allows you to specify all of the resources needed for your MongoDB deployment in a declarative format. In addition, you can parameterize your templates , which allows them to take different input values and makes them more flexible and reusable. Deployment Manager templates are organized into declarative configurations comprised of resource definitions and runtime properties.

Deployment Manager allows the user to know about all the resources needed for his/her MongoDB deployment in a declarative format. The templates are parameterized in Deployment manager, which allows them to take different input values and making it more flexible and reusable. Declarative configuration of the templates comprises of resource definitions and runtime properties.

Templates provided by MongoDB Cloud Manager allow users to quickly get equipped and configure multiple Compute Engine instances. Each of the instances are associated with persistent SSD for data storage, and automatically configuring the MongoDB Cloud Manager Automation Agent.

Following steps are required to use Deployment Manager templates to bootstrap MongoDB Cloud Manager:

  • Creating a MongoDB Cloud Manager account and copying the "mmsGroupId" and "mmsApiKey".
  • Clone the mongodb-cloud-manager GitHub repo.
  • Configuration should be deployed using the values copied earlier, well explained in mongodb-cloud-manager README file.
  • Return to the MongoDB Cloud Manager interface and complete the cluster setup.

 

Susan

Susan May

Writer, Developer, Explorer

Susan is a gamer, internet scholar and an entrepreneur, specialising in Big Data, Hadoop, Web Development and many other technologies. She is the author of several articles published on Zeolearn and KnowledgeHut blogs. She has gained a lot of experience by working as a freelancer and is now working as a trainer. As a developer, she has spoken at various international tech conferences around the globe about Big Data.


Website : https://www.zeolearn.com

Leave a Reply

Your email address will not be published. Required fields are marked *

SUBSCRIBE OUR BLOG

Follow Us On

Share on

other Blogs