Cloud DB for MongoDB quickstart

Prev Next

Available in VPC

Cloud DB for MongoDB on the NAVER Cloud Platform enables you to quickly and easily build MongoDB servers in a cloud environment and operate and manage them to provide stable database services. The overall workflow for using Cloud DB for MongoDB on the NAVER Cloud Platform is as follows:

clouddbforpostgresql-procedure_01_vpc_ko.png

Each step is described as follows:

1. Create an application server
2. Configure the connection environment
3. Test the application server connection
4. Create a MongoDB server
5. Configure the ACG
6. Test the MongoDB server connection

1. Create an application server

First, create an application server (APP server) that will communicate with the MongoDB server you create in Cloud DB for MongoDB in the NAVER Cloud Platform console. Because Cloud DB for MongoDB is currently accessible only within the NAVER Cloud Platform, the application server must also be located within the NAVER Cloud Platform. In the NAVER Cloud Platform console, you can create an application server (APP server) ini_menu > Services > Compute > Server menu.
For detailed instructions, see:

2. Configure the connection environment

After you complete the application server creation, configure the connection environment so you can access the application server. There are two ways to configure the connection environment:

  • Configure access to the private domain using a public IP on the NAVER Cloud Platform
  • Configure external access using the SSL VPN on the NAVER Cloud Platform

When you configure access using a public IP, check the administrator (root) password required to access the server by using the administrator password check feature. When you configure access using SSL VPN, you can access the MongoDB server by installing an SSL VPN client on your personal PC. Using SSL VPN is more secure when the server is used for administrative purposes.
For detailed instructions, see:

3. Test the application server connection

After you complete the connection environment configuration, test whether you can successfully connect to the application server by using a terminal program.
For detailed instructions, see:

4. Create a MongoDB server

After you complete the application server connection test, create a MongoDB server that will communicate with the application server. You can create a MongoDB server directly from i_menu > Services > Database > Cloud DB for MongoDB in the NAVER Cloud Platform console without submitting a separate service request.
For detailed instructions, see:

Server redundancy configuration

You can configure server redundancy to prevent data loss and minimize service impact in the event of a failure. Cloud DB for MongoDB creates a primary DB server and a secondary DB server and provides automatic failover to the secondary server if the primary server fails. According to MongoDB’s internal algorithm, a new primary server is elected from the secondary servers.

clouddbformongodb-procedure_failover

To configure server redundancy, select Single Replica Set or Sharding as the cluster type when creating the MongoDB server.

Monitoring and event management

You can monitor server performance and operating system status and review events for running MongoDB servers from the NAVER Cloud Platform console to manage database services in a stable manner. You can also configure events and notifications (alarms) by using Cloud Insight on the NAVER Cloud Platform.

Caution

Additional charges apply when you subscribe to Cloud Insight. For information about Cloud Insight and its pricing plans, see Services > Management & Governance > Cloud Insight on the NAVER Cloud Platform portal.

For detailed instructions, see:

Administrative and operational permission management

In addition to the main account, you can create sub accounts to configure various management and operation permissions for Cloud DB for MongoDB. You can design permissions by using system-managed and user-created policies in Sub Account on the NAVER Cloud Platform.

Note

Sub Account is a free service with no additional charges. For detailed information about Sub Account and its pricing, see Services > Management & Governance > Sub Account on the NAVER Cloud Platform portal.

For detailed instructions, see:

Log and backup file storage

You can securely store log files or backup files generated on the MongoDB server by using Object Storage on the NAVER Cloud Platform.

Caution

Additional charges apply when you subscribe to Object Storage. For information about Object Storage and its pricing plans, see Services > Storage > Object Storage on the NAVER Cloud Platform portal.

For detailed instructions, see:

5. Configure the ACG

Configure the Access Control Group (ACG) of the MongoDB server so that the application server can access the MongoDB server.
For detailed instructions, see:

6. Test the MongoDB server connection

Test whether you can successfully connect to the created MongoDB server by using MongoDB Compass.
For detailed instructions, see: