Getting started

Prev Next

Available in VPC

Cloud DB for Cache getting started explains the tasks you must perform to use Cloud DB for Cache properly after reviewing the usage environment and supported specifications and becoming familiar with the overall quickstart and glossary. Cloud DB for Cache getting started covers the following topics:

  • How to create an application server (APP server) in the NAVER Cloud Platform console.
  • How to test access to the application server.
  • How to create a DB server in the NAVER Cloud Platform console.
  • How to test access to the DB server.

Once you complete these steps, you have finished the basic process required to use Cloud DB for Cache. Afterward, you can perform the following tasks for more efficient server management and operation.

  • Configure events and notifications (alarms) using Cloud Insight in the NAVER Cloud Platform.
  • Operational permissions management using Sub Account in the NAVER Cloud Platform.

You can perform these tasks after requesting access to Cloud Insight and Sub Account, not Cloud DB for Cache, and this guide does not describe them in detail. Learn more in the Cloud Insight user guide and Sub Account user guide

Create an application server

To create an application server in 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. Access the NAVER Cloud Platform console.
  2. Click Region & Platform at the upper right of the console interface.
  3. Select the Region in use and the VPC platform, and then click [Apply].
  4. At the upper left of the console interface, Click the iconi_menu.
  5. Navigate to Services > Compute > Server.
  6. Click [Create Server].
  7. Select a server image and click [Next].
  8. Enter the required information and click [Next].
  9. If you do not have an authentication key, create a new one and click [Next].
  10. If you do not have an ACG, create a new ACG.
  11. For a simple setup, set the access range to 0.0.0.0/0 to allow access from all locations.
  12. After completing the final review, 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

You can configure the application server connection environment using a public IP in the NAVER Cloud Platform console.

Caution

This section briefly introduces how to configure the connection environment. For detailed information about configuring the connection environment, refer to the Public IP user guide.

Public IP configuration

To configure a public IP:

  1. In the VPC 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].

Administrator password check

To check the administrator (root) password required to access the application server after configuring a public IP:

  1. In the VPC environment of the NAVER Cloud Platform console, navigate to i_menu > Services > Compute > Server.
  2. Click [Server Management and Settings], and then click the Check Administrator Password menu.
  3. Enter the authentication key created when you created the server.
  4. Click [Check Password].
  5. Check the password.

Test the application server connection

To test whether you can successfully connect 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 command window for server access appears, enter the password obtained from checking the administrator password.
    clouddbforredis-start_03
Note

You can change the password using passwd commands.

DB Server creation

Some services provided by the NAVER Cloud Platform require a usage request process in the console before you can begin actual use. However, Cloud DB for Cache starts usage immediately upon DB server creation without a separate usage request step. To create a DB server in the NAVER Cloud Platform console:

Caution
  • This section briefly introduces 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 VPC environment of the NAVER Cloud Platform console, navigate to i_menu > Services > Database > Cloud DB for Cache.
  2. Click the DB server menu.
  3. Click [Create DB server].
  4. When the service subscription interface appears, enter the required information and click [Next] .
  5. Click [Create].

Configure the ACG

To configure the ACG (Access Control Group) for a DB server in the NAVER Cloud Platform console:

Caution

This section briefly introduces how to configure an ACG. For detailed instructions on ACG configuration, see the ACG user guide.

  1. In the VPC environment of the NAVER Cloud Platform console, navigate to i_menu > Services > Database > Cloud DB for Cache.
  2. Click ACG.
    clouddbforredis-start_01_1_ko
  3. Select the ACG you want to configure, and then click [Configure ACG].
    • Select the automatically created DB server ACG.
  4. In Access Source, enter the application server ACG name.
  5. In Allowed Port, enter the port number.
  6. Click [Add].
  7. Click [Apply].

DB server connection test

DB Client

To test whether you can successfully connect to the created DB server by installing a DB Client:

Caution

In Cloud DB for Cache, you access the server using a DNS name rather than the DB server IP address.

  1. Check the host IP address and port number required to connect to the DB server.
    • From Cloud DB for Cache > DB server, select the target Cloud DB for Cache, click the "Manage" button at the top, and then click DB Service details.
    • Host IP address: Click the Service name of the DB server you want to connect to and check the DNS.
    • Port number: Clickclouddbforredis-start_0612_vpc(1)of the DB server and check the connection port.
  2. Go to the official Redis website and check the Stable version.
  3. Access the application server.
  4. Download the Stable version of the DB you checked 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
    
  5. After moving to the directory redis-6.2.6/src, use the information you checked in step 1 to connect to the DB server.
    [root@redis-web redis-6.2.6]# cd src
    [root@redis-web src]# ./redis-cli -h [DNS name] -p [Redis connection port] -c
    

Valkey Client

To test whether you can successfully connect to the created DB server by installing Valkey Client:

Caution

In Cloud DB for Cache, you access the server using a DNS name rather than the DB server IP address.

  1. Check the host IP address, port number, account ID, and password required to connect to the DB server.
  • From Cloud DB for Cache > DB Server, select the target Cloud DB for Cache, click the "Manage" button at the top, and then click DB Service details.
    • Host IP address: Click the Service name of the DB server you want to connect to and check the DNS.
    • Port number: Check the Connection port.
    • Account ID and password: Check the values set when creating the DB server.
  1. Go to the official Valkey website and check the Stable version.
  2. Access the application server.
  3. Download the Stable version of Valkey you checked in step 2.
//Based on version 7.2.11
[root@valkey-web ~]# wget https://github.com/valkey-io/valkey/archive/refs/tags/7.2.11.tar.gz
[root@valkey-web ~]# tar xvzf 7.2.11.tar.gz
[root@valkey-web ~]# cd valkey-7.2.11/
[root@valkey-web valkey-7.2.11]# make
  1. After moving to the directory valkey-7.2.11/src/, use the information you checked in step 1 to connect to the DB server.
[root@valkey-web valkey-7.2.11]# cd src
[root@valkey-web src]# ./valkey-cli --user [User name] --pass [Password] -h [DNS name] -p [Port number]