Getting started

Prev Next

Available in Classic

Getting started with Cloud DB for Cache describes what you need to do to properly use Cloud DB for Cache after checking the Cloud DB for Cache user environment and supported specifications and fully understanding the Quickstart and Glossary The following is the content dealt with in getting started with Cloud DB for Cache:

  • How to create an application server (APP server) from NAVER Cloud Platform console
  • How to test application server connection
  • How to create DB servers from NAVER Cloud Platform console
  • How to test DB server connection

If you complete the above, then you've completed the basic procedure for using Cloud DB for Cache. Afterward, you have the option of proceeding with the following tasks for more efficient server management and operation:

  • Event and notification (alarm) settings using NAVER Cloud Platform's Cloud Insight
  • Permissions management for using NAVER Cloud Platform's Sub Account

The above tasks can be done from Cloud Insight or Sub Account after subscribing, rather than in Cloud DB for Cache, which are not explained in detail in this guide. For more information, see Cloud Insight user guides and Sub Account user guides.

Create application server

To create an application server from NAVER Cloud Platform console, follow these steps:

Caution

In this section, we will briefly introduce how to create an application server. For more information on full creation methods, see Server creation guide.

  1. In the Classic environment of the NAVER Cloud Platform console, navigate to i_menu > Services > Compute > Server.
  2. Click [Create server].
  3. Select the server image and click [Next].
  4. Enter the required information, and then click [Next].
  5. If you do not have an existing authentication key, then create a new authentication key and click [Next].
  6. If you do not have any ACG, create a new one.
  7. For simple installation, set it as 0.0.0.0/0 to allow access from anywhere.
  8. After the final confirmation, click [Create server].
Caution
  • The ACG name of the application server from step 7 is used when adding ACG to the DB server later on.
  • In step 8, configure a single IP address to only allow access from your personal PC, if possible, for security. Check your personal PC's IP address at http://www.findip.kr/.

Set access environment

From NAVER Cloud Platform console, you can set up the access environment for application servers by using port forwarding and a public IP, or SSL and VPN.

Caution

In this section, we will briefly introduce how to set up the access environment. For more information on how to set up access environments, see Port forwarding user guides, Public IP user guides, SSL VPN user guides (Classic).

Set port forwarding

To set port forwarding, follow these steps:

  1. In the Classic environment of the NAVER Cloud Platform console, navigate to i_menu > Services > Compute > Server.
  2. Click the server you want to set up port forwarding, and then click [Set port forwarding].
  3. Enter the port number you want to access from the outside, and then click [Add].
  4. Click the [Apply] button.

Set public IP

To set up a public IP, follow these steps:

  1. In the Classic environment of the NAVER Cloud Platform console, navigate to i_menu > Services > Compute > Server.
  2. Click Public IP.
  3. Click [Request public IP].
  4. Select the target server, enter a memo, and then click [Next].
  5. Click [Create].

Check admin password

To get the admin (root) password required for accessing the application server after setting up the port forwarding or the public IP, follow these steps:

  1. In the Classic environment of the NAVER Cloud Platform console, navigate to i_menu > Services > Compute > Server.
  2. Click [Manage servers and change settings], and then click the Check admin password menu.
  3. Enter the authentication key generated while creating the server.
  4. Click [Check password].
  5. Check the password.

Set SSL VPN

To allow external access to the DB Server to be created by using SSL VPN, follow these steps:

1. Create SSL VPN
2. Set ACG of DB Server
3. Check access information of DB Server

1. Create SSL VPN

To create an SSL VPN, follow these steps:

  1. In the Classic environment of the NAVER Cloud Platform console, navigate to i_menu > Services > Compute > Server.
  2. Click [Request for an SSL VPN].
  3. When the Create SSL VPN popup window appears, enter the required information, and then click [Create].
  4. After creation, check the SSL VPN IP address range from the delivered email or the SSL VPN page of the console.

2. Set ACG of DB Server

To set up a DB Server's ACG, follow these steps:

  1. In the Classic environment of the NAVER Cloud Platform console, navigate to i_menu > Services > Compute > Server.
  2. Click the DB Server menu.
  3. From the details page of the server to be configured, click the clouddbforredis-start_ico-01 button of the ACG.
  4. Click the [Set ACG] button.
  5. Add settings to allow SSL VPN access.
    • Access source: the IP address bandwidth of SSL VPN
    • Allowed port: DB Server port
  6. Click the [Apply] button.

3. Check access information of DB Server

