Documentation Index

Fetch the complete documentation index at: https://guide.ncloud-docs.com/llms.txt

Use this file to discover all available pages before exploring further.

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) in the NAVER Cloud Platform console.
  • How to test application server connection.
  • How to create a DB Server in the NAVER Cloud Platform console.
  • How to test access to the DB Server.

If you complete the above, then you've completed the basic procedure for using Cloud DB for Cache. Afterward, you can perform 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. Learn more in the Cloud Insight user guide and Sub Account user guide.

Create an application server

To create an application server from the NAVER Cloud Platform console:

Caution

This section provides a brief overview of how to create an application server. For detailed information about the full creation procedure, refer to the Server creation guide.

  1. In the Classic environment of the NAVER Cloud Platform console, navigate to Menu > All services > Compute > Server.
  2. Click [Create server].
  3. Select the server image and click [Next].
  4. Enter the required information and 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 a simple setup, set the access range to 0.0.0.0/0 to allow access from all locations.
  8. After the final confirmation, click [Create server].
Caution
  • You use the application server ACG name later when adding an ACG to the DB server.
  • For security, set a single IP address so that only your personal PC can access the server. Check your personal PC IP address at http://www.findip.kr/.

Configure the connection 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

This section provides a brief overview of 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).

Configure port forwarding

To configure port forwarding:

  1. In the Classic environment of the NAVER Cloud Platform console, navigate to Menu > All 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 [Apply].

Set public IP

To set up a public IP:

  1. In the Classic environment of the NAVER Cloud Platform console, navigate to Menu > All services > Compute > Server.
  2. Click Public IP.
  3. Click [Request public IP].
  4. Select the target server, enter a memo, and 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 Menu > All services > Compute > Server.
  1. Click [Server management and settings] and click the Check Administrator Password menu.
  2. Enter the authentication key generated while creating the server.
  3. Click [Check password].
  4. 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 the DB Server's ACG
3. Check the access information of the DB Server

1. Create SSL VPN

To create an SSL VPN:

  1. In the Classic environment of the NAVER Cloud Platform console, navigate to Menu > All services > Security > SSL VPN.
  2. Click [Request for an SSL VPN].
  3. When the Create SSL VPN popup 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 interface of the console.

2. Set the DB Server's ACG

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

  1. In the Classic environment of the NAVER Cloud Platform console, navigate to Menu > All services > Database > Cloud DB for Cache.
  2. Click the DB Server menu.
  3. From the details interface of the server to be configured, click clouddbforredis-start_ico-01 of the ACG.
  4. Click [Set ACG].
  5. Add settings to allow SSL VPN access.
    • Access source: IP address range of the SSL VPN
    • Allowed port: DB Server port.
  6. Click [Apply].

3. Check the access information of the DB Server

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

  1. In the Classic environment of the NAVER Cloud Platform console, navigate to Menu > All services > Database > Cloud DB for Cache.
  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 interface.
    • DNS name: Used similarly to DB server host name
    • DB access port

Test the application server connection

To test connectivity to the application server using the PuTTY terminal program:

  1. Run PuTTY.
  2. In Host Name (or IP address) enter the public IP or the IP address obtained through port forwarding, and in Port, enter the port number obtained through the public IP or port forwarding configuration.
    clouddbforredis-start_01
  3. Click [Open].
  4. When the PuTTY security alert popup appears, click [Yes].
    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 in the NAVER Cloud Platform console:

Caution
  • This section provides a brief overview of how to create a DB Server. For detailed instructions on the full creation process, see DB Server.
  • Because Cloud DB for Cache does not require a separate subscription step, there is no separate unsubscribe procedure. To stop using Cloud DB for Cache and prevent further charges, delete the DB server you created and are operating. For instructions on how to delete a DB server, see DB Server.
  1. In the Classic environment of the NAVER Cloud Platform console, navigate to Menu > All services > Database > Cloud DB for Cache.
  2. Click the DB Server menu.
  3. Click [Create DB Server].
  4. When the subscribe interface appears, enter the required information and click [Next].
  5. Click [Create].

ACG settings

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

Caution

This section provides a brief overview of how to set up ACG. For more information on how to set ACG, see ACG user guide.

  1. In the Classic environment of the NAVER Cloud Platform console, navigate to Menu > All services > Database > Cloud DB for Cache.
  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 automatically created DB Server ACG.
  4. Enter the ACG name of the application server in Access source.
  5. Enter the port number in Allowed port.
  6. Click [Add].
  7. Click [Apply].

Test DB Server connection

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

Caution

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

  1. Check the host IP address and port number required to connect to the DB server.
  • Click Menu > All services > Database > Cloud DB for Cache > DB Server.
    • Host IP address: Click the Service name of the DB server you want to connect to and check the DNS name.
    • Port number: Click the Service name of the DB server you want to connect to and check the Access port.
  1. Go to the Official Redis website and check the Stable version.
  2. Access the application server.
  3. Download the stable version of Redis confirmed in step 2.
//Based on 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 connection 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 required to connect to the DB server.
    • Host IP address: Check the DNS name.
    • Port number: Check the Connection port.
    • Account ID: Check the values set when creating the DB Server.
    • Account password: Check the values set when creating the DB Server.
  7. Access the DB Server using the information found in 6.