Getting started with Cloud DB for Redis
    • PDF

    Getting started with Cloud DB for Redis

    • PDF

    Article Summary

    Available in Classic and VPC

    The Getting started with Cloud DB for Redis guide describes what you need to do to properly use Cloud DB for Redis after checking the Cloud DB for Redis use environment and supported specifications and fully understanding the overall Usage scenario and Glossary. The items described in Getting started with Cloud DB for Redis are as follows.

    • How to create an application server (app server) from the NAVER Cloud Platform console.
    • How to test application server connection
    • How to create a Redis server from the NAVER Cloud Platform console.
    • How to test Redis server connection

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

    • Event and notification settings using NAVER Cloud Platform's Cloud Insight
    • Management of administration permissions using NAVER Cloud Platform's Sub Account

    The above tasks can be done from Cloud Insight or Sub Account after requesting subscription, rather than in Cloud DB for PostgreSQL. They are not explained in detail in this guide. For detailed instructions, please refer to the Cloud Insight Guide, Sub Account Guide.

    Create application server

    The following describes how to create an application server from the NAVER Cloud Platform console.

    Caution

    In this section, we will briefly introduce how to create an application server. For details about full creation methods, please refer to the Server Creation Guide.

    1. From the NAVER Cloud Platform console's Platform menu, select and click between VPC and Classic.
    2. Click the Services > Compute > Server menus in this order.
    3. Click the [Create server] button.
    4. Select the server image and click the [Next] button.
    5. Enter the required information, and then click the [Next] button.
    6. If you do not have an existing authentication key, then create a new authentication key and click the [Next] button.
    7. If you do not have any ACGs, then create a new ACG.
    8. For simple installation, set it as 0.0.0.0/0 to allow access from anywhere.
    9. After the final confirmation, click the [Create server] button.
    Caution
    • The ACG name of the application server from Step 7 is used when adding the ACG to the Redis server later on.
    • In Step 8, configure a single IP address to only allow access from your personal PC, if possible, for security. You can check the IP address of your personal PC from http://www.findip.kr/.

    Set access environment (VPC)

    You can set up the access environment for the application server using a public IP from the NAVER Cloud Platform console.

    Caution

    In this section, we will briefly introduce how to set up the access environment. For details about setting up access environment, please refer to the Public IP Guide.

    Set public IP

    The following describes how to set up a public IP.

    1. From the NAVER Cloud Platform console's Platform menu, select and click VPC.
    2. Click the Services > Compute > Server menus in this order.
    3. Click the Public IP menu.
    4. Click the [Request for public IP] button.
    5. Select the target server, enter a memo, and then click the [Next] button.
    6. Click the [Create] button.

    Get admin password

    After setting up the public IP, you can get the admin (root) password required for accessing the application server through the following steps:

    1. From the NAVER Cloud Platform console's Platform menu, select and click VPC.
    2. Click the Services > Compute > Server menus in this order.
    3. Select the [Manage servers] button, and then click the Get admin password menu.
    4. Enter the authentication key generated while creating the server.
    5. Click the [Get password] button.
    6. Check the password.

    Set access environment (Classic)

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

    Caution

    In this section, we will briefly introduce how to set up the access environment. For details about setting up access environment, please refer to the Port Forwarding Guide, Public IP Guide, and SSL VPN Guide (Classic).

    Set port forwarding

    The following describes how to set up port forwarding.

    1. From the NAVER Cloud Platform console's Platform menu, select and click Classic.
    2. Click the Services > Compute > Server menus in this order.
    3. Select the server to set up port forwarding for, and then click the [Set port forwarding] button.
    4. Enter the port number to be used for the external access, and then click the [Add] button.
    5. Click the [Apply] button.

    Set public IP

    The following describes how to set up a public IP.

    1. From the NAVER Cloud Platform console's Platform menu, select and click Classic.
    2. Click the Services > Compute > Server menus in this order.
    3. Click the Public IP menu.
    4. Click the [Request for public IP] button.
    5. Select the target server, enter a memo, and then click the [Next] button.
    6. Click the [Create] button.

    Get admin password

    After setting up the port forwarding or public IP, you can get the admin (root) password required for accessing the application server through the following steps:

    1. From the NAVER Cloud Platform console's Platform menu, select and click Classic.
    2. Click the Services > Compute > Server menus in this order.
    3. Select the [Manage servers] button, and then click the Get admin password menu.
    4. Enter the authentication key generated while creating the server.
    5. Click the [Get password] button.
    6. Check the password.

    Set SSL VPN

    You can allow external access to the Redis server to be created by using SSL VPN through the following steps:

    1. Create SSL VPN
    2. Set ACG of Redis server
    3. Check access information of the Redis server

    1. Create SSL VPN

    The following describes how to create SSL VPN.

    1. From the NAVER Cloud Platform console's Platform menu, select and click Classic.
    2. Click Services > Security > SSL VPN menus in this order.
    3. Click the SSL VPN menu.
    4. Click the [Request subscription to SSL VPN] button.
    5. When the Create SSL VPN pop-up window appears, enter the required information, and then click the [Create] button.
    6. After creation, check the SSL VPN IP address bandwidth from the delivered email or the SSL VPN page of the console.

    2. Set ACG of Redis server

    The following describes how to set ACG of the Redis server.

    1. From the NAVER Cloud Platform console's Platform menu, select and click Classic.
    2. Click Services > Storage > Cloud DB for Redis menus in this order.
    3. Click the Redis server menu.
    4. From the details page of the server to be configured, click the clouddbforredis_ico-01_vpc_ko button of the ACG.
    5. Click the [Set ACG] button.
    6. Add settings to allow the access of SSL VPN.
      • Access source: IP address bandwidth of SSL VPN
      • Allowed port: DB server port
    7. Click the [Apply] button.

    3. Check access information of Redis server

    After completing the external access settings using SSL VPN, check the access information of the Redis server. The following describes how to check the information.

    1. From the NAVER Cloud Platform console's Platform menu, select and click Classic.
    2. Click Services > Storage > Cloud DB for Redis menus in this order.
    3. Click the Redis server menu.
    4. Click to select the server you want to check, and check the necessary information from the View details page.
      • DNS name: Use a name similar to the DB server host name
      • DB access port

    Test application server connection

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

    1. Run PuTTY.
    2. Enter the IP address acquired from the public IP or port forwarding settings for Host Name (or IP address), and enter the port number acquired from the public IP or port forwarding settings for Port.
      clouddbforredis-start_01_vpc_ko
    3. Click the [Open] button.
    4. When the PuTTY Security Alert pop-up window appears, click the [Accept] button.
      clouddbforredis-start_02_vpc_en
    5. When the cmd window for server connection appears, enter the password you got from Get admin password.
      clouddbforredis-start_03_vpc_ko
    Note

    You can change the password by using the passwd command.

    Create Redis server

    Some of the services provided by NAVER Cloud Platform require subscription request procedure from the console before the start of actual usage. However, for Cloud DB for Redis, you can start using it upon creation of Redis server without a separate subscription request step. The following describes how to create a Redis server from the NAVER Cloud Platform console.

    Caution
    • In this section, we will briefly introduce how to create a Redis server. For details about full creation methods, please refer to Redis server.
    • Since an additional subscription request step does not exist for Cloud DB for Redis, an additional subscription cancellation step does not exist either. If you want to stop using Cloud DB for Redis and prevent charges from incurring, then delete the Redis server you created and were operating. For the deletion method for Redis servers, please refer to Redis server.
    1. From the NAVER Cloud Platform console's Platform menu, click and select between VPC and Classic.
    2. Click Services > Database > Cloud DB for Redis menus in this order.
    3. Click the Redis server menu.
    4. Click the [Create Redis] button.
    5. When the subscription request page appears, enter the required information, and then click the [Next] button.
    6. Click the [Create] button.

    Set ACG

    The following describes how to set up the ACG (Access Control Group) of Redis servers from the NAVER Cloud Platform console.

    Caution

    In this section, we will briefly introduce how to set up ACG. Please refer to the ACG Guide for more information about setting up ACG.

    1. From the NAVER Cloud Platform console's Platform menu, click and select between VPC and Classic.
    2. Click Services > Database > Cloud DB for Redis menus in this order.
    3. Click the ACG menu.
      clouddbforredis-start_01_en
    4. Click and select the ACG to set up, and then click the [Set ACG] button.
      • Select the ACG of the Redis server automatically created
    5. Enter the ACG name of the application server in Access source.
    6. Enter the port number in Allowed port.
    7. Click the [Add] button.
    8. Click the [Apply] button.

    Test Redis server connection

    The following describes how to test if you can connect properly to the created Redis server by installing the Redis client.

    Caution

    In Cloud DB for Redis, the DNS name of the Redis server is used for access rather than its IP address.

    1. Check the host IP address and port number information for the Redis server connection.
    • Click Services > Database > Cloud DB for Redis > Redis Server menus in this order.
      • Host IP address
        • VPC: Click on service name of the Redis server to connect to and check Dns
        • Classic: Check the DNS name.
      • Port number: Check the Port.
    1. Connect to the Official Redis website and check the stable version.
    2. Access the application server.
    3. Please download the stable version of Redis identified 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 use the information you checked in step 1 to connect to the Redis Server.
    [root@redis-web redis-6.2.6]# cd src
    [root@redis-web src]# ./redis-cli -h [DNS name] -p [Redis access port] -c
    
    Note

    This is the case for Classic environment.

    By using NAVER Cloud Platform's SSL VPN to set up the access environment, you can test Redis server connection from a local PC with a Windows operating system. While Redis does not officially support Windows, you can download Redis-cli's Windows version installation file (*.msi) from the GitHub storage of the Microsoft Open Tech group. The following describes how to test if you can connect properly from a local PC with the Windows operating system by installing the Redis-cli.

    1. Download the Redis-cli installation file from the GitHub storage of the Microsoft Open Tech group.
    2. Install Redis in the desired path on your local PC.
    3. Press the Windows key and the R key.
    4. When the Run window appears, enter "cmd," and then click the [OK] button.
    5. When the command prompt window appears, go to the directory where Redis is installed.
    6. Check the host IP address, port number, account ID, and password information for the Redis server connection.
      • Host IP address: Check the DNS name.
      • Port number: Check the Access port.
      • Account ID: Check the value that was set up when creating the Redis server.
      • Account password: Check the value that was set up when creating the Redis server.
    7. Connect to the Redis server using the information checked in Step 6.
    Caution

    This is the case for Classic environment.

    To access the Cloud DB for Redis server created in Secure Zone, a policy addition task is required. When performing the policy addition task, select the Cloud DB for Redis server for Destination IP. For more details about the usage method, refer to the Secure Zone Firewall Guide.


    Was this article helpful?

    What's Next
    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.