After completing the external access settings using SSL VPN, check the access information of the DB Server. To view the information, follow these steps:

  1. In the Classic environment of the NAVER Cloud Platform console, navigate to i_menu > Services > Compute > Server.
  2. Click the DB Server menu.
  3. Click to select the server you want to check, and check the necessary information from the View details page.
    • DNS name: used similarly to DB server host name
    • DB access port

Test application server connection

You can use the terminal program, PuTTY, to test if you can properly connect to the application server, follow these steps:

  1. Run PuTTY.
  2. Enter the IP address from your public IP or port forwarding settings in Host Name (or IP address), and enter the port number from your public IP or port forwarding settings in Port.
    clouddbforredis-start_01
  3. Click [Open].
  4. When the PuTTY Security Alert popup window appears, click [Accept].
    clouddbforredis-start_02_ko
  5. When the cmd window for server access appears, enter the password you got from Get admin password.
    clouddbforredis-start_03
Note

You can change the password through the passwd commands.

Create DB Server

Some of the services provided by NAVER Cloud Platform require you to go through the subscription procedure from the console before the start of actual usage. However, for Cloud DB for Cache, you can start using it upon creation of a DB Server without a separate subscription step. To create a DB server from NAVER Cloud Platform console, follow these steps:

Caution
  • In this section, we will briefly introduce how to create a DB Server. For more information about full creation methods, see DB Server.
  • Since Cloud DB for Cache does not require an additional subscription step, there is no separate procedure for canceling the subscription. If you want to stop using Cloud DB for Cache and prevent charges from incurring, then delete the DB Servers you created and were running. To delete DB server, see Delete DB server.
  1. In the Classic environment of the NAVER Cloud Platform console, navigate to i_menu > Services > Compute > Server.
  2. Click the DB Server menu.
  3. Click [Create DB Server].
  4. When the subscribe page appears, enter the required information and click [Next].
  5. Click [Create].

Set ACG

To set up Access Control Group (ACG) for DB servers from NAVER Cloud Platform console, follow these steps:

Caution

In this section, we will briefly introduce how to set up ACG. For more information on how to set ACG, see ACG user guides.

  1. In the Classic environment of the NAVER Cloud Platform console, navigate to i_menu > Services > Compute > Server.
  2. Click the ACG menu.
    clouddbforredis-start_01_ko
  3. Click and select the ACG to set up, and then click [Set ACG].
    • Select the ACG of the DB server automatically created
  4. Enter the ACG name of the application server in Access source.
  5. Enter the port number in Allowed port.
  6. Click the [Add] button.
  7. Click the [Apply] button.

Test DB server connection

To test if you can connect properly to the created DB server by installing the DB client, follow these steps:

Caution

Cloud DB for Cache uses the DNS name instead of the IP address of the DB Server to access the server.

  1. Confirm the host IP address and port number to access the DB Server.
  • Click Services > Database > Cloud DB for Cache > DB Server.
    • Host IP address: click the Service name of the DB Server to access and check DNS name
    • Port number: click the service name of the DB Server to access and view access port
  1. Go to Redis official website to check the stable version.
  2. Access the application server.
  3. Download the stable version of Redis confirmed in step 2.
//As of version 6.2.6
[root@redis-web ~]# wget https://download.redis.io/releases/redis-6.2.6.tar.gz
[root@redis-web ~]# tar xvfz redis-6.2.6.tar.gz
[root@redis-web ~]# cd redis-6.2.6
[root@redis-web redis-6.2.6]# make
  1. Go to the redis-6.2.6/src directory and access the Redis Server using the information confirmed in step 1.
[root@redis-web redis-6.2.6]# cd src
[root@redis-web src]# ./redis-cli -h [DNS name] -p [Redis access port] -c
Note

Only for Classic environment

You can also test DB Server connection on a local PC of Windows OS by setting up the access environment using SSL and VPN of NAVER Cloud Platform. Redis does not officially support Windows, but you can download the Redis-Cli installation file (*.msi) of the Windows version from the GitHub repository in the Microsoft Open Tech group. To test the connection on a local PC with Windows OS by installing Redis-Cli, follow these steps:

  1. Download the Redis-Cli installation file from the GitHub repository in Microsoft Open Tech group.
  2. Install DB in the desired path on the local PC.
  3. Press the Windows key and the R key.
  4. When the Run window appears, enter cmd and click [OK].
  5. When the Command prompt window appears, go to the directory where DB is installed.
  6. Check the host IP address, port number, account ID, and password to access the DB Server.
    • Host IP address: check DNS name
    • Port number: check access port
    • Account ID: check the value set when creating the DB Server
    • Account password: check the value set when creating the DB Server
  7. Access the DB Server using the information found in 6.