General information#

Caching is a set of NGN Cloud automated services that allows you to quickly deploy and configure popular data caching systems using cloud platform tools. We currently support Memcached and Redis caching systems.

Memcached is a high-performance and scalable open-source system for caching objects in memory. It allows you to store key–value data in a distributed hash table and retrieve it in less than a millisecond. To learn more, visit the official website.

Redis is an open-source resident system for caching data and managing databases. It handles key-value data structures and can be used as a database, cache, message broker, or queue. To learn more about Redis capabilities, visit the official website.

Before you begin#

To get started with the caching service, follow these steps:

  1. Create a project, if you don’t have one.

  2. In the IAM section, create a user with the PaaS Administrator or Cloud Administrator role and add it to the project with the PaaS privilege.

  3. Make sure that the project has all the required resources – subnets, SSH keys, and security groups. Otherwise, create them.

  4. Read the recommendations on how to work with the caching service in the cloud.

Launching the caching service#

To launch the service, go to the Service Store or Installed Services section, select the caching service in the Caching tab and click Create.

The caching service launch procedure comprises the following stages:


The text below refers to the Memcached-based caching service. Redis, whether a caching service or database, uses the same launch procedure. Its detailed description is available in the section on creating a database service.

  1. Set the required network parameters for a caching service:

    • VPC where the service will be deployed.

    • Security groups to control traffic on the instance interface in a subnet.

    • Subnet where the service will be deployed.

  2. Set the configuration of an instance where the caching service will run.

    Select the instance type and parameters of its volumes: type, size and IOPS (if available for a type).


    The caching service performance depends on the node components. We recommend using the Memory Optimized instance type.

    In addition, you can also specify an SSH key. In this case, after automatic service setup, you will get an SSH access to the respective instances.


    You can connect to instances using an SSH key while the new caching service is in a beta testing stage. This feature may be disabled in the future.

  3. Set additional caching service parameters:

    • Service – Any unique name for the service.

    • Enable monitoring – For centralized PaaS service monitoring, first deploy the Prometheus-based monitoring service. When checking this option, also select Monitoring service you want to use. Both services must be in the same VPC. Optionally, you can set Monitoring labels, which the installed monitoring agents will assign to collected metrics (for details, see about label usage).

    • Logging agent installation option – For centralized PaaS service logging, first create a logging service. Once a PaaS service is created, you will be able to install logging agents manually only.

      • Logging service – The selection of a logging service is only available when the Enable logging checkbox is checked.

      • Logging tags – Tags are assigned to logs when the latter are imported by the logging service. They simplify search for the required logs. Tags can only be set when the Enable logging checkbox is checked.

  4. Click Create.


    The service launching process usually takes 5 to 15 minutes.

Deleting a caching service#

Deleting the caching service deletes all instances and volumes created with it.

You can delete the service using one of the following methods.

  1. Go to the Installed Services section.

  2. Open the Caching tab.

  3. Find the service in the table and click on the icon .

  1. Go to the Installed Services section.

  2. Open the Caching tab.

  3. Find the service in the table and go to the service page.

  4. Click :Delete in the Information tab.