diff --git a/docs/dcs/umn/ALL_META.TXT.json b/docs/dcs/umn/ALL_META.TXT.json new file mode 100644 index 000000000..59cc37a2d --- /dev/null +++ b/docs/dcs/umn/ALL_META.TXT.json @@ -0,0 +1,1602 @@ +[ + { + "uri":"dcs-pd-0326001.html", + "product_code":"dcs", + "code":"1", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"usermanual", + "kw":"Service Overview", + "title":"Service Overview", + "githuburl":"" + }, + { + "uri":"en-us_topic_0054235826.html", + "product_code":"dcs", + "code":"2", + "des":"Distributed Cache Service (DCS) is an online, distributed, in-memory cache service compatible with Redis. It is reliable, scalable, usable out of the box, and easy to man", + "doc_type":"usermanual", + "kw":"What Is DCS?,Service Overview,User Guide", + "title":"What Is DCS?", + "githuburl":"" + }, + { + "uri":"dcs-pd-0326002.html", + "product_code":"dcs", + "code":"3", + "des":"Many large-scale e-commerce websites and video streaming and gaming applications require fast access to large amounts of data that has simple data structures and does not", + "doc_type":"usermanual", + "kw":"Application Scenarios,Service Overview,User Guide", + "title":"Application Scenarios", + "githuburl":"" + }, + { + "uri":"dcs-pd-200312001.html", + "product_code":"dcs", + "code":"4", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"usermanual", + "kw":"DCS Instance Types", + "title":"DCS Instance Types", + "githuburl":"" + }, + { + "uri":"CacheSingleNode.html", + "product_code":"dcs", + "code":"5", + "des":"Three Redis versions are available for single-node DCS Redis instances: Redis 3.0, Redis 4.0, and Redis 5.0.Low system overhead and high QPSSingle-node instances do not s", + "doc_type":"usermanual", + "kw":"Single-Node Redis,DCS Instance Types,User Guide", + "title":"Single-Node Redis", + "githuburl":"" + }, + { + "uri":"CacheMasterSlave.html", + "product_code":"dcs", + "code":"6", + "des":"This section describes master/standby DCS Redis instances. Three Redis versions are available for master/standby DCS Redis instances: Redis 3.0, Redis 4.0, and Redis 5.0.", + "doc_type":"usermanual", + "kw":"Master/Standby Redis,DCS Instance Types,User Guide", + "title":"Master/Standby Redis", + "githuburl":"" + }, + { + "uri":"CacheCluster.html", + "product_code":"dcs", + "code":"7", + "des":"DCS provides two types of cluster Redis instances: Proxy Cluster and Redis Cluster. Proxy Cluster uses Linux Virtual Server (LVS) and proxies. Redis Cluster is the native", + "doc_type":"usermanual", + "kw":"Proxy Cluster Redis,DCS Instance Types,User Guide", + "title":"Proxy Cluster Redis", + "githuburl":"" + }, + { + "uri":"CacheProxy.html", + "product_code":"dcs", + "code":"8", + "des":"This section describes Redis Cluster DCS Redis 4.0 and 5.0 instances.The Redis Cluster instance type provided by DCS is compatible with the native Redis Cluster, which us", + "doc_type":"usermanual", + "kw":"Redis Cluster,DCS Instance Types,User Guide", + "title":"Redis Cluster", + "githuburl":"" + }, + { + "uri":"en-us_topic_0054235835.html", + "product_code":"dcs", + "code":"9", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"usermanual", + "kw":"DCS Instance Specifications", + "title":"DCS Instance Specifications", + "githuburl":"" + }, + { + "uri":"dcs-pd-0916001.html", + "product_code":"dcs", + "code":"10", + "des":"This section describes DCS Redis 3.0 instance specifications, including the total memory, available memory, maximum number of connections allowed, maximum/assured bandwid", + "doc_type":"usermanual", + "kw":"DCS Redis 3.0 instance specifications,Redis 3.0 Instance Specifications,DCS Instance Specifications,", + "title":"Redis 3.0 Instance Specifications", + "githuburl":"" + }, + { + "uri":"dcs-pd-0916002.html", + "product_code":"dcs", + "code":"11", + "des":"This section describes DCS Redis 4.0 and 5.0 instance specifications, including the total memory, available memory, maximum number of connections allowed, maximum/assured", + "doc_type":"usermanual", + "kw":"DCS Redis 4.0 and 5.0 instance specifications,Redis 4.0 and 5.0 Instance Specifications,DCS Instance", + "title":"Redis 4.0 and 5.0 Instance Specifications", + "githuburl":"" + }, + { + "uri":"dcs-pd-200312003.html", + "product_code":"dcs", + "code":"12", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"usermanual", + "kw":"Command Compatibility", + "title":"Command Compatibility", + "githuburl":"" + }, + { + "uri":"dcs-pd-200713005.html", + "product_code":"dcs", + "code":"13", + "des":"DCS for Redis 3.0 is developed based on Redis 3.0.7 and is compatible with open-source protocols and commands.This section describes DCS for Redis 3.0's compatibility wit", + "doc_type":"usermanual", + "kw":"Redis 3.0 Commands,Command Compatibility,User Guide", + "title":"Redis 3.0 Commands", + "githuburl":"" + }, + { + "uri":"dcs-pd-200916001.html", + "product_code":"dcs", + "code":"14", + "des":"DCS for Redis 4.0 is developed based on Redis 4.0.14 and is compatible with open-source protocols and commands.This section describes DCS for Redis 4.0's compatibility wi", + "doc_type":"usermanual", + "kw":"Redis 4.0 Commands,Command Compatibility,User Guide", + "title":"Redis 4.0 Commands", + "githuburl":"" + }, + { + "uri":"dcs-pd-200813002.html", + "product_code":"dcs", + "code":"15", + "des":"DCS for Redis 5.0 is developed based on Redis 5.0.9 and is compatible with open-source protocols and commands.This section describes DCS for Redis 5.0's compatibility wit", + "doc_type":"usermanual", + "kw":"Redis 5.0 Commands,Command Compatibility,User Guide", + "title":"Redis 5.0 Commands", + "githuburl":"" + }, + { + "uri":"dcs-pd-190826001.html", + "product_code":"dcs", + "code":"16", + "des":"Web CLI is a command line tool provided on the DCS console. This section describes Web CLI's compatibility with Redis commands, including supported and disabled commands.", + "doc_type":"usermanual", + "kw":"Web CLI Commands,Command Compatibility,User Guide", + "title":"Web CLI Commands", + "githuburl":"" + }, + { + "uri":"dcs-pd-200813003.html", + "product_code":"dcs", + "code":"17", + "des":"Some Redis commands are supported by cluster DCS instances for multi-key operations in the same slot. For details, see Table 1.While running commands that take a long tim", + "doc_type":"usermanual", + "kw":"Command Restrictions for Cluster Instances,Command Compatibility,User Guide", + "title":"Command Restrictions for Cluster Instances", + "githuburl":"" + }, + { + "uri":"dcs-pd-200813004.html", + "product_code":"dcs", + "code":"18", + "des":"This section describes restrictions on some Redis commands.In case of a large amount of cached data, running the KEYS command may block the execution of other commands fo", + "doc_type":"usermanual", + "kw":"Other Command Usage Restrictions,Command Compatibility,User Guide", + "title":"Other Command Usage Restrictions", + "githuburl":"" + }, + { + "uri":"GlobalDRPolicy.html", + "product_code":"dcs", + "code":"19", + "des":"Whether you use DCS as the frontend cache or backend data store, DCS is always ready to ensure data reliability and service availability. The following figure shows the e", + "doc_type":"usermanual", + "kw":"HA and DR Policies,Service Overview,User Guide", + "title":"HA and DR Policies", + "githuburl":"" + }, + { + "uri":"RedisDifference.html", + "product_code":"dcs", + "code":"20", + "des":"When creating a DCS Redis instance, you can select the cache engine version and the instance type.VersionDCS supports Redis 3.0, 4.0, and 5.0. The following table describ", + "doc_type":"usermanual", + "kw":"Comparing Redis Versions,Service Overview,User Guide", + "title":"Comparing Redis Versions", + "githuburl":"" + }, + { + "uri":"dcs-pd-0326003.html", + "product_code":"dcs", + "code":"21", + "des":"DCS supports single-node, master/standby, and cluster instances, ensuring high read/write performance and fast data access. It also supports various instance management o", + "doc_type":"usermanual", + "kw":"Comparing DCS and Open-Source Cache Services,Service Overview,User Guide", + "title":"Comparing DCS and Open-Source Cache Services", + "githuburl":"" + }, + { + "uri":"dcs-pd-200312004.html", + "product_code":"dcs", + "code":"22", + "des":"An instance is the minimum resource unit provided by DCS.DCS supports the Redis cache engine, and single-node, master/standby, and cluster instance types. For each instan", + "doc_type":"usermanual", + "kw":"Basic Concepts,Service Overview,User Guide", + "title":"Basic Concepts", + "githuburl":"" + }, + { + "uri":"dcs-pd-210626001.html", + "product_code":"dcs", + "code":"23", + "des":"If you need to assign different permissions to employees in your enterprise to access your DCS resources, Identity and Access Management (IAM) is a good choice for fine-g", + "doc_type":"usermanual", + "kw":"Permissions Management,Service Overview,User Guide", + "title":"Permissions Management", + "githuburl":"" + }, + { + "uri":"dcs-pd-0326006.html", + "product_code":"dcs", + "code":"24", + "des":"DCS is used together with other services, including VPC, ECS, IAM, Cloud Eye, CTS, and Object Storage Service (OBS).A VPC is an isolated virtual network environment on th", + "doc_type":"usermanual", + "kw":"Related Services,Service Overview,User Guide", + "title":"Related Services", + "githuburl":"" + }, + { + "uri":"en-us_topic_0054235836.html", + "product_code":"dcs", + "code":"25", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"usermanual", + "kw":"Accessing DCS", + "title":"Accessing DCS", + "githuburl":"" + }, + { + "uri":"en-us_topic_0054235837.html", + "product_code":"dcs", + "code":"26", + "des":"There are two ways to access DCS:Using the management consoleThe DCS provides a web-based management console. To launch the DCS console, create an account on the manageme", + "doc_type":"usermanual", + "kw":"How to Access DCS,Accessing DCS,User Guide", + "title":"How to Access DCS", + "githuburl":"" + }, + { + "uri":"en-us_topic_0054247786.html", + "product_code":"dcs", + "code":"27", + "des":"The public cloud system provides two types of user permissions by default: user management and resource management.User management refers to the management of users, user", + "doc_type":"usermanual", + "kw":"User Permissions,Accessing DCS,User Guide", + "title":"User Permissions", + "githuburl":"" + }, + { + "uri":"dcs-ug-210626003.html", + "product_code":"dcs", + "code":"28", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"usermanual", + "kw":"Permissions Management", + "title":"Permissions Management", + "githuburl":"" + }, + { + "uri":"dcs-ug-210626004.html", + "product_code":"dcs", + "code":"29", + "des":"This chapter describes how to use IAM to implement fine-grained permissions control for your DCS resources. With IAM, you can:Create IAM users for employees based on your", + "doc_type":"usermanual", + "kw":"Creating a User and Granting DCS Permissions,Permissions Management,User Guide", + "title":"Creating a User and Granting DCS Permissions", + "githuburl":"" + }, + { + "uri":"dcs-ug-210626005.html", + "product_code":"dcs", + "code":"30", + "des":"Custom policies can be created to supplement the system-defined policies of DCS. For the actions that can be added for custom policies, see Permissions Policies and Suppo", + "doc_type":"usermanual", + "kw":"DCS Custom Policies,Permissions Management,User Guide", + "title":"DCS Custom Policies", + "githuburl":"" + }, + { + "uri":"dcs-ug-0326007.html", + "product_code":"dcs", + "code":"31", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"usermanual", + "kw":"Getting Started", + "title":"Getting Started", + "githuburl":"" + }, + { + "uri":"dcs-ug-0312003.html", + "product_code":"dcs", + "code":"32", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"usermanual", + "kw":"Creating an Instance", + "title":"Creating an Instance", + "githuburl":"" + }, + { + "uri":"PurchasePreparation.html", + "product_code":"dcs", + "code":"33", + "des":"Before creating a DCS instance, identify your requirements and complete the following preparations:Decide on the required cache engine version.Different Redis versions ha", + "doc_type":"usermanual", + "kw":"Identifying Requirements,Creating an Instance,User Guide", + "title":"Identifying Requirements", + "githuburl":"" + }, + { + "uri":"dcs-ug-0312004.html", + "product_code":"dcs", + "code":"34", + "des":"To access DCS instances through a Virtual Private Cloud (VPC), create a VPC and configure security groups and subnets for it before using DCS. A VPC provides an isolated ", + "doc_type":"usermanual", + "kw":"Preparing the Environment,Creating an Instance,User Guide", + "title":"Preparing the Environment", + "githuburl":"" + }, + { + "uri":"dcs-ug-0326008.html", + "product_code":"dcs", + "code":"35", + "des":"You can create one or more DCS Redis instances with the required computing capabilities and storage space based on service requirements.The system automatically schedules", + "doc_type":"usermanual", + "kw":"Creating a DCS Redis Instance,Creating an Instance,User Guide", + "title":"Creating a DCS Redis Instance", + "githuburl":"" + }, + { + "uri":"dcs-ug-0916002.html", + "product_code":"dcs", + "code":"36", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"usermanual", + "kw":"Accessing an Instance", + "title":"Accessing an Instance", + "githuburl":"" + }, + { + "uri":"dcs-ug-0326009.html", + "product_code":"dcs", + "code":"37", + "des":"Access a DCS Redis instance through redis-cli on an ECS in the same VPC. For more information on how to use other Redis clients, visit https://redis.io/clients.Redis 3.0 ", + "doc_type":"usermanual", + "kw":"Accessing a DCS Redis Instance Through redis-cli,Accessing an Instance,User Guide", + "title":"Accessing a DCS Redis Instance Through redis-cli", + "githuburl":"" + }, + { + "uri":"dcs-ug-0512002.html", + "product_code":"", + "code":"38", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"", + "kw":"Access in Different Languages", + "title":"Access in Different Languages", + "githuburl":"" + }, + { + "uri":"dcs-ug-211105003.html", + "product_code":"dcs", + "code":"39", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"usermanual", + "kw":"Java", + "title":"Java", + "githuburl":"" + }, + { + "uri":"dcs-ug-0713005.html", + "product_code":"dcs", + "code":"40", + "des":"Access a DCS Redis instance through Jedis on an ECS in the same VPC. For more information on how to use other Redis clients, visit https://redis.io/clients.If a password ", + "doc_type":"usermanual", + "kw":"Access a DCS Redis instance through Jedis,Jedis,Java,User Guide", + "title":"Jedis", + "githuburl":"" + }, + { + "uri":"dcs-ug-211011001.html", + "product_code":"dcs", + "code":"41", + "des":"Access a Redis Cluster instance through Lettuce on an ECS in the same VPC. For more information on how to use other Redis clients, visit https://redis.io/clients.If a pas", + "doc_type":"usermanual", + "kw":"Access a Redis Cluster instance through Lettuce,Lettuce,Java,User Guide", + "title":"Lettuce", + "githuburl":"" + }, + { + "uri":"dcs-ug-211105004.html", + "product_code":"dcs", + "code":"42", + "des":"Access a DCS Redis instance through Redisson on an ECS in the same VPC. For more information about how to use other Redis clients, visit the Redis official website.If a p", + "doc_type":"usermanual", + "kw":"Access a DCS Redis instance through Redisson,Redisson,Java,User Guide", + "title":"Redisson", + "githuburl":"" + }, + { + "uri":"dcs-ug-211203001.html", + "product_code":"dcs", + "code":"43", + "des":"A DCS Redis instance has been created and is in the Running state.An ECS has been created. For details about how to create an ECS, see Elastic Cloud Server User Guide.If ", + "doc_type":"usermanual", + "kw":"Lettuce Integration with Spring Boot,Access in Different Languages,User Guide", + "title":"Lettuce Integration with Spring Boot", + "githuburl":"" + }, + { + "uri":"dcs-ug-0312011.html", + "product_code":"dcs", + "code":"44", + "des":"Access a DCS Redis instance through redis-py on an ECS in the same VPC. For more information about how to use other Redis clients, visit the Redis official website.Use re", + "doc_type":"usermanual", + "kw":"redis-py,Clients in Python,Access in Different Languages,User Guide", + "title":"Clients in Python", + "githuburl":"" + }, + { + "uri":"dcs-ug-211105001.html", + "product_code":"dcs", + "code":"45", + "des":"Access a DCS Redis instance through go-redis on an ECS in the same VPC. For more information about how to use other Redis clients, visit the Redis official website.A DCS ", + "doc_type":"usermanual", + "kw":"Access a DCS Redis instance through go-redis,go-redis,Access in Different Languages,User Guide", + "title":"go-redis", + "githuburl":"" + }, + { + "uri":"dcs-ug-0312010.html", + "product_code":"dcs", + "code":"46", + "des":"Access a DCS Redis instance through hiredis on an ECS in the same VPC. For more information about how to use other Redis clients, visit the Redis official website.The ope", + "doc_type":"usermanual", + "kw":"Access a DCS Redis instance through hiredis,hiredis in C++,Access in Different Languages,User Guide", + "title":"hiredis in C++", + "githuburl":"" + }, + { + "uri":"dcs-ug-0312013.html", + "product_code":"dcs", + "code":"47", + "des":"Access a DCS Redis instance through C# Client StackExchange.Redis on an ECS in the same VPC. For more information about how to use other Redis clients, visit the Redis of", + "doc_type":"usermanual", + "kw":"C# Client StackExchange.Redis,C#,Access in Different Languages,User Guide", + "title":"C#", + "githuburl":"" + }, + { + "uri":"dcs-ug-211202001.html", + "product_code":"dcs", + "code":"48", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"usermanual", + "kw":"PHP", + "title":"PHP", + "githuburl":"" + }, + { + "uri":"dcs-ug-0312009.html", + "product_code":"dcs", + "code":"49", + "des":"Access a DCS Redis instance through phpredis on an ECS in the same VPC. For more information about how to use other Redis clients, visit the Redis official website.The op", + "doc_type":"usermanual", + "kw":"Access a DCS Redis instance through phpredis,phpredis,PHP,User Guide", + "title":"phpredis", + "githuburl":"" + }, + { + "uri":"dcs-ug-211202002.html", + "product_code":"dcs", + "code":"50", + "des":"Access a DCS Redis instance through Predis on an ECS in the same VPC. For more information about how to use other Redis clients, visit the Redis official website.A DCS Re", + "doc_type":"usermanual", + "kw":"Access a DCS Redis instance through Predis,Predis,PHP,User Guide", + "title":"Predis", + "githuburl":"" + }, + { + "uri":"dcs-ug-0312012.html", + "product_code":"dcs", + "code":"51", + "des":"Access a DCS Redis instance through Node.js on an ECS in the same VPC. For more information about how to use other Redis clients, visit the Redis official website.The ope", + "doc_type":"usermanual", + "kw":"Node.js,Node.js,Access in Different Languages,User Guide", + "title":"Node.js", + "githuburl":"" + }, + { + "uri":"dcs-ug-0312008.html", + "product_code":"dcs", + "code":"52", + "des":"Access a DCS Redis instance through Web CLI. This function is supported only by DCS Redis 4.0 and 5.0 instances, and not by DCS Redis 3.0 instances.Do not enter sensitive", + "doc_type":"usermanual", + "kw":"Access a DCS Redis,Web CLI,Accessing a DCS Redis 4.0 or 5.0 Instance on the Console,Accessing an Ins", + "title":"Accessing a DCS Redis 4.0 or 5.0 Instance on the Console", + "githuburl":"" + }, + { + "uri":"dcs-ug-0312016.html", + "product_code":"dcs", + "code":"53", + "des":"On the DCS console, you can view DCS instance details.Search by keyword.Enter a keyword to search.Enter a keyword to search.Select attributes and enter their keywords to ", + "doc_type":"usermanual", + "kw":"view DCS,Viewing Details of a DCS Instance,Getting Started,User Guide", + "title":"Viewing Details of a DCS Instance", + "githuburl":"" + }, + { + "uri":"dcs-ug-0326010.html", + "product_code":"dcs", + "code":"54", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"usermanual", + "kw":"Operation Guide", + "title":"Operation Guide", + "githuburl":"" + }, + { + "uri":"dcs-ug-0312015.html", + "product_code":"dcs", + "code":"55", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"usermanual", + "kw":"Operating DCS Instances", + "title":"Operating DCS Instances", + "githuburl":"" + }, + { + "uri":"dcs-ug-0326011.html", + "product_code":"dcs", + "code":"56", + "des":"On the DCS console, you can scale a DCS Redis instance to a larger or smaller capacity.Modify instance specifications during off-peak hours.If your DCS instances are too ", + "doc_type":"usermanual", + "kw":"Modifying DCS Instance Specifications,Operating DCS Instances,User Guide", + "title":"Modifying DCS Instance Specifications", + "githuburl":"" + }, + { + "uri":"dcs-ug-0911001.html", + "product_code":"dcs", + "code":"57", + "des":"On the DCS console, you can start one or multiple DCS instances at a time.This function is not supported by recent instances. You can only start old instances that have b", + "doc_type":"usermanual", + "kw":"Starting DCS Instances,Operating DCS Instances,User Guide", + "title":"Starting DCS Instances", + "githuburl":"" + }, + { + "uri":"dcs-ug-0326013.html", + "product_code":"dcs", + "code":"58", + "des":"On the DCS console, you can restart one or multiple DCS instances at a time.After a single-node DCS instance is restarted, data will be deleted from the instance.While a ", + "doc_type":"usermanual", + "kw":"restart one or multiple DCS instances,Restarting DCS Instances,Operating DCS Instances,User Guide", + "title":"Restarting DCS Instances", + "githuburl":"" + }, + { + "uri":"dcs-ug-0326014.html", + "product_code":"dcs", + "code":"59", + "des":"On the DCS console, you can delete one or multiple DCS instances at a time. You can also delete all instance creation tasks that have failed to run.After a DCS instance i", + "doc_type":"usermanual", + "kw":"delete one or multiple DCS instances,Deleting DCS Instances,Operating DCS Instances,User Guide", + "title":"Deleting DCS Instances", + "githuburl":"" + }, + { + "uri":"dcs-ug-0312017.html", + "product_code":"dcs", + "code":"60", + "des":"On the DCS console, you can manually switch the master and standby nodes of a DCS instance. This operation is used for special purposes, for example, releasing all servic", + "doc_type":"usermanual", + "kw":"Performing a Master/Standby Switchover for a DCS Instance,Operating DCS Instances,User Guide", + "title":"Performing a Master/Standby Switchover for a DCS Instance", + "githuburl":"" + }, + { + "uri":"dcs-ug-0312018.html", + "product_code":"dcs", + "code":"61", + "des":"On the DCS console, you can clear data only for DCS Redis 4.0 and 5.0 instances.Clearing instance data cannot be undone and cleared data cannot be recovered. Exercise cau", + "doc_type":"usermanual", + "kw":"clear data,Clearing DCS Instance Data,Operating DCS Instances,User Guide", + "title":"Clearing DCS Instance Data", + "githuburl":"" + }, + { + "uri":"dcs-ug-0312019.html", + "product_code":"dcs", + "code":"62", + "des":"On the DCS console, you can export DCS instance information in full to an Excel file.Click the export result displayed in the lower left corner of the page.", + "doc_type":"usermanual", + "kw":"Exporting DCS Instance List,Operating DCS Instances,User Guide", + "title":"Exporting DCS Instance List", + "githuburl":"" + }, + { + "uri":"dcs-ug-1009002.html", + "product_code":"dcs", + "code":"63", + "des":"After creating a DCS Redis 4.0 or 5.0 instance, you can rename the following critical commands: COMMAND, KEYS, FLUSHDB, FLUSHALL, and HGETALL.You can rename multiple comm", + "doc_type":"usermanual", + "kw":"Command Renaming,Operating DCS Instances,User Guide", + "title":"Command Renaming", + "githuburl":"" + }, + { + "uri":"dcs-ug-0312022.html", + "product_code":"dcs", + "code":"64", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"usermanual", + "kw":"Managing DCS Instances", + "title":"Managing DCS Instances", + "githuburl":"" + }, + { + "uri":"dcs-ug-0312023.html", + "product_code":"dcs", + "code":"65", + "des":"In most cases, different DCS instance management operations cannot proceed concurrently. If you initiate a new management operation while the current operation is in prog", + "doc_type":"usermanual", + "kw":"Configuration Notice,Managing DCS Instances,User Guide", + "title":"Configuration Notice", + "githuburl":"" + }, + { + "uri":"dcs-ug-0312024.html", + "product_code":"dcs", + "code":"66", + "des":"You can modify the configuration parameters of your DCS instance to optimize DCS performance based on your requirements.For example, if you do not need data persistence, ", + "doc_type":"usermanual", + "kw":"Modifying Configuration Parameters,Managing DCS Instances,User Guide", + "title":"Modifying Configuration Parameters", + "githuburl":"" + }, + { + "uri":"dcs-ug-0312025.html", + "product_code":"dcs", + "code":"67", + "des":"On the DCS console, after creating a DCS instance, you can modify the maintenance time window of the DCS instance on the instance's Basic Information page.At least one DC", + "doc_type":"usermanual", + "kw":"modify the maintenance time window,Modifying Maintenance Time Window,Managing DCS Instances,User Gui", + "title":"Modifying Maintenance Time Window", + "githuburl":"" + }, + { + "uri":"dcs-ug-0312026.html", + "product_code":"dcs", + "code":"68", + "des":"On the DCS console, after creating a DCS instance, you can modify the security group of the DCS instance on the instance's Basic Information page.You can modify the secur", + "doc_type":"usermanual", + "kw":"modify the security group,Modifying the Security Group,Managing DCS Instances,User Guide", + "title":"Modifying the Security Group", + "githuburl":"" + }, + { + "uri":"dcs-ug-0312028.html", + "product_code":"dcs", + "code":"69", + "des":"After you initiate certain instance operations such as modifying instance specifications and changing or resetting a password, a background task will start for the operat", + "doc_type":"usermanual", + "kw":"Viewing Background Tasks,Managing DCS Instances,User Guide", + "title":"Viewing Background Tasks", + "githuburl":"" + }, + { + "uri":"dcs-ug-0312029.html", + "product_code":"dcs", + "code":"70", + "des":"You can view the data storage statistics of all nodes of a DCS Redis 3.0 Proxy Cluster instance. If data storage is unevenly distributed across nodes, you can scale up th", + "doc_type":"usermanual", + "kw":"Viewing Data Storage Statistics of a DCS Redis 3.0 Proxy Cluster Instance,Managing DCS Instances,Use", + "title":"Viewing Data Storage Statistics of a DCS Redis 3.0 Proxy Cluster Instance", + "githuburl":"" + }, + { + "uri":"dcs-ug-210107001.html", + "product_code":"", + "code":"71", + "des":"This section describes how to query the shards and replicas of a DCS Redis 4.0 or 5.0 instance and how to manually promote a replica to master.Currently, this function is", + "doc_type":"", + "kw":"Managing Shards and Replicas,Managing DCS Instances,User Guide", + "title":"Managing Shards and Replicas", + "githuburl":"" + }, + { + "uri":"dcs-ug-190808001.html", + "product_code":"dcs", + "code":"72", + "des":"By performing big key analysis and hot key analysis, you will have a picture of keys that occupy a large space and keys that are the most frequently accessed.Notes on big", + "doc_type":"usermanual", + "kw":"Cache Analysis,Managing DCS Instances,User Guide", + "title":"Cache Analysis", + "githuburl":"" + }, + { + "uri":"dcs-ug-190812001.html", + "product_code":"dcs", + "code":"73", + "des":"DCS helps you control access to your DCS instances in the following ways, depending on the deployment mode:To control access to Redis 3.0 instances, you can use security ", + "doc_type":"usermanual", + "kw":"Managing IP Address Whitelist,Managing DCS Instances,User Guide", + "title":"Managing IP Address Whitelist", + "githuburl":"" + }, + { + "uri":"dcs-ug-190926001.html", + "product_code":"dcs", + "code":"74", + "des":"Redis logs queries that exceed a specified execution time. You can view the slow query log on the DCS console to identify performance issues.For details about the command", + "doc_type":"usermanual", + "kw":"Viewing Redis Slow Logs,Managing DCS Instances,User Guide", + "title":"Viewing Redis Slow Logs", + "githuburl":"" + }, + { + "uri":"dcs-ug-1009001.html", + "product_code":"dcs", + "code":"75", + "des":"You can create run log files on the DCS console to collect run logs of DCS Redis instances within a specified period. After the logs are collected, you can download the l", + "doc_type":"usermanual", + "kw":"Viewing Redis Run Logs,Managing DCS Instances,User Guide", + "title":"Viewing Redis Run Logs", + "githuburl":"" + }, + { + "uri":"dcs-ug-0312030.html", + "product_code":"dcs", + "code":"76", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"usermanual", + "kw":"Backing Up and Restoring DCS Instances", + "title":"Backing Up and Restoring DCS Instances", + "githuburl":"" + }, + { + "uri":"en-us_topic_0079835992.html", + "product_code":"dcs", + "code":"77", + "des":"On the DCS console, you can back up and restore DCS instances.There is a small chance that inconsistent data could exist in a DCS instance owing to service system excepti", + "doc_type":"usermanual", + "kw":"back up,restore,Overview,Backing Up and Restoring DCS Instances,User Guide", + "title":"Overview", + "githuburl":"" + }, + { + "uri":"dcs-ug-0312031.html", + "product_code":"dcs", + "code":"78", + "des":"On the DCS console, you can configure an automatic backup policy. The system then backs up data in your instances according to the backup policy.If automatic backup is no", + "doc_type":"usermanual", + "kw":"configure an automatic backup policy,Configuring a Backup Policy,Backing Up and Restoring DCS Instan", + "title":"Configuring a Backup Policy", + "githuburl":"" + }, + { + "uri":"dcs-ug-0312032.html", + "product_code":"dcs", + "code":"79", + "des":"You need to manually back up data in DCS instances in a timely manner. This section describes how to manually back up data in master/standby instances using the DCS conso", + "doc_type":"usermanual", + "kw":"manually back up data,Manually Backing Up a DCS Instance,Backing Up and Restoring DCS Instances,User", + "title":"Manually Backing Up a DCS Instance", + "githuburl":"" + }, + { + "uri":"dcs-ug-0312033.html", + "product_code":"dcs", + "code":"80", + "des":"On the DCS console, you can restore backup data to a chosen DCS instance.At least one master/standby or cluster DCS instance is in the Running state.A backup task has bee", + "doc_type":"usermanual", + "kw":"restore backup data,Restoring a DCS Instance,Backing Up and Restoring DCS Instances,User Guide", + "title":"Restoring a DCS Instance", + "githuburl":"" + }, + { + "uri":"dcs-ug-0312034.html", + "product_code":"dcs", + "code":"81", + "des":"Due to the limitations of automatic and manual backups (automatically backed up data can be retained for a maximum of 7 days, and manually backed up data takes space in O", + "doc_type":"usermanual", + "kw":"Downloading a Backup File,Backing Up and Restoring DCS Instances,User Guide", + "title":"Downloading a Backup File", + "githuburl":"" + }, + { + "uri":"dcs-ug-0312035.html", + "product_code":"dcs", + "code":"82", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"usermanual", + "kw":"Migrating Data with DCS", + "title":"Migrating Data with DCS", + "githuburl":"" + }, + { + "uri":"dcs-ug-0312036.html", + "product_code":"dcs", + "code":"83", + "des":"DCS for Redis provides the following migration modes:Backup file import: The data source can be an OBS bucket or a Redis instance.Importing data from an OBS bucket: Downl", + "doc_type":"usermanual", + "kw":"Introduction to Migration with DCS,Migrating Data with DCS,User Guide", + "title":"Introduction to Migration with DCS", + "githuburl":"" + }, + { + "uri":"dcs-ug-210922001.html", + "product_code":"dcs", + "code":"84", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"usermanual", + "kw":"Importing Backup Files", + "title":"Importing Backup Files", + "githuburl":"" + }, + { + "uri":"dcs-ug-0312037.html", + "product_code":"dcs", + "code":"85", + "des":"Use the DCS console to migrate Redis data from Redis of other vendors or self-hosted Redis to DCS for Redis.Simply download the source Redis data and then upload the data", + "doc_type":"usermanual", + "kw":"Importing Backup Files from an OBS Bucket,Importing Backup Files,User Guide", + "title":"Importing Backup Files from an OBS Bucket", + "githuburl":"" + }, + { + "uri":"dcs-ug-210226001.html", + "product_code":"dcs", + "code":"86", + "des":"Use the DCS console to migrate Redis data from self-hosted Redis to DCS for Redis.Simply back up your Redis data, create a migration task on the DCS console, and then imp", + "doc_type":"usermanual", + "kw":"Importing Backup Files from Redis,Importing Backup Files,User Guide", + "title":"Importing Backup Files from Redis", + "githuburl":"" + }, + { + "uri":"dcs-ug-0312038.html", + "product_code":"dcs", + "code":"87", + "des":"If the source and target instances are interconnected and the SYNC and PSYNC commands are supported in the source instance, data can be migrated online in full or increme", + "doc_type":"usermanual", + "kw":"Migrating Data Online,Migrating Data with DCS,User Guide", + "title":"Migrating Data Online", + "githuburl":"" + }, + { + "uri":"dcs-ug-0312039.html", + "product_code":"dcs", + "code":"88", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"usermanual", + "kw":"Managing Passwords", + "title":"Managing Passwords", + "githuburl":"" + }, + { + "uri":"cache-instance-password.html", + "product_code":"dcs", + "code":"89", + "des":"Passwords can be configured to control access to your DCS instances, ensuring the security of your data.After 5 consecutive incorrect password attempts, the account for a", + "doc_type":"usermanual", + "kw":"DCS Instance Passwords,Managing Passwords,User Guide", + "title":"DCS Instance Passwords", + "githuburl":"" + }, + { + "uri":"dcs-ug-0312040.html", + "product_code":"dcs", + "code":"90", + "des":"On the DCS console, you can change the password required for accessing your DCS instance.You cannot change the password of a DCS instance in password-free mode.The DCS in", + "doc_type":"usermanual", + "kw":"Changing Instance Passwords,Managing Passwords,User Guide", + "title":"Changing Instance Passwords", + "githuburl":"" + }, + { + "uri":"dcs-ug-0326016.html", + "product_code":"dcs", + "code":"91", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"usermanual", + "kw":"Monitoring", + "title":"Monitoring", + "githuburl":"" + }, + { + "uri":"dcs-ug-0326019.html", + "product_code":"dcs", + "code":"92", + "des":"This section describes DCS metrics reported to Cloud Eye as well as their namespaces and dimensions. You can use the Cloud Eye console or call APIs to query the DCS metri", + "doc_type":"usermanual", + "kw":"DCS Metrics,Monitoring,User Guide", + "title":"DCS Metrics", + "githuburl":"" + }, + { + "uri":"dcs-ug-0312045.html", + "product_code":"dcs", + "code":"93", + "des":"You can view DCS instance metrics on the Performance Monitoring page.You can also click View Metric in the Operation column on the Cache Manager page. You will be redirec", + "doc_type":"usermanual", + "kw":"Viewing DCS Monitoring Metrics,Monitoring,User Guide", + "title":"Viewing DCS Monitoring Metrics", + "githuburl":"" + }, + { + "uri":"dcs-ug-190905001.html", + "product_code":"dcs", + "code":"94", + "des":"This section describes the alarm rules of some metrics and how to configure the rules. In actual scenarios, configure alarm rules for metrics by referring to the followin", + "doc_type":"usermanual", + "kw":"Configuring Alarm Rules for Critical Metrics,Monitoring,User Guide", + "title":"Configuring Alarm Rules for Critical Metrics", + "githuburl":"" + }, + { + "uri":"dcs-ug-0326017.html", + "product_code":"dcs", + "code":"95", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"usermanual", + "kw":"Auditing", + "title":"Auditing", + "githuburl":"" + }, + { + "uri":"dcs-ug-0326018.html", + "product_code":"dcs", + "code":"96", + "des":"With CTS, you can query, audit, and review operations performed on cloud resources. Traces include the operation requests sent using the management console or open APIs a", + "doc_type":"usermanual", + "kw":"DCS operations that can be recorded by CTS,Operations That Can Be Recorded by CTS,Auditing,User Guid", + "title":"Operations That Can Be Recorded by CTS", + "githuburl":"" + }, + { + "uri":"dcs-ug-0312047.html", + "product_code":"dcs", + "code":"97", + "des":"After CTS is enabled, the tracker starts recording operations on cloud resources. Operation records for the last seven days can be viewed on the CTS console. This section", + "doc_type":"usermanual", + "kw":"Viewing Traces on the CTS Console,Auditing,User Guide", + "title":"Viewing Traces on the CTS Console", + "githuburl":"" + }, + { + "uri":"dcs-faq-0326019.html", + "product_code":"dcs", + "code":"98", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"usermanual", + "kw":"FAQs", + "title":"FAQs", + "githuburl":"" + }, + { + "uri":"dcs-faq-0326020.html", + "product_code":"dcs", + "code":"99", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"usermanual", + "kw":"Client and Network Connection", + "title":"Client and Network Connection", + "githuburl":"" + }, + { + "uri":"en-us_topic_0090662012.html", + "product_code":"dcs", + "code":"100", + "des":"DCS Redis 3.0/4.0/5.0 instances are deployed in different modes. Therefore, the access control method varies.To control access to DCS Redis 3.0 instances, you can use sec", + "doc_type":"usermanual", + "kw":"Security Group Configurations,Client and Network Connection,User Guide", + "title":"Security Group Configurations", + "githuburl":"" + }, + { + "uri":"dcs-faq-0730001.html", + "product_code":"dcs", + "code":"101", + "des":"No. DCS instances cannot be access at their EIPs over public networks. To ensure security, the ECS that serves as a client and the DCS instance that the client will acces", + "doc_type":"usermanual", + "kw":"Does DCS Support Public Access?,Client and Network Connection,User Guide", + "title":"Does DCS Support Public Access?", + "githuburl":"" + }, + { + "uri":"en-us_topic_0100698850.html", + "product_code":"dcs", + "code":"102", + "des":"Cross-VPC means the client and the instance are not in the same VPC.Generally, VPCs are isolated from each other and ECSs cannot access DCS instances that belong to a dif", + "doc_type":"usermanual", + "kw":"VPC peering connections,across VPCs,Does DCS Support Cross-VPC Access?,Client and Network Connection", + "title":"Does DCS Support Cross-VPC Access?", + "githuburl":"" + }, + { + "uri":"dcs-faq-0730004.html", + "product_code":"dcs", + "code":"103", + "des":"Analysis: If persistent connections (\"pconnect\" in Redis terminology) or connection pooling is used and connections are closed after being used for connecting to DCS inst", + "doc_type":"usermanual", + "kw":"What Should I Do If Access to DCS Fails After Server Disconnects?,Client and Network Connection,User", + "title":"What Should I Do If Access to DCS Fails After Server Disconnects?", + "githuburl":"" + }, + { + "uri":"dcs-faq-0730005.html", + "product_code":"dcs", + "code":"104", + "des":"Occasional timeout errors are normal because of network connectivity and client timeout configurations.You are advised to include reconnection operations into your servic", + "doc_type":"usermanual", + "kw":"Why Do Requests Sometimes Time Out in Clients?,Client and Network Connection,User Guide", + "title":"Why Do Requests Sometimes Time Out in Clients?", + "githuburl":"" + }, + { + "uri":"dcs-faq-0730006.html", + "product_code":"dcs", + "code":"105", + "des":"The error message that will possibly be displayed when you use the Jedis connection pool is as follows:If this error message is displayed, check whether your instance is ", + "doc_type":"usermanual", + "kw":"use the Jedis connection pool,Jedis client,TIME_WAIT,What Should I Do If an Error Is Returned When I", + "title":"What Should I Do If an Error Is Returned When I Use the Jedis Connection Pool?", + "githuburl":"" + }, + { + "uri":"dcs-faq-0730007.html", + "product_code":"dcs", + "code":"106", + "des":"The possible causes are as follows:The command is spelled incorrectly.As shown in the following figure, the error message is returned because the correct command for dele", + "doc_type":"usermanual", + "kw":"Why Is \"ERR unknown command\" Displayed When I Access a DCS Redis Instance Through a Redis Client?,Cl", + "title":"Why Is \"ERR unknown command\" Displayed When I Access a DCS Redis Instance Through a Redis Client?", + "githuburl":"" + }, + { + "uri":"dcs-faq-0730008.html", + "product_code":"dcs", + "code":"107", + "des":"You can access a DCS Redis instance through the Redis Desktop Manager within a VPC.Enter the address, port number (6379), and authentication password of the DCS instance ", + "doc_type":"usermanual", + "kw":"How Do I Access a DCS Redis Instance Through Redis Desktop Manager?,Client and Network Connection,Us", + "title":"How Do I Access a DCS Redis Instance Through Redis Desktop Manager?", + "githuburl":"" + }, + { + "uri":"dcs-faq-0730009.html", + "product_code":"dcs", + "code":"108", + "des":"By using DCS Redis instances, Spring Session can implement session sharing. When interconnecting with Spring Cloud, the following error information is displayed:For secur", + "doc_type":"usermanual", + "kw":"Spring Session can implement session sharing,What If \"ERR Unsupported CONFIG subcommand\" is Displaye", + "title":"What If \"ERR Unsupported CONFIG subcommand\" is Displayed in SpringCloud?", + "githuburl":"" + }, + { + "uri":"dcs-faq-0730010.html", + "product_code":"dcs", + "code":"109", + "des":"Preliminary checks:Check the connection address.Obtain the connection address from the instance basic information page on the DCS console.Obtain the connection address fr", + "doc_type":"usermanual", + "kw":"How Do I Troubleshoot Redis Connection Failures?,Client and Network Connection,User Guide", + "title":"How Do I Troubleshoot Redis Connection Failures?", + "githuburl":"" + }, + { + "uri":"dcs-faq-0730011.html", + "product_code":"dcs", + "code":"110", + "des":"Pay attention to the following issues when using Redis for pub/sub:Your client must process messages in a timely manner.Your client subscribes to a channel. If it does no", + "doc_type":"usermanual", + "kw":"Redis for pub/sub,What Should Be Noted When Using Redis for Pub/Sub?,Client and Network Connection,U", + "title":"What Should Be Noted When Using Redis for Pub/Sub?", + "githuburl":"" + }, + { + "uri":"dcs-faq-0326021.html", + "product_code":"dcs", + "code":"111", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"usermanual", + "kw":"Redis Usage", + "title":"Redis Usage", + "githuburl":"" + }, + { + "uri":"dcs-faq-0730012.html", + "product_code":"dcs", + "code":"112", + "des":"Possible cause 1:The service QPS is so high that the CPU usage spikes to 100%.The service QPS is so high that the CPU usage spikes to 100%.Possible cause 2:You have run c", + "doc_type":"usermanual", + "kw":"Why Is CPU Usage of a DCS Redis Instance 100%?,Redis Usage,User Guide", + "title":"Why Is CPU Usage of a DCS Redis Instance 100%?", + "githuburl":"" + }, + { + "uri":"dcs-faq-0730013.html", + "product_code":"dcs", + "code":"113", + "des":"No. Once an instance is created, its VPC and subnet cannot be changed. If you want to use a different set of VPC and subnet, create a same instance and specify a desired ", + "doc_type":"usermanual", + "kw":"Can I Change the VPC and Subnet for a DCS Redis Instance?,Redis Usage,User Guide", + "title":"Can I Change the VPC and Subnet for a DCS Redis Instance?", + "githuburl":"" + }, + { + "uri":"dcs-faq-0730014.html", + "product_code":"dcs", + "code":"114", + "des":"Currently, DCS Redis 4.0 and Redis 5.0 instances use VPC endpoints and do not support security groups. You can configure whitelists instead. For details, see Managing IP ", + "doc_type":"usermanual", + "kw":"Why Aren't Security Groups Configured for DCS Redis 4.0 and 5.0 Instances?,Redis Usage,User Guide", + "title":"Why Aren't Security Groups Configured for DCS Redis 4.0 and 5.0 Instances?", + "githuburl":"" + }, + { + "uri":"dcs-faq-0730015.html", + "product_code":"dcs", + "code":"115", + "des":"The maximum allowed size of a key is 512 MB.To reduce memory usage and facilitate key query, ensure that each key does not exceed 1 KB.To reduce memory usage and facilita", + "doc_type":"usermanual", + "kw":"Do DCS Redis Instances Limit the Size of a Key or Value?,Redis Usage,User Guide", + "title":"Do DCS Redis Instances Limit the Size of a Key or Value?", + "githuburl":"" + }, + { + "uri":"dcs-faq-0730017.html", + "product_code":"dcs", + "code":"116", + "des":"Cluster DCS Redis 3.0 instances (Proxy Cluster type) are used in the same way that you use single-node or master/standby instances. You do not need to know the backend no", + "doc_type":"usermanual", + "kw":"Can I Obtain the Addresses of the Nodes in a Cluster DCS Redis Instance?,Redis Usage,User Guide", + "title":"Can I Obtain the Addresses of the Nodes in a Cluster DCS Redis Instance?", + "githuburl":"" + }, + { + "uri":"dcs-faq-0730018.html", + "product_code":"dcs", + "code":"117", + "des":"DCS Redis 3.0 instances are deployed on VMs and some memory is reserved for system overheads.", + "doc_type":"usermanual", + "kw":"Why Is Available Memory of a DCS Redis 3.0 Instance Smaller Than Instance Cache Size?,Redis Usage,Us", + "title":"Why Is Available Memory of a DCS Redis 3.0 Instance Smaller Than Instance Cache Size?", + "githuburl":"" + }, + { + "uri":"dcs-faq-0730019.html", + "product_code":"dcs", + "code":"118", + "des":"Both single-node and master/standby DCS Redis instances support multiple databases. By default, single-node and master/standby DCS instances can read and write data in 25", + "doc_type":"usermanual", + "kw":"DCS Redis instances support multiple databases,Does DCS for Redis Support Multiple Databases?,Redis ", + "title":"Does DCS for Redis Support Multiple Databases?", + "githuburl":"" + }, + { + "uri":"dcs-faq-0730020.html", + "product_code":"dcs", + "code":"119", + "des":"Yes. DCS for Redis 4.0 and 5.0 support Redis Clusters. DCS for Redis 3.0 supports Proxy Clusters.", + "doc_type":"usermanual", + "kw":"Does DCS for Redis Support Redis Clusters?,Redis Usage,User Guide", + "title":"Does DCS for Redis Support Redis Clusters?", + "githuburl":"" + }, + { + "uri":"dcs-faq-0730021.html", + "product_code":"dcs", + "code":"120", + "des":"Yes. Redis Sentinel is supported by DCS for Redis 4.0 and 5.0 and is enabled by default. Sentinel constantly checks if master and replica nodes are running properly. If t", + "doc_type":"usermanual", + "kw":"Does DCS for Redis Support Sentinel?,Redis Usage,User Guide", + "title":"Does DCS for Redis Support Sentinel?", + "githuburl":"" + }, + { + "uri":"dcs-faq-0730022.html", + "product_code":"dcs", + "code":"121", + "des":"Data is evicted from cache based on a user-defined space limit in order to make space for new data. In the current versions of DCS, you can select an eviction policy.noev", + "doc_type":"usermanual", + "kw":"default eviction policy,What Is the Default Data Eviction Policy?,Redis Usage,User Guide", + "title":"What Is the Default Data Eviction Policy?", + "githuburl":"" + }, + { + "uri":"dcs-faq-0730023.html", + "product_code":"dcs", + "code":"122", + "des":"Start the Redis exporter using the CLI. Based on the output, check for errors and troubleshoot accordingly.", + "doc_type":"usermanual", + "kw":"What Should I Do If an Error Occurs in Redis Exporter?,Redis Usage,User Guide", + "title":"What Should I Do If an Error Occurs in Redis Exporter?", + "githuburl":"" + }, + { + "uri":"dcs-faq-0730024.html", + "product_code":"dcs", + "code":"123", + "des":"This is normal due to Redis functions (such as master/replica replication and lazyfree). When the memory becomes full, scale up the instance or remove unnecessary data.", + "doc_type":"usermanual", + "kw":"Why Is Memory Usage More Than 100%?,Redis Usage,User Guide", + "title":"Why Is Memory Usage More Than 100%?", + "githuburl":"" + }, + { + "uri":"dcs-faq-0730025.html", + "product_code":"dcs", + "code":"124", + "des":"Redisson implements lock acquisition and unlocking in the following process:Redisson lock acquisition and unlocking are implemented by running Lua scripts.During lock acq", + "doc_type":"usermanual", + "kw":"Why Is Redisson Distributed Lock Not Supported by DCS Proxy Cluster Redis 3.0 Instances?,Redis Usage", + "title":"Why Is Redisson Distributed Lock Not Supported by DCS Proxy Cluster Redis 3.0 Instances?", + "githuburl":"" + }, + { + "uri":"dcs-faq-0730026.html", + "product_code":"dcs", + "code":"125", + "des":"You cannot customize or change the port for accessing a DCS Redis 3.0 instance. You can customize and change the port for accessing a DCS Redis 4.0 or 5.0 instance.Redis ", + "doc_type":"usermanual", + "kw":"Can I Customize or Change the Port for Accessing a DCS Instance?,Redis Usage,User Guide", + "title":"Can I Customize or Change the Port for Accessing a DCS Instance?", + "githuburl":"" + }, + { + "uri":"dcs-faq-0730027.html", + "product_code":"dcs", + "code":"126", + "des":"After a DCS instance is created, its intra-VPC connection addresses cannot be modified.For details about accessing DCS instances through clients, see Accessing a DCS Redi", + "doc_type":"usermanual", + "kw":"Can I Modify the Connection Addresses for Accessing a DCS Instance?,Redis Usage,User Guide", + "title":"Can I Modify the Connection Addresses for Accessing a DCS Instance?", + "githuburl":"" + }, + { + "uri":"dcs-faq-0730029.html", + "product_code":"dcs", + "code":"127", + "des":"Master/Standby and cluster DCS Redis instances can be deployed across availability zones (AZs).If instances nodes in an AZ are faulty, nodes in other AZs will not be affe", + "doc_type":"usermanual", + "kw":"Does DCS Support Cross-AZ Deployment?,Redis Usage,User Guide", + "title":"Does DCS Support Cross-AZ Deployment?", + "githuburl":"" + }, + { + "uri":"dcs-faq-0730030.html", + "product_code":"dcs", + "code":"128", + "des":"Possible cause: When a cluster instance is started, status and data are synchronized between the nodes of the instance. If a large amount of data is continuously written ", + "doc_type":"usermanual", + "kw":"Why Does It Take a Long Time to Start a Cluster DCS Instance?,Redis Usage,User Guide", + "title":"Why Does It Take a Long Time to Start a Cluster DCS Instance?", + "githuburl":"" + }, + { + "uri":"dcs-faq-0730032.html", + "product_code":"dcs", + "code":"129", + "des":"No. If you wish to query Redis configurations and usage information, use redis-cli. If you wish to monitor DCS Redis instance metrics, go to the Cloud Eye console. For de", + "doc_type":"usermanual", + "kw":"Does DCS for Redis Provide Backend Management Software?,Redis Usage,User Guide", + "title":"Does DCS for Redis Provide Backend Management Software?", + "githuburl":"" + }, + { + "uri":"dcs-faq-0730033.html", + "product_code":"dcs", + "code":"130", + "des":"Possible cause: The output buffer may have occupied an excessive amount of memory.Solution: After connecting to the instance using redis-cli, run the redis-cli --bigkeys ", + "doc_type":"usermanual", + "kw":"Why Is Memory of a DCS Redis Instance Used Up by Just a Few Keys?,Redis Usage,User Guide", + "title":"Why Is Memory of a DCS Redis Instance Used Up by Just a Few Keys?", + "githuburl":"" + }, + { + "uri":"dcs-faq-0730034.html", + "product_code":"dcs", + "code":"131", + "des":"If a DCS instance is automatically deleted or manually deleted through the Redis client, its data cannot be retrieved. If you have backed up the instance, you can restore", + "doc_type":"usermanual", + "kw":"Can I Recover Data from Deleted DCS Instances?,Redis Usage,User Guide", + "title":"Can I Recover Data from Deleted DCS Instances?", + "githuburl":"" + }, + { + "uri":"dcs-faq-210223001.html", + "product_code":"dcs", + "code":"132", + "des":"Symptom: \"Error in execution; nested exception is io.lettuce.core.RedisCommandExecutionException: OOM command not allowed when used memory > 'maxmemory'\" is returned duri", + "doc_type":"usermanual", + "kw":"Why Is \"Error in execution\" Returned When I Access Redis?,Redis Usage,User Guide", + "title":"Why Is \"Error in execution\" Returned When I Access Redis?", + "githuburl":"" + }, + { + "uri":"dcs-faq-190921003.html", + "product_code":"dcs", + "code":"133", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"usermanual", + "kw":"Redis Commands", + "title":"Redis Commands", + "githuburl":"" + }, + { + "uri":"dcs-faq-0730036.html", + "product_code":"dcs", + "code":"134", + "des":"Exercise caution when clearing data.Redis 3.0Data of a DCS Redis 3.0 instance cannot be cleared on the console, and can only be cleared by the FLUSHDB or FLUSHALL command", + "doc_type":"usermanual", + "kw":"How Do I Clear Redis Data?,Redis Commands,User Guide", + "title":"How Do I Clear Redis Data?", + "githuburl":"" + }, + { + "uri":"dcs-faq-0730039.html", + "product_code":"dcs", + "code":"135", + "des":"Yes. For more information about Redis command compatibility, see Command Compatibility.", + "doc_type":"usermanual", + "kw":"Does DCS for Redis Support the INCR and EXPIRE Commands?,Redis Commands,User Guide", + "title":"Does DCS for Redis Support the INCR and EXPIRE Commands?", + "githuburl":"" + }, + { + "uri":"dcs-faq-0730040.html", + "product_code":"dcs", + "code":"136", + "des":"Possible causes include the following:The command is incorrect.The command is disabled in DCS.For security purposes, some Redis commands are disabled in DCS. For details ", + "doc_type":"usermanual", + "kw":"Why Do I Fail to Execute Some Redis Commands?,Redis Commands,User Guide", + "title":"Why Do I Fail to Execute Some Redis Commands?", + "githuburl":"" + }, + { + "uri":"dcs-faq-0730041.html", + "product_code":"dcs", + "code":"137", + "des":"Run the command in redis-cli to check whether the command takes effect.The following describes two scenarios:Scenario 1: Set and query the value of a key to check whether", + "doc_type":"usermanual", + "kw":"Why Does a Redis Command Fail to Take Effect?,Redis Commands,User Guide", + "title":"Why Does a Redis Command Fail to Take Effect?", + "githuburl":"" + }, + { + "uri":"dcs-faq-0730042.html", + "product_code":"dcs", + "code":"138", + "des":"The time limit for executing a Redis command is 1 minute. This limit cannot be configured. After the execution of a command times out, your client will be automatically d", + "doc_type":"usermanual", + "kw":"time limit for executing a Redis command,Is There a Time Limit on Executing Redis Commands? What Wil", + "title":"Is There a Time Limit on Executing Redis Commands? What Will Happen If a Command Times Out?", + "githuburl":"" + }, + { + "uri":"dcs-faq-0326022.html", + "product_code":"dcs", + "code":"139", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"usermanual", + "kw":"Instance Scaling and Upgrade", + "title":"Instance Scaling and Upgrade", + "githuburl":"" + }, + { + "uri":"dcs-faq-0730043.html", + "product_code":"dcs", + "code":"140", + "des":"No. Different Redis versions use different underlying architectures. The Redis version used by a DCS instance cannot be changed once the instance is created. However, you", + "doc_type":"usermanual", + "kw":"Can DCS Redis Instances Be Upgraded, for Example, from Redis 3.0 to Redis 4.0 or 5.0?,Instance Scali", + "title":"Can DCS Redis Instances Be Upgraded, for Example, from Redis 3.0 to Redis 4.0 or 5.0?", + "githuburl":"" + }, + { + "uri":"dcs-faq-0730044.html", + "product_code":"dcs", + "code":"141", + "des":"O&M personnel will contact you before performing maintenance during the maintenance time window, informing you of the operations and their impacts. You do not need to wor", + "doc_type":"usermanual", + "kw":"Are Services Interrupted If Maintenance is Performed During the Maintenance Time Window?,Instance Sc", + "title":"Are Services Interrupted If Maintenance is Performed During the Maintenance Time Window?", + "githuburl":"" + }, + { + "uri":"dcs-faq-0730045.html", + "product_code":"dcs", + "code":"142", + "des":"No. Specification modifications can take place while the instance is running and do not affect any other resources.", + "doc_type":"usermanual", + "kw":"Are Instance Resources Affected During Specification Modification?,Instance Scaling and Upgrade,User", + "title":"Are Instance Resources Affected During Specification Modification?", + "githuburl":"" + }, + { + "uri":"dcs-faq-0730047.html", + "product_code":"dcs", + "code":"143", + "des":"You are advised to change the instance specifications during off-peak hours because specification modification has the following impacts:Impact of instance type changes:F", + "doc_type":"usermanual", + "kw":"Are Services Interrupted During Specification Modification?,Instance Scaling and Upgrade,User Guide", + "title":"Are Services Interrupted During Specification Modification?", + "githuburl":"" + }, + { + "uri":"dcs-faq-0730048.html", + "product_code":"dcs", + "code":"144", + "des":"Specifications of a DCS instance cannot be modified if another task of the instance is still running. For example, you cannot delete or scale up an instance while it is b", + "doc_type":"usermanual", + "kw":"Why Can't I Modify Specifications for a DCS Redis Instance?,Instance Scaling and Upgrade,User Guide", + "title":"Why Can't I Modify Specifications for a DCS Redis Instance?", + "githuburl":"" + }, + { + "uri":"dcs-faq-0326023.html", + "product_code":"dcs", + "code":"145", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"usermanual", + "kw":"Monitoring and Alarm", + "title":"Monitoring and Alarm", + "githuburl":"" + }, + { + "uri":"dcs-faq-0730049.html", + "product_code":"dcs", + "code":"146", + "des":"No. To ensure high-performance reads and writes, Redis does not audit commands. Commands are not printed.", + "doc_type":"usermanual", + "kw":"Does Redis Support Command Audits?,Monitoring and Alarm,User Guide", + "title":"Does Redis Support Command Audits?", + "githuburl":"" + }, + { + "uri":"dcs-faq-0730050.html", + "product_code":"dcs", + "code":"147", + "des":"If you have any doubt on the monitoring data of a DCS Redis instance, you can access the instance through redis-cli and run the INFO ALL command to view the metrics. For ", + "doc_type":"usermanual", + "kw":"What Should I Do If the Monitoring Data of a DCS Redis Instance Is Abnormal?,Monitoring and Alarm,Us", + "title":"What Should I Do If the Monitoring Data of a DCS Redis Instance Is Abnormal?", + "githuburl":"" + }, + { + "uri":"dcs-faq-0730052.html", + "product_code":"dcs", + "code":"148", + "des":"For single-node and master/standby DCS instances, the used instance memory is measured by the Redis-server process. For cluster DCS instances, the used cluster memory is ", + "doc_type":"usermanual", + "kw":"used instance memory is normally slightly higher than the available instance memory,Why Is Used Memo", + "title":"Why Is Used Memory Greater Than Available Memory?", + "githuburl":"" + }, + { + "uri":"dcs-faq-0326024.html", + "product_code":"dcs", + "code":"149", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"usermanual", + "kw":"Data Backup, Export, and Migration", + "title":"Data Backup, Export, and Migration", + "githuburl":"" + }, + { + "uri":"dcs-faq-0730053.html", + "product_code":"dcs", + "code":"150", + "des":"For master/standby or cluster instances:Perform the following operations to export the data:On the Backups & Restorations page, view the backup records.If there are no ba", + "doc_type":"usermanual", + "kw":"How Do I Export DCS Redis Instance Data?,Data Backup, Export, and Migration,User Guide", + "title":"How Do I Export DCS Redis Instance Data?", + "githuburl":"" + }, + { + "uri":"dcs-faq-0730054.html", + "product_code":"dcs", + "code":"151", + "des":"Redis 3.0No. On the console, backup data of a DCS Redis 3.0 instance can be exported only to AOF files. To export data to RDB files, run the following command in redis-cl", + "doc_type":"usermanual", + "kw":"Can I Export Backup Data of DCS Redis Instances to RDB Files Using the Console?,Data Backup, Export,", + "title":"Can I Export Backup Data of DCS Redis Instances to RDB Files Using the Console?", + "githuburl":"" + }, + { + "uri":"dcs-faq-0730057.html", + "product_code":"dcs", + "code":"152", + "des":"DCS Redis instances:Single-node: Not supportedMaster/Standby and cluster: SupportedSingle-node: Not supportedMaster/Standby and cluster: Supported", + "doc_type":"usermanual", + "kw":"Does DCS Support Data Persistence?,Data Backup, Export, and Migration,User Guide", + "title":"Does DCS Support Data Persistence?", + "githuburl":"" + }, + { + "uri":"dcs-migration-090626001.html", + "product_code":"", + "code":"153", + "des":"Rump is an open-source tool designed for migrating Redis data online. It supports migration between DBs of the same instance and between DBs of different instances.Rump u", + "doc_type":"", + "kw":"Online Migration with Rump,Data Backup, Export, and Migration,User Guide", + "title":"Online Migration with Rump", + "githuburl":"" + }, + { + "uri":"dcs-faq-191204001.html", + "product_code":"dcs", + "code":"154", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"usermanual", + "kw":"Master/Standby Switchover", + "title":"Master/Standby Switchover", + "githuburl":"" + }, + { + "uri":"dcs-faq-0730058.html", + "product_code":"dcs", + "code":"155", + "des":"A master/standby switchover may occur in the following scenarios:A master/standby switchover operation is initiated on the DCS Console.If the master node of a master/stan", + "doc_type":"usermanual", + "kw":"When Does a Master/Standby Switchover Occur?,Master/Standby Switchover,User Guide", + "title":"When Does a Master/Standby Switchover Occur?", + "githuburl":"" + }, + { + "uri":"dcs-faq-0730059.html", + "product_code":"dcs", + "code":"156", + "des":"If a fault occurs in a master/standby or cluster DCS instance, a failover is triggered automatically. Services may be interrupted for less than half a minute during excep", + "doc_type":"usermanual", + "kw":"How Does Master/Standby Switchover Affect Services?,Master/Standby Switchover,User Guide", + "title":"How Does Master/Standby Switchover Affect Services?", + "githuburl":"" + }, + { + "uri":"dcs-faq-0730060.html", + "product_code":"dcs", + "code":"157", + "des":"No. If the master fails, the standby node will be promoted to master and takes the original IP address.", + "doc_type":"usermanual", + "kw":"Does the Client Need to Switch the Connection Address After a Master/Standby Switchover?,Master/Stan", + "title":"Does the Client Need to Switch the Connection Address After a Master/Standby Switchover?", + "githuburl":"" + }, + { + "uri":"dcs-faq-0730061.html", + "product_code":"dcs", + "code":"158", + "des":"Redis master/standby instances are also called master/slave instances. Generally, updates to the master cache node are automatically and asynchronously replicated to the ", + "doc_type":"usermanual", + "kw":"asynchronously replicated,How Does Redis Master/Standby Replication Work?,Master/Standby Switchover,", + "title":"How Does Redis Master/Standby Replication Work?", + "githuburl":"" + }, + { + "uri":"en-us_topic_0072429345.html", + "product_code":"dcs", + "code":"159", + "des":"For details about the terms involved in this document, see Glossary.", + "doc_type":"usermanual", + "kw":"Glossary,User Guide", + "title":"Glossary", + "githuburl":"" + }, + { + "uri":"dcs-ug-0326026.html", + "product_code":"dcs", + "code":"160", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"usermanual", + "kw":"Change History,User Guide", + "title":"Change History", + "githuburl":"" + } +] \ No newline at end of file diff --git a/docs/dcs/umn/CLASS.TXT.json b/docs/dcs/umn/CLASS.TXT.json new file mode 100644 index 000000000..6ecdf682a --- /dev/null +++ b/docs/dcs/umn/CLASS.TXT.json @@ -0,0 +1,1442 @@ +[ + { + "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "product_code":"dcs", + "title":"Service Overview", + "uri":"dcs-pd-0326001.html", + "doc_type":"usermanual", + "p_code":"", + "code":"1" + }, + { + "desc":"Distributed Cache Service (DCS) is an online, distributed, in-memory cache service compatible with Redis. It is reliable, scalable, usable out of the box, and easy to man", + "product_code":"dcs", + "title":"What Is DCS?", + "uri":"en-us_topic_0054235826.html", + "doc_type":"usermanual", + "p_code":"1", + "code":"2" + }, + { + "desc":"Many large-scale e-commerce websites and video streaming and gaming applications require fast access to large amounts of data that has simple data structures and does not", + "product_code":"dcs", + "title":"Application Scenarios", + "uri":"dcs-pd-0326002.html", + "doc_type":"usermanual", + "p_code":"1", + "code":"3" + }, + { + "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "product_code":"dcs", + "title":"DCS Instance Types", + "uri":"dcs-pd-200312001.html", + "doc_type":"usermanual", + "p_code":"1", + "code":"4" + }, + { + "desc":"Three Redis versions are available for single-node DCS Redis instances: Redis 3.0, Redis 4.0, and Redis 5.0.Low system overhead and high QPSSingle-node instances do not s", + "product_code":"dcs", + "title":"Single-Node Redis", + "uri":"CacheSingleNode.html", + "doc_type":"usermanual", + "p_code":"4", + "code":"5" + }, + { + "desc":"This section describes master/standby DCS Redis instances. Three Redis versions are available for master/standby DCS Redis instances: Redis 3.0, Redis 4.0, and Redis 5.0.", + "product_code":"dcs", + "title":"Master/Standby Redis", + "uri":"CacheMasterSlave.html", + "doc_type":"usermanual", + "p_code":"4", + "code":"6" + }, + { + "desc":"DCS provides two types of cluster Redis instances: Proxy Cluster and Redis Cluster. Proxy Cluster uses Linux Virtual Server (LVS) and proxies. Redis Cluster is the native", + "product_code":"dcs", + "title":"Proxy Cluster Redis", + "uri":"CacheCluster.html", + "doc_type":"usermanual", + "p_code":"4", + "code":"7" + }, + { + "desc":"This section describes Redis Cluster DCS Redis 4.0 and 5.0 instances.The Redis Cluster instance type provided by DCS is compatible with the native Redis Cluster, which us", + "product_code":"dcs", + "title":"Redis Cluster", + "uri":"CacheProxy.html", + "doc_type":"usermanual", + "p_code":"4", + "code":"8" + }, + { + "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "product_code":"dcs", + "title":"DCS Instance Specifications", + "uri":"en-us_topic_0054235835.html", + "doc_type":"usermanual", + "p_code":"1", + "code":"9" + }, + { + "desc":"This section describes DCS Redis 3.0 instance specifications, including the total memory, available memory, maximum number of connections allowed, maximum/assured bandwid", + "product_code":"dcs", + "title":"Redis 3.0 Instance Specifications", + "uri":"dcs-pd-0916001.html", + "doc_type":"usermanual", + "p_code":"9", + "code":"10" + }, + { + "desc":"This section describes DCS Redis 4.0 and 5.0 instance specifications, including the total memory, available memory, maximum number of connections allowed, maximum/assured", + "product_code":"dcs", + "title":"Redis 4.0 and 5.0 Instance Specifications", + "uri":"dcs-pd-0916002.html", + "doc_type":"usermanual", + "p_code":"9", + "code":"11" + }, + { + "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "product_code":"dcs", + "title":"Command Compatibility", + "uri":"dcs-pd-200312003.html", + "doc_type":"usermanual", + "p_code":"1", + "code":"12" + }, + { + "desc":"DCS for Redis 3.0 is developed based on Redis 3.0.7 and is compatible with open-source protocols and commands.This section describes DCS for Redis 3.0's compatibility wit", + "product_code":"dcs", + "title":"Redis 3.0 Commands", + "uri":"dcs-pd-200713005.html", + "doc_type":"usermanual", + "p_code":"12", + "code":"13" + }, + { + "desc":"DCS for Redis 4.0 is developed based on Redis 4.0.14 and is compatible with open-source protocols and commands.This section describes DCS for Redis 4.0's compatibility wi", + "product_code":"dcs", + "title":"Redis 4.0 Commands", + "uri":"dcs-pd-200916001.html", + "doc_type":"usermanual", + "p_code":"12", + "code":"14" + }, + { + "desc":"DCS for Redis 5.0 is developed based on Redis 5.0.9 and is compatible with open-source protocols and commands.This section describes DCS for Redis 5.0's compatibility wit", + "product_code":"dcs", + "title":"Redis 5.0 Commands", + "uri":"dcs-pd-200813002.html", + "doc_type":"usermanual", + "p_code":"12", + "code":"15" + }, + { + "desc":"Web CLI is a command line tool provided on the DCS console. This section describes Web CLI's compatibility with Redis commands, including supported and disabled commands.", + "product_code":"dcs", + "title":"Web CLI Commands", + "uri":"dcs-pd-190826001.html", + "doc_type":"usermanual", + "p_code":"12", + "code":"16" + }, + { + "desc":"Some Redis commands are supported by cluster DCS instances for multi-key operations in the same slot. For details, see Table 1.While running commands that take a long tim", + "product_code":"dcs", + "title":"Command Restrictions for Cluster Instances", + "uri":"dcs-pd-200813003.html", + "doc_type":"usermanual", + "p_code":"12", + "code":"17" + }, + { + "desc":"This section describes restrictions on some Redis commands.In case of a large amount of cached data, running the KEYS command may block the execution of other commands fo", + "product_code":"dcs", + "title":"Other Command Usage Restrictions", + "uri":"dcs-pd-200813004.html", + "doc_type":"usermanual", + "p_code":"12", + "code":"18" + }, + { + "desc":"Whether you use DCS as the frontend cache or backend data store, DCS is always ready to ensure data reliability and service availability. The following figure shows the e", + "product_code":"dcs", + "title":"HA and DR Policies", + "uri":"GlobalDRPolicy.html", + "doc_type":"usermanual", + "p_code":"1", + "code":"19" + }, + { + "desc":"When creating a DCS Redis instance, you can select the cache engine version and the instance type.VersionDCS supports Redis 3.0, 4.0, and 5.0. The following table describ", + "product_code":"dcs", + "title":"Comparing Redis Versions", + "uri":"RedisDifference.html", + "doc_type":"usermanual", + "p_code":"1", + "code":"20" + }, + { + "desc":"DCS supports single-node, master/standby, and cluster instances, ensuring high read/write performance and fast data access. It also supports various instance management o", + "product_code":"dcs", + "title":"Comparing DCS and Open-Source Cache Services", + "uri":"dcs-pd-0326003.html", + "doc_type":"usermanual", + "p_code":"1", + "code":"21" + }, + { + "desc":"An instance is the minimum resource unit provided by DCS.DCS supports the Redis cache engine, and single-node, master/standby, and cluster instance types. For each instan", + "product_code":"dcs", + "title":"Basic Concepts", + "uri":"dcs-pd-200312004.html", + "doc_type":"usermanual", + "p_code":"1", + "code":"22" + }, + { + "desc":"If you need to assign different permissions to employees in your enterprise to access your DCS resources, Identity and Access Management (IAM) is a good choice for fine-g", + "product_code":"dcs", + "title":"Permissions Management", + "uri":"dcs-pd-210626001.html", + "doc_type":"usermanual", + "p_code":"1", + "code":"23" + }, + { + "desc":"DCS is used together with other services, including VPC, ECS, IAM, Cloud Eye, CTS, and Object Storage Service (OBS).A VPC is an isolated virtual network environment on th", + "product_code":"dcs", + "title":"Related Services", + "uri":"dcs-pd-0326006.html", + "doc_type":"usermanual", + "p_code":"1", + "code":"24" + }, + { + "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "product_code":"dcs", + "title":"Accessing DCS", + "uri":"en-us_topic_0054235836.html", + "doc_type":"usermanual", + "p_code":"1", + "code":"25" + }, + { + "desc":"There are two ways to access DCS:Using the management consoleThe DCS provides a web-based management console. To launch the DCS console, create an account on the manageme", + "product_code":"dcs", + "title":"How to Access DCS", + "uri":"en-us_topic_0054235837.html", + "doc_type":"usermanual", + "p_code":"25", + "code":"26" + }, + { + "desc":"The public cloud system provides two types of user permissions by default: user management and resource management.User management refers to the management of users, user", + "product_code":"dcs", + "title":"User Permissions", + "uri":"en-us_topic_0054247786.html", + "doc_type":"usermanual", + "p_code":"25", + "code":"27" + }, + { + "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "product_code":"dcs", + "title":"Permissions Management", + "uri":"dcs-ug-210626003.html", + "doc_type":"usermanual", + "p_code":"", + "code":"28" + }, + { + "desc":"This chapter describes how to use IAM to implement fine-grained permissions control for your DCS resources. With IAM, you can:Create IAM users for employees based on your", + "product_code":"dcs", + "title":"Creating a User and Granting DCS Permissions", + "uri":"dcs-ug-210626004.html", + "doc_type":"usermanual", + "p_code":"28", + "code":"29" + }, + { + "desc":"Custom policies can be created to supplement the system-defined policies of DCS. For the actions that can be added for custom policies, see Permissions Policies and Suppo", + "product_code":"dcs", + "title":"DCS Custom Policies", + "uri":"dcs-ug-210626005.html", + "doc_type":"usermanual", + "p_code":"28", + "code":"30" + }, + { + "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "product_code":"dcs", + "title":"Getting Started", + "uri":"dcs-ug-0326007.html", + "doc_type":"usermanual", + "p_code":"", + "code":"31" + }, + { + "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "product_code":"dcs", + "title":"Creating an Instance", + "uri":"dcs-ug-0312003.html", + "doc_type":"usermanual", + "p_code":"31", + "code":"32" + }, + { + "desc":"Before creating a DCS instance, identify your requirements and complete the following preparations:Decide on the required cache engine version.Different Redis versions ha", + "product_code":"dcs", + "title":"Identifying Requirements", + "uri":"PurchasePreparation.html", + "doc_type":"usermanual", + "p_code":"32", + "code":"33" + }, + { + "desc":"To access DCS instances through a Virtual Private Cloud (VPC), create a VPC and configure security groups and subnets for it before using DCS. A VPC provides an isolated ", + "product_code":"dcs", + "title":"Preparing the Environment", + "uri":"dcs-ug-0312004.html", + "doc_type":"usermanual", + "p_code":"32", + "code":"34" + }, + { + "desc":"You can create one or more DCS Redis instances with the required computing capabilities and storage space based on service requirements.The system automatically schedules", + "product_code":"dcs", + "title":"Creating a DCS Redis Instance", + "uri":"dcs-ug-0326008.html", + "doc_type":"usermanual", + "p_code":"32", + "code":"35" + }, + { + "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "product_code":"dcs", + "title":"Accessing an Instance", + "uri":"dcs-ug-0916002.html", + "doc_type":"usermanual", + "p_code":"31", + "code":"36" + }, + { + "desc":"Access a DCS Redis instance through redis-cli on an ECS in the same VPC. For more information on how to use other Redis clients, visit https://redis.io/clients.Redis 3.0 ", + "product_code":"dcs", + "title":"Accessing a DCS Redis Instance Through redis-cli", + "uri":"dcs-ug-0326009.html", + "doc_type":"usermanual", + "p_code":"36", + "code":"37" + }, + { + "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "product_code":"dcs", + "title":"Access in Different Languages", + "uri":"dcs-ug-0512002.html", + "doc_type":"usermanual", + "p_code":"36", + "code":"38" + }, + { + "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "product_code":"dcs", + "title":"Java", + "uri":"dcs-ug-211105003.html", + "doc_type":"usermanual", + "p_code":"38", + "code":"39" + }, + { + "desc":"Access a DCS Redis instance through Jedis on an ECS in the same VPC. For more information on how to use other Redis clients, visit https://redis.io/clients.If a password ", + "product_code":"dcs", + "title":"Jedis", + "uri":"dcs-ug-0713005.html", + "doc_type":"usermanual", + "p_code":"39", + "code":"40" + }, + { + "desc":"Access a Redis Cluster instance through Lettuce on an ECS in the same VPC. For more information on how to use other Redis clients, visit https://redis.io/clients.If a pas", + "product_code":"dcs", + "title":"Lettuce", + "uri":"dcs-ug-211011001.html", + "doc_type":"usermanual", + "p_code":"39", + "code":"41" + }, + { + "desc":"Access a DCS Redis instance through Redisson on an ECS in the same VPC. For more information about how to use other Redis clients, visit the Redis official website.If a p", + "product_code":"dcs", + "title":"Redisson", + "uri":"dcs-ug-211105004.html", + "doc_type":"usermanual", + "p_code":"39", + "code":"42" + }, + { + "desc":"A DCS Redis instance has been created and is in the Running state.An ECS has been created. For details about how to create an ECS, see Elastic Cloud Server User Guide.If ", + "product_code":"dcs", + "title":"Lettuce Integration with Spring Boot", + "uri":"dcs-ug-211203001.html", + "doc_type":"usermanual", + "p_code":"38", + "code":"43" + }, + { + "desc":"Access a DCS Redis instance through redis-py on an ECS in the same VPC. For more information about how to use other Redis clients, visit the Redis official website.Use re", + "product_code":"dcs", + "title":"Clients in Python", + "uri":"dcs-ug-0312011.html", + "doc_type":"usermanual", + "p_code":"38", + "code":"44" + }, + { + "desc":"Access a DCS Redis instance through go-redis on an ECS in the same VPC. For more information about how to use other Redis clients, visit the Redis official website.A DCS ", + "product_code":"dcs", + "title":"go-redis", + "uri":"dcs-ug-211105001.html", + "doc_type":"usermanual", + "p_code":"38", + "code":"45" + }, + { + "desc":"Access a DCS Redis instance through hiredis on an ECS in the same VPC. For more information about how to use other Redis clients, visit the Redis official website.The ope", + "product_code":"dcs", + "title":"hiredis in C++", + "uri":"dcs-ug-0312010.html", + "doc_type":"usermanual", + "p_code":"38", + "code":"46" + }, + { + "desc":"Access a DCS Redis instance through C# Client StackExchange.Redis on an ECS in the same VPC. For more information about how to use other Redis clients, visit the Redis of", + "product_code":"dcs", + "title":"C#", + "uri":"dcs-ug-0312013.html", + "doc_type":"usermanual", + "p_code":"38", + "code":"47" + }, + { + "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "product_code":"dcs", + "title":"PHP", + "uri":"dcs-ug-211202001.html", + "doc_type":"usermanual", + "p_code":"38", + "code":"48" + }, + { + "desc":"Access a DCS Redis instance through phpredis on an ECS in the same VPC. For more information about how to use other Redis clients, visit the Redis official website.The op", + "product_code":"dcs", + "title":"phpredis", + "uri":"dcs-ug-0312009.html", + "doc_type":"usermanual", + "p_code":"48", + "code":"49" + }, + { + "desc":"Access a DCS Redis instance through Predis on an ECS in the same VPC. For more information about how to use other Redis clients, visit the Redis official website.A DCS Re", + "product_code":"dcs", + "title":"Predis", + "uri":"dcs-ug-211202002.html", + "doc_type":"usermanual", + "p_code":"48", + "code":"50" + }, + { + "desc":"Access a DCS Redis instance through Node.js on an ECS in the same VPC. For more information about how to use other Redis clients, visit the Redis official website.The ope", + "product_code":"dcs", + "title":"Node.js", + "uri":"dcs-ug-0312012.html", + "doc_type":"usermanual", + "p_code":"38", + "code":"51" + }, + { + "desc":"Access a DCS Redis instance through Web CLI. This function is supported only by DCS Redis 4.0 and 5.0 instances, and not by DCS Redis 3.0 instances.Do not enter sensitive", + "product_code":"dcs", + "title":"Accessing a DCS Redis 4.0 or 5.0 Instance on the Console", + "uri":"dcs-ug-0312008.html", + "doc_type":"usermanual", + "p_code":"36", + "code":"52" + }, + { + "desc":"On the DCS console, you can view DCS instance details.Search by keyword.Enter a keyword to search.Enter a keyword to search.Select attributes and enter their keywords to ", + "product_code":"dcs", + "title":"Viewing Details of a DCS Instance", + "uri":"dcs-ug-0312016.html", + "doc_type":"usermanual", + "p_code":"31", + "code":"53" + }, + { + "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "product_code":"dcs", + "title":"Operation Guide", + "uri":"dcs-ug-0326010.html", + "doc_type":"usermanual", + "p_code":"", + "code":"54" + }, + { + "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "product_code":"dcs", + "title":"Operating DCS Instances", + "uri":"dcs-ug-0312015.html", + "doc_type":"usermanual", + "p_code":"54", + "code":"55" + }, + { + "desc":"On the DCS console, you can scale a DCS Redis instance to a larger or smaller capacity.Modify instance specifications during off-peak hours.If your DCS instances are too ", + "product_code":"dcs", + "title":"Modifying DCS Instance Specifications", + "uri":"dcs-ug-0326011.html", + "doc_type":"usermanual", + "p_code":"55", + "code":"56" + }, + { + "desc":"On the DCS console, you can start one or multiple DCS instances at a time.This function is not supported by recent instances. You can only start old instances that have b", + "product_code":"dcs", + "title":"Starting DCS Instances", + "uri":"dcs-ug-0911001.html", + "doc_type":"usermanual", + "p_code":"55", + "code":"57" + }, + { + "desc":"On the DCS console, you can restart one or multiple DCS instances at a time.After a single-node DCS instance is restarted, data will be deleted from the instance.While a ", + "product_code":"dcs", + "title":"Restarting DCS Instances", + "uri":"dcs-ug-0326013.html", + "doc_type":"usermanual", + "p_code":"55", + "code":"58" + }, + { + "desc":"On the DCS console, you can delete one or multiple DCS instances at a time. You can also delete all instance creation tasks that have failed to run.After a DCS instance i", + "product_code":"dcs", + "title":"Deleting DCS Instances", + "uri":"dcs-ug-0326014.html", + "doc_type":"usermanual", + "p_code":"55", + "code":"59" + }, + { + "desc":"On the DCS console, you can manually switch the master and standby nodes of a DCS instance. This operation is used for special purposes, for example, releasing all servic", + "product_code":"dcs", + "title":"Performing a Master/Standby Switchover for a DCS Instance", + "uri":"dcs-ug-0312017.html", + "doc_type":"usermanual", + "p_code":"55", + "code":"60" + }, + { + "desc":"On the DCS console, you can clear data only for DCS Redis 4.0 and 5.0 instances.Clearing instance data cannot be undone and cleared data cannot be recovered. Exercise cau", + "product_code":"dcs", + "title":"Clearing DCS Instance Data", + "uri":"dcs-ug-0312018.html", + "doc_type":"usermanual", + "p_code":"55", + "code":"61" + }, + { + "desc":"On the DCS console, you can export DCS instance information in full to an Excel file.Click the export result displayed in the lower left corner of the page.", + "product_code":"dcs", + "title":"Exporting DCS Instance List", + "uri":"dcs-ug-0312019.html", + "doc_type":"usermanual", + "p_code":"55", + "code":"62" + }, + { + "desc":"After creating a DCS Redis 4.0 or 5.0 instance, you can rename the following critical commands: COMMAND, KEYS, FLUSHDB, FLUSHALL, and HGETALL.You can rename multiple comm", + "product_code":"dcs", + "title":"Command Renaming", + "uri":"dcs-ug-1009002.html", + "doc_type":"usermanual", + "p_code":"55", + "code":"63" + }, + { + "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "product_code":"dcs", + "title":"Managing DCS Instances", + "uri":"dcs-ug-0312022.html", + "doc_type":"usermanual", + "p_code":"54", + "code":"64" + }, + { + "desc":"In most cases, different DCS instance management operations cannot proceed concurrently. If you initiate a new management operation while the current operation is in prog", + "product_code":"dcs", + "title":"Configuration Notice", + "uri":"dcs-ug-0312023.html", + "doc_type":"usermanual", + "p_code":"64", + "code":"65" + }, + { + "desc":"You can modify the configuration parameters of your DCS instance to optimize DCS performance based on your requirements.For example, if you do not need data persistence, ", + "product_code":"dcs", + "title":"Modifying Configuration Parameters", + "uri":"dcs-ug-0312024.html", + "doc_type":"usermanual", + "p_code":"64", + "code":"66" + }, + { + "desc":"On the DCS console, after creating a DCS instance, you can modify the maintenance time window of the DCS instance on the instance's Basic Information page.At least one DC", + "product_code":"dcs", + "title":"Modifying Maintenance Time Window", + "uri":"dcs-ug-0312025.html", + "doc_type":"usermanual", + "p_code":"64", + "code":"67" + }, + { + "desc":"On the DCS console, after creating a DCS instance, you can modify the security group of the DCS instance on the instance's Basic Information page.You can modify the secur", + "product_code":"dcs", + "title":"Modifying the Security Group", + "uri":"dcs-ug-0312026.html", + "doc_type":"usermanual", + "p_code":"64", + "code":"68" + }, + { + "desc":"After you initiate certain instance operations such as modifying instance specifications and changing or resetting a password, a background task will start for the operat", + "product_code":"dcs", + "title":"Viewing Background Tasks", + "uri":"dcs-ug-0312028.html", + "doc_type":"usermanual", + "p_code":"64", + "code":"69" + }, + { + "desc":"You can view the data storage statistics of all nodes of a DCS Redis 3.0 Proxy Cluster instance. If data storage is unevenly distributed across nodes, you can scale up th", + "product_code":"dcs", + "title":"Viewing Data Storage Statistics of a DCS Redis 3.0 Proxy Cluster Instance", + "uri":"dcs-ug-0312029.html", + "doc_type":"usermanual", + "p_code":"64", + "code":"70" + }, + { + "desc":"This section describes how to query the shards and replicas of a DCS Redis 4.0 or 5.0 instance and how to manually promote a replica to master.Currently, this function is", + "product_code":"dcs", + "title":"Managing Shards and Replicas", + "uri":"dcs-ug-210107001.html", + "doc_type":"usermanual", + "p_code":"64", + "code":"71" + }, + { + "desc":"By performing big key analysis and hot key analysis, you will have a picture of keys that occupy a large space and keys that are the most frequently accessed.Notes on big", + "product_code":"dcs", + "title":"Cache Analysis", + "uri":"dcs-ug-190808001.html", + "doc_type":"usermanual", + "p_code":"64", + "code":"72" + }, + { + "desc":"DCS helps you control access to your DCS instances in the following ways, depending on the deployment mode:To control access to Redis 3.0 instances, you can use security ", + "product_code":"dcs", + "title":"Managing IP Address Whitelist", + "uri":"dcs-ug-190812001.html", + "doc_type":"usermanual", + "p_code":"64", + "code":"73" + }, + { + "desc":"Redis logs queries that exceed a specified execution time. You can view the slow query log on the DCS console to identify performance issues.For details about the command", + "product_code":"dcs", + "title":"Viewing Redis Slow Logs", + "uri":"dcs-ug-190926001.html", + "doc_type":"usermanual", + "p_code":"64", + "code":"74" + }, + { + "desc":"You can create run log files on the DCS console to collect run logs of DCS Redis instances within a specified period. After the logs are collected, you can download the l", + "product_code":"dcs", + "title":"Viewing Redis Run Logs", + "uri":"dcs-ug-1009001.html", + "doc_type":"usermanual", + "p_code":"64", + "code":"75" + }, + { + "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "product_code":"dcs", + "title":"Backing Up and Restoring DCS Instances", + "uri":"dcs-ug-0312030.html", + "doc_type":"usermanual", + "p_code":"54", + "code":"76" + }, + { + "desc":"On the DCS console, you can back up and restore DCS instances.There is a small chance that inconsistent data could exist in a DCS instance owing to service system excepti", + "product_code":"dcs", + "title":"Overview", + "uri":"en-us_topic_0079835992.html", + "doc_type":"usermanual", + "p_code":"76", + "code":"77" + }, + { + "desc":"On the DCS console, you can configure an automatic backup policy. The system then backs up data in your instances according to the backup policy.If automatic backup is no", + "product_code":"dcs", + "title":"Configuring a Backup Policy", + "uri":"dcs-ug-0312031.html", + "doc_type":"usermanual", + "p_code":"76", + "code":"78" + }, + { + "desc":"You need to manually back up data in DCS instances in a timely manner. This section describes how to manually back up data in master/standby instances using the DCS conso", + "product_code":"dcs", + "title":"Manually Backing Up a DCS Instance", + "uri":"dcs-ug-0312032.html", + "doc_type":"usermanual", + "p_code":"76", + "code":"79" + }, + { + "desc":"On the DCS console, you can restore backup data to a chosen DCS instance.At least one master/standby or cluster DCS instance is in the Running state.A backup task has bee", + "product_code":"dcs", + "title":"Restoring a DCS Instance", + "uri":"dcs-ug-0312033.html", + "doc_type":"usermanual", + "p_code":"76", + "code":"80" + }, + { + "desc":"Due to the limitations of automatic and manual backups (automatically backed up data can be retained for a maximum of 7 days, and manually backed up data takes space in O", + "product_code":"dcs", + "title":"Downloading a Backup File", + "uri":"dcs-ug-0312034.html", + "doc_type":"usermanual", + "p_code":"76", + "code":"81" + }, + { + "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "product_code":"dcs", + "title":"Migrating Data with DCS", + "uri":"dcs-ug-0312035.html", + "doc_type":"usermanual", + "p_code":"54", + "code":"82" + }, + { + "desc":"DCS for Redis provides the following migration modes:Backup file import: The data source can be an OBS bucket or a Redis instance.Importing data from an OBS bucket: Downl", + "product_code":"dcs", + "title":"Introduction to Migration with DCS", + "uri":"dcs-ug-0312036.html", + "doc_type":"usermanual", + "p_code":"82", + "code":"83" + }, + { + "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "product_code":"dcs", + "title":"Importing Backup Files", + "uri":"dcs-ug-210922001.html", + "doc_type":"usermanual", + "p_code":"82", + "code":"84" + }, + { + "desc":"Use the DCS console to migrate Redis data from Redis of other vendors or self-hosted Redis to DCS for Redis.Simply download the source Redis data and then upload the data", + "product_code":"dcs", + "title":"Importing Backup Files from an OBS Bucket", + "uri":"dcs-ug-0312037.html", + "doc_type":"usermanual", + "p_code":"84", + "code":"85" + }, + { + "desc":"Use the DCS console to migrate Redis data from self-hosted Redis to DCS for Redis.Simply back up your Redis data, create a migration task on the DCS console, and then imp", + "product_code":"dcs", + "title":"Importing Backup Files from Redis", + "uri":"dcs-ug-210226001.html", + "doc_type":"usermanual", + "p_code":"84", + "code":"86" + }, + { + "desc":"If the source and target instances are interconnected and the SYNC and PSYNC commands are supported in the source instance, data can be migrated online in full or increme", + "product_code":"dcs", + "title":"Migrating Data Online", + "uri":"dcs-ug-0312038.html", + "doc_type":"usermanual", + "p_code":"82", + "code":"87" + }, + { + "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "product_code":"dcs", + "title":"Managing Passwords", + "uri":"dcs-ug-0312039.html", + "doc_type":"usermanual", + "p_code":"54", + "code":"88" + }, + { + "desc":"Passwords can be configured to control access to your DCS instances, ensuring the security of your data.After 5 consecutive incorrect password attempts, the account for a", + "product_code":"dcs", + "title":"DCS Instance Passwords", + "uri":"cache-instance-password.html", + "doc_type":"usermanual", + "p_code":"88", + "code":"89" + }, + { + "desc":"On the DCS console, you can change the password required for accessing your DCS instance.You cannot change the password of a DCS instance in password-free mode.The DCS in", + "product_code":"dcs", + "title":"Changing Instance Passwords", + "uri":"dcs-ug-0312040.html", + "doc_type":"usermanual", + "p_code":"88", + "code":"90" + }, + { + "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "product_code":"dcs", + "title":"Monitoring", + "uri":"dcs-ug-0326016.html", + "doc_type":"usermanual", + "p_code":"", + "code":"91" + }, + { + "desc":"This section describes DCS metrics reported to Cloud Eye as well as their namespaces and dimensions. You can use the Cloud Eye console or call APIs to query the DCS metri", + "product_code":"dcs", + "title":"DCS Metrics", + "uri":"dcs-ug-0326019.html", + "doc_type":"usermanual", + "p_code":"91", + "code":"92" + }, + { + "desc":"You can view DCS instance metrics on the Performance Monitoring page.You can also click View Metric in the Operation column on the Cache Manager page. You will be redirec", + "product_code":"dcs", + "title":"Viewing DCS Monitoring Metrics", + "uri":"dcs-ug-0312045.html", + "doc_type":"usermanual", + "p_code":"91", + "code":"93" + }, + { + "desc":"This section describes the alarm rules of some metrics and how to configure the rules. In actual scenarios, configure alarm rules for metrics by referring to the followin", + "product_code":"dcs", + "title":"Configuring Alarm Rules for Critical Metrics", + "uri":"dcs-ug-190905001.html", + "doc_type":"usermanual", + "p_code":"91", + "code":"94" + }, + { + "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "product_code":"dcs", + "title":"Auditing", + "uri":"dcs-ug-0326017.html", + "doc_type":"usermanual", + "p_code":"", + "code":"95" + }, + { + "desc":"With CTS, you can query, audit, and review operations performed on cloud resources. Traces include the operation requests sent using the management console or open APIs a", + "product_code":"dcs", + "title":"Operations That Can Be Recorded by CTS", + "uri":"dcs-ug-0326018.html", + "doc_type":"usermanual", + "p_code":"95", + "code":"96" + }, + { + "desc":"After CTS is enabled, the tracker starts recording operations on cloud resources. Operation records for the last seven days can be viewed on the CTS console. This section", + "product_code":"dcs", + "title":"Viewing Traces on the CTS Console", + "uri":"dcs-ug-0312047.html", + "doc_type":"usermanual", + "p_code":"95", + "code":"97" + }, + { + "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "product_code":"dcs", + "title":"FAQs", + "uri":"dcs-faq-0326019.html", + "doc_type":"usermanual", + "p_code":"", + "code":"98" + }, + { + "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "product_code":"dcs", + "title":"Client and Network Connection", + "uri":"dcs-faq-0326020.html", + "doc_type":"usermanual", + "p_code":"98", + "code":"99" + }, + { + "desc":"DCS Redis 3.0/4.0/5.0 instances are deployed in different modes. Therefore, the access control method varies.To control access to DCS Redis 3.0 instances, you can use sec", + "product_code":"dcs", + "title":"Security Group Configurations", + "uri":"en-us_topic_0090662012.html", + "doc_type":"usermanual", + "p_code":"99", + "code":"100" + }, + { + "desc":"No. DCS instances cannot be access at their EIPs over public networks. To ensure security, the ECS that serves as a client and the DCS instance that the client will acces", + "product_code":"dcs", + "title":"Does DCS Support Public Access?", + "uri":"dcs-faq-0730001.html", + "doc_type":"usermanual", + "p_code":"99", + "code":"101" + }, + { + "desc":"Cross-VPC means the client and the instance are not in the same VPC.Generally, VPCs are isolated from each other and ECSs cannot access DCS instances that belong to a dif", + "product_code":"dcs", + "title":"Does DCS Support Cross-VPC Access?", + "uri":"en-us_topic_0100698850.html", + "doc_type":"usermanual", + "p_code":"99", + "code":"102" + }, + { + "desc":"Analysis: If persistent connections (\"pconnect\" in Redis terminology) or connection pooling is used and connections are closed after being used for connecting to DCS inst", + "product_code":"dcs", + "title":"What Should I Do If Access to DCS Fails After Server Disconnects?", + "uri":"dcs-faq-0730004.html", + "doc_type":"usermanual", + "p_code":"99", + "code":"103" + }, + { + "desc":"Occasional timeout errors are normal because of network connectivity and client timeout configurations.You are advised to include reconnection operations into your servic", + "product_code":"dcs", + "title":"Why Do Requests Sometimes Time Out in Clients?", + "uri":"dcs-faq-0730005.html", + "doc_type":"usermanual", + "p_code":"99", + "code":"104" + }, + { + "desc":"The error message that will possibly be displayed when you use the Jedis connection pool is as follows:If this error message is displayed, check whether your instance is ", + "product_code":"dcs", + "title":"What Should I Do If an Error Is Returned When I Use the Jedis Connection Pool?", + "uri":"dcs-faq-0730006.html", + "doc_type":"usermanual", + "p_code":"99", + "code":"105" + }, + { + "desc":"The possible causes are as follows:The command is spelled incorrectly.As shown in the following figure, the error message is returned because the correct command for dele", + "product_code":"dcs", + "title":"Why Is \"ERR unknown command\" Displayed When I Access a DCS Redis Instance Through a Redis Client?", + "uri":"dcs-faq-0730007.html", + "doc_type":"usermanual", + "p_code":"99", + "code":"106" + }, + { + "desc":"You can access a DCS Redis instance through the Redis Desktop Manager within a VPC.Enter the address, port number (6379), and authentication password of the DCS instance ", + "product_code":"dcs", + "title":"How Do I Access a DCS Redis Instance Through Redis Desktop Manager?", + "uri":"dcs-faq-0730008.html", + "doc_type":"usermanual", + "p_code":"99", + "code":"107" + }, + { + "desc":"By using DCS Redis instances, Spring Session can implement session sharing. When interconnecting with Spring Cloud, the following error information is displayed:For secur", + "product_code":"dcs", + "title":"What If \"ERR Unsupported CONFIG subcommand\" is Displayed in SpringCloud?", + "uri":"dcs-faq-0730009.html", + "doc_type":"usermanual", + "p_code":"99", + "code":"108" + }, + { + "desc":"Preliminary checks:Check the connection address.Obtain the connection address from the instance basic information page on the DCS console.Obtain the connection address fr", + "product_code":"dcs", + "title":"How Do I Troubleshoot Redis Connection Failures?", + "uri":"dcs-faq-0730010.html", + "doc_type":"usermanual", + "p_code":"99", + "code":"109" + }, + { + "desc":"Pay attention to the following issues when using Redis for pub/sub:Your client must process messages in a timely manner.Your client subscribes to a channel. If it does no", + "product_code":"dcs", + "title":"What Should Be Noted When Using Redis for Pub/Sub?", + "uri":"dcs-faq-0730011.html", + "doc_type":"usermanual", + "p_code":"99", + "code":"110" + }, + { + "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "product_code":"dcs", + "title":"Redis Usage", + "uri":"dcs-faq-0326021.html", + "doc_type":"usermanual", + "p_code":"98", + "code":"111" + }, + { + "desc":"Possible cause 1:The service QPS is so high that the CPU usage spikes to 100%.The service QPS is so high that the CPU usage spikes to 100%.Possible cause 2:You have run c", + "product_code":"dcs", + "title":"Why Is CPU Usage of a DCS Redis Instance 100%?", + "uri":"dcs-faq-0730012.html", + "doc_type":"usermanual", + "p_code":"111", + "code":"112" + }, + { + "desc":"No. Once an instance is created, its VPC and subnet cannot be changed. If you want to use a different set of VPC and subnet, create a same instance and specify a desired ", + "product_code":"dcs", + "title":"Can I Change the VPC and Subnet for a DCS Redis Instance?", + "uri":"dcs-faq-0730013.html", + "doc_type":"usermanual", + "p_code":"111", + "code":"113" + }, + { + "desc":"Currently, DCS Redis 4.0 and Redis 5.0 instances use VPC endpoints and do not support security groups. You can configure whitelists instead. For details, see Managing IP ", + "product_code":"dcs", + "title":"Why Aren't Security Groups Configured for DCS Redis 4.0 and 5.0 Instances?", + "uri":"dcs-faq-0730014.html", + "doc_type":"usermanual", + "p_code":"111", + "code":"114" + }, + { + "desc":"The maximum allowed size of a key is 512 MB.To reduce memory usage and facilitate key query, ensure that each key does not exceed 1 KB.To reduce memory usage and facilita", + "product_code":"dcs", + "title":"Do DCS Redis Instances Limit the Size of a Key or Value?", + "uri":"dcs-faq-0730015.html", + "doc_type":"usermanual", + "p_code":"111", + "code":"115" + }, + { + "desc":"Cluster DCS Redis 3.0 instances (Proxy Cluster type) are used in the same way that you use single-node or master/standby instances. You do not need to know the backend no", + "product_code":"dcs", + "title":"Can I Obtain the Addresses of the Nodes in a Cluster DCS Redis Instance?", + "uri":"dcs-faq-0730017.html", + "doc_type":"usermanual", + "p_code":"111", + "code":"116" + }, + { + "desc":"DCS Redis 3.0 instances are deployed on VMs and some memory is reserved for system overheads.", + "product_code":"dcs", + "title":"Why Is Available Memory of a DCS Redis 3.0 Instance Smaller Than Instance Cache Size?", + "uri":"dcs-faq-0730018.html", + "doc_type":"usermanual", + "p_code":"111", + "code":"117" + }, + { + "desc":"Both single-node and master/standby DCS Redis instances support multiple databases. By default, single-node and master/standby DCS instances can read and write data in 25", + "product_code":"dcs", + "title":"Does DCS for Redis Support Multiple Databases?", + "uri":"dcs-faq-0730019.html", + "doc_type":"usermanual", + "p_code":"111", + "code":"118" + }, + { + "desc":"Yes. DCS for Redis 4.0 and 5.0 support Redis Clusters. DCS for Redis 3.0 supports Proxy Clusters.", + "product_code":"dcs", + "title":"Does DCS for Redis Support Redis Clusters?", + "uri":"dcs-faq-0730020.html", + "doc_type":"usermanual", + "p_code":"111", + "code":"119" + }, + { + "desc":"Yes. Redis Sentinel is supported by DCS for Redis 4.0 and 5.0 and is enabled by default. Sentinel constantly checks if master and replica nodes are running properly. If t", + "product_code":"dcs", + "title":"Does DCS for Redis Support Sentinel?", + "uri":"dcs-faq-0730021.html", + "doc_type":"usermanual", + "p_code":"111", + "code":"120" + }, + { + "desc":"Data is evicted from cache based on a user-defined space limit in order to make space for new data. In the current versions of DCS, you can select an eviction policy.noev", + "product_code":"dcs", + "title":"What Is the Default Data Eviction Policy?", + "uri":"dcs-faq-0730022.html", + "doc_type":"usermanual", + "p_code":"111", + "code":"121" + }, + { + "desc":"Start the Redis exporter using the CLI. Based on the output, check for errors and troubleshoot accordingly.", + "product_code":"dcs", + "title":"What Should I Do If an Error Occurs in Redis Exporter?", + "uri":"dcs-faq-0730023.html", + "doc_type":"usermanual", + "p_code":"111", + "code":"122" + }, + { + "desc":"This is normal due to Redis functions (such as master/replica replication and lazyfree). When the memory becomes full, scale up the instance or remove unnecessary data.", + "product_code":"dcs", + "title":"Why Is Memory Usage More Than 100%?", + "uri":"dcs-faq-0730024.html", + "doc_type":"usermanual", + "p_code":"111", + "code":"123" + }, + { + "desc":"Redisson implements lock acquisition and unlocking in the following process:Redisson lock acquisition and unlocking are implemented by running Lua scripts.During lock acq", + "product_code":"dcs", + "title":"Why Is Redisson Distributed Lock Not Supported by DCS Proxy Cluster Redis 3.0 Instances?", + "uri":"dcs-faq-0730025.html", + "doc_type":"usermanual", + "p_code":"111", + "code":"124" + }, + { + "desc":"You cannot customize or change the port for accessing a DCS Redis 3.0 instance. You can customize and change the port for accessing a DCS Redis 4.0 or 5.0 instance.Redis ", + "product_code":"dcs", + "title":"Can I Customize or Change the Port for Accessing a DCS Instance?", + "uri":"dcs-faq-0730026.html", + "doc_type":"usermanual", + "p_code":"111", + "code":"125" + }, + { + "desc":"After a DCS instance is created, its intra-VPC connection addresses cannot be modified.For details about accessing DCS instances through clients, see Accessing a DCS Redi", + "product_code":"dcs", + "title":"Can I Modify the Connection Addresses for Accessing a DCS Instance?", + "uri":"dcs-faq-0730027.html", + "doc_type":"usermanual", + "p_code":"111", + "code":"126" + }, + { + "desc":"Master/Standby and cluster DCS Redis instances can be deployed across availability zones (AZs).If instances nodes in an AZ are faulty, nodes in other AZs will not be affe", + "product_code":"dcs", + "title":"Does DCS Support Cross-AZ Deployment?", + "uri":"dcs-faq-0730029.html", + "doc_type":"usermanual", + "p_code":"111", + "code":"127" + }, + { + "desc":"Possible cause: When a cluster instance is started, status and data are synchronized between the nodes of the instance. If a large amount of data is continuously written ", + "product_code":"dcs", + "title":"Why Does It Take a Long Time to Start a Cluster DCS Instance?", + "uri":"dcs-faq-0730030.html", + "doc_type":"usermanual", + "p_code":"111", + "code":"128" + }, + { + "desc":"No. If you wish to query Redis configurations and usage information, use redis-cli. If you wish to monitor DCS Redis instance metrics, go to the Cloud Eye console. For de", + "product_code":"dcs", + "title":"Does DCS for Redis Provide Backend Management Software?", + "uri":"dcs-faq-0730032.html", + "doc_type":"usermanual", + "p_code":"111", + "code":"129" + }, + { + "desc":"Possible cause: The output buffer may have occupied an excessive amount of memory.Solution: After connecting to the instance using redis-cli, run the redis-cli --bigkeys ", + "product_code":"dcs", + "title":"Why Is Memory of a DCS Redis Instance Used Up by Just a Few Keys?", + "uri":"dcs-faq-0730033.html", + "doc_type":"usermanual", + "p_code":"111", + "code":"130" + }, + { + "desc":"If a DCS instance is automatically deleted or manually deleted through the Redis client, its data cannot be retrieved. If you have backed up the instance, you can restore", + "product_code":"dcs", + "title":"Can I Recover Data from Deleted DCS Instances?", + "uri":"dcs-faq-0730034.html", + "doc_type":"usermanual", + "p_code":"111", + "code":"131" + }, + { + "desc":"Symptom: \"Error in execution; nested exception is io.lettuce.core.RedisCommandExecutionException: OOM command not allowed when used memory > 'maxmemory'\" is returned duri", + "product_code":"dcs", + "title":"Why Is \"Error in execution\" Returned When I Access Redis?", + "uri":"dcs-faq-210223001.html", + "doc_type":"usermanual", + "p_code":"111", + "code":"132" + }, + { + "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "product_code":"dcs", + "title":"Redis Commands", + "uri":"dcs-faq-190921003.html", + "doc_type":"usermanual", + "p_code":"98", + "code":"133" + }, + { + "desc":"Exercise caution when clearing data.Redis 3.0Data of a DCS Redis 3.0 instance cannot be cleared on the console, and can only be cleared by the FLUSHDB or FLUSHALL command", + "product_code":"dcs", + "title":"How Do I Clear Redis Data?", + "uri":"dcs-faq-0730036.html", + "doc_type":"usermanual", + "p_code":"133", + "code":"134" + }, + { + "desc":"Yes. For more information about Redis command compatibility, see Command Compatibility.", + "product_code":"dcs", + "title":"Does DCS for Redis Support the INCR and EXPIRE Commands?", + "uri":"dcs-faq-0730039.html", + "doc_type":"usermanual", + "p_code":"133", + "code":"135" + }, + { + "desc":"Possible causes include the following:The command is incorrect.The command is disabled in DCS.For security purposes, some Redis commands are disabled in DCS. For details ", + "product_code":"dcs", + "title":"Why Do I Fail to Execute Some Redis Commands?", + "uri":"dcs-faq-0730040.html", + "doc_type":"usermanual", + "p_code":"133", + "code":"136" + }, + { + "desc":"Run the command in redis-cli to check whether the command takes effect.The following describes two scenarios:Scenario 1: Set and query the value of a key to check whether", + "product_code":"dcs", + "title":"Why Does a Redis Command Fail to Take Effect?", + "uri":"dcs-faq-0730041.html", + "doc_type":"usermanual", + "p_code":"133", + "code":"137" + }, + { + "desc":"The time limit for executing a Redis command is 1 minute. This limit cannot be configured. After the execution of a command times out, your client will be automatically d", + "product_code":"dcs", + "title":"Is There a Time Limit on Executing Redis Commands? What Will Happen If a Command Times Out?", + "uri":"dcs-faq-0730042.html", + "doc_type":"usermanual", + "p_code":"133", + "code":"138" + }, + { + "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "product_code":"dcs", + "title":"Instance Scaling and Upgrade", + "uri":"dcs-faq-0326022.html", + "doc_type":"usermanual", + "p_code":"98", + "code":"139" + }, + { + "desc":"No. Different Redis versions use different underlying architectures. The Redis version used by a DCS instance cannot be changed once the instance is created. However, you", + "product_code":"dcs", + "title":"Can DCS Redis Instances Be Upgraded, for Example, from Redis 3.0 to Redis 4.0 or 5.0?", + "uri":"dcs-faq-0730043.html", + "doc_type":"usermanual", + "p_code":"139", + "code":"140" + }, + { + "desc":"O&M personnel will contact you before performing maintenance during the maintenance time window, informing you of the operations and their impacts. You do not need to wor", + "product_code":"dcs", + "title":"Are Services Interrupted If Maintenance is Performed During the Maintenance Time Window?", + "uri":"dcs-faq-0730044.html", + "doc_type":"usermanual", + "p_code":"139", + "code":"141" + }, + { + "desc":"No. Specification modifications can take place while the instance is running and do not affect any other resources.", + "product_code":"dcs", + "title":"Are Instance Resources Affected During Specification Modification?", + "uri":"dcs-faq-0730045.html", + "doc_type":"usermanual", + "p_code":"139", + "code":"142" + }, + { + "desc":"You are advised to change the instance specifications during off-peak hours because specification modification has the following impacts:Impact of instance type changes:F", + "product_code":"dcs", + "title":"Are Services Interrupted During Specification Modification?", + "uri":"dcs-faq-0730047.html", + "doc_type":"usermanual", + "p_code":"139", + "code":"143" + }, + { + "desc":"Specifications of a DCS instance cannot be modified if another task of the instance is still running. For example, you cannot delete or scale up an instance while it is b", + "product_code":"dcs", + "title":"Why Can't I Modify Specifications for a DCS Redis Instance?", + "uri":"dcs-faq-0730048.html", + "doc_type":"usermanual", + "p_code":"139", + "code":"144" + }, + { + "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "product_code":"dcs", + "title":"Monitoring and Alarm", + "uri":"dcs-faq-0326023.html", + "doc_type":"usermanual", + "p_code":"98", + "code":"145" + }, + { + "desc":"No. To ensure high-performance reads and writes, Redis does not audit commands. Commands are not printed.", + "product_code":"dcs", + "title":"Does Redis Support Command Audits?", + "uri":"dcs-faq-0730049.html", + "doc_type":"usermanual", + "p_code":"145", + "code":"146" + }, + { + "desc":"If you have any doubt on the monitoring data of a DCS Redis instance, you can access the instance through redis-cli and run the INFO ALL command to view the metrics. For ", + "product_code":"dcs", + "title":"What Should I Do If the Monitoring Data of a DCS Redis Instance Is Abnormal?", + "uri":"dcs-faq-0730050.html", + "doc_type":"usermanual", + "p_code":"145", + "code":"147" + }, + { + "desc":"For single-node and master/standby DCS instances, the used instance memory is measured by the Redis-server process. For cluster DCS instances, the used cluster memory is ", + "product_code":"dcs", + "title":"Why Is Used Memory Greater Than Available Memory?", + "uri":"dcs-faq-0730052.html", + "doc_type":"usermanual", + "p_code":"145", + "code":"148" + }, + { + "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "product_code":"dcs", + "title":"Data Backup, Export, and Migration", + "uri":"dcs-faq-0326024.html", + "doc_type":"usermanual", + "p_code":"98", + "code":"149" + }, + { + "desc":"For master/standby or cluster instances:Perform the following operations to export the data:On the Backups & Restorations page, view the backup records.If there are no ba", + "product_code":"dcs", + "title":"How Do I Export DCS Redis Instance Data?", + "uri":"dcs-faq-0730053.html", + "doc_type":"usermanual", + "p_code":"149", + "code":"150" + }, + { + "desc":"Redis 3.0No. On the console, backup data of a DCS Redis 3.0 instance can be exported only to AOF files. To export data to RDB files, run the following command in redis-cl", + "product_code":"dcs", + "title":"Can I Export Backup Data of DCS Redis Instances to RDB Files Using the Console?", + "uri":"dcs-faq-0730054.html", + "doc_type":"usermanual", + "p_code":"149", + "code":"151" + }, + { + "desc":"DCS Redis instances:Single-node: Not supportedMaster/Standby and cluster: SupportedSingle-node: Not supportedMaster/Standby and cluster: Supported", + "product_code":"dcs", + "title":"Does DCS Support Data Persistence?", + "uri":"dcs-faq-0730057.html", + "doc_type":"usermanual", + "p_code":"149", + "code":"152" + }, + { + "desc":"Rump is an open-source tool designed for migrating Redis data online. It supports migration between DBs of the same instance and between DBs of different instances.Rump u", + "product_code":"dcs", + "title":"Online Migration with Rump", + "uri":"dcs-migration-090626001.html", + "doc_type":"usermanual", + "p_code":"149", + "code":"153" + }, + { + "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "product_code":"dcs", + "title":"Master/Standby Switchover", + "uri":"dcs-faq-191204001.html", + "doc_type":"usermanual", + "p_code":"98", + "code":"154" + }, + { + "desc":"A master/standby switchover may occur in the following scenarios:A master/standby switchover operation is initiated on the DCS Console.If the master node of a master/stan", + "product_code":"dcs", + "title":"When Does a Master/Standby Switchover Occur?", + "uri":"dcs-faq-0730058.html", + "doc_type":"usermanual", + "p_code":"154", + "code":"155" + }, + { + "desc":"If a fault occurs in a master/standby or cluster DCS instance, a failover is triggered automatically. Services may be interrupted for less than half a minute during excep", + "product_code":"dcs", + "title":"How Does Master/Standby Switchover Affect Services?", + "uri":"dcs-faq-0730059.html", + "doc_type":"usermanual", + "p_code":"154", + "code":"156" + }, + { + "desc":"No. If the master fails, the standby node will be promoted to master and takes the original IP address.", + "product_code":"dcs", + "title":"Does the Client Need to Switch the Connection Address After a Master/Standby Switchover?", + "uri":"dcs-faq-0730060.html", + "doc_type":"usermanual", + "p_code":"154", + "code":"157" + }, + { + "desc":"Redis master/standby instances are also called master/slave instances. Generally, updates to the master cache node are automatically and asynchronously replicated to the ", + "product_code":"dcs", + "title":"How Does Redis Master/Standby Replication Work?", + "uri":"dcs-faq-0730061.html", + "doc_type":"usermanual", + "p_code":"154", + "code":"158" + }, + { + "desc":"For details about the terms involved in this document, see Glossary.", + "product_code":"dcs", + "title":"Glossary", + "uri":"en-us_topic_0072429345.html", + "doc_type":"usermanual", + "p_code":"", + "code":"159" + }, + { + "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "product_code":"dcs", + "title":"Change History", + "uri":"dcs-ug-0326026.html", + "doc_type":"usermanual", + "p_code":"", + "code":"160" + } +] \ No newline at end of file diff --git a/docs/dcs/umn/CacheCluster.html b/docs/dcs/umn/CacheCluster.html new file mode 100644 index 000000000..da772ee1c --- /dev/null +++ b/docs/dcs/umn/CacheCluster.html @@ -0,0 +1,72 @@ + + +
DCS provides two types of cluster Redis instances: Proxy Cluster and Redis Cluster. Proxy Cluster uses Linux Virtual Server (LVS) and proxies. Redis Cluster is the native distributed implementation of Redis. Proxy Cluster instances are compatible with Redis 3.0, while Redis Cluster instances are compatible with Redis 4.0 and 5.0.
+This section describes Proxy Cluster DCS Redis 3.0 instances.
+
Proxy Cluster DCS Redis 3.0 instances are compatible with codis. The specifications range from 64 GB to 1024 GB, meeting requirements for millions of concurrent connections and massive data cache. Distributed data storage and access is implemented by DCS, without requiring development or maintenance.
+Each Proxy Cluster instance consists of load balancers, proxies, cluster managers, and shards.
+ +Total Memory + |
+Proxies + |
+Shards + |
+
|---|---|---|
64 GB + |
+3 + |
+8 + |
+
128 GB + |
+6 + |
+16 + |
+
256 GB + |
+8 + |
+32 + |
+
512 GB + |
+16 + |
+64 + |
+

Architecture description:
+All server nodes of the instance run in the same VPC.
+
For intra-VPC access, the client and the instance must be in the same VPC with specified security group rule configurations.
+For details, see Security Group Configurations.
+The client used to access the instance.
+DCS Redis instances can be accessed through open-source clients. For details about accessing DCS instances, see Accessing an Instance.
+The load balancers, which are deployed in master/standby HA mode. The connection addresses (IP address:Port) of the cluster DCS Redis instance are the addresses of the load balancers.
+The proxy server used to achieve high availability and process high-concurrency client requests.
+You can connect to a Proxy Cluster instance at the IP addresses of its proxies.
+A shard of the cluster.
+Each shard consists of a pair of master/standby nodes. If the master node becomes faulty, the standby node automatically takes over cluster services.
+If both the master and standby nodes of a shard are faulty, the cluster can still provide services but the data on the faulty shard is inaccessible.
+The cluster configuration managers, which store configurations and partitioning policies of the cluster. You cannot modify the information about the configuration managers.
+This section describes master/standby DCS Redis instances. Three Redis versions are available for master/standby DCS Redis instances: Redis 3.0, Redis 4.0, and Redis 5.0.
+
You cannot upgrade the Redis version for an instance. For example, a master/standby DCS Redis 3.0 instance cannot be upgraded to a master/standby DCS Redis 4.0 or 5.0 instance. If your service requires the features of higher Redis versions, create a DCS Redis instance of a higher version and then migrate data from the old instance to the new one.
+Master/Standby DCS instances have higher availability and reliability than single-node DCS instances.
+Master/Standby DCS instances have the following features:
+By default, data persistence is enabled by both the master and the standby node of a master/standby instance.
+The standby node of a DCS Redis instance is invisible to you. Only the master node provides data read/write operations.
+Data in the master and standby nodes is kept consistent through incremental synchronization.
+
After recovering from a network exception or node fault, master/standby instances perform a full synchronization to ensure data consistency.
+If the master node becomes faulty, the standby node takes over within 30 seconds, without requiring any service interruptions or manual operations.
+Each master/standby instance can be deployed across AZs with physically isolated power supplies and networks. Applications can also be deployed across AZs to achieve high availability for both data and applications.
+Figure 1 shows the architecture of master/standby DCS Redis instances.
+
To access a DCS Redis 3.0 instance, you must use port 6379. To access a DCS Redis 4.0 or 5.0 instance, you can customize the port. If no port is specified, the default port 6379 will be used. In the following architecture, port 6379 is used. If you have customized a port, replace 6379 with the actual port.
+Architecture description:
+All server nodes of the instance run in the same VPC.
+
For intra-VPC access, the client and the instance must be in the same VPC with specified security group rule configurations.
+For details, see Security Group Configurations.
+The Redis client of the instance, which is the application running on the ECS.
+DCS Redis instances are compatible with the Redis protocol, and can be accessed through open-source clients. For details about accessing DCS instances, see Accessing an Instance.
+Indicates a master/standby DCS instance which has a master node and a standby node. By default, data persistence is enabled and data is synchronized between the two nodes.
+DCS monitors the availability of the instance in real time. If the master node becomes faulty, the standby node becomes the master node and resumes service provisioning.
+DCS Redis instances are accessed through port 6379 by default.
+This section describes Redis Cluster DCS Redis 4.0 and 5.0 instances.
+The Redis Cluster instance type provided by DCS is compatible with the native Redis Cluster, which uses smart clients and a distributed architecture to perform sharding.
+Table 1 lists the shard specification for different instance specifications.
+Specification per shard=Instance specification/Number of shards. For example, if a 48 GB instance has 6 shards, the specification of each shard is 48 GB/6 = 8 GB.
+ +Total Memory + |
+Shards + |
+
|---|---|
4 GB/8 GB/16 GB/24 GB/32 GB + |
+3 + |
+
48 GB + |
+6 + |
+
64 GB + |
+8 + |
+
96 GB + |
+12 + |
+
128 GB + |
+16 + |
+
192 GB + |
+24 + |
+
256 GB + |
+32 + |
+
384 GB + |
+48 + |
+
512 GB + |
+64 + |
+
768 GB + |
+96 + |
+
1024 GB + |
+128 + |
+
Any node in a Redis Cluster can receive requests. Received requests are then redirected to the right node for processing. Each node consists of a subset of one master and one (by default) or multiple replicas. The master or replica roles are determined through an election algorithm.
+
There are 16,384 hash slots in each Redis Cluster. The mapping between hash slots and Redis nodes is stored in Redis Servers. To compute what is the hash slot of a given key, simply take the CRC16 of the key modulo 16384. Example command output
+
Three Redis versions are available for single-node DCS Redis instances: Redis 3.0, Redis 4.0, and Redis 5.0.
+Single-node instances do not support data synchronization or data persistence, reducing system overhead and supporting higher concurrency. QPS of single-node DCS Redis instances reaches up to 100,000.
+With an HA monitoring mechanism, if a single-node DCS instance becomes faulty, a new process is started within 30 seconds to resume service provisioning.
+Single-node DCS instances can be used out of the box because they do not involve data loading. If your service requires high QPS, you can warm up the data beforehand to avoid strong concurrency impact on the backend database.
+Single-node instances are 40% cheaper than master/standby DCS instances, suitable for setting up development or testing environments.
+In summary, single-node DCS instances support highly concurrent read/write operations, but do not support data persistence. Data will be deleted after instances are restarted. They are suitable for scenarios which do not require data persistence, such as database front-end caching, to accelerate access and ease the concurrency load off the backend. If the desired data does not exist in the cache, requests will go to the database. When restarting the service or the DCS instance, you can pre-generate cache data from the disk database to relieve pressure on the backend during startup.
+Figure 1 shows the architecture of single-node DCS Redis instances.
+
To access a DCS Redis 3.0 instance, you must use port 6379. To access a DCS Redis 4.0 or 5.0 instance, you can customize the port. If no port is specified, the default port 6379 will be used. In the following architecture, port 6379 is used. If you have customized a port, replace 6379 with the actual port.
+Architecture description:
+All server nodes of the instance run in the same VPC.
+
For intra-VPC access, the client and the instance must be in the same VPC with specified security group rule configurations.
+For details, see Security Group Configurations.
+The client of the instance, which is the application running on an Elastic Cloud Server (ECS).
+DCS Redis instances are compatible with the Redis protocol, and can be accessed through open-source clients. For details about accessing DCS instances, see Accessing an Instance.
+A single-node DCS instance, which has only one node and one Redis process.
+DCS monitors the availability of the instance in real time. If the Redis process becomes faulty, DCS starts a new process to resume service provisioning.
+Whether you use DCS as the frontend cache or backend data store, DCS is always ready to ensure data reliability and service availability. The following figure shows the evolution of DCS DR architectures.
+
To meet the reliability requirements of your data and services, you can choose to deploy your DCS instance within a single AZ or across AZs.
+Single-AZ deployment means deploying an instance within a physical equipment room. DCS provides process/service HA, data persistence, and hot standby DR policies for different types of DCS instances.
+Single-node DCS instance: When DCS detects a process fault, a new process is started to ensure service HA.
+
Master/Standby DCS instance: Data is persisted to disk in the master node and incrementally synchronized and persisted to the standby node, achieving hot standby and data persistence.
+
Cluster DCS instance: Similar to a master/standby instance, data in each shard (instance process) of a cluster instance is synchronized between master and standby nodes and persisted on both nodes.
+
The master and standby nodes of a master/standby or cluster DCS instance can be deployed across AZs (in different equipment rooms). Power supplies and networks of different AZs are physically isolated. When a fault occurs in the AZ where the master node is deployed, the standby node connects to the client and takes over data read and write operations.
+
This mechanism applies in a similar way to a cluster DCS instance. Each shard (process) is deployed across AZs.
+When creating a master/standby or cluster DCS instance, select a standby AZ that is different from the primary AZ.
+Backup, configuration modification, and password change functions cannot be used during the fault.
+Before creating a DCS instance, identify your requirements and complete the following preparations:
+Different Redis versions have different features. For details, see Comparing Redis Versions.
+DCS provides single-node, master/standby, Proxy Cluster, and Redis Cluster types of instances. Each type has its own architecture. For details about the instance architectures, see DCS Instance Types.
+Each specification specifies the maximum available memory, number of connections, and bandwidth. For details, see DCS Instance Specifications.
+Choose a region closest to your application to reduce latency.
+A region consists of multiple availability zones (AZs) with physically isolated power supplies and networks. Master/standby and cluster DCS instances can be deployed across AZs.
+
Currently, backup policies can be configured only for master/standby and cluster DCS instances. For details about backup and restoration, see Overview.
+When creating a DCS Redis instance, you can select the cache engine version and the instance type.
+DCS supports Redis 3.0, 4.0, and 5.0. The following table describes the differences between these versions.
+ +Feature + |
+Redis 3.0 + |
+Redis 4.0 and Redis 5.0 + |
+
|---|---|---|
Instance deployment mode + |
+Based on VMs + |
+Containerized based on physical servers + |
+
Time required for creating an instance + |
+3–15 minutes, or 10–30 minutes for cluster instances. + |
+8 seconds + |
+
QPS + |
+100,000 QPS per node + |
+100,000 QPS per node + |
+
Instance type + |
+Single-node, master/standby, and Proxy Cluster + |
+Single-node, master/standby and Redis Cluster + |
+
Instance total memory + |
+Ranges from 2 GB, 4 GB, 8 GB, to 1024 GB. + |
+Regular specifications range from 2 GB, 4 GB, 8 GB, to 1024 GB. Small specifications, such as 128 MB, 256 MB, 512 MB, and 1 GB, are also available for single-node and master/standby instances. + |
+
Scale-up or scale-down + |
+Online scale-up and scale-down + |
+Online scale-up and scale-down + |
+
Backup and restoration + |
+Supported for master/standby and cluster instances + |
+Supported for master/standby and cluster instances + |
+
The underlying architectures vary by Redis version. Once a Redis version is chosen, it cannot be changed. For example, you cannot upgrade a DCS Redis 3.0 instance to Redis 4.0 or 5.0. If you require a higher Redis version, create a new instance that meets your requirements and then migrate data from the old instance to the new one.
+Select from single-node, master/standby, and cluster types. For details about their architectures and application scenarios, see DCS Instance Types.
+Passwords can be configured to control access to your DCS instances, ensuring the security of your data.
+
After 5 consecutive incorrect password attempts, the account for accessing the chosen DCS instance will be locked for 5 minutes. Passwords cannot be changed during the lockout period.
+The password must meet the following requirements:
+If the -a <password> option is used in redis-cli in Linux, the password is prone to leakage because it is logged and kept in the history. You are advised not to use -a <password> when running commands in redis-cli. After connecting to Redis, run the auth command to complete authentication as shown in the following example:
+$ redis-cli -h 192.168.0.148 -p 6379 +redis 192.168.0.148:6379>auth yourPassword +OK +redis 192.168.0.148:6379>+
If the script involves DCS instance access, use interactive password authentication. To enable automatic script execution, manage the script as another user and authorize execution using sudo.
+No. DCS instances cannot be access at their EIPs over public networks. To ensure security, the ECS that serves as a client and the DCS instance that the client will access must belong to the same VPC.
+In the application development and debugging phase, you can also use an SSH agent to access DCS instances in the local environment.
+Analysis: If persistent connections ("pconnect" in Redis terminology) or connection pooling is used and connections are closed after being used for connecting to DCS instances, errors will be returned at attempts to reuse the connections.
+Solution: When using pconnect or connection pooling, do not close the connection after the end of a request. If the connection is dropped, re-establish it.
+Occasional timeout errors are normal because of network connectivity and client timeout configurations.
+You are advised to include reconnection operations into your service code to avoid service failure if a single request fails.
+If timeout errors occur frequently, contact O&M personnel.
+The error message that will possibly be displayed when you use the Jedis connection pool is as follows:
+redis.clients.jedis.exceptions.JedisConnectionException: Could not get a resource from the pool+
If this error message is displayed, check whether your instance is running properly. If it is running properly, perform the following checks:
+Check whether the IP address configured on the Jedis client is the same as the subnet address configured for your DCS instance.
+Use the ping command and telnet on the client to test the network.
+For intra-VPC access to a DCS Redis 3.0 instance, ensure that the client and your DCS instance belong to the same VPC and security group, or the security group of your DCS instance allows access through port 6379. For details, see Security Group Configurations.
+Check whether the number of established network connections exceeds the upper limit configured for the Jedis connection pool. If the number of established connections approaches the configured upper limit, restart the DCS service and check whether the problem persists. If the number of established connections is far below the upper limit, continue with the following checks.
+In Unix or Linux, run the following command to query the number of established network connections:
+netstat -an | grep 6379 | grep ESTABLISHED | wc -l
+In Windows, run the following command to query the number of established network connections:
+netstat -an | find "6379" | find "ESTABLISHED" /C
+If the number of established connections approaches the upper limit, determine whether the problem is caused by service concurrency or incorrect usage of JedisPool.
+When using JedisPool, you must call jedisPool.returnResource() or jedis.close() (recommended) to release the resources after you call jedisPool.getResource().
+Run the ss -s command to check whether there are too many TIME_WAIT connections on the client.
+
If there are too many TIME_WAIT connections, modify the kernel parameters by running the /etc/sysctl.conf command as follows:
+##Uses cookies to prevent some SYN flood attacks when the SYN waiting queue overflows. +net.ipv4.tcp_syncookies = 1 +##Reuses TIME_WAIT sockets for new TCP connections. +net.ipv4.tcp_tw_reuse = 1 +##Enables quick reclamation of TIME_WAIT sockets in TCP connections. +net.ipv4.tcp_tw_recycle = 1 +##Modifies the default timeout time of the system. +net.ipv4.tcp_fin_timeout = 30+
After the modification, run the /sbin/sysctl -p command for the modification to take effect.
+Capture packets and send packet files along with the time and description of the exception to technical support for analysis.
+Run the following command to capture packets:
+tcpdump -i eth0 tcp and port 6379 -n -nn -s 74 -w dump.pcap
+In Windows, you can also install the Wireshark tool to capture packets.
+
Replace the NIC name to the actual one.
+The possible causes are as follows:
+As shown in the following figure, the error message is returned because the correct command for deleting a string should be del.
+
As shown in the following figure, the error message is returned because a stream command (available in Redis 5.0) is run in Redis 3.0.
+
DCS Redis instance interfaces are fully compatible with the open-source Redis in terms of data access. However, for ease of use and security purposes, some operations cannot be initiated through Redis clients. For details about disabled commands, see Command Compatibility.
+You can access a DCS Redis instance through the Redis Desktop Manager within a VPC.
+The system displays a success message if the connection is successful.
+
When accessing a cluster DCS instance, the Redis command is run properly, but an error message may display on the left because DCS clusters are based on Codis, which differs from the native Redis in terms of the INFO command output.
+By using DCS Redis instances, Spring Session can implement session sharing. When interconnecting with Spring Cloud, the following error information is displayed:
+
For security purposes, DCS does not support the CONFIG command initiated by a client. You need to perform the following steps:
+static-field="org.springframework.session.data.redis.config.ConfigureRedisAction.NO_OP"/>
+@Bean
+public static ConfigureRedisAction configureRedisAction() {
+return ConfigureRedisAction.NO_OP;
+}
+For more information, see the Spring Session Documentation.
+
Session sharing is supported only by single-node and master/standby DCS Redis instances, but not by cluster DCS Redis instances.
+Preliminary checks:
+Obtain the connection address from the instance basic information page on the DCS console.
+If the instance password is incorrect, the port can still be accessed but the authentication will fail.
+Port 6379 is the default port used in intra-VPC access to a DCS Redis instance.
+If the bandwidth reaches the maximum bandwidth for the corresponding instance specifications, Redis connections may time out.
+Intra-VPC access: If the Redis client and the Redis instance are bound with different security groups, allow inbound access over port 6379 for the security group of the instance.
+For details, see Security Group Configurations.
+If the instance has a whitelist, ensure that the client IP address is included in the whitelist. Otherwise, the connection will fail.
+For details, see Managing IP Address Whitelist.
+If the client IP address has changed, add the new IP address to the whitelist.
+Set notify-keyspace-events to Egx.
+Further checks:
+ +Pay attention to the following issues when using Redis for pub/sub:
+Your client subscribes to a channel. If it does not receive messages in a timely manner, DCS instance messages may be overstocked. If the size of accumulated messages reaches the threshold (32 MB by default) or remains at a certain level (8 MB by default) for a certain period of time (1 minute by default), your client will be automatically disconnected to prevent server memory exhaustion.
+In the event of a disconnection, you need to run the subscribe or psubscribe command on your client to subscribe to a channel again. Otherwise, your client cannot receive messages.
+The Redis pub/sub is not a reliable messaging system. Messages that are not retrieved will be discarded when your client is disconnected or a master/standby switchover occurs.
+No. Once an instance is created, its VPC and subnet cannot be changed. If you want to use a different set of VPC and subnet, create a same instance and specify a desired set of VPC and subnet. After the new instance is created, you can migrate data from the old instance to the new instance by following the data migration instructions.
+Currently, DCS Redis 4.0 and Redis 5.0 instances use VPC endpoints and do not support security groups. You can configure whitelists instead. For details, see Managing IP Address Whitelist.
+To allow access only from specific IP addresses to a DCS Redis 4.0 or 5.0 instance, add the IP addresses to the instance whitelist.
+If no whitelists are added to the instance whitelist or the whitelist function is disabled, all IP addresses that can communicate with the VPC can access the instance.
+To reduce memory usage and facilitate key query, ensure that each key does not exceed 1 KB.
+In essence, a Set is a collection of Strings; a List is a list of Strings; a Hash contains mappings between string fields and string values.
+Prevent the client from constantly writing large values in Redis. Otherwise, network transmission efficiency will be lowered and the Redis server would take a longer time to process commands, resulting in higher latency.
+Cluster DCS Redis 3.0 instances (Proxy Cluster type) are used in the same way that you use single-node or master/standby instances. You do not need to know the backend node addresses.
+For a cluster DCS Redis 4.0 or 5.0 instance (Redis Cluster type), run the CLUSTER NODES command to obtain node addresses:
+redis-cli -h {redis_address} -p {redis_port} -a {redis_password} cluster nodes
+In the output similar to the following, obtain the IP addresses and port numbers of all the master nodes.
+
DCS Redis 3.0 instances are deployed on VMs and some memory is reserved for system overheads.
+Both single-node and master/standby DCS Redis instances support multiple databases. By default, single-node and master/standby DCS instances can read and write data in 256 databases (databases numbering 0–255).
+Cluster DCS instances do not support data read/write in multiple databases.
+Yes. DCS for Redis 4.0 and 5.0 support Redis Clusters. DCS for Redis 3.0 supports Proxy Clusters.
+Yes. Redis Sentinel is supported by DCS for Redis 4.0 and 5.0 and is enabled by default. Sentinel constantly checks if master and replica nodes are running properly. If the master is not running properly, Sentinel starts a failover process and promotes a replica to master.
+However, DCS for Redis 3.0 does not support Redis Sentinel. Instead, it uses keepalive to monitor master and replica nodes and to manage failovers.
+Data is evicted from cache based on a user-defined space limit in order to make space for new data. In the current versions of DCS, you can select an eviction policy.
+noeviction is the default eviction policy for single-node and master/standby DCS Redis instances. You can change the eviction policy by configuring the instance parameters on the DCS console.
+volatile-lru is the default eviction policy for cluster DCS Redis instances. To change the eviction policy for cluster instances, contact technical support.
+When maxmemory is reached, you can select one of the following eight eviction policies:
+
If no key can be recycled, volatile-lru, volatile-random, and volatile-ttl are the same as noeviction. For details, see the description of noeviction.
+Start the Redis exporter using the CLI. Based on the output, check for errors and troubleshoot accordingly.
+
This is normal due to Redis functions (such as master/replica replication and lazyfree). When the memory becomes full, scale up the instance or remove unnecessary data.
+Redisson implements lock acquisition and unlocking in the following process:
+In a proxy-based cluster, the proxy processes PUBLISH and SUBSCRIBE commands and forwards requests to the Redis server. The PUBLISH command cannot be executed in the Lua script.
+As a result, Proxy Cluster DCS Redis 3.0 instances do not support Redisson distributed locks. To use Redisson, resort to Redis 4.0 or 5.0 instead.
+You cannot customize or change the port for accessing a DCS Redis 3.0 instance. You can customize and change the port for accessing a DCS Redis 4.0 or 5.0 instance.
+You can specify a port (ranging from 1 to 65535) or use the default port (6379) for accessing a DCS Redis 4.0 or 5.0 instance. If no port is specified, the default port will be used.
+If the instance and the client use different security groups, you must configure access rules for the security groups, allowing access through the specified port. For details, see Security Group Configurations.
+After a DCS instance is created, its intra-VPC connection addresses cannot be modified.
+For details about accessing DCS instances through clients, see Accessing a DCS Redis Instance Through redis-cli.
+Master/Standby and cluster DCS Redis instances can be deployed across availability zones (AZs).
+Possible cause: When a cluster instance is started, status and data are synchronized between the nodes of the instance. If a large amount of data is continuously written into the instance before the synchronization is complete, the synchronization will be prolonged and the instance remains in the Starting state. After the synchronization is complete, the instance enters the Running state.
+Solution: Start writing data to an instance only after the instance has been started.
+No. If you wish to query Redis configurations and usage information, use redis-cli. If you wish to monitor DCS Redis instance metrics, go to the Cloud Eye console. For details on how to configure and view the metrics, see Monitoring.
+Possible cause: The output buffer may have occupied an excessive amount of memory.
+Solution: After connecting to the instance using redis-cli, run the redis-cli --bigkeys command to scan for big keys. Then, run the info command to check the output buffer size.
+If a DCS instance is automatically deleted or manually deleted through the Redis client, its data cannot be retrieved. If you have backed up the instance, you can restore its data from the backup. However, the restoration will overwrite the data written in during the period from the backup and the restoration.
+By default, data is not evicted from DCS instances. You can modify the instance configuration parameters to adjust the eviction policy so that the instance can evict key values.
+Exercise caution when clearing data.
+Data of a DCS Redis 3.0 instance cannot be cleared on the console, and can only be cleared by the FLUSHDB or FLUSHALL command in redis-cli.
+Run the FLUSHALL command to clear all the data in the instance.
+Run the FLUSHDB command to clear the data in the currently selected DB.
+To clear data of a DCS Redis 4.0 or 5.0 instance, you can run the FLUSHDB or FLUSHALL command in redis-cli, use the data clearing function on the DCS console, or run the FLUSHDB command on Web CLI.
+To clear data of a Redis Cluster instance, run the FLUSHDB or FLUSHALL command on every shard of the instance. Otherwise, data may not be completely cleared.
+
Yes. For more information about Redis command compatibility, see Command Compatibility.
+Possible causes include the following:
+For security purposes, some Redis commands are disabled in DCS. For details about disabled and restricted Redis commands, see Command Compatibility.
+For example, the error message "ERR unknown command 'EVAL'" indicates that your DCS Redis instance is of a lower version that does not support the LUA script. In this case, contact technical support for the instance to be upgraded.
+This is because the DCS Redis instance is of a lower version that does not support these commands. In this case, contact technical support for the instance to be upgraded.
+Run the command in redis-cli to check whether the command takes effect.
+The following describes two scenarios:
+The SET command is used to set the string value. If the value is not changed, run the following commands in redis-cli to access the instance:
+
Set the timeout to 10 seconds and run the TTL command to view the remaining time. As shown in the following example, the remaining time is 7 seconds.
+
Redis clients (including redis-cli, Jedis clients, and Python clients) communicate with Redis server using a binary protocol.
+If Redis commands are run properly in redis-cli, the problem may lie in the service code. In this case, create logs in the code for further analysis.
+The time limit for executing a Redis command is 1 minute. This limit cannot be configured. After the execution of a command times out, your client will be automatically disconnected.
+No. Different Redis versions use different underlying architectures. The Redis version used by a DCS instance cannot be changed once the instance is created. However, you will be informed of any defects or problems found in Redis.
+If your service requires the features of higher Redis versions, create a DCS Redis instance of a higher version and then migrate data from the original instance to the new one. For details on how to migrate data, see Migrating Data with DCS.
+O&M personnel will contact you before performing maintenance during the maintenance time window, informing you of the operations and their impacts. You do not need to worry about instance running exceptions.
+No. Specification modifications can take place while the instance is running and do not affect any other resources.
+You are advised to change the instance specifications during off-peak hours because specification modification has the following impacts:
+The instance cannot be connected for several seconds and remains read-only for about 1 minute.
+The instance cannot be connected and remains read-only for 5 to 30 minutes.
+The DCS Redis 3.0, 4.0, or 5.0 instance cannot be connected for several seconds and remains read-only for about 1 minute.
+For capacity expansion, only the memory of the instance is expanded. The CPU processing capability is not improved.
+Data of single-node instances may not be retained because they do not support data persistence. After the scaling, check whether the data is complete and import data if required.
+The instance can be connected, but the CPU will be occupied and the latency will increase during data migration. During capacity expansion, new Redis Server nodes are added, and data is automatically balanced to the new nodes.
+The instance can be connected, but the CPU usage and latency will increase during data migration. During capacity expansion, new Redis Server nodes are added, and data is automatically balanced to the new nodes.
+Specifications of a DCS instance cannot be modified if another task of the instance is still running. For example, you cannot delete or scale up an instance while it is being restarted. Likewise, you cannot delete an instance while it is being scaled up.
+If the specification modification fails, try again later. If it fails again, contact technical support.
+No. To ensure high-performance reads and writes, Redis does not audit commands. Commands are not printed.
+If you have any doubt on the monitoring data of a DCS Redis instance, you can access the instance through redis-cli and run the INFO ALL command to view the metrics. For details about the output of the INFO ALL command, see http://www.redis.io/commands/info.
+For single-node and master/standby DCS instances, the used instance memory is measured by the Redis-server process. For cluster DCS instances, the used cluster memory is the sum of used memory of all shards in the cluster.
+Due to the internal implementation of the open-source redis-server, the used instance memory is normally slightly higher than the available instance memory.
+Why is used_memory higher than max_memory?
+Redis allocates memory using zmalloc. It does not check whether used_memory exceeds max_memory every time the memory is allocated. Instead, it checks whether the current used_memory exceeds max_memory at the beginning of a periodic task or command processing. If used_memory exceeds max_memory, eviction is triggered. Therefore, the restrictions of the max_memory policy are not implemented in real time or rigidly. A case in which the used_memory is greater than the max_memory may occur occasionally.
+
If your DCS instances were created a long time ago, the versions of these instances may not be advanced enough to support some new functions (such as backup and restoration). You can contact technical support to upgrade your DCS instances. After the upgrade, you can back up and restore your instances.
+Single-node instances do not support the backup function. You can use redis-cli to export RDB files. This operation depends on SYNC command.
+redis-cli -h {source_redis_address} -p 6379 [-a password] --rdb {output.rdb}
+No. On the console, backup data of a DCS Redis 3.0 instance can be exported only to AOF files. To export data to RDB files, run the following command in redis-cli:
+redis-cli -h {redis_address} -p 6379 [-a password] --rdb {output.rdb}
+Yes. Backup data of a DCS Redis 4.0 or 5.0 instance is exported from the console to RDB files. You cannot use redis-cli to export such data to RDB files.
+A master/standby switchover may occur in the following scenarios:
+For example, running commands that consume a lot of resources, such as KEYS commands, will cause CPU usage to spike and as result triggers a master/standby switchover.
+After a master/standby switchover occurs, you will receive a notification. Check whether the client services are running properly. If not, check whether the TCP connection is normal and whether it can be re-established after the master/standby switchover to restore the services.
+If a fault occurs in a master/standby or cluster DCS instance, a failover is triggered automatically. Services may be interrupted for less than half a minute during exception detection and failover.
+No. If the master fails, the standby node will be promoted to master and takes the original IP address.
+Redis master/standby instances are also called master/slave instances. Generally, updates to the master cache node are automatically and asynchronously replicated to the standby cache node. This means that data in the standby cache node may not always be consistent with data in the master cache node. The inconsistency is typically seen when the I/O write speed of the master node is faster than the synchronization speed of the standby node or a network latency occurs between the master and standby nodes. If a failover happens when some data is not yet replicated to the standby node, such data may be lost after the failover.
+Symptom: "Error in execution; nested exception is io.lettuce.core.RedisCommandExecutionException: OOM command not allowed when used memory > 'maxmemory'" is returned during a Redis connection.
+Analysis: An out-of-memory (OOM) error indicates that the maximum memory is exceeded. In the error information, the "maxmemory" parameter indicates the maximum memory configured on the Redis server.
+If the memory usage of the Redis instance is less than 100%, the memory of the node where data is written may have reached the maximum limit. Connect to each node in the cluster by running redis-cli -h <redis_ip> -p 6379 -a <redis_password> -c --bigkeys. When connecting to a replica node, run the READONLY command before running the bigkeys command.
+Rump is an open-source tool designed for migrating Redis data online. It supports migration between DBs of the same instance and between DBs of different instances.
+Rump uses the SCAN command to acquire keys and the DUMP/RESTORE command to get or set values.
+Featuring time complexity O(1), SCAN is capable of quickly getting all keys. DUMP/RESTORE is used to read/write values independent from the key type.
+Rump brings the following benefits:
+
On 64-bit Linux, run the following command:
+wget https://github.com/stickermule/rump/releases/download/0.0.3/rump-0.0.3-linux-amd64;
+mv rump-0.0.3-linux-amd64 rump;
+chmod +x rump;
+rump -from {source_redis_address} -to {target_redis_address}
+Parameter/Option description:
+Source Redis instance address, in the format of redis://[user:password@]host:port/db. [user:password@] is optional. If the instance is accessed in password-protected mode, you must specify the password in the RFC 3986 format. user can be omitted, but the colon (:) cannot be omitted. For example, the address may be redis://:mypassword@192.168.0.45:6379/1.
+db is the sequence number of the database. If it is not specified, the default value is 0.
+Address of the target Redis instance, in the same format as the source.
+In the following example, data in DB0 of the source Redis is migrated to the target Redis whose connection address is 192.168.0.153. ****** stands for the password.
+[root@ecs ~]# ./rump -from redis://127.0.0.1:6379/0 -to redis://:******@192.168.0.153:6379/0 +.Sync done. +[root@ecs ~]#+
Many large-scale e-commerce websites and video streaming and gaming applications require fast access to large amounts of data that has simple data structures and does not need frequent join queries. In such scenarios, you can use Redis to achieve fast yet inexpensive access to data. Redis enables you to retrieve data from in-memory data stores instead of relying entirely on slower disk-based databases. In addition, you no longer need to perform additional management tasks. These features make Redis an important supplement to traditional disk-based databases and a basic service essential for internet applications receiving high-concurrency access.
+Typical application scenarios of DCS for Redis are as follows:
+E-commerce product catalogue, deals, and flash sales data can be cached to Redis.
+For example, the high-concurrency data access in flash sales can be hardly handled by traditional relational databases. It requires the hardware to have higher configuration such as disk I/O. By contrast, Redis supports 100,000 QPS per node and allows you to implement locking using simple commands such as SET, GET, DEL, and RPUSH to handle flash sales.
+In live streaming, online user, gift ranking, and bullet comment data can be stored as sorted sets in Redis.
+For example, bullet comments can be returned using the ZREVRANGEBYSCORE command. The ZPOPMAX and ZPOPMIN commands in Redis 5.0 can further facilitate message processing.
+In online gaming, the highest ranking players are displayed and updated in real time. The leaderboard ranking can be stored as sorted sets, which are easy to use with up to 20 commands.
+In web applications, queries of post comments often involve sorting by time in descending order. As comments pile up, sorting becomes less efficient.
+By using lists in Redis, a preset number of comments can be returned from the cache, rather than from disk, easing the load off the database and accelerating application responses.
+DCS supports single-node, master/standby, and cluster instances, ensuring high read/write performance and fast data access. It also supports various instance management operations to facilitate your O&M. With DCS, you only need to focus on the service logic, without concerning about the deployment, monitoring, scaling, security, and fault recovery issues.
+DCS is compatible with open-source Redis, and can be customized based on your requirements. This renders DCS unique features in addition to the advantages of open-source cache databases.
+Feature + |
+Open-Source Redis + |
+DCS for Redis + |
+
|---|---|---|
Service deployment + |
+Requires 0.5 to 2 days to prepare servers. + |
+
|
+
Version + |
+- + |
+Deeply engaged in the open-source community and supports the latest Redis version. Currently, Redis 3.0, 4.0, and 5.0 are supported. + |
+
Security + |
+Network and server safety is the user's responsibility. + |
+
|
+
Performance + |
+- + |
+100,000 QPS per node + |
+
Monitoring + |
+Provides only basic statistics. + |
+Provides more than 30 monitoring metrics and customizable alarm threshold and policies. +
|
+
Backup and restoration + |
+Supported + |
+
|
+
Parameter management + |
+No visualized parameter management + |
+
|
+
Scale-up + |
+Interrupts services and involves a complex procedure from modifying the server RAM to modifying Redis memory and restarting the OS and services. + |
+
|
+
DCS is used together with other services, including VPC, ECS, IAM, Cloud Eye, CTS, and Object Storage Service (OBS).
+
A VPC is an isolated virtual network environment on the cloud. You can configure IP address ranges, subnets, and security groups in a VPC.
+DCS runs in VPCs. The VPC service manages EIPs and bandwidth, and provides security groups. You can configure access rules for security groups to secure the access to DCS.
+An ECS is a cloud server that provides scalable, on-demand computing resources for secure, flexible, and efficient applications.
+You can access and manage your DCS instances using an ECS.
+IAM provides identity authentication, permissions management, and access control.
+With IAM, you can control access to DCS.
+Cloud Eye is a secure, scalable, and integrated monitoring service. With Cloud Eye, you can monitor your DCS service and configure alarm rules and notifications.
+CTS provides you with a history of operations performed on cloud service resources. With CTS, you can query, audit, and backtrack operations. The traces include the operation requests sent using the management console or open APIs and the results of these requests.
+OBS provides secure, cost-effective storage service using objects as storage units. With OBS, you can store and manage the lifecycle of massive amounts of data.
+You can store DCS instance backup files in OBS.
+This section describes DCS Redis 3.0 instance specifications, including the total memory, available memory, maximum number of connections allowed, maximum/assured bandwidth, and reference performance.
+The following metrics are related to the instance specifications:
+
Total Memory +(GB) + |
+Available Memory +(GB) + |
+Max. Connections (Default/Limit) +(Count) + |
+Assured/Maximum Bandwidth +(Mbit/s) + |
+Reference Performance +(QPS) + |
+
|---|---|---|---|---|
2 + |
+1.5 + |
+5000/50,000 + |
+42/512 + |
+50,000 + |
+
4 + |
+3.2 + |
+5000/50,000 + |
+64/1536 + |
+100,000 + |
+
8 + |
+6.8 + |
+5000/50,000 + |
+64/1536 + |
+100,000 + |
+
16 + |
+13.6 + |
+5000/50,000 + |
+85/3072 + |
+100,000 + |
+
32 + |
+27.2 + |
+5000/50,000 + |
+85/3072 + |
+100,000 + |
+
64 + |
+58.2 + |
+5000/60,000 + |
+128/5120 + |
+100,000 + |
+
For each master/standby DCS Redis instance, the available memory is less than that of a single-node DCS Redis instance because some memory is reserved for data persistence, as shown in Table 2. The available memory of a master/standby instance can be adjusted to support background tasks such as data persistence and master/standby synchronization.
+ +Total Memory +(GB) + |
+Available Memory +(GB) + |
+Max. Connections (Default/Limit) +(Count) + |
+Assured/Maximum Bandwidth +(Mbit/s) + |
+Reference Performance +(QPS) + |
+
|---|---|---|---|---|
2 + |
+1.5 + |
+5000/50,000 + |
+42/512 + |
+50,000 + |
+
4 + |
+3.2 + |
+5000/50,000 + |
+64/1536 + |
+100,000 + |
+
8 + |
+6.4 + |
+5000/50,000 + |
+64/1536 + |
+100,000 + |
+
16 + |
+12.8 + |
+5000/50,000 + |
+85/3072 + |
+100,000 + |
+
32 + |
+25.6 + |
+5000/50,000 + |
+85/3072 + |
+100,000 + |
+
64 + |
+51.2 + |
+5000/60,000 + |
+128/5120 + |
+100,000 + |
+
In addition to larger memory, cluster instances feature more connections allowed, higher bandwidth allowed, and more QPS than single-node and master/standby instances.
+ +Specification +(GB) + |
+Available Memory +(GB) + |
+Max. Connections (Default/Limit) +(Count) + |
+Assured/Maximum Bandwidth +(Mbit/s) + |
+Reference Performance +(QPS) + |
+
|---|---|---|---|---|
64 + |
+64 + |
+90,000/90,000 + |
+600/5120 + |
+500,000 + |
+
128 + |
+128 + |
+180,000/180,000 + |
+600/5120 + |
+500,000 + |
+
256 + |
+256 + |
+240,000/240,000 + |
+600/5120 + |
+500,000 + |
+
512 + |
+512 + |
+480,000/480,000 + |
+600/5120 + |
+500,000 + |
+
This section describes DCS Redis 4.0 and 5.0 instance specifications, including the total memory, available memory, maximum number of connections allowed, maximum/assured bandwidth, and reference performance.
+The following metrics are related to the instance specifications:
+
Total Memory +(GB) + |
+Available Memory +(GB) + |
+Max. Connections (Default/Limit) +(Count) + |
+Assured/Maximum Bandwidth +(Mbit/s) + |
+Reference Performance +(QPS) + |
+
|---|---|---|---|---|
0.125 + |
+0.125 + |
+10,000/10,000 + |
+40/40 + |
+80,000 + |
+
0.25 + |
+0.25 + |
+10,000/10,000 + |
+80/80 + |
+80,000 + |
+
0.5 + |
+0.5 + |
+10,000/10,000 + |
+80/80 + |
+80,000 + |
+
1 + |
+1 + |
+10,000/50,000 + |
+80/80 + |
+80,000 + |
+
2 + |
+2 + |
+10,000/50,000 + |
+128/128 + |
+80,000 + |
+
4 + |
+4 + |
+10,000/50,000 + |
+192/192 + |
+80,000 + |
+
8 + |
+8 + |
+10,000/50,000 + |
+192/192 + |
+100,000 + |
+
16 + |
+16 + |
+10,000/50,000 + |
+256/256 + |
+100,000 + |
+
24 + |
+24 + |
+10,000/50,000 + |
+256/256 + |
+100,000 + |
+
32 + |
+32 + |
+10,000/50,000 + |
+256/256 + |
+100,000 + |
+
48 + |
+48 + |
+10,000/50,000 + |
+256/256 + |
+100,000 + |
+
64 + |
+64 + |
+10,000/50,000 + |
+384/384 + |
+100,000 + |
+
Total Memory +(GB) + |
+Available Memory +(GB) + |
+Max. Connections (Default/Limit) +(Count) + |
+Assured/Maximum Bandwidth +(Mbit/s) + |
+Reference Performance +(QPS) + |
+
|---|---|---|---|---|
0.125 + |
+0.125 + |
+10,000/10,000 + |
+40/40 + |
+80,000 + |
+
0.25 + |
+0.25 + |
+10,000/10,000 + |
+80/80 + |
+80,000 + |
+
0.5 + |
+0.5 + |
+10,000/10,000 + |
+80/80 + |
+80,000 + |
+
1 + |
+1 + |
+10,000/50,000 + |
+80/80 + |
+80,000 + |
+
2 + |
+2 + |
+10,000/50,000 + |
+128/128 + |
+80,000 + |
+
4 + |
+4 + |
+10,000/50,000 + |
+192/192 + |
+80,000 + |
+
8 + |
+8 + |
+10,000/50,000 + |
+192/192 + |
+100,000 + |
+
16 + |
+16 + |
+10,000/50,000 + |
+256/256 + |
+100,000 + |
+
24 + |
+24 + |
+10,000/50,000 + |
+256/256 + |
+100,000 + |
+
32 + |
+32 + |
+10,000/50,000 + |
+256/256 + |
+100,000 + |
+
48 + |
+48 + |
+10,000/50,000 + |
+256/256 + |
+100,000 + |
+
64 + |
+64 + |
+10,000/50,000 + |
+384/384 + |
+100,000 + |
+
Specification +(GB) + |
+Available Memory +(GB) + |
+Shards (Master Nodes) + |
+Max. Connections (Default/Limit) +(Count) + |
+Assured/Maximum Bandwidth +(Mbit/s) + |
+Reference Performance +(QPS) + |
+
|---|---|---|---|---|---|
4 + |
+4 + |
+3 + |
+30,000 +/150,000 + |
+2304/2304 + |
+240,000 + |
+
8 + |
+8 + |
+3 + |
+30,000 +/150,000 + |
+2304/2304 + |
+240,000 + |
+
16 + |
+16 + |
+3 + |
+30,000 +/150,000 + |
+2304/2304 + |
+240,000 + |
+
24 + |
+24 + |
+3 + |
+30,000 +/150,000 + |
+2304/2304 + |
+300,000 + + |
+
32 + |
+32 + |
+3 + |
+30,000 +/150,000 + |
+2304/2304 + |
+300,000 + |
+
48 + |
+48 + |
+6 + |
+60,000 +/300,000 + |
+4608/4608 + |
+> 300,000 + |
+
64 + |
+64 + |
+8 + |
+80,000 +/400,000 + |
+6144/6144 + |
+500,000 + |
+
96 + |
+96 + |
+12 + |
+120,000 +/600,000 + |
+9216/9216 + |
+> 500,000 + |
+
128 + |
+128 + |
+16 + |
+160,000 +/800,000 + |
+12,288/12,288 + |
+1,000,000 + |
+
192 + |
+192 + |
+24 + |
+240,000 +/1,200,000 + |
+18,432/18,432 + |
+> 1,000,000 + |
+
256 + |
+256 + |
+32 + |
+320,000 +/1,600,000 + |
+24,576/24,576 + |
+> 2,000,000 + |
+
384 + |
+384 + |
+48 + |
+480,000 +/2,400,000 + |
+36,864/36,864 + |
+> 2,000,000 + |
+
512 + |
+512 + |
+64 + |
+640,000 +/3,200,000 + |
+49,152/49,152 + |
+> 2,000,000 + |
+
768 + |
+768 + |
+96 + |
+960,000 +/4,800,000 + |
+73,728/73,728 + |
+> 2,000,000 + |
+
1024 + |
+1024 + |
+128 + |
+1,280,000 +/6,400,000 + |
+98,304/98,304 + |
+> 2,000,000 + |
+
Web CLI is a command line tool provided on the DCS console. This section describes Web CLI's compatibility with Redis commands, including supported and disabled commands. For details about the command syntax, visit the Redis official website.
+Currently, only DCS for Redis 4.0 and 5.0 support Web CLI.
+
The following lists the commands supported when you use Web CLI.
+ +| + | ++ | ++ | ++ | ++ | ++ | +
|---|---|---|---|---|---|
DEL + |
+APPEND + |
+RPUSH + |
+SADD + |
+ZADD + |
+FLUSHALL + |
+
OBJECT + |
+BITCOUNT + |
+RPUSHX + |
+SCARD + |
+ZCARD + |
+FLUSHDB + |
+
EXISTS + |
+BITOP + |
+BRPOPLRUSH + |
+SDIFF + |
+ZCOUNT + |
+DBSIZE + |
+
EXPIRE + |
+BITPOS + |
+LINDEX + |
+SDIFFSTORE + |
+ZINCRBY + |
+TIME + |
+
MOVE + |
+DECR + |
+LINSERT + |
+SINTER + |
+ZRANGE + |
+INFO + |
+
PERSIST + |
+DECRBY + |
+LLEN + |
+SINTERSTORE + |
+ZRANGEBYSCORE + |
+CLIENT KILL + |
+
PTTL + |
+GET + |
+LPOP + |
+SISMEMBER + |
+ZRANK + |
+CLIENT LIST + |
+
RANDOMKEY + |
+GETRANGE + |
+LPUSHX + |
+SMEMBERS + |
+ZREMRANGEBYRANK + |
+CLIENT GETNAME + |
+
RENAME + |
+GETSET + |
+LRANGE + |
+SMOVE + |
+ZREMRANGEBYCORE + |
+CLIENT SETNAME + |
+
RENAMENX + |
+INCR + |
+LREM + |
+SPOP + |
+ZREVRANGE + |
+CONFIG GET + |
+
SCAN + |
+INCRBY + |
+LSET + |
+SRANDMEMBER + |
+ZREVRANGEBYSCORE + |
+MONITOR + |
+
SORT + |
+INCRBYFLOAT + |
+LTRIM + |
+SREM + |
+ZREVRANK + |
+SLOWLOG + |
+
TTL + |
+MGET + |
+RPOP + |
+SUNION + |
+ZSCORE + |
+ROLE + |
+
TYPE + |
+MSET + |
+RPOPLPU + |
+SUNIONSTORE + |
+ZUNIONSTORE + |
+SWAPDB + |
+
- + |
+MSETNX + |
+RPOPLPUSH + |
+SSCAN + |
+ZINTERSTORE + |
+MEMORY + |
+
- + |
+PSETEX + |
+- + |
+SPOP + |
+ZSCAN + |
+- + |
+
- + |
+SET + |
+- + |
+- + |
+ZRANGEBYLEX + |
+- + |
+
- + |
+SETBIT + |
+- + |
+- + |
+ZLEXCOUNT + |
+- + |
+
- + |
+SETEX + |
+- + |
+- + |
+- + |
+- + |
+
- + |
+SETNX + |
+- + |
+- + |
+- + |
+- + |
+
- + |
+SETRANGE + |
+- + |
+- + |
+- + |
+- + |
+
- + |
+STRLEN + |
+- + |
+- + |
+- + |
+- + |
+
- + |
+BITFIELD + |
+- + |
+- + |
+- + |
+- + |
+
| + | ++ | ++ | ++ | ++ | +
|---|---|---|---|---|
HDEL + |
+PFADD + |
+AUTH + |
+EVAL + |
+GEOADD + |
+
HEXISTS + |
+PFCOUNT + |
+ECHO + |
+EVALSHA + |
+GEOHASH + |
+
HGET + |
+PFMERGE + |
+PING + |
+SCRIPT EXISTS + |
+GEOPOS + |
+
HGETALL + |
+- + |
+QUIT + |
+SCRIPT FLUSH + |
+GEODIST + |
+
HINCRBY + |
+- + |
+- + |
+SCRIPT KILL + |
+GEORADIUS + |
+
HINCRBYFLOAT + |
+- + |
+- + |
+SCRIPT LOAD + |
+GEORADIUSBYMEMBER + |
+
HKEYS + |
+- + |
+- + |
+- + |
+- + |
+
HMGET + |
+- + |
+- + |
+- + |
+- + |
+
HMSET + |
+- + |
+- + |
+- + |
+- + |
+
HSET + |
+- + |
+- + |
+- + |
+- + |
+
HSETNX + |
+- + |
+- + |
+- + |
+- + |
+
HVALS + |
+- + |
+- + |
+- + |
+- + |
+
HSCAN + |
+- + |
+- + |
+- + |
+- + |
+
HSTRLEN + |
+- + |
+- + |
+- + |
+- + |
+
The following lists the commands disabled when you use Web CLI.
+ +| + | ++ | ++ | ++ | +
|---|---|---|---|
MIGRATE + |
+SLAVEOF + |
+UNWATCH + |
+PSUBSCRIBE + |
+
WAIT + |
+SHUTDOWN + |
+REPLICAOF + |
+PUBLISH + |
+
DUMP + |
+DEBUG commands + |
+DISCARD + |
+PUBSUB + |
+
RESTORE + |
+CONFIG SET + |
+EXEC + |
+PUNSUBSCRIBE + |
+
- + |
+CONFIG REWRITE + |
+MULTI + |
+SUBSCRIBE + |
+
- + |
+CONFIG RESETSTAT + |
+WATCH + |
+UNSUBSCRIBE + |
+
- + |
+SAVE + |
+- + |
+- + |
+
- + |
+BGSAVE + |
+- + |
+- + |
+
- + |
+BGREWRITEAOF + |
+- + |
+- + |
+
- + |
+COMMAND + |
+- + |
+- + |
+
- + |
+KEYS + |
+- + |
+- + |
+
- + |
+MONITOR + |
+- + |
+- + |
+
- + |
+SYNC + |
+- + |
+- + |
+
- + |
+PSYNC + |
+- + |
+- + |
+
- + |
+ACL + |
+- + |
+- + |
+
| + | ++ | ++ | +
|---|---|---|
BLPOP + |
+SELECT + |
+BZPOPMAX + |
+
BRPOP + |
+- + |
+BZPOPMIN + |
+
BLMOVE + |
+- + |
+BZMPOP + |
+
BRPOPLPUSH + |
+- + |
+- + |
+
BLMPOP + |
+- + |
+- + |
+
| + | ++ | ++ | ++ | +
|---|---|---|---|
MIGRATE + |
+SLAVEOF + |
+UNWATCH + |
+CLUSTER MEET + |
+
WAIT + |
+SHUTDOWN + |
+REPLICAOF + |
+CLUSTER FLUSHSLOTS + |
+
DUMP + |
+DEBUG commands + |
+DISCARD + |
+CLUSTER ADDSLOTS + |
+
RESTORE + |
+CONFIG SET + |
+EXEC + |
+CLUSTER DELSLOTS + |
+
- + |
+CONFIG REWRITE + |
+MULTI + |
+CLUSTER SETSLOT + |
+
- + |
+CONFIG RESETSTAT + |
+WATCH + |
+CLUSTER BUMPEPOCH + |
+
- + |
+SAVE + |
+- + |
+CLUSTER SAVECONFIG + |
+
- + |
+BGSAVE + |
+- + |
+CLUSTER FORGET + |
+
- + |
+BGREWRITEAOF + |
+- + |
+CLUSTER REPLICATE + |
+
- + |
+COMMAND + |
+- + |
+CLUSTER COUNT-FAILURE-REPORTS + |
+
- + |
+KEYS + |
+- + |
+CLUSTER FAILOVER + |
+
- + |
+MONITOR + |
+- + |
+CLUSTER SET-CONFIG-EPOCH + |
+
- + |
+SYNC + |
+- + |
+CLUSTER RESET + |
+
- + |
+PSYNC + |
+- + |
+- + |
+
- + |
+ACL + |
+- + |
+- + |
+
| + | ++ | ++ | ++ | +
|---|---|---|---|
PSUBSCRIBE + |
+BLPOP + |
+SELECT + |
+BZPOPMAX + |
+
PUBLISH + |
+BRPOP + |
+- + |
+BZPOPMIN + |
+
PUBSUB + |
+BLMOVE + |
+- + |
+BZMPOP + |
+
PUNSUBSCRIBE + |
+BRPOPLPUSH + |
+- + |
+- + |
+
SUBSCRIBE + |
+BLMPOP + |
+- + |
+- + |
+
UNSUBSCRIBE + |
+- + |
+- + |
+- + |
+
An instance is the minimum resource unit provided by DCS.
+DCS supports the Redis cache engine, and single-node, master/standby, and cluster instance types. For each instance type, multiple specifications are available.
+For details, see DCS Instance Specifications and DCS Instance Types.
+Projects are used to group and isolate OpenStack resources (computing resources, storage resources, and network resources). A project can be a department or a project team. Multiple projects can be created for one account.
+A replica is a node of a DCS instance. No replication indicates that the instance does not have a standby node. Master/Standby replication indicates that the instance has a standby node. For example, a master/standby DCS instance has a master/standby replication. Each node of a cluster DCS Redis instance has a master/standby replication.
+The maintenance time window is the period when the DCS service team upgrade and maintain the instance.
+DCS instance maintenance takes place only once a quarter and does not interrupt services. Even so, you are advised to select a time period when the service demand is low.
+When creating an instance, you must specify a maintenance time window, which can be modified after the instance is created.
+For details, see: Modifying Maintenance Time Window.
+Master/Standby instances are deployed across different AZs with physically isolated power supplies and networks. Applications can also be deployed across AZs to achieve HA for both data and applications.
+When creating a master/standby or cluster DCS Redis instance, you can select a standby AZ for the standby node.
+A shard is a management unit of a cluster DCS Redis instance. Each shard corresponds to a redis-server process. A cluster consists of multiple shards. Each shard has multiple slots. Data is distributedly stored in the slots. The use of shards increases cache capacity and concurrent connections.
+DCS for Redis 3.0 is developed based on Redis 3.0.7 and is compatible with open-source protocols and commands.
+This section describes DCS for Redis 3.0's compatibility with Redis commands, including supported commands, disabled commands, unsupported scripts and commands of later Redis versions, and restrictions on command usage. For more information about the command syntax, visit the Redis official website.
+DCS for Redis instances support most Redis commands, which are listed in Commands Supported by DCS for Redis 3.0. Any client compatible with the Redis protocol can access DCS.
+The following lists commands supported by DCS for Redis 3.0.
+
| + | ++ | ++ | ++ | ++ | ++ | ++ | +
|---|---|---|---|---|---|---|
DEL + |
+APPEND + |
+HDEL + |
+BLPOP + |
+SADD + |
+ZADD + |
+FLUSHALL + |
+
DUMP + |
+BITCOUNT + |
+HEXISTS + |
+BRPOP + |
+SCARD + |
+ZCARD + |
+FLUSHDB + |
+
EXISTS + |
+BITOP + |
+HGET + |
+BRPOPLRUSH + |
+SDIFF + |
+ZCOUNT + |
+DBSIZE + |
+
EXPIRE + |
+BITPOS + |
+HGETALL + |
+LINDEX + |
+SDIFFSTORE + |
+ZINCRBY + |
+TIME + |
+
MOVE + |
+DECR + |
+HINCRBY + |
+LINSERT + |
+SINTER + |
+ZRANGE + |
+INFO + |
+
PERSIST + |
+DECRBY + |
+HINCRBYFLOAT + |
+LLEN + |
+SINTERSTORE + |
+ZRANGEBYSCORE + |
+KEYS + |
+
PTTL + |
+GET + |
+HKEYS + |
+LPOP + |
+SISMEMBER + |
+ZRANK + |
+CLIENT KILL + |
+
RANDOMKEY + |
+GETRANGE + |
+HMGET + |
+LPUSHX + |
+SMEMBERS + |
+ZREMRANGEBYRANK + |
+CLIENT LIST + |
+
RENAME + |
+GETSET + |
+HMSET + |
+LRANGE + |
+SMOVE + |
+ZREMRANGEBYCORE + |
+CLIENT GETNAME + |
+
RENAMENX + |
+INCR + |
+HSET + |
+LREM + |
+SPOP + |
+ZREVRANGE + |
+CLIENT SETNAME + |
+
RESTORE + |
+INCRBY + |
+HSETNX + |
+LSET + |
+SRANDMEMBER + |
+ZREVRANGEBYSCORE + |
+CONFIG GET + |
+
SORT + |
+INCRBYFLOAT + |
+HVALS + |
+LTRIM + |
+SREM + |
+ZREVRANK + |
+MONITOR + |
+
TTL + |
+MGET + |
+HSCAN + |
+RPOP + |
+SUNION + |
+ZSCORE + |
+SLOWLOG + |
+
TYPE + |
+MSET + |
+- + |
+RPOPLPU + |
+SUNIONSTORE + |
+ZUNIONSTORE + |
+ROLE + |
+
SCAN + |
+MSETNX + |
+- + |
+RPOPLPUSH + |
+SSCAN + |
+ZINTERSTORE + |
+- + |
+
OBJECT + |
+PSETEX + |
+- + |
+RPUSH + |
+- + |
+ZSCAN + |
+- + |
+
- + |
+SET + |
+- + |
+RPUSHX + |
+- + |
+ZRANGEBYLEX + |
+- + |
+
- + |
+SETBIT + |
+- + |
+- + |
+- + |
+- + |
+- + |
+
- + |
+SETEX + |
+- + |
+- + |
+- + |
+- + |
+- + |
+
- + |
+SETNX + |
+- + |
+- + |
+- + |
+- + |
+- + |
+
- + |
+SETRANGE + |
+- + |
+- + |
+- + |
+- + |
+- + |
+
- + |
+STRLEN + |
+- + |
+- + |
+- + |
+- + |
+- + |
+
| + | ++ | ++ | ++ | ++ | ++ | +
|---|---|---|---|---|---|
PFADD + |
+PSUBSCRIBE + |
+DISCARD + |
+AUTH + |
+EVAL + |
+GEOADD + |
+
PFCOUNT + |
+PUBLISH + |
+EXEC + |
+ECHO + |
+EVALSHA + |
+GEOHASH + |
+
PFMERGE + |
+PUBSUB + |
+MULTI + |
+PING + |
+SCRIPT EXISTS + |
+GEOPOS + |
+
- + |
+PUNSUBSCRIBE + |
+UNWATCH + |
+QUIT + |
+SCRIPT FLUSH + |
+GEODIST + |
+
- + |
+SUBSCRIBE + |
+WATCH + |
+SELECT + |
+SCRIPT KILL + |
+GEORADIUS + |
+
- + |
+UNSUBSCRIBE + |
+- + |
+- + |
+SCRIPT LOAD + |
+GEORADIUSBYMEMBER + |
+
The following lists commands disabled by DCS for Redis 3.0.
+ +| + | ++ | +
|---|---|
MIGRATE + |
+SLAVEOF + |
+
- + |
+SHUTDOWN + |
+
- + |
+LASTSAVE + |
+
- + |
+DEBUG commands + |
+
- + |
+COMMAND + |
+
- + |
+SAVE + |
+
- + |
+BGSAVE + |
+
- + |
+BGREWRITEAOF + |
+
| + | ++ | ++ | ++ | ++ | ++ | +codis + |
+
|---|---|---|---|---|---|---|
MIGRATE + |
+SLAVEOF + |
+BLPOP + |
+DISCARD + |
+SELECT + |
+CLUSTER + |
+TIME + |
+
MOVE + |
+SHUTDOWN + |
+BRPOP + |
+EXEC + |
+- + |
+- + |
+SLOTSINFO + |
+
- + |
+LASTSAVE + |
+BRPOPLPUSH + |
+MULTI + |
+- + |
+- + |
+SLOTSDEL + |
+
- + |
+DEBUG commands + |
+- + |
+UNWATCH + |
+- + |
+- + |
+SLOTSMGRTSLOT + |
+
- + |
+COMMAND + |
+- + |
+WATCH + |
+- + |
+- + |
+SLOTSMGRTONE + |
+
- + |
+SAVE + |
+- + |
+- + |
+- + |
+- + |
+SLOTSCHECK + |
+
- + |
+BGSAVE + |
+- + |
+- + |
+- + |
+- + |
+SLOTSMGRTTAGSLOT + |
+
- + |
+BGREWRITEAOF + |
+- + |
+- + |
+- + |
+- + |
+SLOTSMGRTTAGONE + |
+
- + |
+SYNC + |
+- + |
+- + |
+- + |
+- + |
+- + |
+
- + |
+PSYNC + |
+- + |
+- + |
+- + |
+- + |
+- + |
+
- + |
+MONITOR + |
+- + |
+- + |
+- + |
+- + |
+- + |
+
- + |
+CLIENT commands + |
+- + |
+- + |
+- + |
+- + |
+- + |
+
- + |
+OBJECT + |
+- + |
+- + |
+- + |
+- + |
+- + |
+
- + |
+ROLE + |
+- + |
+- + |
+- + |
+- + |
+- + |
+
DCS for Redis 5.0 is developed based on Redis 5.0.9 and is compatible with open-source protocols and commands.
+This section describes DCS for Redis 5.0's compatibility with Redis commands, including supported and disabled commands. For more information about the command syntax, visit the Redis official website.
+DCS for Redis instances support most Redis commands. Any client compatible with the Redis protocol can access DCS.
+
| + | ++ | ++ | ++ | ++ | ++ | ++ | +
|---|---|---|---|---|---|---|
DEL + |
+APPEND + |
+HDEL + |
+BLPOP + |
+SADD + |
+ZADD + |
+FLUSHALL + |
+
DUMP + |
+BITCOUNT + |
+HEXISTS + |
+BRPOP + |
+SCARD + |
+ZCARD + |
+FLUSHDB + |
+
EXISTS + |
+BITOP + |
+HGET + |
+BRPOPLRUSH + |
+SDIFF + |
+ZCOUNT + |
+DBSIZE + |
+
EXPIRE + |
+BITPOS + |
+HGETALL + |
+LINDEX + |
+SDIFFSTORE + |
+ZINCRBY + |
+TIME + |
+
MOVE + |
+DECR + |
+HINCRBY + |
+LINSERT + |
+SINTER + |
+ZRANGE + |
+INFO + |
+
PERSIST + |
+DECRBY + |
+HINCRBYFLOAT + |
+LLEN + |
+SINTERSTORE + |
+ZRANGEBYSCORE + |
+KEYS + |
+
PTTL + |
+GET + |
+HKEYS + |
+LPOP + |
+SISMEMBER + |
+ZRANK + |
+CLIENT KILL + |
+
RANDOMKEY + |
+GETRANGE + |
+HMGET + |
+LPUSHX + |
+SMEMBERS + |
+ZREMRANGEBYRANK + |
+CLIENT LIST + |
+
RENAME + |
+GETSET + |
+HMSET + |
+LRANGE + |
+SMOVE + |
+ZREMRANGEBYCORE + |
+CLIENT GETNAME + |
+
RENAMENX + |
+INCR + |
+HSET + |
+LREM + |
+SPOP + |
+ZREVRANGE + |
+CLIENT SETNAME + |
+
RESTORE + |
+INCRBY + |
+HSETNX + |
+LSET + |
+SRANDMEMBER + |
+ZREVRANGEBYSCORE + |
+CONFIG GET + |
+
SORT + |
+INCRBYFLOAT + |
+HVALS + |
+LTRIM + |
+SREM + |
+ZREVRANK + |
+MONITOR + |
+
TTL + |
+MGET + |
+HSCAN + |
+RPOP + |
+SUNION + |
+ZSCORE + |
+SLOWLOG + |
+
TYPE + |
+MSET + |
+HSTRLEN + |
+RPOPLPU + |
+SUNIONSTORE + |
+ZUNIONSTORE + |
+ROLE + |
+
SCAN + |
+MSETNX + |
+HLEN + |
+RPOPLPUSH + |
+SSCAN + |
+ZINTERSTORE + |
+SWAPDB + |
+
OBJECT + |
+PSETEX + |
+- + |
+RPUSH + |
+SPOP + |
+ZSCAN + |
+MEMORY + |
+
PEXPIREAT + |
+SET + |
+- + |
+RPUSHX + |
+- + |
+ZRANGEBYLEX + |
+CONFIG + |
+
PEXPIRE + |
+SETBIT + |
+- + |
+LPUSH + |
+- + |
+ZLEXCOUNT + |
+- + |
+
- + |
+SETEX + |
+- + |
+- + |
+- + |
+ZPOPMIN + |
+- + |
+
- + |
+SETNX + |
+- + |
+- + |
+- + |
+ZPOPMAX + |
+- + |
+
- + |
+SETRANGE + |
+- + |
+- + |
+- + |
+ZREMRANGEBYSCORE + |
+- + |
+
- + |
+STRLEN + |
+- + |
+- + |
+- + |
+ZREM + |
+- + |
+
- + |
+BITFIELD + |
+- + |
+- + |
+- + |
+- + |
+- + |
+
| + | ++ | ++ | ++ | ++ | ++ | ++ | +
|---|---|---|---|---|---|---|
PFADD + |
+PSUBSCRIBE + |
+DISCARD + |
+AUTH + |
+EVAL + |
+GEOADD + |
+XACK + |
+
PFCOUNT + |
+PUBLISH + |
+EXEC + |
+ECHO + |
+EVALSHA + |
+GEOHASH + |
+XADD + |
+
PFMERGE + |
+PUBSUB + |
+MULTI + |
+PING + |
+SCRIPT EXISTS + |
+GEOPOS + |
+XCLAIM + |
+
- + |
+PUNSUBSCRIBE + |
+UNWATCH + |
+QUIT + |
+SCRIPT FLUSH + |
+GEODIST + |
+XDEL + |
+
- + |
+SUBSCRIBE + |
+WATCH + |
+SELECT + |
+SCRIPT KILL + |
+GEORADIUS + |
+XGROUP + |
+
- + |
+UNSUBSCRIBE + |
+- + |
+- + |
+SCRIPT LOAD + |
+GEORADIUSBYMEMBER + |
+XINFO + |
+
- + |
+- + |
+- + |
+- + |
+- + |
+- + |
+XLEN + |
+
- + |
+- + |
+- + |
+- + |
+- + |
+- + |
+XPENDING + |
+
- + |
+- + |
+- + |
+- + |
+- + |
+- + |
+XRANGE + |
+
- + |
+- + |
+- + |
+- + |
+- + |
+- + |
+XREAD + |
+
- + |
+- + |
+- + |
+- + |
+- + |
+- + |
+XREADGROUP + |
+
- + |
+- + |
+- + |
+- + |
+- + |
+- + |
+XREVRANGE + |
+
- + |
+- + |
+- + |
+- + |
+- + |
+- + |
+XTRIM + |
+
The following lists commands disabled by DCS for Redis 5.0.
+ +| + | ++ | +
|---|---|
MIGRATE + |
+SLAVEOF + |
+
- + |
+SHUTDOWN + |
+
- + |
+LASTSAVE + |
+
- + |
+DEBUG commands + |
+
- + |
+COMMAND + |
+
- + |
+SAVE + |
+
- + |
+BGSAVE + |
+
- + |
+BGREWRITEAOF + |
+
- + |
+SYNC + |
+
- + |
+PSYNC + |
+
| + | ++ | ++ | +
|---|---|---|
MIGRATE + |
+SLAVEOF + |
+CLUSTER MEET + |
+
- + |
+SHUTDOWN + |
+CLUSTER FLUSHSLOTS + |
+
- + |
+LASTSAVE + |
+CLUSTER ADDSLOTS + |
+
- + |
+DEBUG commands + |
+CLUSTER DELSLOTS + |
+
- + |
+COMMAND + |
+CLUSTER SETSLOT + |
+
- + |
+SAVE + |
+CLUSTER BUMPEPOCH + |
+
- + |
+BGSAVE + |
+CLUSTER SAVECONFIG + |
+
- + |
+BGREWRITEAOF + |
+CLUSTER FORGET + |
+
- + |
+SYNC + |
+CLUSTER REPLICATE + |
+
- + |
+PSYNC + |
+CLUSTER COUNT-FAILURE-REPORTS + |
+
- + |
+- + |
+CLUSTER FAILOVER + |
+
- + |
+- + |
+CLUSTER SET-CONFIG-EPOCH + |
+
- + |
+- + |
+CLUSTER RESET + |
+
Some Redis commands are supported by cluster DCS instances for multi-key operations in the same slot. For details, see Table 1.
+ +Category + |
+Description + |
+
|---|---|
Set + |
+|
SINTER + |
+Returns the members of the set resulting from the intersection of all the given sets. + |
+
SINTERSTORE + |
+Equal to SINTER, but instead of returning the result set, it is stored in destination. + |
+
SUNION + |
+Returns the members of the set resulting from the union of all the given sets. + |
+
SUNIONSTORE + |
+Equal to SUNION, but instead of returning the result set, it is stored in destination. + |
+
SDIFF + |
+Returns the members of the set resulting from the difference between the first set and all the successive sets. + |
+
SDIFFSTORE + |
+Equal to SDIFF, but instead of returning the result set, it is stored in destination. + |
+
SMOVE + |
+Moves member from the set at source to the set at destination. + |
+
Sorted Set + |
+|
ZUNIONSTORE + |
+Computes the union of numkeys sorted sets given by the specified keys. + |
+
ZINTERSTORE + |
+Computes the intersection of numkeys sorted sets given by the specified keys. + |
+
HyperLogLog + |
+|
PFCOUNT + |
+Returns the approximated cardinality computed by the HyperLogLog data structure stored at the specified variable. + |
+
PFMERGE + |
+Merges multiple HyperLogLog values into a unique value. + |
+
Keys + |
+|
RENAME + |
+Renames key to newkey. + |
+
RENAMENX + |
+Renames key to newkey if newkey does not yet exist. + |
+
BITOP + |
+Performs a bitwise operation between multiple keys (containing string values) and stores the result in the destination key. + |
+
RPOPLPUSH + |
+Returns and removes the last element (tail) of the list stored at source, and pushes the element at the first element (head) of the list stored at destination. + |
+
String + |
+|
MSETNX + |
+Merges multiple HyperLogLog values into a unique value. + |
+
While running commands that take a long time to run, such as FLUSHALL, DCS instances may not respond to other commands and may change to the faulty state. After the command finishes executing, the instance will return to normal.
+This section describes restrictions on some Redis commands.
+In case of a large amount of cached data, running the KEYS command may block the execution of other commands for a long time or occupy exceptionally large memory. Therefore, when running the KEYS command, describe the exact pattern and do not use fuzzy keys *. Do not use the KEYS command in the production environment. Otherwise, the service running will be affected.
+DCS for Redis 4.0 is developed based on Redis 4.0.14 and is compatible with open-source protocols and commands.
+This section describes DCS for Redis 4.0's compatibility with Redis commands, including supported and disabled commands. For more information about the command syntax, visit the Redis official website.
+DCS for Redis instances support most Redis commands, which are listed in Commands Supported by DCS for Redis 4.0. Any client compatible with the Redis protocol can access DCS.
+Table 1 and Table 2 list the Redis commands supported by single-node, master/standby, and Redis Cluster DCS Redis 4.0 instances.
+
| + | ++ | ++ | ++ | ++ | ++ | ++ | +
|---|---|---|---|---|---|---|
DEL + |
+APPEND + |
+HDEL + |
+BLPOP + |
+SADD + |
+ZADD + |
+FLUSHALL + |
+
DUMP + |
+BITCOUNT + |
+HEXISTS + |
+BRPOP + |
+SCARD + |
+ZCARD + |
+FLUSHDB + |
+
EXISTS + |
+BITOP + |
+HGET + |
+BRPOPLRUSH + |
+SDIFF + |
+ZCOUNT + |
+DBSIZE + |
+
EXPIRE + |
+BITPOS + |
+HGETALL + |
+LINDEX + |
+SDIFFSTORE + |
+ZINCRBY + |
+TIME + |
+
MOVE + |
+DECR + |
+HINCRBY + |
+LINSERT + |
+SINTER + |
+ZRANGE + |
+INFO + |
+
PERSIST + |
+DECRBY + |
+HINCRBYFLOAT + |
+LLEN + |
+SINTERSTORE + |
+ZRANGEBYSCORE + |
+KEYS + |
+
PTTL + |
+GET + |
+HKEYS + |
+LPOP + |
+SISMEMBER + |
+ZRANK + |
+CLIENT KILL + |
+
RANDOMKEY + |
+GETRANGE + |
+HMGET + |
+LPUSHX + |
+SMEMBERS + |
+ZREMRANGEBYRANK + |
+CLIENT LIST + |
+
RENAME + |
+GETSET + |
+HMSET + |
+LRANGE + |
+SMOVE + |
+ZREMRANGEBYCORE + |
+CLIENT GETNAME + |
+
RENAMENX + |
+INCR + |
+HSET + |
+LREM + |
+SPOP + |
+ZREVRANGE + |
+CLIENT SETNAME + |
+
RESTORE + |
+INCRBY + |
+HSETNX + |
+LSET + |
+SRANDMEMBER + |
+ZREVRANGEBYSCORE + |
+CONFIG GET + |
+
SORT + |
+INCRBYFLOAT + |
+HVALS + |
+LTRIM + |
+SREM + |
+ZREVRANK + |
+MONITOR + |
+
TTL + |
+MGET + |
+HSCAN + |
+RPOP + |
+SUNION + |
+ZSCORE + |
+SLOWLOG + |
+
TYPE + |
+MSET + |
+HSTRLEN + |
+RPOPLPU + |
+SUNIONSTORE + |
+ZUNIONSTORE + |
+ROLE + |
+
SCAN + |
+MSETNX + |
+HLEN + |
+RPOPLPUSH + |
+SSCAN + |
+ZINTERSTORE + |
+SWAPDB + |
+
OBJECT + |
+PSETEX + |
+- + |
+RPUSH + |
+SPOP + |
+ZSCAN + |
+MEMORY + |
+
PEXPIRE + |
+SET + |
+- + |
+RPUSHX + |
+- + |
+ZRANGEBYLEX + |
+CONFIG + |
+
PEXPIREAT + |
+SETBIT + |
+- + |
+LPUSH + |
+- + |
+ZLEXCOUNT + |
+- + |
+
- + |
+SETEX + |
+- + |
+- + |
+- + |
+ZREMRANGEBYSCORE + |
+- + |
+
- + |
+SETNX + |
+- + |
+- + |
+- + |
+ZREM + |
+- + |
+
- + |
+SETRANGE + |
+- + |
+- + |
+- + |
+- + |
+- + |
+
- + |
+STRLEN + |
+- + |
+- + |
+- + |
+- + |
+- + |
+
- + |
+BITFIELD + |
+- + |
+- + |
+- + |
+- + |
+- + |
+
| + | ++ | ++ | ++ | ++ | ++ | +
|---|---|---|---|---|---|
PFADD + |
+PSUBSCRIBE + |
+DISCARD + |
+AUTH + |
+EVAL + |
+GEOADD + |
+
PFCOUNT + |
+PUBLISH + |
+EXEC + |
+ECHO + |
+EVALSHA + |
+GEOHASH + |
+
PFMERGE + |
+PUBSUB + |
+MULTI + |
+PING + |
+SCRIPT EXISTS + |
+GEOPOS + |
+
- + |
+PUNSUBSCRIBE + |
+UNWATCH + |
+QUIT + |
+SCRIPT FLUSH + |
+GEODIST + |
+
- + |
+SUBSCRIBE + |
+WATCH + |
+SELECT + |
+SCRIPT KILL + |
+GEORADIUS + |
+
- + |
+UNSUBSCRIBE + |
+- + |
+- + |
+SCRIPT LOAD + |
+GEORADIUSBYMEMBER + |
+
The following lists commands disabled by DCS for Redis 4.0.
+ +| + | ++ | +
|---|---|
MIGRATE + |
+SLAVEOF + |
+
- + |
+SHUTDOWN + |
+
- + |
+LASTSAVE + |
+
- + |
+DEBUG commands + |
+
- + |
+COMMAND + |
+
- + |
+SAVE + |
+
- + |
+BGSAVE + |
+
- + |
+BGREWRITEAOF + |
+
- + |
+SYNC + |
+
- + |
+PSYNC + |
+
| + | ++ | ++ | +
|---|---|---|
MIGRATE + |
+SLAVEOF + |
+CLUSTER MEET + |
+
- + |
+SHUTDOWN + |
+CLUSTER FLUSHSLOTS + |
+
- + |
+LASTSAVE + |
+CLUSTER ADDSLOTS + |
+
- + |
+DEBUG commands + |
+CLUSTER DELSLOTS + |
+
- + |
+COMMAND + |
+CLUSTER SETSLOT + |
+
- + |
+SAVE + |
+CLUSTER BUMPEPOCH + |
+
- + |
+BGSAVE + |
+CLUSTER SAVECONFIG + |
+
- + |
+BGREWRITEAOF + |
+CLUSTER FORGET + |
+
- + |
+SYNC + |
+CLUSTER REPLICATE + |
+
- + |
+PSYNC + |
+CLUSTER COUNT-FAILURE-REPORTS + |
+
- + |
+- + |
+CLUSTER FAILOVER + |
+
- + |
+- + |
+CLUSTER SET-CONFIG-EPOCH + |
+
- + |
+- + |
+CLUSTER RESET + |
+
If you need to assign different permissions to employees in your enterprise to access your DCS resources, Identity and Access Management (IAM) is a good choice for fine-grained permissions management. IAM provides identity authentication, permissions management, and access control, helping you secure access to your resources.
+With IAM, you can use your account to create IAM users, and assign permissions to the users to control their access to specific resources. For example, some software developers in your enterprise need to use DCS resources but should not be allowed to delete DCS instances or perform any other high-risk operations. In this scenario, you can create IAM users for the software developers and grant them only the permissions required for using DCS resources.
+If your account does not require individual IAM users for permissions management, skip this section.
+By default, new IAM users do not have permissions assigned. You need to add a user to one or more groups, and attach permissions policies or roles to these groups. Users inherit permissions from the groups to which they are added and can perform specified operations on cloud services based on the permissions.
+DCS is a project-level service deployed and accessed in specific physical regions. To assign DCS permissions to a user group, specify the scope as region-specific projects and select regions for the permissions to take effect. If All projects is selected, the permissions will take effect for the user group in all region-specific projects. When accessing DCS, the users need to switch to a region where they have been authorized to use this service.
+Table 1 lists all the system-defined roles and policies supported by DCS.
+ +Role/Policy Name + |
+Description + |
+Type + |
+Dependency + |
+
|---|---|---|---|
DCS FullAccess + |
+All permissions for DCS. Users granted these permissions can operate and use all DCS instances. + |
+System-defined policy + |
+None + |
+
DCS UserAccess + |
+Common user permissions for DCS, excluding permissions for creating, modifying, deleting DCS instances and modifying instance specifications. + |
+System-defined policy + |
+None + |
+
DCS ReadOnlyAccess + |
+Read-only permissions for DCS. Users granted these permissions can only view DCS instance data. + |
+System-defined policy + |
+None + |
+
The DCS UserAccess policy is different from the DCS FullAccess policy. If you configure both of them, you cannot create, modify, delete, or scale DCS instances because deny statements will take precedence over allowed statements.
+Table 2 lists the common operations supported by each system policy of DCS. Please choose proper system policies according to this table.
+ +Operation + |
+DCS FullAccess + |
+DCS UserAccess + |
+DCS ReadOnlyAccess + |
+
|---|---|---|---|
Modifying instance configuration parameters + |
+√ + |
+√ + |
+× + |
+
Deleting background tasks + |
+√ + |
+√ + |
+× + |
+
Accessing instances using Web CLI + |
+√ + |
+√ + |
+× + |
+
Modifying instance running status + |
+√ + |
+√ + |
+× + |
+
Expanding instance capacity + |
+√ + |
+× + |
+× + |
+
Changing instance passwords + |
+√ + |
+√ + |
+× + |
+
Modifying DCS instances + |
+√ + |
+× + |
+× + |
+
Performing a master/standby switchover + |
+√ + |
+√ + |
+× + |
+
Backing up instance data + |
+√ + |
+√ + |
+× + |
+
Analyzing big keys or hot keys + |
+√ + |
+√ + |
+× + |
+
Creating DCS instances + |
+√ + |
+× + |
+× + |
+
Deleting instance backup files + |
+√ + |
+√ + |
+× + |
+
Upgrading instance version + |
+√ + |
+√ + |
+× + |
+
Restoring instance data + |
+√ + |
+√ + |
+× + |
+
Resetting instance passwords + |
+√ + |
+√ + |
+× + |
+
Migrating instance data + |
+√ + |
+√ + |
+× + |
+
Downloading instance backup data + |
+√ + |
+√ + |
+× + |
+
Deleting DCS instances + |
+√ + |
+× + |
+× + |
+
Querying instance configuration parameters + |
+√ + |
+√ + |
+√ + |
+
Querying instance restoration logs + |
+√ + |
+√ + |
+√ + |
+
Querying instance backup logs + |
+√ + |
+√ + |
+√ + |
+
Querying DCS instances + |
+√ + |
+√ + |
+√ + |
+
Querying instance background tasks + |
+√ + |
+√ + |
+√ + |
+
Querying instance upgrade information + |
+√ + |
+√ + |
+√ + |
+
Querying all instances + |
+√ + |
+√ + |
+√ + |
+
Viewing instance performance metrics + |
+√ + |
+√ + |
+√ + |
+
To access DCS instances through a Virtual Private Cloud (VPC), create a VPC and configure security groups and subnets for it before using DCS. A VPC provides an isolated virtual network environment which you can configure and manage. Using VPCs enhances cloud resource security and simplifies network deployment.
+Once you have created a VPC, you can use it for all DCS instances you subsequently create.
+
in the upper left corner and select a region and a project.For details about how to create a VPC, see Creating a VPC.
+After a VPC is created, a subnet is also created in the subnet. If the VPC needs more subnets, go to 7. Otherwise, go to 8.
+
For details about how to create a subnet, see Creating a Subnet for the VPC.
+For details about how to create a security group, see Creating a Security Group.
+Access a DCS Redis instance through Web CLI. This function is supported only by DCS Redis 4.0 and 5.0 instances, and not by DCS Redis 3.0 instances.
+
The DCS Redis 4.0 or 5.0 instance you want to access through Web CLI is in the Running state.
+
in the upper left corner and select a region and a project.Access a DCS Redis instance through phpredis on an ECS in the same VPC. For more information about how to use other Redis clients, visit the Redis official website.
+
The operations described in this section apply only to single-node, master/standby, and Proxy Cluster instances. To use phpredis to connect to a Redis Cluster instance, see the phpredis description.
+For details, see Viewing Details of a DCS Instance.
+The following uses CentOS as an example to describe how to access an instance through phpredis.
+yum install gcc-c++ make
+Run the following yum command to install the PHP development package:
+yum install php-devel php-common php-cli
+After the installation is complete, run the following command to query the PHP version and check whether the installation is successful:
+php --version
+wget http://pecl.php.net/get/redis-5.3.7.tgz
+This version is used as an example. To download phpredis clients of other versions, visit the Redis or PHP official website.
+cd redis-5.3.7
+./configure --with-php-config=/usr/bin/php-config
+The location of the file varies depending on the OS and PHP installation mode. You are advised to locate the directory where the file is saved before the configuration.
+find / -name php-config
+vim /etc/php.ini
+Add the following configuration:
+extension = "/usr/lib64/php/modules/redis.so"+
The redis.so file may be saved in a different directory from php.ini. Run the following command to locate the directory:
+find / -name php.ini
+If the command output contains redis, the phpredis client environment has been set up.
+<?php
+ $redis_host = "{redis_instance_address}";
+ $redis_port = 6379;
+ $user_pwd = "{password}";
+ $redis = new Redis();
+ if ($redis->connect($redis_host, $redis_port) == false) {
+ die($redis->getLastError());
+ }
+ if ($redis->auth($user_pwd) == false) {
+ die($redis->getLastError());
+ }
+ if ($redis->set("welcome", "Hello, DCS for Redis!") == false) {
+ die($redis->getLastError());
+ }
+ $value = $redis->get("welcome");
+ echo $value;
+ $redis->close();
+?>
+{redis_instance_address} indicates the IP address/domain name of DCS instance and 6379 is an example port number of DCS instance. For details about how to obtain the IP address/domain name and port, see 1. Change the IP address/domain name and port as required. {password} indicates the password used to log in to the chosen DCS Redis instance. This password is defined during DCS Redis instance creation. If password-free access is enabled, shield the if statement for password authentication.
+Access a DCS Redis instance through hiredis on an ECS in the same VPC. For more information about how to use other Redis clients, visit the Redis official website.
+
The operations described in this section apply only to single-node, master/standby, and Proxy Cluster instances. To use C++ to connect to a Redis Cluster instance, see the C++ Redis client description.
+For details, see Viewing Details of a DCS Instance.
+The following uses CentOS as an example to describe how to access an instance in C++.
+If the system does not provide a compiling environment, run the following yum command to install the environment:
+yum install gcc make
+wget https://github.com/redis/hiredis/archive/master.zip
+unzip master.zip
+make
+make install
+The following describes connection and password authentication of hiredis. For more information on how to use hiredis, visit the Redis official website.
+Example:
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <hiredis.h>
+int main(int argc, char **argv) {
+ unsigned int j;
+ redisContext *conn;
+ redisReply *reply;
+ if (argc < 3) {
+ printf("Usage: example {instance_ip_address} 6379 {password}\n");
+ exit(0);
+ }
+ const char *hostname = argv[1];
+ const int port = atoi(argv[2]);
+ const char *password = argv[3];
+ struct timeval timeout = { 1, 500000 }; // 1.5 seconds
+ conn = redisConnectWithTimeout(hostname, port, timeout);
+ if (conn == NULL || conn->err) {
+ if (conn) {
+ printf("Connection error: %s\n", conn->errstr);
+ redisFree(conn);
+ } else {
+ printf("Connection error: can't allocate redis context\n");
+ }
+ exit(1);
+ }
+ /* AUTH */
+ reply = redisCommand(conn, "AUTH %s", password);
+ printf("AUTH: %s\n", reply->str);
+ freeReplyObject(reply);
+
+ /* Set */
+ reply = redisCommand(conn,"SET %s %s", "welcome", "Hello, DCS for Redis!");
+ printf("SET: %s\n", reply->str);
+ freeReplyObject(reply);
+
+ /* Get */
+ reply = redisCommand(conn,"GET welcome");
+ printf("GET welcome: %s\n", reply->str);
+ freeReplyObject(reply);
+
+ /* Disconnects and frees the context */
+ redisFree(conn);
+ return 0;
+}
+gcc connRedis.c -o connRedis -I /usr/local/include/hiredis -lhiredis
+If an error is reported, locate the directory where the hiredis.h file is saved and modify the compilation command.
+After the compilation, an executable connRedis file is obtained.
+./connRedis {redis_ip_address} 6379 {password}
+{redis_instance_address} indicates the IP address/domain name of DCS instance and 6379 is an example port number of DCS instance. For details about how to obtain the IP address/domain name and port, see 1. Change the IP address/domain name and port as required. {password} indicates the password used to log in to the chosen DCS Redis instance. This password is defined during DCS Redis instance creation.
+You have successfully accessed the instance if the following command output is displayed:
+AUTH: OK +SET: OK +GET welcome: Hello, DCS for Redis!+
If an error is reported, indicating that the hiredis library files cannot be found, run the following commands to copy related files to the system directories and add dynamic links:
+mkdir /usr/lib/hiredis
+cp /usr/local/lib/libhiredis.so.0.13 /usr/lib/hiredis/
+mkdir /usr/include/hiredis
+cp /usr/local/include/hiredis/hiredis.h /usr/include/hiredis/
+echo '/usr/local/lib' >>;>>;/etc/ld.so.conf
+ldconfig
+Replace the locations of the so and .h files with actual ones before running the commands.
+Access a DCS Redis instance through redis-py on an ECS in the same VPC. For more information about how to use other Redis clients, visit the Redis official website.
+
Use redis-py to connect to single-node, master/standby, and Proxy Cluster instances and redis-py-cluster to connect to Redis Cluster instances.
+For details, see Viewing Details of a DCS Instance.
+The following uses CentOS as an example to describe how to access an instance using a Python client.
+If the system does not provide Python, run the following yum command to install it:
+
The Python version must be 3.6 or later. If the default Python version is earlier than 3.6, perform the following operations to change it:
+wget https://github.com/andymccurdy/redis-py/archive/master.zip
+unzip master.zip
+After the installation, run the python command. redis-py have been successfully installed if the following command output is displayed:
+

r = redis.StrictRedis(host='XXX.XXX.XXX.XXX', port=6379, password='******');+
XXX.XXX.XXX.XXX indicates the IP address/domain name of the DCS instance and 6379 is an example port number of the instance. For details about how to obtain the IP address/domain name and port, see 1. Change the IP address/domain name and port as required. ****** indicates the password used for logging in to the chosen DCS Redis instance. This password is defined during DCS Redis instance creation.
+You have successfully accessed the instance if the following command output is displayed. Enter commands to perform read and write operations on the database.
+
In the following steps, commands are executed in CLI mode. (Alternatively, write the commands into a Python script and then execute the script.)
+>>> from rediscluster import RedisCluster
+
+>>> startup_nodes = [{"host": "192.168.0.143", "port": "6379"}]
+
+>>> rc = RedisCluster(startup_nodes=startup_nodes, decode_responses=True)
+
+>>> rc.set("foo", "bar")
+True
+>>> print(rc.get("foo"))
+'bar'
+
+Access a DCS Redis instance through Node.js on an ECS in the same VPC. For more information about how to use other Redis clients, visit the Redis official website.
+
The operations described in this section apply only to single-node, master/standby, and Proxy Cluster instances. To use Node.js to connect to a Redis Cluster instance, see Node.js Redis client description.
+For details, see Viewing Details of a DCS Instance.
+apt install nodejs-legacy
+If the preceding command does not work, run the following commands:
+wget https://nodejs.org/dist/v0.12.4/node-v0.12.4.tar.gz --no-check-certificate
+tar -xvf node-v4.28.5.tar.gz
+cd node-v4.28.5
+./configure
+make
+make install
+
After the installation is complete, run the node --version command to query the Node.js version to check whether the installation is successful.
+apt install npm
+npm install ioredis
+Add the following content to the ioredisdemo.js script, including information about connection and data reading.
+var Redis = require('ioredis');
+var redis = new Redis({
+ port: 6379, // Redis port
+ host: '192.168.0.196', // Redis host
+ family: 4, // 4 (IPv4) or 6 (IPv6)
+ password: '******',
+ db: 0
+});
+redis.set('foo', 'bar');
+redis.get('foo', function (err, result) {
+ console.log(result);
+});
+// Or using a promise if the last argument isn't a function
+redis.get('foo').then(function (result) {
+ console.log(result);
+});
+// Arguments to commands are flattened, so the following are the same:
+redis.sadd('set', 1, 3, 5, 7);
+redis.sadd('set', [1, 3, 5, 7]);
+// All arguments are passed directly to the redis server:
+redis.set('key', 100, 'EX', 10);
+host indicates the example IP address/domain name of DCS instance and port indicates the port number of DCS instance. For details about how to obtain the IP address/domain name and port, see 1. Change the IP address/domain name and port as required. ****** indicates the password used for logging in to the chosen DCS Redis instance. This password is defined during DCS Redis instance creation.
+node ioredisdemo.js
+For details, see Viewing Details of a DCS Instance.
+yum install nodejs
+If the preceding command does not work, run the following commands:
+wget https://nodejs.org/dist/v0.12.4/node-v0.12.4.tar.gz --no-check-certificate
+tar -xvf node-v0.12.4.tar.gz
+cd node-v0.12.4
+./configure
+make
+make install
+
After the installation is complete, run the node --version command to query the Node.js version to check whether the installation is successful.
+yum install npm
+npm install ioredis
+Add the following content to the ioredisdemo.js script, including information about connection and data reading.
+var Redis = require('ioredis');
+var redis = new Redis({
+ port: 6379, // Redis port
+ host: '192.168.0.196', // Redis host
+ family: 4, // 4 (IPv4) or 6 (IPv6)
+ password: '******',
+ db: 0
+});
+redis.set('foo', 'bar');
+redis.get('foo', function (err, result) {
+ console.log(result);
+});
+// Or using a promise if the last argument isn't a function
+redis.get('foo').then(function (result) {
+ console.log(result);
+});
+// Arguments to commands are flattened, so the following are the same:
+redis.sadd('set', 1, 3, 5, 7);
+redis.sadd('set', [1, 3, 5, 7]);
+// All arguments are passed directly to the redis server:
+redis.set('key', 100, 'EX', 10);
+host indicates the example IP address/domain name of DCS instance and port indicates the port number of DCS instance. For details about how to obtain the IP address/domain name and port, see 1. Change the IP address/domain name and port as required. ****** indicates the password used for logging in to the chosen DCS Redis instance. This password is defined during DCS Redis instance creation.
+node ioredisdemo.js
+Access a DCS Redis instance through C# Client StackExchange.Redis on an ECS in the same VPC. For more information about how to use other Redis clients, visit the Redis official website.
+For details, see Viewing Details of a DCS Instance.
+A Windows ECS is used as an example.
+Set the project name to redisdemo.
+Access the NuGet package manager console according to Figure 1, and enter Install-Package StackExchange.Redis -Version 2.2.79. (The version number is optional).
+ +using System;
+using StackExchange.Redis;
+
+namespace redisdemo
+{
+ class Program
+ {
+ // redis config
+ private static ConfigurationOptions connDCS = ConfigurationOptions.Parse("10.10.38.233:6379,password=********,connectTimeout=2000");
+ //the lock for singleton
+ private static readonly object Locker = new object();
+ //singleton
+ private static ConnectionMultiplexer redisConn;
+ //singleton
+ public static ConnectionMultiplexer getRedisConn()
+ {
+ if (redisConn == null)
+ {
+ lock (Locker)
+ {
+ if (redisConn == null || !redisConn.IsConnected)
+ {
+ redisConn = ConnectionMultiplexer.Connect(connDCS);
+ }
+ }
+ }
+ return redisConn;
+ }
+ static void Main(string[] args)
+ {
+ redisConn = getRedisConn();
+ var db = redisConn.GetDatabase();
+ //set get
+ string strKey = "Hello";
+ string strValue = "DCS for Redis!";
+ Console.WriteLine( strKey + ", " + db.StringGet(strKey));
+
+ Console.ReadLine();
+ }
+ }
+}
+10.10.38.233:6379 contains an example IP address/domain name and port number of the DCS Redis instance. For details about how to obtain the IP address/domain name and port, see 1. Change the IP address/domain name and port as required. ******** indicates the password used for logging in to the chosen DCS Redis instance. This password is defined during DCS Redis instance creation.
+Hello, DCS for Redis!+
For more information about other commands of StackExchange.Redis, visit StackExchange.Redis.
+On the DCS console, you can view DCS instance details.
+
in the upper left corner and select a region and a project.Currently, you can search by name, ID, connection address (IP address:port number), AZ, status, instance type, and cache engine.
+For more information on how to search, click the question mark to the right of the search box.
++
Section + |
+Parameter + |
+Description + |
+
|---|---|---|
Instance Details + + + + + + + + + + + + + + + + + + + + + + + + + + |
+Name + |
+Name of the chosen instance. To modify the instance name, click the |
+
Status + |
+State of the chosen instance. + |
+|
ID + |
+ID of the chosen instance. + |
+|
Cache Engine + |
+Cache engine and cache engine version used by the DCS instance. For example, Redis 3.0. + |
+|
Instance Type + |
+Type of the selected instance. Currently, supported types include single-node, master/standby, Proxy Cluster, and Redis Cluster. + |
+|
Cache Size + |
+Specification of the chosen instance. + |
+|
Used/Available Memory (MB) + |
+The used memory space and maximum available memory space of the chosen instance. +The used memory space includes: +
|
+|
CPU + |
+CPU of the DCS instance. + |
+|
Created + |
+Time at which the chosen instance started to be created. + |
+|
Run + |
+Time at which the instance was created. + |
+|
Maintenance + |
+Time range for any scheduled maintenance activities on cache nodes of this DCS instance. To modify the time window, click the |
+|
Description + |
+Description of the chosen DCS instance. To modify the description, click the |
+|
Connection + |
+Password Protected + |
+Currently, password-protected access and password-free access are supported. + |
+
IP Address + |
+IP address and port number of the chosen instance. + |
+|
Network + |
+AZ + |
+Availability zone in which the cache node running the selected DCS instance resides. + |
+
VPC + |
+VPC in which the chosen instance resides. + |
+|
Subnet + |
+Subnet in which the chosen instance resides. + |
+|
Security Group + |
+Security group that controls access to the chosen instance. To modify the security group, click the This parameter is displayed only for DCS Redis 3.0 instances. DCS for Redis 4.0 and 5.0 are based on VPC endpoints and do not support security groups. + |
+
On the DCS console, you can manually switch the master and standby nodes of a DCS instance. This operation is used for special purposes, for example, releasing all service connections or terminating ongoing service operations.
+Only master/standby instances support a master/standby node switchover.
+
The DCS instance for which you want to perform a master/standby node switchover is in the Running state.
+
in the upper left corner and select a region and a project.On the DCS console, you can clear data only for DCS Redis 4.0 and 5.0 instances.
+Clearing instance data cannot be undone and cleared data cannot be recovered. Exercise caution when performing this operation.
+
in the upper left corner and select a region and a project.On the DCS console, you can export DCS instance information in full to an Excel file.
+
in the upper left corner and select a region and a project.
above the instance list.Click the export result displayed in the lower left corner of the page.
+
In the event that a cache node of a DCS instance is faulty:
+You can modify the configuration parameters of your DCS instance to optimize DCS performance based on your requirements.
+For example, if you do not need data persistence, set appendonly to no.
+After the instance configuration parameters are modified, the modification takes effect immediately without the need to manually restart the instance. For a cluster instance, the modification takes effect on all shards.
+
in the upper left corner and select a region and a project.Table 1 describes the parameters. In most cases, retain the default values.
+ +Parameter + |
+Description + |
+Value Range + |
+Default Value + |
+
|---|---|---|---|
timeout + |
+The maximum amount of time (in seconds) a connection between a client and the DCS instance can be allowed to remain idle before the connection is terminated. A setting of 0 means that this function is disabled. + |
+0–7200 seconds + |
+0 + |
+
appendfsync + |
+Controls how often fsync() transfers cached data to the disk. Note that some OSs will perform a complete data transfer but some others only make a "best-effort" attempt. +There are three settings: +no: fsync() is never called. The OS will flush data when it is ready. This mode offers the highest performance. +always: fsync() is called after every write to the AOF. This mode is very slow, but also very safe. +everysec: fsync() is called once per second. This mode provides a compromise between safety and performance. + |
+
|
+everysec + |
+
appendonly + |
+Indicates whether to log each modification of the instance. By default, data is written to disks asynchronously in Redis. If this function is disabled, recently-generated data might be lost in the event of a power failure. Options: +yes: enabled +no: disabled + |
+
|
+yes + |
+
client-output-buffer-limit-slave-soft-seconds + |
+Number of seconds that the output buffer remains above client-output-buffer-slave-soft-limit before the client is disconnected. + |
+0–60 + |
+60 + |
+
client-output-buffer-slave-hard-limit + |
+Hard limit (in bytes) on the output buffer of replica clients. Once the output buffer exceeds the hard limit, the client is immediately disconnected. + |
+Depends on the instance type and specifications. + |
+
+ Depends on the instance type and specifications. + |
+
client-output-buffer-slave-soft-limit + |
+Soft limit (in bytes) on the output buffer of replica clients. Once the output buffer exceeds the soft limit and continuously remains above the limit for the time specified by the client-output-buffer-limit-slave-soft-seconds parameter, the client is disconnected. + |
+Depends on the instance type and specifications. + |
+
+ Depends on the instance type and specifications. + |
+
maxmemory-policy + |
+The deletion policy to apply when the maxmemory limit is reached. Options: +volatile-lru: Evict keys by trying to remove the less recently used (LRU) keys first, but only among keys that have an expire set. (Recommended) +allkeys-lru: Evict keys by trying to remove the LRU keys first. +volatile-random: evict keys randomly, but only evict keys with an expire set. +allkeys-random: Evict keys randomly. +volatile-ttl: Evict keys with an expire set, and try to evict keys with a shorter time to live (TTL) first. +noeviction: Do not delete any keys and only return errors when the memory limit was reached. +volatile-lfu: Evict keys by trying to remove the less frequently used (LFU) keys first, but only among keys that have an expire set. +allkeys-lfu: Evict keys by trying to remove the LFU keys first. + |
+Depends on the instance version. + |
+Depends on the instance version and type. + |
+
lua-time-limit + |
+Maximum time allowed for executing a Lua script (in milliseconds). + |
+100–5000 + |
+5,000 + |
+
master-read-only + |
+Sets the instance to be read-only. All write operations will fail. + |
+
|
+no + |
+
maxclients + |
+The maximum number of clients allowed to be concurrently connected to a DCS instance. + |
+Depends on the instance type and specifications. + |
+Depends on the instance type and specifications. + |
+
proto-max-bulk-len + |
+Maximum size of a single element request (in bytes). + |
+1,048,576–536,870,912 + |
+536,870,912 + |
+
repl-backlog-size + |
+The replication backlog size (bytes). The backlog is a buffer that accumulates replica data when replicas are disconnected from the master. When a replica reconnects, a partial synchronization is performed to synchronize the data that was missed while replicas were disconnected. + |
+16,384–1,073,741,824 + |
+1,048,576 + |
+
repl-backlog-ttl + |
+The amount of time, in seconds, before the backlog buffer is released, starting from the last a replica was disconnected. The value 0 indicates that the backlog is never released. + |
+0–604,800 + |
+3,600 + |
+
repl-timeout + |
+Replication timeout (in seconds). + |
+30–3,600 + |
+60 + |
+
hash-max-ziplist-entries + |
+Hashes are encoded using a memory efficient data structure when the number of entries in hashes is less than the value of this parameter. + |
+1–10,000 + |
+512 + |
+
hash-max-ziplist-value + |
+Hashes are encoded using a memory efficient data structure when the biggest entry in hashes does not exceed the length threshold indicated by this parameter. + |
+1–10,000 + |
+64 + |
+
set-max-intset-entries + |
+When a set is composed of just strings that happen to be integers in radix 10 in the range of 64 bit signed integers, sets are encoded using a memory efficient data structure. + |
+1–10,000 + |
+512 + |
+
zset-max-ziplist-entries + |
+Sorted sets are encoded using a memory efficient data structure when the number of entries in sorted sets is less than the value of this parameter. + |
+1–10,000 + |
+128 + |
+
zset-max-ziplist-value + |
+Sorted sets are encoded using a memory efficient data structure when the biggest entry in sorted sets does not exceed the length threshold indicated by this parameter. + |
+1–10,000 + |
+64 + |
+
latency-monitor-threshold + |
+Threshold time in latency monitoring. Unit: millisecond. +Set to 0: Latency monitoring is disabled. +Set to more than 0: All with at least this many milliseconds of latency will be logged. +By running the LATENCY command, you can perform operations related to latency monitoring, such as obtaining statistical data, and configuring and enabling latency monitoring. + |
+0–86,400,000 ms + |
+0 + |
+
notify-keyspace-events + |
+Controls which keyspace events notifications are enabled for. If the value is an empty string, this function is disabled. A combination of different values can be used to enable notifications for multiple event types. Possible values: +K: Keyspace events, published with the __keyspace@__ prefix. +E: Keyevent events, published with __keyevent@__ prefix +g: Generic commands (non-type specific) such as DEL, EXPIRE, and RENAME +$: String commands +l: List commands +s: Set commands +h: Hash commands +z: Sorted set commands +x: Expired events (events generated every time a key expires) +e: Evicted events (events generated when a key is evicted for maxmemory) +A: an alias for "g$lshzxe" +The parameter value must contain either K or E. A cannot be used together with any of the characters in "g$lshzxe". For example, the value Kl means that Redis will notify Pub/Sub clients about keyspace events and list commands. The value AKE means Redis will notify Pub/Sub clients about all events. + |
+See the parameter description. + |
+Ex + |
+
slowlog-log-slower-than + |
+Redis records queries that exceed a specified execution time. +slowlog-log-slower-than is the maximum time allowed, in microseconds, for command execution. If this threshold is exceeded, Redis will record the query. + |
+0–1,000,000 + |
+10,000 + |
+
slowlog-max-len + |
+The maximum allowed number of slow queries that can be logged. Slow query log consumes memory, but you can reclaim this memory by running the SLOWLOG RESET command. + |
+0–1000 + |
+128 + |
+
The following describes how to change the value of the appendonly parameter:
+
Currently, the appendonly and appendfsync parameters can be modified on the console only for master/standby and Redis 4.0/5.0 Redis Cluster instances.
+On the DCS console, after creating a DCS instance, you can modify the maintenance time window of the DCS instance on the instance's Basic Information page.
+At least one DCS instance has been created.
+
in the upper left corner and select a region and a project.
icon next to the Maintenance parameter.
to save the modification or
to discard the modification.The modification will take effect immediately, that is, the new maintenance time window will appear on the Basic Information tab page immediately.
+On the DCS console, after creating a DCS instance, you can modify the security group of the DCS instance on the instance's Basic Information page.
+You can modify the security groups of DCS Redis 3.0 instances but cannot modify those of DCS Redis 4.0 or 5.0 instances.
+At least one DCS instance has been created.
+
in the upper left corner and select a region and a project.
next to the Security Group parameter.
to save the modification or
to discard the modification.
Only the security groups that have been created can be selected from the drop-down list. If you need to create a security group, follow the procedure described Security Group Configurations.
+The modification will take effect immediately, that is, the new maintenance time window will appear on the Basic Information tab page immediately.
+After you initiate certain instance operations such as modifying instance specifications and changing or resetting a password, a background task will start for the operation. On the DCS console, you can view the background task status and clear task information by deleting task records.
+
in the upper left corner and select a region and a project.A list of background tasks is displayed.
+
, specify Start Date and End Date, and click OK to view tasks started in the corresponding time segment.
to refresh the task status.
You can only delete the records of tasks in the Successful or Failed state.
+You can view the data storage statistics of all nodes of a DCS Redis 3.0 Proxy Cluster instance. If data storage is unevenly distributed across nodes, you can scale up the instance or clear data.
+You can only view data storage statistics of DCS Redis 3.0 Proxy Cluster instances. Instances of other types, for example, master/standby, only have one node, and you can view the used memory on the instance details page.
+
A Redis Cluster instance has multiple storage nodes. You can check the data storage statistics of a Redis Cluster instance in its Redis Server monitoring data.
+
in the upper left corner and select a region and a project.The data volume of each node in the cluster instance is displayed.
+When the data storage capacity of a node in a cluster is used up, you can scale up the instance according to Modifying DCS Instance Specifications.
+On the DCS console, you can configure an automatic backup policy. The system then backs up data in your instances according to the backup policy.
+If automatic backup is not required, disable the automatic backup function in the backup policy.
+At least one master/standby DCS instance has been created.
+
in the upper left corner and select a region and a project.
to the right to enable automatic backup. Backup policies will be displayed.+
Parameter + |
+Description + |
+
|---|---|
Backup Schedule + |
+Day of a week on which data in the chosen DCS instance is automatically backed up. +You can select one or multiple days of a week. + |
+
Retention Period (days) + |
+The number of days that automatically backed up data is retained. +Backup data will be permanently deleted at the end of retention period and cannot be restored. Value range: 1–7. + |
+
Start Time + |
+Time at which automatic backup starts. Value: the full hour between 00:00 to 23:00 +The DCS checks backup policies once every hour. If the backup start time in a backup policy has arrived, data in the corresponding instance is backed up. + NOTE:
+Instance backup takes 5 to 30 minutes. The data added or modified during the backup process will not be backed up. To reduce the impact of backup on services, it is recommended that data should be backed up during off-peak periods. +Only instances in the Running state can be backed up. + |
+
You need to manually back up data in DCS instances in a timely manner. This section describes how to manually back up data in master/standby instances using the DCS console.
+By default, manually backed up data is permanently retained. If backup data is no longer in use, you can delete it manually.
+At least one master/standby DCS instance is in the Running state.
+
in the upper left corner and select a region and a project.Only DCS Redis 4.0 and 5.0 instances support backup file format selection.
+
Instance backup takes 10 to 15 minutes. The data added or modified during the backup process will not be backed up.
+On the DCS console, you can restore backup data to a chosen DCS instance.
+
in the upper left corner and select a region and a project.A list of historical backup tasks is then displayed.
+Information in the Description text box cannot exceed 128 bytes.
+
Instance restoration takes 5 to 30 minutes.
+While being restored, DCS instances do not accept data operation requests from clients because existing data is being overwritten by the backup data.
+Due to the limitations of automatic and manual backups (automatically backed up data can be retained for a maximum of 7 days, and manually backed up data takes space in OBS), you should download the backup files and permanently save them on the local host.
+This function is supported only by master/standby and cluster instances, and not by single-node instances.
+The instance has been backed up and the backup is still valid.
+
in the upper left corner and select a region and a project.A list of historical backup tasks is then displayed.
+
If you choose to copy URLs, use quotation marks to quote the URLs when running the wget command in Linux. For example:
+wget 'https://obsEndpoint.com:443/redisdemo.rdb?parm01=value01&parm02=value02'
+This is because the URL contains the special character and (&), which will confuse the wget command. Quoting the URL facilitates URL identification.
+DCS for Redis provides the following migration modes:
+This migration mode can be used for migrating data from other Redis vendors or self-hosted Redis to DCS for Redis.
+The following table describes data migration modes supported by DCS.
+
Data can be migrated only from DCS Redis instances or self-hosted Redis. After data migration, change the instance connection address to the target instance address.
+Data migration is not supported if the DCS instance is created by another service, such as ROMA Connect, or by calling an API.
+Migration Mode + |
+Source + |
+Target: DCS + |
+||
|---|---|---|---|---|
Single-Node and Master/Standby + |
+Proxy Cluster + |
+Redis Cluster + |
+||
Importing backup files + |
+AOF files in OBS + NOTE:
+AOF files exported from Redis 4.0/5.0 instances and other instances with RDB compression enabled cannot be imported. + |
+√ + |
+√ + |
+× + |
+
RDB files in OBS + |
+√ + |
+√ + |
+√ + |
+|
Migrating data online + |
+DCS for Redis: single-node or master/standby + |
+√ + |
+√ + |
+√ + |
+
DCS for Redis: Proxy Cluster + NOTE:
+Proxy Cluster DCS Redis 3.0 instances cannot be used as the source, while Proxy Cluster DCS Redis 4.0 or 5.0 instances can. + |
+√ + |
+√ + |
+√ + |
+|
DCS for Redis: Redis Cluster + |
+√ + |
+√ + |
+√ + |
+|
Self-hosted Redis: single-node or master/standby + |
+√ + |
+√ + |
+√ + |
+|
Self-hosted Redis: proxy-based cluster + |
+√ + |
+√ + |
+√ + |
+|
Self-hosted Redis: Redis Cluster + |
+√ + |
+√ + |
+√ + |
+|
Other Redis: single-node or master/standby + |
+× + |
+× + |
+× + |
+|
Other Redis: proxy-based cluster + |
+× + |
+× + |
+× + |
+|
Other Redis: Redis Cluster + |
+× + |
+× + |
+× + |
+|
Use the DCS console to migrate Redis data from Redis of other vendors or self-hosted Redis to DCS for Redis.
+Simply download the source Redis data and then upload the data to an OBS bucket in the same region as the target DCS Redis instance. After you have created a migration task on the DCS console, DCS will read data from the OBS bucket and data will be migrated to the target instance.
+.aof, .rbb, .zip, and .tar.gz files can be uploaded to OBS buckets. You can directly upload .aof and .rdb files or compress them into .zip or .tar.gz files before uploading.
+You can use a DCS Redis 3.0, 4.0, or 5.0 instance as the target instance.
+The OBS bucket must be in the same region as the target DCS Redis instance.
+The bucket name must meet the naming rules specified on the console.
+If the backup file to be uploaded does not exceed 5 GB, upload the file using the OBS console by referring to step 3.
+If the backup file to be uploaded is larger than 5 GB, perform the following steps to upload the file using OBS Browser+.
+For details, see section "Downloading OBS Browser+" in Object Storage Service (OBS) Tools Guide (OBS Browser+).
+For details, see section "Installing OBS Browser+" in Object Storage Service (OBS) Tools Guide (OBS Browser+).
+For details, see section "Logging In to OBS Browser+" in Object Storage Service (OBS) Tools Guide (OBS Browser+).
+To upload objects, drag files or folders to the Upload Object area or click add file.
+
in the upper left corner and select a region and a project.
You can upload files in the .aof, .rdb, .zip, or .tar.gz format.
+Go back to the data migration task list. After the migration is successful, the task status changes to Successful.
+If the source and target instances are interconnected and the SYNC and PSYNC commands are supported in the source instance, data can be migrated online in full or incrementally from the source to the target.
+
Table 1 lists the requirements on the network between the online migration task, source Redis, and target Redis.
+ +Source Redis Type + |
+Target Redis Type + |
+Network Requirement on Online Migration + |
+
|---|---|---|
Redis in the cloud + |
+Redis in the cloud + |
+When creating an online migration task, ensure that the online migration task is in the same VPC as the source and target Redis. If they are not in the same VPC, enable cross-network access between the migration task and the source and target Redis. To enable cross-network access, create a VPC peering connection by referring to section "VPC Peering Connection" in Creating a VPC. + |
+
Redis in the cloud + |
+Self-hosted Redis + |
+When creating an online migration task, ensure that the migration task and the source Redis are in the same VPC. Then, enable cross-network access between the migration task and the target Redis. +To enable cross-network access, create a VPC peering connection by referring to section "VPC Peering Connection" in Creating a VPC. + |
+
Self-hosted Redis + |
+Redis in the cloud + |
+When creating an online migration task, ensure that the migration task and the target Redis are in the same VPC. Then, enable cross-network access between the migration task and the source Redis. +To enable cross-network access, create a VPC peering connection by referring to section "VPC Peering Connection" in Creating a VPC. + |
+
Self-hosted Redis + |
+Self-hosted Redis + |
+After creating an online migration task, enable cross-network access between the migration task and the source and target Redis, respectively. +To enable cross-network access, create a VPC peering connection by referring to section "VPC Peering Connection" in Creating a VPC. + |
+
in the upper left corner and select a region and a project.Supported migration types are Full and Full + incremental, which are described in Table 2.
+ +Migration Type + |
+Description + |
+
|---|---|
Full + |
+Suitable for scenarios where services can be interrupted. Data is migrated at one time. Source instance data updated during the migration will not be migrated to the target instance. + |
+
Full + incremental + |
+Suitable for scenarios requiring minimal service downtime. The incremental migration parses logs to ensure data consistency between the source and target instances. +Once incremental migration starts, it remains Migrating until you click Stop in the Operation column. After the migration is stopped, data in the source instance will not be lost, but data will not be written to the target instance. When the transmission network is stable, the delay of incremental migration is within seconds. The actual delay depends on the transmission quality of the network link. + |
+
If the instance is password-protected, you can click Test Connection to check whether the instance password meets the requirements.
+
If the source and target Redis instances are connected but are in different regions of DCS, you can only select Self-hosted Redis for Target Redis Type and enter the instance addresses, regardless of whether the target Redis instance is self-hosted or in the cloud.
+Go back to the data migration task list. After the migration is successful, the task status changes to Successful.
+
If the migration type is full+incremental, the migration task status will remain Migrating until you click Stop.
+On the DCS console, you can change the password required for accessing your DCS instance.
+
At least one DCS instance has been created.
+
in the upper left corner and select a region and a project.
After 5 consecutive incorrect password attempts, the account for accessing the chosen DCS instance will be locked for 5 minutes. Passwords cannot be changed during the lockout period.
+The password must meet the following requirements:
+You can view DCS instance metrics on the Performance Monitoring page.
+
in the upper left corner and select a region and a project.
You can also click View Metric in the Operation column on the Cache Manager page. You will be redirected to the Cloud Eye console. The metrics displayed on the Cloud Eye console are the same as those displayed on the Performance Monitoring page of the DCS console.
+After CTS is enabled, the tracker starts recording operations on cloud resources. Operation records for the last seven days can be viewed on the CTS console. This section describes how to query operation records of the last seven days on the CTS console.
+
in the upper left corner of the management console and select a region and a project.
Select the same region as your application service.
+Select an option from the drop-down list. Select DCS from the Trace Source drop-down list.
+When you select Trace name, you also need to select a specific trace name.
+When you select Resource ID, you also need to select a specific resource ID.
+When you select Resource name, you also need to select a specific resource name.
+
on the left of a trace to expand its details, as shown in Figure 1.
+You can create one or more DCS Redis instances with the required computing capabilities and storage space based on service requirements.
+
The system automatically schedules the task every 3 minutes for checking whether resources are available or sold out.
+
in the upper left corner of the management console and select a region and a project.Select Redis.
+Currently, 3.0, 4.0, and 5.0 versions are supported.
+
This parameter is displayed only when you select Redis 4.0 or Redis 5.0 and the instance type is master/standby or Redis Cluster.
+If the instance type is master/standby, Proxy Cluster, or Redis Cluster, Standby AZ is displayed. Select a standby AZ for the standby node of the instance.
+
The remaining quota is displayed on the console.
+To apply to increase quota, click Increase quota below the specifications.
+You can choose to obtain an automatically assigned IP address or manually specify an IP address that is available in the selected subnet.
+For a DCS Redis 4.0 or 5.0 instance, you can specify a port numbering in the range from 1 to 65535. If no port is specified, the default port 6379 will be used. For a DCS Redis 3.0 instance, the port cannot be customized. Port 6379 will be used.
+A security group is a set of rules that control access to ECSs. It provides access policies for mutually trusted ECSs with the same security protection requirements in the same VPC.
+This parameter is displayed only for DCS Redis 3.0 instances. DCS Redis 4.0 and 5.0 instances are based on VPC endpoints and do not support security groups. To control access to a DCS Redis 4.0 or 5.0 instance, configure a whitelist after instance creation. For details, see Managing IP Address Whitelist.
+
For security purposes, you must enter an instance-specific password when you are accessing the DCS Redis instance. Keep your instance password secure and change it periodically.
+The password must meet the following requirements:
+The value of Name can contain 4 to 64 characters.
+This parameter is displayed only when the instance type is master/standby or cluster. You can enable and schedule automated backup now or after the instance is created. For more information on how to configure a backup policy, see Backing Up and Restoring DCS Instances.
+Command Renaming is displayed for Redis 4.0 and 5.0. Currently, you can only rename the COMMAND, KEYS, FLUSHDB, FLUSHALL, and HGETALL commands.
+Choose a window for DCS O&M personnel to perform maintenance on your instance. You will be contacted before any maintenance activities are performed.
+The displayed page shows the instance information you have specified.
+
DCS Redis 4.0 and 5.0 instances are containerized and can be created within seconds.
+
Access a DCS Redis instance through redis-cli on an ECS in the same VPC. For more information on how to use other Redis clients, visit https://redis.io/clients.
+
For details, see Viewing Details of a DCS Instance.
+The following steps assume that your client is installed on the Linux OS.
+wget http://download.redis.io/releases/redis-5.0.8.tar.gz
+make
+cd src
+Perform the following procedure to access a DCS Redis 3.0 instance, or a single-node or master/standby DCS Redis 4.0 or 5.0 instance.
+./redis-cli -h ${instance IP} -p 6379 -a ${password}
+
Perform the following procedure to access a DCS Redis 4.0 or 5.0 instance in Redis Cluster type.
+./redis-cli -h {dcs_instance_address} -p 6379 -a {password} -c
+{dcs_instance_address} indicates the IP address of the DCS Redis instance, 6379 is the port used for accessing the instance, {password} is the password of the instance, and -c is used for accessing Redis Cluster nodes. The IP address and port number are obtained in 1.
+root@ecs-redis:~/redis-5.0.8/src# ./redis-cli -h 192.168.0.85 -p 6379 -a ****** -c +192.168.0.85:6379>+
Each shard in a Redis Cluster has a master and a replica by default. The proceeding command provides all the information of cluster nodes.
+192.168.0.85:6379> cluster nodes +0988ae8fd3686074c9afdcce73d7878c81a33ddc 192.168.0.231:6379@16379 slave f0141816260ca5029c56333095f015c7a058f113 0 1568084030 +000 3 connected +1a32d809c0b743bd83b5e1c277d5d201d0140b75 192.168.0.85:6379@16379 myself,master - 0 1568084030000 2 connected 5461-10922 +c8ad7af9a12cce3c8e416fb67bd6ec9207f0082d 192.168.0.130:6379@16379 slave 1a32d809c0b743bd83b5e1c277d5d201d0140b75 0 1568084031 +000 2 connected +7ca218299c254b5da939f8e60a940ac8171adc27 192.168.0.22:6379@16379 master - 0 1568084030000 1 connected 0-5460 +f0141816260ca5029c56333095f015c7a058f113 192.168.0.170:6379@16379 master - 0 1568084031992 3 connected 10923-16383 +19b1a400815396c6223963b013ec934a657bdc52 192.168.0.161:6379@16379 slave 7ca218299c254b5da939f8e60a940ac8171adc27 0 1568084031 +000 1 connected+ +
Write operations can only be performed on master nodes. The CRC16 of the key modulo 16384 is taken to compute what is the hash slot of a given key.
+As shown in the following, the value of CRC16 (KEY) mode 16384 determines the hash slot that a given key is located at and redirects the client to the node where the hash slot is located at.
+192.168.0.170:6379> set hello world +-> Redirected to slot [866] located at 192.168.0.22:6379 +OK +192.168.0.22:6379> set happy day +OK +192.168.0.22:6379> set abc 123 +-> Redirected to slot [7638] located at 192.168.0.85:6379 +OK +192.168.0.85:6379> get hello +-> Redirected to slot [866] located at 192.168.0.22:6379 +"world" +192.168.0.22:6379> get abc +-> Redirected to slot [7638] located at 192.168.0.85:6379 +"123" +192.168.0.85:6379>+
Download the compilation package of the Redis client for Windows. (This is not the source code package.) Decompress the package in any directory, open the CLI tool cmd.exe, and go to the directory. Then, run the following command to access the DCS Redis instance:
+redis-cli.exe -h XXX -p 6379
+XXX indicates the IP address of the DCS instance and 6379 is an example port number used for accessing a DCS instance. For details about how to obtain the IP address and port number, see Viewing Details of a DCS Instance. Change the IP address and port as required.
+On the DCS console, you can scale a DCS Redis instance to a larger or smaller capacity.
+
Cache Engine + |
+Single-Node + |
+Master/Standby + |
+Redis Cluster + |
+Proxy Cluster + |
+
|---|---|---|---|---|
Redis 3.0 + |
+Scaling up/down + |
+Scaling up/down + |
+N/A + |
+Scaling up + |
+
Redis 4.0 + |
+Scaling up/down + |
+Scaling up/down + |
+Scaling up + |
+N/A + |
+
Redis 5.0 + |
+Scaling up/down + |
+Scaling up/down + |
+Scaling up + |
+N/A + |
+
If the reserved memory of a DCS Redis 3.0 instance is insufficient, the scaling may fail when the memory is used up.
+
in the upper left corner and select a region and a project.On the displayed Background Tasks page, view the modification status. For more information, see Viewing Background Tasks.
+
On the DCS console, you can restart one or multiple DCS instances at a time.
+
The DCS instances you want to restart are in the Running or Faulty state.
+
in the upper left corner and select a region and a project.It takes 1 to 30 minutes to restart DCS instances. After DCS instances are restarted, their status changes to Running.
+
On the DCS console, you can delete one or multiple DCS instances at a time. You can also delete all instance creation tasks that have failed to run.
+
Deleting DCS Instances
+
in the upper left corner and select a region and a project.DCS instances in the Creating, Restarting, Upgrading, Resizing, Clearing data, Backing up, or Restoring state cannot be deleted.
+It takes 1 to 30 minutes to delete DCS instances.
+
To delete a single instance, choose Operation > More > Delete in the same row as the instance.
+Deleting Instance Creation Tasks That Have Failed to Run
+
in the upper left corner and select a region and a project.The Instance Creation Failures dialog box is displayed.
+With CTS, you can query, audit, and review operations performed on cloud resources. Traces include the operation requests sent using the management console or open APIs as well as the results of these requests.
+The following lists the DCS operations that can be recorded by CTS.
+ +Operation + |
+Resource Type + |
+Trace Name + |
+
|---|---|---|
Creating an instance + |
+DCS + |
+createDCSInstance + |
+
Submitting an instance creation request + |
+DCS + |
+submitCreateDCSInstanceRequest + |
+
Deleting multiple instances + |
+DCS + |
+batchDeleteDCSInstance + |
+
Deleting an instance + |
+DCS + |
+deleteDCSInstance + |
+
Modifying instance information + |
+DCS + |
+modifyDCSInstanceInfo + |
+
Modifying instance configurations + |
+DCS + |
+modifyDCSInstanceConfig + |
+
Changing instance password + |
+DCS + |
+modifyDCSInstancePassword + |
+
Restarting an instance + |
+DCS + |
+restartDCSInstance + |
+
Submitting an instance restarting request + |
+DCS + |
+submitRestartDCSInstanceRequest + |
+
Starting an instance + |
+DCS + |
+startDCSInstance + |
+
Submitting an instance starting request + |
+DCS + |
+submitStartDCSInstanceRequest + |
+
Clearing instance data + |
+DCS + |
+flushDCSInstance + |
+
Restarting instances in batches + |
+DCS + |
+batchRestartDCSInstance + |
+
Submitting a request to restart instances in batches + |
+DCS + |
+submitBatchRestartDCSInstanceRequest + |
+
Starting multiple instances + |
+DCS + |
+batchStartDCSInstance + |
+
Submitting a request to start instances in batches + |
+DCS + |
+submitBatchStartDCSInstanceRequest + |
+
Restoring instance data + |
+DCS + |
+restoreDCSInstance + |
+
Submitting a request to restore instance data + |
+DCS + |
+submitRestoreDCSInstanceRequest + |
+
Backing up instance data + |
+DCS + |
+backupDCSInstance + |
+
Submitting a request to back up instance data + |
+DCS + |
+submitBackupDCSInstanceRequest + |
+
Deleting instance backup files + |
+DCS + |
+deleteInstanceBackupFile + |
+
Deleting background tasks + |
+DCS + |
+deleteDCSInstanceJobRecord + |
+
Modifying instance specifications + |
+DCS + |
+modifySpecification + |
+
Submitting a request to modify instance specifications + |
+DCS + |
+submitModifySpecificationRequest + |
+
Creating an instance subscription order + |
+DCS + |
+createInstanceOrder + |
+
Switching between master and standby nodes + |
+DCS + |
+masterStandbySwitchover + |
+
Resetting instance password + |
+DCS + |
+resetDCSInstancePassword + |
+
Submitting a request to clear instance data + |
+DCS + |
+submitFlushDCSInstanceRequest + |
+
This section describes DCS metrics reported to Cloud Eye as well as their namespaces and dimensions. You can use the Cloud Eye console or call APIs to query the DCS metrics and alarms.
+Different types of instances are monitored on different dimensions.
+Single-node instances are monitored on the instance dimension. The monitoring is conducted on the Redis Server.
+Master/Standby instances are monitored on the instance and Redis Server dimensions. Instance monitoring covers the master node, while Redis Server monitoring covers the master and standby nodes.
+Proxy Cluster instances are monitored on the instance, Redis Server, and proxy dimensions. Instance monitoring covers the aggregated master node data, Redis Server monitoring covers each shard in the cluster, and proxy monitoring covers each proxy in the cluster.
+Redis Cluster instances are monitored on the instance and Redis Server dimensions. Instance monitoring covers the aggregated master node data and Redis Server monitoring covers each shard in the cluster.
+SYS.DCS
+
The Monitored Objects and Dimensions column lists instances and dimensions that support the corresponding metrics.
+Metric ID + |
+Metric + |
+Description + |
+Value Range + |
+Monitored Object and Dimension + |
+Monitoring Period (Raw Data) + |
+
|---|---|---|---|---|---|
cpu_usage + |
+CPU Usage + |
+The monitored object's maximum CPU usage among multiple sampling values in a monitoring period +Unit: % + |
+0–100% + |
+Monitored object: +Single-node, master/standby, or cluster DCS Redis instance +Dimension: +dcs_instance_id + |
+1 minute + |
+
memory_usage + |
+Memory Usage + |
+Memory consumed by the monitored object +Unit: % + |
+0–100% + |
+Monitored object: +Single-node, master/standby, or cluster DCS Redis instance +Dimension: +dcs_instance_id + |
+1 minute + |
+
net_in_throughput + |
+Network Input Throughput + |
+Inbound throughput per second on a port +Unit: byte/s + |
+≥ 0 + |
+Monitored object: +Single-node, master/standby, or cluster DCS Redis instance +Dimension: +dcs_instance_id + |
+1 minute + |
+
net_out_throughput + |
+Network Output Throughput + |
+Outbound throughput per second on a port +Unit: byte/s + |
+≥ 0 + |
+Monitored object: +Single-node, master/standby, or cluster DCS Redis instance +Dimension: +dcs_instance_id + |
+1 minute + |
+
node_status + |
+Instance Node Status + |
+Status of instance nodes. If the status is normal, the value is 0. If the status is abnormal, the value is 1. + |
+- + |
+Monitored object: +Single-node, master/standby, or cluster DCS Redis instance +Dimension: +dcs_instance_id + |
+1 minute + |
+
connected_clients + |
+Connected Clients + |
+Number of connected clients (excluding those from slave nodes) + |
+≥ 0 + |
+Monitored object: +Single-node, master/standby, or cluster DCS Redis instance +Dimension: +dcs_instance_id + |
+1 minute + |
+
client_longest_out_list + |
+Client Longest Output List + |
+Longest output list among current client connections + |
+≥ 0 + |
+Monitored object: +Single-node, master/standby, or cluster DCS Redis instance +Dimension: +dcs_instance_id + |
+1 minute + |
+
client_biggest_in_buf + |
+Client Biggest Input Buf + |
+Maximum input data length among current client connections +Unit: byte + |
+≥ 0 + |
+Monitored object: +Single-node, master/standby, or cluster DCS Redis instance +Dimension: +dcs_instance_id + |
+1 minute + |
+
blocked_clients + |
+Blocked Clients + |
+Number of clients suspended by block operations such as BLPOP, BRPOP, and BRPOPLPUSH + |
+≥ 0 + |
+Monitored object: +Single-node, master/standby, or cluster DCS Redis instance +Dimension: +dcs_instance_id + |
+1 minute + |
+
used_memory + |
+Used Memory + |
+Number of bytes used by the Redis server +Unit: byte + |
+≥ 0 + |
+Monitored object: +Single-node, master/standby, or cluster DCS Redis instance +Dimension: +dcs_instance_id + |
+1 minute + |
+
used_memory_rss + |
+Used Memory RSS + |
+Resident set size (RSS) memory that the Redis server has used, which is the memory that actually resides in the memory, including all stack and heap memory but not swapped-out memory +Unit: byte + |
+≥ 0 + |
+Monitored object: +Single-node, master/standby, or cluster DCS Redis instance +Dimension: +dcs_instance_id + |
+1 minute + |
+
used_memory_peak + |
+Used Memory Peak + |
+Peak memory consumed by Redis since the Redis server last started +Unit: byte + |
+≥ 0 + |
+Monitored object: +Single-node, master/standby, or cluster DCS Redis instance +Dimension: +dcs_instance_id + |
+1 minute + |
+
used_memory_lua + |
+Used Memory Lua + |
+Number of bytes used by the Lua engine +Unit: byte + |
+≥ 0 + |
+Monitored object: +Single-node, master/standby, or cluster DCS Redis instance +Dimension: +dcs_instance_id + |
+1 minute + |
+
memory_frag_ratio + |
+Memory Fragmentation Ratio + |
+Current memory fragmentation, which is the ratio between used_memory_rss/used_memory. + |
+≥ 0 + |
+Monitored object: +Single-node, master/standby, or cluster DCS Redis instance +Dimension: +dcs_instance_id + |
+1 minute + |
+
total_connections_received + |
+New Connections + |
+Number of connections received during the monitoring period + |
+≥ 0 + |
+Monitored object: +Single-node, master/standby, or cluster DCS Redis instance +Dimension: +dcs_instance_id + |
+1 minute + |
+
total_commands_processed + |
+Commands Processed + |
+Number of commands processed during the monitoring period + |
+≥ 0 + |
+Monitored object: +Single-node, master/standby, or cluster DCS Redis instance +Dimension: +dcs_instance_id + |
+1 minute + |
+
instantaneous_ops + |
+Ops per Second + |
+Number of commands processed per second + |
+≥ 0 + |
+Monitored object: +Single-node, master/standby, or cluster DCS Redis instance +Dimension: +dcs_instance_id + |
+1 minute + |
+
total_net_input_bytes + |
+Network Input Bytes + |
+Number of bytes received during the monitoring period +Unit: byte + |
+≥ 0 + |
+Monitored object: +Single-node, master/standby, or cluster DCS Redis instance +Dimension: +dcs_instance_id + |
+1 minute + |
+
total_net_output_bytes + |
+Network Output Bytes + |
+Number of bytes sent during the monitoring period +Unit: byte + |
+≥ 0 + |
+Monitored object: +Single-node, master/standby, or cluster DCS Redis instance +Dimension: +dcs_instance_id + |
+1 minute + |
+
instantaneous_input_kbps + |
+Input Flow + |
+Instantaneous input traffic +Unit: kbit/s + |
+≥ 0 kbits/s + |
+Monitored object: +Single-node, master/standby, or cluster DCS Redis instance +Dimension: +dcs_instance_id + |
+1 minute + |
+
instantaneous_output_kbps + |
+Output Flow + |
+Instantaneous output traffic +Unit: kbit/s + |
+≥ 0 kbits/s + |
+Monitored object: +Single-node, master/standby, or cluster DCS Redis instance +Dimension: +dcs_instance_id + |
+1 minute + |
+
rejected_connections + |
+Rejected Connections + |
+Number of connections that have exceeded maxclients and been rejected during the monitoring period + |
+≥ 0 + |
+Monitored object: +Single-node, master/standby, or cluster DCS Redis instance +Dimension: +dcs_instance_id + |
+1 minute + |
+
expired_keys + |
+Expired Keys + |
+Number of keys that have expired and been deleted during the monitoring period + |
+≥ 0 + |
+Monitored object: +Single-node, master/standby, or cluster DCS Redis instance +Dimension: +dcs_instance_id + |
+1 minute + |
+
evicted_keys + |
+Evicted Keys + |
+Number of keys that have been evicted and deleted during the monitoring period + |
+≥ 0 + |
+Monitored object: +Single-node, master/standby, or cluster DCS Redis instance +Dimension: +dcs_instance_id + |
+1 minute + |
+
keyspace_hits + |
+Keyspace Hits + |
+Number of successful lookups of keys in the main dictionary during the monitoring period + |
+≥ 0 + |
+Monitored object: +Single-node, master/standby, or cluster DCS Redis instance +Dimension: +dcs_instance_id + |
+1 minute + |
+
keyspace_misses + |
+Keyspace Misses + |
+Number of failed lookups of keys in the main dictionary during the monitoring period + |
+≥ 0 + |
+Monitored object: +Single-node, master/standby, or cluster DCS Redis instance +Dimension: +dcs_instance_id + |
+1 minute + |
+
pubsub_channels + |
+PubSub Channels + |
+Number of Pub/Sub channels + |
+≥ 0 + |
+Monitored object: +Single-node, master/standby, or cluster DCS Redis instance +Dimension: +dcs_instance_id + |
+1 minute + |
+
pubsub_patterns + |
+PubSub Patterns + |
+Number of Pub/Sub patterns + |
+≥ 0 + |
+Monitored object: +Single-node, master/standby, or cluster DCS Redis instance +Dimension: +dcs_instance_id + |
+1 minute + |
+
keyspace_hits_perc + |
+Hit Rate + |
+Ratio of the number of Redis cache hits to the number of lookups. Calculation: keyspace_hits/(keyspace_hits + keyspace_misses) +Unit: % + |
+0–100% + |
+Monitored object: +Single-node, master/standby, or cluster DCS Redis instance +Dimension: +dcs_instance_id + |
+1 minute + |
+
command_max_delay + |
+Maximum Command Latency + |
+Maximum latency of commands +Unit: ms + |
+≥ 0 ms + |
+Monitored object: +Single-node, master/standby, or cluster DCS Redis instance +Dimension: +dcs_instance_id + |
+1 minute + |
+
auth_errors + |
+Authentication Failures + |
+Number of failed authentications + |
+≥ 0 + |
+Monitored object: +Single-node or master/standby DCS Redis instance +Dimension: +dcs_instance_id + |
+1 minute + |
+
is_slow_log_exist + |
+Slow Query Logs + |
+Existence of slow query logs in the instance + |
+
|
+Monitored object: +Single-node or master/standby DCS Redis instance +Dimension: +dcs_instance_id + |
+1 minute + |
+
keys + |
+Keys + |
+Number of keys in Redis + |
+≥ 0 + |
+Monitored object: +Single-node or master/standby DCS Redis instance +Dimension: +dcs_instance_id + |
+1 minute + |
+
The Monitored Objects and Dimensions column lists instances and dimensions that support the corresponding metrics.
+Metric ID + |
+Metric + |
+Description + |
+Value Range + |
+Monitored Object and Dimension + |
+Monitoring Period (Raw Data) + |
+
|---|---|---|---|---|---|
cpu_usage + |
+CPU Usage + |
+The monitored object's maximum CPU usage among multiple sampling values in a monitoring period +Unit: % + |
+0–100% + |
+Monitored object: +Single-node or master/standby DCS Redis instance +Dimension: +dcs_instance_id + |
+1 minute + |
+
command_max_delay + |
+Maximum Command Latency + |
+Maximum latency of commands +Unit: ms + |
+≥ 0 ms + |
+Monitored object: +Single-node, master/standby, or cluster DCS Redis instance +Dimension: +dcs_instance_id + |
+1 minute + |
+
total_connections_received + |
+New Connections + |
+Number of connections received during the monitoring period + |
+≥ 0 + |
+Monitored object: +Single-node, master/standby, or cluster DCS Redis instance +Dimension: +dcs_instance_id + |
+1 minute + |
+
is_slow_log_exist + |
+Slow Query Logs + |
+Existence of slow query logs in the instance + |
+
|
+Monitored object: +Single-node, master/standby, or cluster DCS Redis instance +Dimension: +dcs_instance_id + |
+1 minute + |
+
memory_usage + |
+Memory Usage + |
+Memory consumed by the monitored object +Unit: % + |
+0–100% + |
+Monitored object: +Single-node, master/standby, or cluster DCS Redis instance +Dimension: +dcs_instance_id + |
+1 minute + |
+
expires + |
+Keys With an Expiration + |
+Number of keys with an expiration in Redis + |
+≥ 0 + |
+Monitored object: +Single-node, master/standby, or cluster DCS Redis instance +Dimension: +dcs_instance_id + |
+1 minute + |
+
keyspace_hits_perc + |
+Hit Rate + |
+Ratio of the number of Redis cache hits to the number of lookups. Calculation: keyspace_hits/(keyspace_hits + keyspace_misses) +Unit: % + |
+0–100% + |
+Monitored object: +Single-node, master/standby, or cluster DCS Redis instance +Dimension: +dcs_instance_id + |
+1 minute + |
+
used_memory + |
+Used Memory + |
+Number of bytes used by the Redis server +Unit: byte + |
+≥ 0 + |
+Monitored object: +Single-node, master/standby, or cluster DCS Redis instance +Dimension: +dcs_instance_id + |
+1 minute + |
+
used_memory_dataset + |
+Used Memory Dataset + |
+Dataset memory that the Redis server has used +Unit: byte + |
+≥ 0 + |
+Monitored object: +Single-node, master/standby, or cluster DCS Redis instance +Dimension: +dcs_instance_id + |
+1 minute + |
+
used_memory_dataset_perc + |
+Used Memory Dataset Ratio + |
+Percentage of dataset memory that the Redis server has used +Unit: % + |
+0–100% + |
+Monitored object: +Single-node, master/standby, or cluster DCS Redis instance +Dimension: +dcs_instance_id + |
+1 minute + |
+
used_memory_rss + |
+Used Memory RSS + |
+Resident set size (RSS) memory that the Redis server has used, which is the memory that actually resides in the memory, including all stack and heap memory but not swapped-out memory +Unit: byte + |
+≥ 0 + |
+Monitored object: +Single-node, master/standby, or cluster DCS Redis instance +Dimension: +dcs_instance_id + |
+1 minute + |
+
instantaneous_ops + |
+Ops per Second + |
+Number of commands processed per second + |
+≥ 0 + |
+Monitored object: +Single-node, master/standby, or cluster DCS Redis instance +Dimension: +dcs_instance_id + |
+1 minute + |
+
keyspace_misses + |
+Keyspace Misses + |
+Number of failed lookups of keys in the main dictionary during the monitoring period + |
+≥ 0 + |
+Monitored object: +Single-node, master/standby, or cluster DCS Redis instance +Dimension: +dcs_instance_id + |
+1 minute + |
+
keys + |
+Keys + |
+Number of keys in Redis + |
+≥ 0 + |
+Monitored object: +Single-node, master/standby, or cluster DCS Redis instance +Dimension: +dcs_instance_id + |
+1 minute + |
+
rx_controlled + |
+Flow Control Times + |
+Number of flow control times during the monitoring period +Unit: count/s + |
+≥ 0 + |
+Monitored object: +Single-node, master/standby, or cluster DCS Redis instance +Dimension: +dcs_instance_id + |
+1 minute + |
+
bandwidth_usage + |
+Bandwidth Usage + |
+Percentage of the maximum bandwidth limit used (the average value of the sum of input and output flows) +Unit: % + |
+≥ 0 + |
+Monitored object: +Single-node, master/standby, or cluster DCS Redis instance +Dimension: +dcs_instance_id + |
+1 minute + |
+
connections_usage + |
+Connection Usage + |
+Percentage of the current number of connections to the maximum allowed number of connections +Unit: % + |
+≥ 0 + |
+Monitored object: +Single-node, master/standby, or cluster DCS Redis instance +Dimension: +dcs_instance_id + |
+1 minute + |
+
Instance Node Status + |
+Instance Node Status + |
+Status of instance nodes. If the status is normal, the value is 0. If the status is abnormal, the value is 1. + |
+- + |
+Monitored object: +Single-node, master/standby, or cluster DCS Redis instance +Dimension: +dcs_instance_id + |
+1 minute + |
+
command_max_rt + |
+Maximum Latency + |
+Maximum delay from when the node receives commands to when it responds +Unit: μs + |
+≥ 0 + |
+Monitored object: +Single-node, master/standby, or cluster DCS Redis instance +Dimension: +dcs_instance_id + |
+1 minute + |
+
command_avg_rt + |
+Average Latency + |
+Average delay from when the node receives commands to when it responds +Unit: μs + |
+≥ 0 + |
+Monitored object: +Single-node, master/standby, or cluster DCS Redis instance +Dimension: +dcs_instance_id + |
+1 minute + |
+
cpu_avg_usage + |
+Average CPU Usage + |
+Current average usage of CPU resources +Unit: % + |
+≥ 0 + |
+Monitored object: +Single-node, master/standby, or cluster DCS Redis instance +Dimension: +dcs_instance_id + |
+1 minute + |
+
blocked_clients + |
+Blocked Clients + |
+Number of clients suspended by block operations + |
+≥ 0 + |
+Monitored object: +Single-node, master/standby, or cluster DCS Redis instance +Dimension: +dcs_instance_id + |
+1 minute + |
+
connected_clients + |
+Connected Clients + |
+Number of connected clients (excluding those from slave nodes) + |
+≥ 0 + |
+Monitored object: +Single-node, master/standby, or cluster DCS Redis instance +Dimension: +dcs_instance_id + |
+1 minute + |
+
del + |
+DEL + |
+Number of DEL commands processed per second +Unit: count/s + |
+0–500,000 + |
+Monitored object: +Single-node, master/standby, or cluster DCS Redis instance +Dimension: +dcs_instance_id + |
+1 minute + |
+
evicted_keys + |
+Evicted Keys + |
+Number of keys that have been evicted and deleted during the monitoring period + |
+≥ 0 + |
+Monitored object: +Single-node, master/standby, or cluster DCS Redis instance +Dimension: +dcs_instance_id + |
+1 minute + |
+
expire + |
+EXPIRE + |
+Number of EXPIRE commands processed per second +Unit: count/s + |
+0–500,000 + |
+Monitored object: +Single-node, master/standby, or cluster DCS Redis instance +Dimension: +dcs_instance_id + |
+1 minute + |
+
expired_keys + |
+Expired Keys + |
+Number of keys that have expired and been deleted during the monitoring period + |
+≥ 0 + |
+Monitored object: +Single-node, master/standby, or cluster DCS Redis instance +Dimension: +dcs_instance_id + |
+1 minute + |
+
get + |
+GET + |
+Number of GET commands processed per second +Unit: count/s + |
+0–500,000 + |
+Monitored object: +Single-node, master/standby, or cluster DCS Redis instance +Dimension: +dcs_instance_id + |
+1 minute + |
+
hdel + |
+HDEL + |
+Number of HDEL commands processed per second +Unit: count/s + |
+0–500,000 + |
+Monitored object: +Single-node, master/standby, or cluster DCS Redis instance +Dimension: +dcs_instance_id + |
+1 minute + |
+
hget + |
+HGET + |
+Number of HGET commands processed per second +Unit: count/s + |
+0–500,000 + |
+Monitored object: +Single-node, master/standby, or cluster DCS Redis instance +Dimension: +dcs_instance_id + |
+1 minute + |
+
hmget + |
+HMGET + |
+Number of HMGET commands processed per second +Unit: count/s + |
+0–500,000 + |
+Monitored object: +Single-node, master/standby, or cluster DCS Redis instance +Dimension: +dcs_instance_id + |
+1 minute + |
+
hmset + |
+HMSET + |
+Number of HMSET commands processed per second +Unit: count/s + |
+0–500,000 + |
+Monitored object: +Single-node, master/standby, or cluster DCS Redis instance +Dimension: +dcs_instance_id + |
+1 minute + |
+
hset + |
+HSET + |
+Number of HSET commands processed per second +Unit: count/s + |
+0–500,000 + |
+Monitored object: +Single-node, master/standby, or cluster DCS Redis instance +Dimension: +dcs_instance_id + |
+1 minute + |
+
instantaneous_input_kbps + |
+Input Flow + |
+Instantaneous input traffic +Unit: KB/s + |
+≥ 0 KB/s + |
+Monitored object: +Single-node, master/standby, or cluster DCS Redis instance +Dimension: +dcs_instance_id + |
+1 minute + |
+
instantaneous_output_kbps + |
+Output Flow + |
+Instantaneous output traffic +Unit: KB/s + |
+≥ 0 KB/s + |
+Monitored object: +Single-node, master/standby, or cluster DCS Redis instance +Dimension: +dcs_instance_id + |
+1 minute + |
+
memory_frag_ratio + |
+Memory Fragmentation Ratio + |
+Ratio between Used Memory RSS and Used Memory + |
+≥ 0 + |
+Monitored object: +Single-node, master/standby, or cluster DCS Redis instance +Dimension: +dcs_instance_id + |
+1 minute + |
+
mget + |
+MGET + |
+Number of MGET commands processed per second +Unit: count/s + |
+0–500,000 + |
+Monitored object: +Single-node, master/standby, or cluster DCS Redis instance +Dimension: +dcs_instance_id + |
+1 minute + |
+
mset + |
+MSET + |
+Number of MSET commands processed per second +Unit: count/s + |
+0–500,000 + |
+Monitored object: +Single-node, master/standby, or cluster DCS Redis instance +Dimension: +dcs_instance_id + |
+1 minute + |
+
pubsub_channels + |
+PubSub Channels + |
+Number of Pub/Sub channels + |
+≥ 0 + |
+Monitored object: +Single-node, master/standby, or cluster DCS Redis instance +Dimension: +dcs_instance_id + |
+1 minute + |
+
pubsub_patterns + |
+PubSub Patterns + |
+Number of Pub/Sub patterns + |
+≥ 0 + |
+Monitored object: +Single-node, master/standby, or cluster DCS Redis instance +Dimension: +dcs_instance_id + |
+1 minute + |
+
set + |
+SET + |
+Number of SET commands processed per second +Unit: count/s + |
+0–500,000 + |
+Monitored object: +Single-node, master/standby, or cluster DCS Redis instance +Dimension: +dcs_instance_id + |
+1 minute + |
+
used_memory_lua + |
+Used Memory Lua + |
+Number of bytes used by the Lua engine +Unit: byte + |
+≥ 0 + |
+Monitored object: +Single-node, master/standby, or cluster DCS Redis instance +Dimension: +dcs_instance_id + |
+1 minute + |
+
used_memory_peak + |
+Used Memory Peak + |
+Peak memory consumed by Redis since the Redis server last started +Unit: byte + |
+≥ 0 + |
+Monitored object: +Single-node, master/standby, or cluster DCS Redis instance +Dimension: +dcs_instance_id + |
+1 minute + |
+
sadd + |
+Sadd + |
+Number of SADD commands processed per second +Unit: count/s + |
+0–500,000 + |
+Monitored object: +Single-node, master/standby, or cluster DCS Redis instance +Dimension: +dcs_instance_id + |
+1 minute + |
+
smembers + |
+Smembers + |
+Number of SMEMBERS commands processed per second +Unit: count/s + |
+0–500,000 + |
+Monitored object: +Single-node, master/standby, or cluster DCS Redis instance +Dimension: +dcs_instance_id + |
+1 minute + |
+
rx_controlled + |
+Flow Control Times + |
+Number of flow control times during the monitoring period +Unit: count + |
+≥ 0 + |
+Monitored object: +Redis Cluster instance +Dimension: +dcs_instance_id + |
+1 minute + |
+
bandwidth_usage + |
+Bandwidth Usage + |
+Percentage of the used bandwidth to the maximum bandwidth limit + |
+0–200% + |
+Monitored object: +Redis Cluster instance +Dimension: +dcs_instance_id + |
+1 minute + |
+
keyspace_misses + |
+Keyspace Misses + |
+Number of failed lookups of keys in the main dictionary during the monitoring period + |
+≥ 0 + |
+Monitored object: +Single-node, master/standby, or cluster DCS Redis instance +Dimension: +dcs_instance_id + |
+1 minute + |
+
used_memory_dataset + |
+Used Memory Dataset + |
+Dataset memory that the Redis server has used + |
+≥ 0 + |
+Monitored object: +Single-node, master/standby, or cluster DCS Redis instance +Dimension: +dcs_instance_id + |
+1 minute + |
+
used_memory_dataset_perc + |
+Used Memory Dataset Ratio + |
+Percentage of dataset memory that server has used + |
+0–100% + |
+Monitored object: +Single-node, master/standby, or cluster DCS Redis instance +Dimension: +dcs_instance_id + |
+1 minute + |
+
Metric ID + |
+Metric + |
+Description + |
+Value Range + |
+Monitored Object and Dimension + |
+Monitoring Period (Raw Data) + |
+
|---|---|---|---|---|---|
cpu_usage + |
+CPU Usage + |
+The monitored object's maximum CPU usage among multiple sampling values in a monitoring period +Unit: % + |
+0–100% + |
+Monitored object: +Redis Server of a cluster DCS Redis 3.0, 4.0, or 5.0 instance +Dimension: +dcs_instance_id +dcs_cluster_redis_node + |
+1 minute + |
+
memory_usage + |
+Memory Usage + |
+Memory consumed by the monitored object +Unit: % + |
+0–100% + |
+Monitored object: +Redis Server of a cluster DCS Redis 3.0, 4.0, or 5.0 instance +Dimension: +dcs_cluster_redis_node + |
+1 minute + |
+
connected_clients + |
+Connected Clients + |
+Number of connected clients (excluding those from slave nodes) + |
+≥ 0 + |
+Monitored object: +Redis Server of a cluster DCS Redis 3.0, 4.0, or 5.0 instance +Dimension: +dcs_instance_id +dcs_cluster_redis_node + |
+1 minute + |
+
client_longest_out_list + |
+Client Longest Output List + |
+Longest output list among current client connections + |
+≥ 0 + |
+Monitored object: +Redis Server of a cluster DCS Redis 3.0, 4.0, or 5.0 instance +Dimension: +dcs_instance_id +dcs_cluster_redis_node + |
+1 minute + |
+
client_biggest_in_buf + |
+Client Biggest Input Buf + |
+Maximum input data length among current client connections +Unit: byte + |
+≥ 0 + |
+Monitored object: +Redis Server of a cluster DCS Redis 3.0, 4.0, or 5.0 instance +Dimension: +dcs_instance_id +dcs_cluster_redis_node + |
+1 minute + |
+
blocked_clients + |
+Blocked Clients + |
+Number of clients suspended by block operations such as BLPOP, BRPOP, and BRPOPLPUSH + |
+≥ 0 + |
+Monitored object: +Redis Server of a cluster DCS Redis 3.0, 4.0, or 5.0 instance +Dimension: +dcs_instance_id +dcs_cluster_redis_node + |
+1 minute + |
+
used_memory + + |
+Used Memory + |
+Number of bytes used by the Redis server +Unit: byte + |
+≥ 0 + |
+Monitored object: +Redis Server of a cluster DCS Redis 3.0, 4.0, or 5.0 instance +Dimension: +dcs_instance_id +dcs_cluster_redis_node + |
+1 minute + |
+
used_memory_rss + |
+Used Memory RSS + |
+RSS memory that the Redis server has used, which including all stack and heap memory but not swapped-out memory +Unit: byte + |
+≥ 0 + |
+Monitored object: +Redis Server of a cluster DCS Redis 3.0, 4.0, or 5.0 instance +Dimension: +dcs_instance_id +dcs_cluster_redis_node + |
+1 minute + |
+
used_memory_peak + |
+Used Memory Peak + |
+Peak memory consumed by Redis since the Redis server last started +Unit: byte + |
+≥ 0 + |
+Monitored object: +Redis Server of a cluster DCS Redis 3.0, 4.0, or 5.0 instance +Dimension: +dcs_instance_id +dcs_cluster_redis_node + |
+1 minute + |
+
used_memory_lua + |
+Used Memory Lua + |
+Number of bytes used by the Lua engine +Unit: byte + |
+≥ 0 + |
+Monitored object: +Redis Server of a cluster DCS Redis 3.0, 4.0, or 5.0 instance +Dimension: +dcs_instance_id +dcs_cluster_redis_node + |
+1 minute + |
+
memory_frag_ratio + |
+Memory Fragmentation Ratio + |
+Current memory fragmentation, which is the ratio between used_memory_rss/used_memory. + |
+≥ 0 + |
+Monitored object: +Redis Server of a cluster DCS Redis 3.0, 4.0, or 5.0 instance +Dimension: +dcs_instance_id +dcs_cluster_redis_node + |
+1 minute + |
+
total_connections_received + |
+New Connections + |
+Number of connections received during the monitoring period + |
+≥ 0 + |
+Monitored object: +Redis Server of a cluster DCS Redis 3.0, 4.0, or 5.0 instance +Dimension: +dcs_instance_id +dcs_cluster_redis_node + |
+1 minute + |
+
total_commands_processed + |
+Commands Processed + |
+Number of commands processed during the monitoring period + |
+≥ 0 + |
+Monitored object: +Redis Server of a cluster DCS Redis 3.0, 4.0, or 5.0 instance + +Dimension: +dcs_instance_id +dcs_cluster_redis_node + |
+1 minute + |
+
instantaneous_ops + |
+Ops per Second + |
+Number of commands processed per second + |
+≥ 0 + |
+Monitored object: +Redis Server of a cluster DCS Redis 3.0, 4.0, or 5.0 instance +Dimension: +dcs_instance_id +dcs_cluster_redis_node + |
+1 minute + |
+
total_net_input_bytes + |
+Network Input Bytes + |
+Number of bytes received during the monitoring period +Unit: byte + |
+≥ 0 + |
+Monitored object: +Redis Server of a cluster DCS Redis 3.0, 4.0, or 5.0 instance + +Dimension: +dcs_instance_id +dcs_cluster_redis_node + |
+1 minute + |
+
total_net_output_bytes + |
+Network Output Bytes + |
+Number of bytes sent during the monitoring period +Unit: byte + |
+≥ 0 + |
+Monitored object: +Redis Server of a cluster DCS Redis 3.0, 4.0, or 5.0 instance + +Dimension: +dcs_instance_id +dcs_cluster_redis_node + |
+1 minute + |
+
instantaneous_input_kbps + |
+Input Flow + |
+Instantaneous input traffic +Unit: KB/s + |
+≥ 0 KB/s + |
+Monitored object: +Redis Server of a cluster DCS Redis 3.0, 4.0, or 5.0 instance +Dimension: +dcs_instance_id +dcs_cluster_redis_node + |
+1 minute + |
+
instantaneous_output_kbps + |
+Output Flow + |
+Instantaneous output traffic +Unit: KB/s + |
+≥ 0 KB/s + |
+Monitored object: +Redis Server of a cluster DCS Redis 3.0, 4.0, or 5.0 instance +Dimension: +dcs_instance_id +dcs_cluster_redis_node + |
+1 minute + |
+
rejected_connections + |
+Rejected Connections + |
+Number of connections that have exceeded maxclients and been rejected during the monitoring period + |
+≥ 0 + |
+Monitored object: +Redis Server of a cluster DCS Redis 3.0, 4.0, or 5.0 instance + +Dimension: +dcs_instance_id +dcs_cluster_redis_node + |
+1 minute + |
+
expired_keys + |
+Expired Keys + |
+Number of keys that have expired and been deleted during the monitoring period + |
+≥ 0 + |
+Monitored object: +Redis Server of a cluster DCS Redis 3.0, 4.0, or 5.0 instance +Dimension: +dcs_instance_id +dcs_cluster_redis_node + |
+1 minute + |
+
evicted_keys + |
+Evicted Keys + |
+Number of keys that have been evicted and deleted during the monitoring period + |
+≥ 0 + |
+Monitored object: +Redis Server of a cluster DCS Redis 3.0, 4.0, or 5.0 instance +Dimension: +dcs_instance_id +dcs_cluster_redis_node + |
+1 minute + |
+
pubsub_channels + |
+PubSub Channels + |
+Number of Pub/Sub channels + |
+≥ 0 + |
+Monitored object: +Redis Server of a cluster DCS Redis 3.0, 4.0, or 5.0 instance +Dimension: +dcs_instance_id +dcs_cluster_redis_node + |
+1 minute + |
+
pubsub_patterns + |
+PubSub Patterns + |
+Number of Pub/Sub patterns + |
+≥ 0 + |
+Monitored object: +Redis Server of a cluster DCS Redis 3.0, 4.0, or 5.0 instance +Dimension: +dcs_instance_id +dcs_cluster_redis_node + |
+1 minute + |
+
keyspace_hits_perc + |
+Hit Rate + |
+Ratio of the number of Redis cache hits to the number of lookups. Calculation: keyspace_hits/(keyspace_hits + keyspace_misses) +Unit: % + |
+0–100% + |
+Monitored object: +Redis Server of a cluster DCS Redis 3.0, 4.0, or 5.0 instance +Dimension: +dcs_instance_id +dcs_cluster_redis_node + |
+1 minute + |
+
command_max_delay + |
+Maximum Command Latency + |
+Maximum latency of commands +Unit: ms + |
+≥ 0 ms + |
+Monitored object: +Redis Server of a cluster DCS Redis 3.0, 4.0, or 5.0 instance +Dimension: +dcs_instance_id +dcs_cluster_redis_node + |
+1 minute + |
+
is_slow_log_exist + |
+Slow Query Logs + |
+Existence of slow query logs in the node + |
+
|
+Monitored object: +Redis Server of a cluster DCS Redis 3.0, 4.0, or 5.0 instance +Dimension: +dcs_instance_id +dcs_cluster_redis_node + |
+1 minute + |
+
keys + |
+Keys + |
+Number of keys in Redis + |
+≥ 0 + |
+Monitored object: +Redis Server of a cluster DCS Redis 3.0, 4.0, or 5.0 instance +Dimension: +dcs_instance_id +dcs_cluster_redis_node + |
+1 minute + |
+
sadd + |
+Sadd + |
+Number of SADD commands processed per second +Unit: count/s + |
+0–500,000 + |
+Monitored object: +Redis Server of a cluster DCS Redis 3.0, 4.0, or 5.0 instance +Dimension: +dcs_instance_id +dcs_cluster_redis_node + |
+1 minute + |
+
smembers + |
+Smembers + |
+Number of SMEMBERS commands processed per second +Unit: count/s + |
+0–500,000 + |
+Monitored object: +Redis Server of a cluster DCS Redis 4.0 or 5.0 instance +Dimension: +dcs_instance_id +dcs_cluster_redis_node + |
+1 minute + |
+
ms_repl_offset + |
+Replication Gap + |
+Data synchronization gap between the master and the replica + |
+- + |
+Monitored object: +Replica of a cluster DCS Redis 4.0 or 5.0 instance +Dimension: +dcs_instance_id +dcs_cluster_redis_node + |
+1 minute + |
+
del + |
+DEL + |
+Number of DEL commands processed per second +Unit: count/s + |
+0–500,000 + |
+Monitored object: +Redis Server of a cluster DCS Redis 4.0 or 5.0 instance +Dimension: +dcs_instance_id +dcs_cluster_redis_node + |
+1 minute + |
+
expire + |
+EXPIRE + |
+Number of EXPIRE commands processed per second +Unit: count/s + |
+0–500,000 + |
+Monitored object: +Redis Server of a cluster DCS Redis 4.0 or 5.0 instance +Dimension: +dcs_instance_id +dcs_cluster_redis_node + |
+1 minute + |
+
get + |
+GET + |
+Number of GET commands processed per second +Unit: count/s + |
+0–500,000 + |
+Monitored object: +Redis Server of a cluster DCS Redis 4.0 or 5.0 instance +Dimension: +dcs_instance_id +dcs_cluster_redis_node + |
+1 minute + |
+
hdel + |
+HDEL + |
+Number of HDEL commands processed per second +Unit: count/s + |
+0–500,000 + |
+Monitored object: +Redis Server of a cluster DCS Redis 4.0 or 5.0 instance +Dimension: +dcs_instance_id +dcs_cluster_redis_node + |
+1 minute + |
+
hget + |
+HGET + |
+Number of HGET commands processed per second +Unit: count/s + |
+0–500,000 + |
+Monitored object: +Redis Server of a cluster DCS Redis 4.0 or 5.0 instance +Dimension: +dcs_instance_id +dcs_cluster_redis_node + |
+1 minute + |
+
hmget + |
+HMGET + |
+Number of HMGET commands processed per second +Unit: count/s + |
+0–500,000 + |
+Monitored object: +Redis Server of a cluster DCS Redis 4.0 or 5.0 instance +Dimension: +dcs_instance_id +dcs_cluster_redis_node + |
+1 minute + |
+
hmset + |
+HMSET + |
+Number of HMSET commands processed per second +Unit: count/s + |
+0–500,000 + |
+Monitored object: +Redis Server of a cluster DCS Redis 4.0 or 5.0 instance +Dimension: +dcs_instance_id +dcs_cluster_redis_node + |
+1 minute + |
+
hset + |
+HSET + |
+Number of HSET commands processed per second +Unit: count/s + |
+0–500,000 + |
+Monitored object: +Redis Server of a cluster DCS Redis 4.0 or 5.0 instance +Dimension: +dcs_instance_id +dcs_cluster_redis_node + |
+1 minute + |
+
mget + |
+MGET + |
+Number of MGET commands processed per second +Unit: count/s + |
+0–500,000 + |
+Monitored object: +Redis Server of a cluster DCS Redis 4.0 or 5.0 instance +Dimension: +dcs_instance_id +dcs_cluster_redis_node + |
+1 minute + |
+
mset + |
+MSET + |
+Number of MSET commands processed per second +Unit: count/s + |
+0–500,000 + |
+Monitored object: +Redis Server of a cluster DCS Redis 4.0 or 5.0 instance +Dimension: +dcs_instance_id +dcs_cluster_redis_node + |
+1 minute + |
+
set + |
+SET + |
+Number of SET commands processed per second +Unit: count/s + |
+0–500,000 + |
+Monitored object: +Redis Server of a cluster DCS Redis 4.0 or 5.0 instance +Dimension: +dcs_instance_id +dcs_cluster_redis_node + |
+1 minute + |
+
rx_controlled + |
+Flow Control Times + |
+Number of flow control times during the monitoring period +Unit: count + |
+≥ 0 + |
+Monitored object: +Redis Server of a cluster DCS Redis 4.0 or 5.0 instance +Dimension: +dcs_instance_id +dcs_cluster_redis_node + |
+1 minute + |
+
bandwidth_usage + |
+Bandwidth Usage + |
+Percentage of the used bandwidth to the maximum bandwidth limit + |
+0–200% + |
+Monitored object: +Redis Server of a cluster DCS Redis 4.0 or 5.0 instance +Dimension: +dcs_instance_id +dcs_cluster_redis_node + |
+1 minute + |
+
Metric ID + |
+Metric + |
+Description + |
+Value Range + |
+Monitored Object and Dimension + |
+Monitoring Period (Raw Data) + |
+
|---|---|---|---|---|---|
cpu_usage + |
+CPU Usage + |
+The monitored object's maximum CPU usage among multiple sampling values in a monitoring period +Unit: % + |
+0–100% + |
+Monitored object: +Proxy in a Proxy Cluster DCS Redis 3.0 instance +Dimension: +dcs_instance_id +dcs_cluster_proxy_node + |
+1 minute + |
+
memory_usage + |
+Memory Usage + |
+Memory consumed by the monitored object +Unit: % + |
+0–100% + |
+Monitored object: +Proxy in a Proxy Cluster DCS Redis 3.0 instance +Dimension: +dcs_instance_id +dcs_cluster_proxy_node + |
+1 minute + |
+
p_connected_clients + |
+Connected Clients + |
+Number of connected clients + |
+≥ 0 + |
+Monitored object: +Proxy in a Proxy Cluster DCS Redis 3.0 instance +Dimension: +dcs_instance_id +dcs_cluster_proxy_node + |
+1 minute + |
+
max_rxpck_per_sec + |
+Max. NIC Data Packet Receive Rate + |
+Maximum number of data packets received by the proxy NIC per second during the monitoring period +Unit: packages/second + |
+0–10,000,000 + |
+Monitored object: +Proxy in a Proxy Cluster DCS Redis 3.0 instance +Dimension: +dcs_instance_id +dcs_cluster_proxy_node + |
+1 minute + |
+
max_txpck_per_sec + |
+Max. NIC Data Packet Transmit Rate + |
+Maximum number of data packets transmitted by the proxy NIC per second during the monitoring period +Unit: packages/second + |
+0–10,000,000 + |
+Monitored object: +Proxy in a Proxy Cluster DCS Redis 3.0 instance +Dimension: +dcs_instance_id +dcs_cluster_proxy_node + |
+1 minute + |
+
max_rxkB_per_sec + |
+Maximum Inbound Bandwidth + |
+Largest volume of data received by the proxy NIC per second +Unit: KB/s + |
+≥ 0 KB/s + |
+Monitored object: +Proxy in a Proxy Cluster DCS Redis 3.0 instance +Dimension: +dcs_instance_id +dcs_cluster_proxy_node + |
+1 minute + |
+
max_txkB_per_sec + |
+Maximum Outbound Bandwidth + |
+Largest volume of data transmitted by the proxy NIC per second +Unit: KB/s + |
+≥ 0 KB/s + |
+Monitored object: +Proxy in a Proxy Cluster DCS Redis 3.0 instance +Dimension: +dcs_instance_id +dcs_cluster_proxy_node + |
+1 minute + |
+
avg_rxpck_per_sec + |
+Average NIC Data Packet Receive Rate + |
+Average number of data packets received by the proxy NIC per second during the monitoring period +Unit: packages/second + |
+0–10,000,000 + |
+Monitored object: +Proxy in a Proxy Cluster DCS Redis 3.0 instance +Dimension: +dcs_instance_id +dcs_cluster_proxy_node + |
+1 minute + |
+
avg_txpck_per_sec + |
+Average NIC Data Packet Transmit Rate + |
+Average number of data packets transmitted by the proxy NIC per second during the monitoring period +Unit: packages/second + |
+0–10,000,000 + |
+Monitored object: +Proxy in a Proxy Cluster DCS Redis 3.0 instance +Dimension: +dcs_instance_id +dcs_cluster_proxy_node + |
+1 minute + |
+
avg_rxkB_per_sec + |
+Average Inbound Bandwidth + |
+Average volume of data received by the proxy NIC per second +Unit: KB/s + |
+≥ 0 KB/s + |
+Monitored object: +Proxy in a Proxy Cluster DCS Redis 3.0 instance +Dimension: +dcs_instance_id +dcs_cluster_proxy_node + |
+1 minute + |
+
avg_txkB_per_sec + |
+Average Outbound Bandwidth + |
+Average volume of data transmitted by the proxy NIC per second +Unit: KB/s + |
+≥ 0 KB/s + |
+Monitored object: +Proxy in a Proxy Cluster DCS Redis 3.0 instance +Dimension: +dcs_instance_id +dcs_cluster_proxy_node + |
+1 minute + |
+
Key + |
+Value + |
+
|---|---|
dcs_instance_id + |
+DCS Redis instance + |
+
dcs_cluster_redis_node + |
+Redis Server + |
+
dcs_cluster_proxy_node + |
+Proxy + |
+
Released On + |
+What's New + |
+
|---|---|
2022-08-29 + |
+Modified the following content: +Added description about security groups and whitelist configuration in sections Creating a DCS Redis Instance, Security Group Configurations, What Should I Do If an Error Is Returned When I Use the Jedis Connection Pool?, How Do I Troubleshoot Redis Connection Failures?, and Why Aren't Security Groups Configured for DCS Redis 4.0 and 5.0 Instances? + |
+
2022-08-09 + |
+Modified the following content: +
|
+
2022-07-13 + |
+Modified the following content: +Added description about system resources and modified the procedure for enabling auto backup in section Creating a DCS Redis Instance. + |
+
2022-04-11 + |
+Modified the following content: +Added description about accessing an instance in different languages. For details, see Accessing an Instance. +Added section Managing Shards and Replicas. + |
+
2021-06-30 + |
+Modified the following content: +
|
+
2020-11-20 + |
+Modified the following content: +
|
+
2021-07-13 + |
+Modified the following content: +Added detailed description about permissions management in sections Permissions Management and Permissions Management. + |
+
2020-10-13 + |
+Modified the following content: +
|
+
2020-09-30 + |
+Modified the following content: +
|
+
2020-07-17 + |
+Modified the following content: +
|
+
2020-05-30 + |
+Modified the following content: +
|
+
2020-03-25 + |
+Modified the following content: +
|
+
2019-04-12 + |
+Accepted in OTC-4.0/Agile-04.2019. + |
+
2019-03-30 + |
+Modified the following content: +
|
+
2018-09-05 + |
+Modified the following content: +
|
+
2018-03-16 + |
+Added the following content: +
Modified the following content: +
|
+
2017-11-08 + |
+Added the following content: +
|
+
2017-05-30 + |
+Added the following content:
+
|
+
2017-04-28 + |
+Added the following content: +
|
+
2017-04-05 + |
+This issue is the first official release. + |
+
Access a DCS Redis instance through Jedis on an ECS in the same VPC. For more information on how to use other Redis clients, visit https://redis.io/clients.
+
For details, see Viewing Details of a DCS Instance.
+<dependency> + <groupId>redis.clients</groupId> + <artifactId>jedis</artifactId> + <version>4.1.1</version> +</dependency>+
Example code:
+// Creating a connection in password mode
+ String host = "192.168.0.150";
+ int port = 6379;
+ String pwd = "passwd";
+
+ Jedis client = new Jedis(host, port);
+ client.auth(pwd);
+ client.connect();
+// Run the set command
+ String result = client.set("key-string", "Hello, Redis!");
+System.out.println( String.format("set instruction execution result:%s", result) );
+// Run the get command
+ String value = client.get("key-string");
+ System.out.println( String.format("get command result:%s", value) );
+
+// Creating a connection in password-free mode
+ String host = "192.168.0.150";
+ int port = 6379;
+
+ Jedis client = new Jedis(host, port);
+ client.connect();
+// Run the set command
+ String result = client.set("key-string", "Hello, Redis!");
+ System.out.println( String.format("set command result:%s", result) );
+// Run the get command
+ String value = client.get("key-string");
+ System.out.println( String.format("get command result:%s", value) );
+host indicates the example IP address/domain name of DCS instance and port indicates the port number of DCS instance. For details about how to obtain the IP address/domain name and port, see 1. Change the IP address and port as required. pwd indicates the password used for logging in to the chosen DCS Redis instance. This password is defined during DCS Redis instance creation.
+// Generate configuration information of a Jedis pool
+ String ip = "192.168.0.150";
+ int port = 6379;
+ String pwd = "passwd";
+ GenericObjectPoolConfig config = new GenericObjectPoolConfig();
+ config.setTestOnBorrow(false);
+ config.setTestOnReturn(false);
+ config.testWhileIdle(true);
+ config.setMaxTotal(100);
+ config.setMaxIdle(100);
+ config.setMaxWaitMillis(2000);
+JedisPool pool = new JedisPool(config, ip, port, 100000, pwd);//Generate a Jedis pool when the application is being initialized
+// Get a Jedis connection from the Jedis pool when a service operation occurs
+ Jedis client = pool.getResource();
+ try {
+ // Run commands
+ String result = client.set("key-string", "Hello, Redis!");
+ System.out.println( String.format("set command result:%s", result) );
+ String value = client.get("key-string");
+ System.out.println( String.format("get command result:%s", value) );
+ } catch (Exception e) {
+ // TODO: handle exception
+ } finally {
+ // Return the Jedis connection to the Jedis connection pool after the client's request is processed
+ if (null != client) {
+ pool.returnResource(client);
+ }
+ } // end of try block
+ // Destroy the Jedis pool when the application is closed
+ pool.destroy();
+
+// Configure the connection pool in the password-free mode
+ String ip = "192.168.0.150";
+ int port = 6379;
+ GenericObjectPoolConfig config = new GenericObjectPoolConfig();
+ config.setTestOnBorrow(false);
+ config.setTestOnReturn(false);
+ config.testWhileIdle(true);
+ config.setMaxTotal(100);
+ config.setMaxIdle(100);
+ config.setMaxWaitMillis(2000);
+ JedisPool pool = new JedisPool(config, ip, port, 100000);//Generate a JedisPool when the application is being initialized
+// Get a Jedis connection from the Jedis pool when a service operation occurs
+ Jedis client = pool.getResource();
+ try {
+ // Run commands
+ String result = client.set("key-string", "Hello, Redis!");
+ System.out.println( String.format("set command result:%s", result) );
+ String value = client.get("key-string");
+ System.out.println( String.format("get command result:%s", value) );
+ } catch (Exception e) {
+ // TODO: handle exception
+ } finally {
+ // Return the Jedis connection to the Jedis connection pool after the client's request is processed
+ if (null != client) {
+ pool.returnResource(client);
+ }
+ } // end of try block
+ // Destroy the Jedis pool when the application is closed
+ pool.destroy();
+ip indicates the IP address/domain name of DCS instance and port indicates the port number of DCS instance. For details about how to obtain the IP address/domain name and port, see 1. Change the IP address and port as required. pwd indicates the password used for logging in to the chosen DCS Redis instance. This password is defined during DCS Redis instance creation.
+Automatic reconnection is supported if the testOnBorrow parameter of the connection pool is enabled. When the service tries to obtain a Redis connection from the connection pool, the connection pool checks connections. After detecting a normal connection, the connection pool provides the connection to the service at the cost of performance. If you require high performance, do not enable this parameter and configure the upper-layer application for it to handle exceptions and retries.
+//The following shows password-protected access.
+int port = 6379;
+String host = "192.168.144.37";
+//Create JedisCluster.
+Set<HostAndPort> nodes = new HashSet<HostAndPort>();
+nodes.add(new HostAndPort(host, port));
+JedisCluster cluster = new JedisCluster(nodes, 5000, 3000, 10, "password", new JedisPoolConfig());
+cluster.set("key", "value");
+System.out.println("Connected to RedisCluster:" + cluster.get("key"));
+cluster.close();
+int port = 6379;
+String host = "192.168.144.37";
+//Create JedisCluster.
+Set<HostAndPort> nodes = new HashSet<HostAndPort>();
+nodes.add(new HostAndPort(host, port));
+JedisCluster cluster = new JedisCluster(nodes);
+cluster.set("key", "value");
+System.out.println("Connected to RedisCluster:" + cluster.get("key"));
+cluster.close();
+host indicates the example IP address/domain name of DCS instance and port indicates the port number of DCS instance. For details about how to obtain the IP address/domain name and port, see 1. Change the IP address and port as required. {password} indicates the password used to log in to the chosen DCS Redis instance. This password is defined during DCS Redis instance creation.
+On the DCS console, you can start one or multiple DCS instances at a time.
+
This function is not supported by recent instances. You can only start old instances that have been stopped. Once started, these instances can only be restarted and can no longer be stopped or started.
+The DCS instances you want to start are in the Stopped state.
+
in the upper left corner and select a region and a project.
To start a single instance, you can also click Start in the Operation column in the same row as the instance.
+You can create run log files on the DCS console to collect run logs of DCS Redis instances within a specified period. After the logs are collected, you can download the log files to view the logs.
+
in the upper left corner and select a region and a project.If the instance is the master/standby or cluster type, you can specify the shard and replica whose run logs you want to collect. If the instance is the single-node type, logs of the only node of the instance will be collected.
+After creating a DCS Redis 4.0 or 5.0 instance, you can rename the following critical commands: COMMAND, KEYS, FLUSHDB, FLUSHALL, and HGETALL.
+
in the upper left corner and select a region and a project.
By performing big key analysis and hot key analysis, you will have a picture of keys that occupy a large space and keys that are the most frequently accessed.
+Notes on big key analysis:
+Notes on hot key analysis:
+
Perform big key and hot key analysis during off-peak hours to avoid 100% CPU usage.
+
in the upper left corner and select a region and a project.You can view the analysis results of different data types.
+
A maximum of 20 big key analysis records are retained for Strings and 80 are retained for Lists, Sets, Zsets, and Hashes.
+
in the upper left corner and select a region and a project.
The default value of the maxmemory-policy parameter of a Redis 4.0 or 5.0 instance is noeviction. To perform hot key analysis, set this parameter to allkeys-lfu or volatile-lfu. If this parameter has already been set to allkeys-lfu or volatile-lfu, perform hot key analysis right away.
+The hot key analysis results are displayed.
+
The console displays a maximum of 100 hot key analysis records for each instance.
+Parameter + |
+Description + |
+
|---|---|
Key + |
+Name of a hot key. + |
+
Type + |
+Type of a hot key, which can be string, hash, list, set, or sorted set. + |
+
Size + |
+Size of the hot key value. + |
+
FREQ + |
+Reflects the access frequency of a key within a specific period of time. +FREQ is the logarithmic access frequency counter. The maximum value of FREQ is 255, which indicates 1 million access requests. After FREQ reaches 255, it will no longer increment even if access requests continue to increase. FREQ will decrement by 1 for every minute during which the key is not accessed. + |
+
DataBase + |
+Database where a hot key is located. + |
+
DCS helps you control access to your DCS instances in the following ways, depending on the deployment mode:
+The following describes how to manage whitelists of a Redis 4.0 or 5.0 instance to allow access only from whitelisted IP addresses. If no whitelists are added for the instance or the whitelist function is disabled, all IP addresses that can communicate with the VPC can access the instance.
+
in the upper left corner of the management console and select a region.
Select the same region as your application service.
++
Parameter + |
+Description + |
+Example + |
+
|---|---|---|
Group Name + |
+Whitelist group name of the instance. +A maximum of four whitelist groups can be created for each instance. + |
+DCS-test + |
+
IP Address/Range + |
+A maximum of 20 IP addresses or IP address ranges can be added to an instance. Separate multiple IP addresses or IP address ranges with commas. +Unsupported IP address and IP address range: 0.0.0.0 and 0.0.0/0. + |
+10.10.10.1,10.10.10.10 + |
+
A whitelist group is automatically enabled for the instance once created. Only whitelisted IP addresses can access the instance.
+
This section describes the alarm rules of some metrics and how to configure the rules. In actual scenarios, configure alarm rules for metrics by referring to the following alarm policies.
+Metric + |
+Normal Range + |
+Alarm Policy + |
+Approach Upper Limit + |
+Handling Suggestion + |
+
|---|---|---|---|---|
CPU Usage + |
+0–100 + |
+Alarm threshold: 70 +Number of consecutive periods: 2 +Alarm severity: Major + |
+No + |
+Consider capacity expansion based on the service analysis. +The CPU capacity of a single-node or master/standby instance cannot be expanded. If you need larger capacity, use a cluster instance instead. + |
+
Memory Usage + |
+0–100 + |
+Alarm threshold: 70 +Number of consecutive periods: 2 +Alarm severity: Major + |
+No + |
+Expand the capacity of the instance. + |
+
Connected Clients + |
+0–10,000 + |
+Alarm threshold: 8000 +Number of consecutive periods: 2 +Alarm severity: Major + |
+No + |
+Optimize the connection pool in the service code to prevent the number of connections from exceeding the maximum limit. +For single-node and master/standby instances, the maximum number of connections allowed is 10,000. You can adjust the threshold based on service requirements. + |
+
New Connections +(Count/min) + |
+0–10,000 + |
+Alarm threshold: 10,000 +Number of consecutive periods: 2 +Alarm severity: Minor + |
+- + |
+Check whether connect is used and whether the client connection is abnormal. Use persistent connections ("pconnect" in Redis terminology) to ensure performance. + |
+
Input Flow + |
+> 0 + |
+Alarm threshold: 80% of the assured bandwidth +Number of consecutive periods: 2 +Alarm severity: Major + |
+Yes + |
+Consider capacity expansion based on the service analysis and bandwidth limit. +Configure this alarm only for single-node and master/standby DCS Redis 3.0 instances and set the alarm threshold to 80% of the assured bandwidth of DCS Redis 3.0 instances. + |
+
Output Flow + |
+> 0 + |
+Alarm threshold: 80% of the assured bandwidth +Number of consecutive periods: 2 +Alarm severity: Major + |
+Yes + |
+Consider capacity expansion based on the service analysis and bandwidth limit. +Configure this alarm only for single-node and master/standby DCS Redis 3.0 instances and set the alarm threshold to 80% of the assured bandwidth of DCS Redis 3.0 instances. + |
+
In the following example, an alarm rule is set for the CPU Usage metric.
+
in the upper left corner and select a region and a project.
to create an alarm rule for the metric.The Create Alarm Rule page is displayed.
+For example, the alarm policy shown in the following figure indicates that an alarm will be triggered if the CPU usage exceeds the threshold for two consecutive periods.
+
For more information about creating alarm rules, see the Cloud Eye User Guide > Using the Alarm Function > Creating Alarm Rules.
+Redis logs queries that exceed a specified execution time. You can view the slow query log on the DCS console to identify performance issues.
+For details about the commands, visit the Redis official website.
+Configure the slow log with the following parameters:
+For details about the configuration parameters, see Modifying Configuration Parameters.
+
You can view the slow log of a Proxy Cluster DCS Redis 3.0 instance only if the instance is created after October 14, 2019. If the instance was created earlier, contact technical support to upgrade it. The upgrade adds the slow log function to the console, and does not affect services.
+
in the upper left corner and select a region and a project.
This section describes how to query the shards and replicas of a DCS Redis 4.0 or 5.0 instance and how to manually promote a replica to master.
+Currently, this function is supported only by Redis Cluster DCS Redis 4.0 or 5.0 instances.
+
in the upper left corner and select a region and a project.The page displays all shards in the instance and the list of replicas of each shard.
+
to show all replicas of a shard.
Use the DCS console to migrate Redis data from self-hosted Redis to DCS for Redis.
+Simply back up your Redis data, create a migration task on the DCS console, and then import the backup to a DCS Redis instance.
+A master/standby or cluster DCS Redis instance has been created as the target for the migration. The source instance has data and has been backed up.
+You can use a DCS Redis 3.0, 4.0, or 5.0 instance as the target instance.
+
in the upper left corner and select a region and a project.Go back to the data migration task list. After the migration is successful, the task status changes to Successful.
+This chapter describes how to use IAM to implement fine-grained permissions control for your DCS resources. With IAM, you can:
+If your account does not need individual IAM users, you may skip over this chapter.
+This section describes the procedure for granting the DCS ReadOnlyAccess permission (see Figure 1) as an example.
+You are familiar with the permissions (see Permissions Management) supported by DCS and choose policies or roles according to your requirements. For the permissions of other services, see Permissions Policies.
+Create a user group on the IAM console, and attach the DCS ReadOnlyAccess policy to the group.
+Create a user on the IAM console and add the user to the group created in 1.
+Log in to the DCS console by using the newly created user, and verify that the user only has read permissions for DCS.
+Custom policies can be created to supplement the system-defined policies of DCS. For the actions that can be added for custom policies, see Permissions Policies and Supported Actions.
+You can create custom policies in either of the following ways:
+For details, see "Creating a Custom Policy". The following section contains examples of common DCS custom policies.
+
Due to data caching, a policy involving OBS actions will take effect five minutes after it is attached to a user, user group, or project.
+{
+ "Version": "1.1",
+ "Statement": [
+ {
+ "Effect": "Allow",
+ "Action": [
+ "
+ dcs:instance:delete
+ dcs:instance:modifyStatus
+ "
+ ]
+ }
+ ]
+}
+A policy with only "Deny" permissions must be used in conjunction with other policies to take effect. If the permissions assigned to a user contain both "Allow" and "Deny", the "Deny" permissions take precedence over the "Allow" permissions.
+The following method can be used if you need to assign permissions of the DCS FullAccess policy to a user but you want to prevent the user from deleting DCS instances. Create a custom policy for denying DCS instance deletion, and attach both policies to the group to which the user belongs. Then, the user can perform all operations on DCS instances except deleting DCS instances. The following is an example of a deny policy:
+{
+ "Version": "1.1",
+ "Statement": [
+ {
+ "Effect": "Deny",
+ "Action": [
+ "dcs:instance:delete"
+ ]
+ }
+ ]
+}
+Access a Redis Cluster instance through Lettuce on an ECS in the same VPC. For more information on how to use other Redis clients, visit https://redis.io/clients.
+
If a password was set during DCS Redis instance creation, configure the password for connecting to Redis using Lettuce. Do not hard code the plaintext password.
+To connect to a single-node, master/standby, or Proxy Cluster instance, use the RedisClient object of Lettuce. To connect to a Redis Cluster instance, use the RedisClusterClient object.
+For details, see Viewing Details of a DCS Instance.
+<dependency> + <groupId>io.lettuce</groupId> + <artifactId>lettuce-core</artifactId> + <version>6.1.6.RELEASE</version> +</dependency>+
// password indicates the connection password. If there is no password, delete "password@". If there is a password and it contains special characters, conversion is required.
+RedisClient redisClient = RedisClient.create("redis://password@host:port");
+StatefulRedisConnection<String, String> connection = redisClient.connect();
+RedisCommands<String, String> syncCommands = connection.sync();
+syncCommands.set("key", "value");
+System.out.println("Connected to Redis:" + syncCommands.get("key"));
+// Close the connection.
+connection.close();
+// Close the client.
+redisClient.shutdown();
+// password indicates the connection password. If there is no password, delete "password@". If there is a password and it contains special characters, conversion is required.
+RedisClient clusterClient = RedisClient.create("redis://password@host:port");
+GenericObjectPoolConfig<StatefulRedisConnection<String, String>> genericObjectPoolConfig = new GenericObjectPoolConfig();
+// Connection pool parameters
+genericObjectPoolConfig.setMaxIdle(3);
+genericObjectPoolConfig.setMinIdle(2);
+genericObjectPoolConfig.setMaxTotal(3);
+genericObjectPoolConfig.setMaxWaitMillis(-1);
+GenericObjectPool<StatefulRedisConnection<String, String>> pool = ConnectionPoolSupport
+ .createGenericObjectPool(() -> clusterClient.connect(), genericObjectPoolConfig);
+// Obtain a connection to perform operations.
+try (StatefulRedisConnection<String, String> con = pool.borrowObject()) {
+ RedisCommands<String, String> sync = con.sync();
+ sync.set("key", "value");
+ System.out.println("Connected by pool:" + sync.get("key"));
+} catch (Exception e) {
+ e.printStackTrace();
+}finally {
+ // Close the resources.
+ pool.close();
+ clusterClient.shutdown();
+}
+// password indicates the connection password. If there is no password, delete "password@". If there is a password and it contains special characters, conversion is required.
+RedisClusterClient redisClient = RedisClusterClient.create("redis://password@host:port");
+StatefulRedisClusterConnection<String, String> connection = redisClient.connect();
+RedisAdvancedClusterCommands<String, String> syncCommands = connection.sync();
+syncCommands.set("key", "value");
+System.out.println("Connected to RedisCluster:"+syncCommands.get("key"));
+// Close the connection.
+connection.close();
+// Close the client.
+redisClient.shutdown();
+Access a DCS Redis instance through go-redis on an ECS in the same VPC. For more information about how to use other Redis clients, visit the Redis official website.
+For details, see Viewing Details of a DCS Instance.
+A Windows ECS is used as an example.
+package main
+
+import (
+ "fmt"
+ "github.com/go-redis/redis"
+)
+
+func main() {
+ // Single-node
+ rdb := redis.NewClient(&redis.Options{
+ Addr: "host:port",
+ Password: "********", // no password set
+ DB: 0, // use default DB
+ })
+
+ val, err := rdb.Get("key").Result()
+ if err != nil {
+ if err == redis.Nil {
+ fmt.Println("key does not exists")
+ return
+ }
+ panic(err)
+ }
+ fmt.Println(val)
+
+ //Cluster
+ rdbCluster := redis.NewClusterClient(&redis.ClusterOptions{
+ Addrs: []string{"host:port"},
+ Password: "********",
+ })
+ val1, err1 := rdbCluster.Get("key").Result()
+ if err1 != nil {
+ if err == redis.Nil {
+ fmt.Println("key does not exists")
+ return
+ }
+ panic(err)
+ }
+ fmt.Println(val1)
+}
+host:port are the IP address/domain name and port number of the DCS Redis instance. For details about how to obtain the IP address/domain name and port, see 1. Change the IP address/domain name and port as required. ******** indicates the password used to log in to the DCS Redis instance. This password is defined during DCS Redis instance creation.
+
To run the package in the Linux OS, set the following parameters before packaging:
+set GOARCH=amd64
+set GOOS=linux
+Access a DCS Redis instance through Redisson on an ECS in the same VPC. For more information about how to use other Redis clients, visit the Redis official website.
+
For details, see Viewing Details of a DCS Instance.
+<dependency> + <groupId>org.redisson</groupId> + <artifactId>redisson</artifactId> + <version>3.16.8</version> +</dependency>+
Recommended keepalive configurations:
+# ping connection interval. Configuring this parameter will increase Redis load. Set a value based on the number of connections. The more the connections, the larger the value. Minimum value: 1000. If the number of active Redis connections exceeds 5000, do not set this parameter. +pingConnectionInterval: 3000 ++
The following is a configuration example for a single-node instance. (Set the timeout interval and connection pool size based on the site requirements. The following settings are examples only.)
+redisson: + config: + singleServerConfig: + # Connection timeout, in milliseconds. + connectTimeout: 10000 + # Command waiting timeout, in milliseconds. + timeout: 3000 + # Number of retry times upon a command failure. + retryAttempts: 3 + # Interval for retrying sending commands, in milliseconds. + retryInterval: 1500 + # Minimum number of idle connections. + connectionMinimumIdleSize: 30 + # Connection pool size. + connectionPoolSize: 50 + # Redis database ID. + database: 0 + # DNS monitoring interval, in milliseconds. + dnsMonitoringInterval: 5000 + # ping connection interval. + pingConnectionInterval: 3000 ++
The following is a configuration example for a cluster instance. (Set the timeout interval and connection pool size based on the site requirements.)
+redisson: + config: + clusterServersConfig: + # Idle connection timeout, in milliseconds. + idleConnectionTimeout: 100000 + # Connection timeout, in milliseconds. + connectTimeout: 10000 + # Command waiting timeout, in milliseconds. + timeout: 3000 + # Number of retry times upon a command failure. + retryAttempts: 3 + # Interval for retrying sending commands, in milliseconds. + retryInterval: 1500 + # Interval for reconnecting a replica node upon a failure. + failedSlaveReconnectionInterval: 3000 + # Interval for checking a replica node upon a failure. + failedSlaveCheckInterval: 60000 + # Maximum number of subscriptions per connection. + subscriptionsPerConnection: 5 + # Client name. + clientName: null + # Minimum number of idle pub/sub connections. + subscriptionConnectionMinimumIdleSize: 1 + # Pub/Sub connection pool size. + subscriptionConnectionPoolSize: 50 + # Minimum number of idle connections per replica node. + slaveConnectionMinimumIdleSize: 24 + # Connection pool size per replica node. + slaveConnectionPoolSize: 64 + # Minimum number of idle connections of the master node. + masterConnectionMinimumIdleSize: 24 + # Connection pool size of the master node. + masterConnectionPoolSize: 64 + # Master node status scan interval, in milliseconds. + scanInterval: 1000 + # ping connection interval. + pingConnectionInterval: 3000 + # Whether to keep the connection alive. + keepAlive: false + # The tcpNoDelay setting is enabled by default. + tcpNoDelay: false+
Config config = new Config();
+SingleServerConfig singleServerConfig = config.useSingleServer();
+singleServerConfig.setAddress("redis://host:port");
+// singleServerConfig.setPassword("********");
+RedissonClient redisson = Redisson.create(config);
+//Test concurrentMap. Data is synchronized to Redis when the put method is used.
+ConcurrentMap<String, Object> map = redisson.getMap("FirstMap");
+map.put("wanger", "male");
+map.put("zhangsan", "nan");
+map.put("lisi", "female");
+ConcurrentMap resultMap = redisson.getMap("FirstMap");
+System.out.println("resultMap==" + resultMap.keySet());
+//Test Set
+Set mySet = redisson.getSet("MySet");
+mySet.add("wanger");
+mySet.add("lisi");
+Set resultSet = redisson.getSet("MySet");
+System.out.println("resultSet===" + resultSet.size());
+//Test Queue
+Queue myQueue = redisson.getQueue("FirstQueue");
+myQueue.add("wanger");
+myQueue.add("lili");
+myQueue.add("zhangsan");
+myQueue.peek();
+myQueue.poll();
+Queue resultQueue = redisson.getQueue("FirstQueue");
+System.out.println("resultQueue===" + resultQueue);
+//Close the connection.
+redisson.shutdown();
+//1. Initialization
+Config config = new Config();
+SingleServerConfig singleServerConfig = config.useSingleServer();
+singleServerConfig.setAddress("redis://host:6379");
+//Set the maximum number of connections in the connection pool of the master node to 500.
+singleServerConfig.setConnectionPoolSize(500);
+//The connections will be automatically closed and removed from the connection pool. The time unit is millisecond.
+singleServerConfig.setIdleConnectionTimeout(10000);
+RedissonClient redisson = Redisson.create(config);
+//Test concurrentMap. Data is synchronized to Redis when the put method is used.
+ConcurrentMap<String, Object> map = redisson.getMap("FirstMap");
+map.put("wanger", "male");
+map.put("zhangsan", "nan");
+map.put("lisi", "female");
+ConcurrentMap resultMap = redisson.getMap("FirstMap");
+System.out.println("resultMap==" + resultMap.keySet());
+//Test Set
+Set mySet = redisson.getSet("MySet");
+mySet.add("wanger");
+mySet.add("lisi");
+Set resultSet = redisson.getSet("MySet");
+System.out.println("resultSet===" + resultSet.size());
+//Test Queue
+Queue myQueue = redisson.getQueue("FirstQueue");
+myQueue.add("wanger");
+myQueue.add("lili");
+myQueue.add("zhangsan");
+myQueue.peek();
+myQueue.poll();
+Queue resultQueue = redisson.getQueue("FirstQueue");
+System.out.println("resultQueue===" + resultQueue);
+//Close the connection.
+redisson.shutdown();
+Config config = new Config();
+ClusterServersConfig clusterServersConfig = config.useClusterServers();
+clusterServersConfig.addNodeAddress("redis://host:port");
+//Set a password.
+// clusterServersConfig.setPassword("********");
+RedissonClient redisson = Redisson.create(config);
+ConcurrentMap<String, Object> map = redisson.getMap("FirstMap");
+map.put("wanger", "male");
+map.put("zhangsan", "nan");
+map.put("lisi", "female");
+ConcurrentMap resultMap = redisson.getMap("FirstMap");
+System.out.println("resultMap==" + resultMap.keySet());
+//2. Test Set
+Set mySet = redisson.getSet("MySet");
+mySet.add("wanger");
+mySet.add("lisi");
+Set resultSet = redisson.getSet("MySet");
+System.out.println("resultSet===" + resultSet.size());
+//3. Test Queue
+Queue myQueue = redisson.getQueue("FirstQueue");
+myQueue.add("wanger");
+myQueue.add("lili");
+myQueue.add("zhangsan");
+myQueue.peek();
+myQueue.poll();
+Queue resultQueue = redisson.getQueue("FirstQueue");
+System.out.println("resultQueue===" + resultQueue);
+//Close the connection.
+redisson.shutdown();
+Access a DCS Redis instance through Predis on an ECS in the same VPC. For more information about how to use other Redis clients, visit the Redis official website.
+For details, see Viewing Details of a DCS Instance.
+yum install php-devel php-common php-cli
+php --version
+wget https://github.com/predis/predis/archive/refs/tags/v1.1.10.tar.gz
+
This version is used as an example. To download Predis clients of other versions, visit the Redis or PHP official website.
+mv predis-1.1.10 predis
+<?php
+ require 'predis/autoload.php';
+ Predis\Autoloader::register();
+ $client = new Predis\Client([
+ 'scheme' => 'tcp' ,
+ 'host' => '{redis_instance_address}' ,
+ 'port' => {port} ,
+ 'password' => '{password}'
+ ]);
+ $client->set('foo', 'bar');
+ $value = $client->get('foo');
+ echo $value;
+?>
+<?php
+ require 'predis/autoload.php';
+ $servers = array(
+ 'tcp://{redis_instance_address}:{port}'
+ );
+ $options = array('cluster' => 'redis');
+ $client = new Predis\Client($servers, $options);
+ $client->set('foo', 'bar');
+ $value = $client->get('foo');
+ echo $value;
+?>
+{redis_instance_address} indicates the actual IP address or domain name of the DCS instance and {port} is the actual port number of DCS instance. For details about how to obtain the IP address/domain name and port, see 1. Change the IP address/domain name and port as required. {password} indicates the password used to log in to the chosen DCS Redis instance. This password is defined during DCS Redis instance creation. If password-free access is required, delete the line that contains "password".
+For details, see Viewing Details of a DCS Instance.
+
<dependency> + <groupId>org.springframework.boot</groupId> + <artifactId>spring-boot-starter-web</artifactId> +</dependency> +<dependency> + <groupId>org.springframework.boot</groupId> + <artifactId>spring-boot-starter-data-redis</artifactId> +</dependency>+
spring.redis.host=host +spring.redis.database=0 +spring.redis.password=pwd +spring.redis.port=port+
@Bean
+public RedisTemplate<String, Object> redisTemplate(LettuceConnectionFactory lettuceConnectionFactory) {
+ RedisTemplate<String, Object> template = new RedisTemplate<>();
+ template.setConnectionFactory(lettuceConnectionFactory);
+ // Replace the default JdkSerializationRedisSerializer with Jackson2JsonRedisSerializer to serialize and deserialize the Redis value.
+ Jackson2JsonRedisSerializer<Object> jackson2JsonRedisSerializer = new Jackson2JsonRedisSerializer<>(Object.class);
+ ObjectMapper mapper = new ObjectMapper();
+ mapper.setVisibility(PropertyAccessor.ALL, JsonAutoDetect.Visibility.ANY);
+ mapper.activateDefaultTyping(LaissezFaireSubTypeValidator.instance,
+ ObjectMapper.DefaultTyping.NON_FINAL, JsonTypeInfo.As.PROPERTY);
+ jackson2JsonRedisSerializer.setObjectMapper(mapper);
+ StringRedisSerializer stringRedisSerializer = new StringRedisSerializer();
+ // String serialization of keys
+ template.setKeySerializer(stringRedisSerializer);
+ // String serialization of hash keys
+ template.setHashKeySerializer(stringRedisSerializer);
+ // Jackson serialization of values
+ template.setValueSerializer(jackson2JsonRedisSerializer);
+ // Jackson serialization of hash values
+ template.setHashValueSerializer(jackson2JsonRedisSerializer);
+ template.afterPropertiesSet();
+ return template;
+}
+ /**
+ * Obtain data from the cache.
+ * @param key
+ * @return value
+ */
+ public Object get(String key){
+ return key==null?null:redisTemplate.opsForValue().get(key);
+ }
+
+ /**
+ * Write data to the cache.
+ * @param key
+ * @param value
+ * @return true (successful) false (failed)
+ */
+ public boolean set(String key,Object value) {
+ try {
+ redisTemplate.opsForValue().set(key, value);
+ return true;
+ } catch (Exception e) {
+ e.printStackTrace();
+ return false;
+ }
+ }
+ @RestController
+public class HelloRedis {
+ @Autowired
+ RedisUtil redisUtil;
+
+
+ @RequestMapping("/setParams")
+ @ResponseBody
+ public String setParams(String name) {
+ redisUtil.set("name", name);
+ return "success";
+ }
+
+ @RequestMapping("/getParams")
+ @ResponseBody
+ public String getParams(String name) {
+ System.out.println("--------------" + name + "-------------");
+ String retName = redisUtil.get(name) + "";
+ return retName;
+ }
+
+ }
+<dependency> + <groupId>org.apache.commons</groupId> + <artifactId>commons-pool2</artifactId> +</dependency>+
spring.redis.host=host +spring.redis.database=0 +spring.redis.password=pwd +spring.redis.port=port +# Connection timeout. +spring.redis.timeout=1000 +# Maximum number of connections in the connection pool. A negative value indicates no limit. +spring.redis.lettuce.pool.max-active=50 +# Minimum number of idle connections in the connection pool. +spring.redis.lettuce.pool.min-idle=5 +# Maximum number of idle connections in the connection pool. +spring.redis.lettuce.pool.max-idle=50 +# Maximum time for waiting for connections in the connection pool. A negative value indicates no limit. +spring.redis.lettuce.pool.max-wait=5000 +# Interval for scheduling an eviction thread. +spring.redis.pool.time-between-eviction-runs-millis=2000+
@Bean
+public RedisTemplate<String, Object> redisTemplate(LettuceConnectionFactory lettuceConnectionFactory) {
+ lettuceConnectionFactory.setShareNativeConnection(false);
+ RedisTemplate<String, Object> template = new RedisTemplate<>();
+ template.setConnectionFactory(lettuceConnectionFactory);
+ // Use Jackson2JsonRedisSerializer to replace the default JdkSerializationRedisSerializer to serialize and deserialize the Redis value.
+ Jackson2JsonRedisSerializer<Object> jackson2JsonRedisSerializer = new Jackson2JsonRedisSerializer<>(Object.class);
+ ObjectMapper mapper = new ObjectMapper();
+ mapper.setVisibility(PropertyAccessor.ALL, JsonAutoDetect.Visibility.ANY);
+ mapper.activateDefaultTyping(LaissezFaireSubTypeValidator.instance,
+ ObjectMapper.DefaultTyping.NON_FINAL, JsonTypeInfo.As.PROPERTY);
+ jackson2JsonRedisSerializer.setObjectMapper(mapper);
+ StringRedisSerializer stringRedisSerializer = new StringRedisSerializer();
+ // String serialization of keys
+ template.setKeySerializer(stringRedisSerializer);
+ // String serialization of hash keys
+ template.setHashKeySerializer(stringRedisSerializer);
+ // Jackson serialization of values
+ template.setValueSerializer(jackson2JsonRedisSerializer);
+ // Jackson serialization of hash values
+ template.setHashValueSerializer(jackson2JsonRedisSerializer);
+ template.afterPropertiesSet();
+ return template;
+}
+spring.redis.cluster.nodes=host:port +spring.redis.cluster.max-redirects=3 +spring.redis.password= pwd +# Automated refresh interval +spring.redis.lettuce.cluster.refresh.period=60 +# Enable automated refresh +spring.redis.lettuce.cluster.refresh.adaptive=true +spring.redis.timeout=60+
@Bean
+public LettuceConnectionFactory lettuceConnectionFactory() {
+ String[] nodes = clusterNodes.split(",");
+ List<RedisNode> listNodes = new ArrayList();
+ for (String node : nodes) {
+ String[] ipAndPort = node.split(":");
+ RedisNode redisNode = new RedisNode(ipAndPort[0], Integer.parseInt(ipAndPort[1]));
+ listNodes.add(redisNode);
+ }
+ RedisClusterConfiguration redisClusterConfiguration = new RedisClusterConfiguration();
+ redisClusterConfiguration.setClusterNodes(listNodes);
+ redisClusterConfiguration.setPassword(password);
+ redisClusterConfiguration.setMaxRedirects(maxRedirects);
+ // Configure automated topology refresh.
+ ClusterTopologyRefreshOptions topologyRefreshOptions = ClusterTopologyRefreshOptions.builder()
+ .enablePeriodicRefresh(Duration.ofSeconds(period)) // Refresh the topology periodically.
+ .enableAllAdaptiveRefreshTriggers() // Refresh the topology based on events.
+ .build();
+
+ ClusterClientOptions clusterClientOptions = ClusterClientOptions.builder()
+ // Redis command execution timeout. Only when the command execution times out will a reconnection be triggered using the new topology.
+ .timeoutOptions(TimeoutOptions.enabled(Duration.ofSeconds(period)))
+ .topologyRefreshOptions(topologyRefreshOptions)
+ .build();
+ LettuceClientConfiguration clientConfig = LettucePoolingClientConfiguration.builder()
+ .commandTimeout(Duration.ofSeconds(timeout))
+ .readFrom(ReadFrom.REPLICA_PREFERRED) // Preferentially read data from the replicas.
+ .clientOptions(clusterClientOptions)
+ .build();
+ LettuceConnectionFactory factory = new LettuceConnectionFactory(redisClusterConfiguration, clientConfig);
+ return factory;
+}
+
+@Bean
+public RedisTemplate<String, Object> redisTemplate(LettuceConnectionFactory lettuceConnectionFactory) {
+ RedisTemplate<String, Object> template = new RedisTemplate<>();
+ template.setConnectionFactory(lettuceConnectionFactory);
+ // Use Jackson2JsonRedisSerializer to replace the default JdkSerializationRedisSerializer to serialize and deserialize the Redis value.
+ Jackson2JsonRedisSerializer<Object> jackson2JsonRedisSerializer = new Jackson2JsonRedisSerializer<>(Object.class);
+ ObjectMapper mapper = new ObjectMapper();
+ mapper.setVisibility(PropertyAccessor.ALL, JsonAutoDetect.Visibility.ANY);
+ mapper.activateDefaultTyping(LaissezFaireSubTypeValidator.instance,
+ ObjectMapper.DefaultTyping.NON_FINAL, JsonTypeInfo.As.PROPERTY);
+ jackson2JsonRedisSerializer.setObjectMapper(mapper);
+ StringRedisSerializer stringRedisSerializer = new StringRedisSerializer();
+ // String serialization of keys
+ template.setKeySerializer(stringRedisSerializer);
+ // String serialization of hash keys
+ template.setHashKeySerializer(stringRedisSerializer);
+ // Jackson serialization of values
+ template.setValueSerializer(jackson2JsonRedisSerializer);
+ // Jackson serialization of hash values
+ template.setHashValueSerializer(jackson2JsonRedisSerializer);
+ template.afterPropertiesSet();
+ return template;
+}
+spring.redis.cluster.nodes=host:port +spring.redis.cluster.max-redirects=3 +spring.redis.password=pwd +spring.redis.lettuce.cluster.refresh.period=60 +spring.redis.lettuce.cluster.refresh.adaptive=true +# Connection timeout. +spring.redis.timeout=60s +# Maximum number of connections in the connection pool. A negative value indicates no limit. +spring.redis.lettuce.pool.max-active=50 +# Minimum number of idle connections in the connection pool. +spring.redis.lettuce.pool.min-idle=5 +# Maximum number of idle connections in the connection pool. +spring.redis.lettuce.pool.max-idle=50 +# Maximum time for waiting for connections in the connection pool. A negative value indicates no limit. +spring.redis.lettuce.pool.max-wait=5000 +# Interval for scheduling an eviction thread. +spring.redis.lettuce.pool.time-between-eviction-runs=2000+
@Bean
+ public LettuceConnectionFactory lettuceConnectionFactory() {
+ GenericObjectPoolConfig genericObjectPoolConfig = new GenericObjectPoolConfig();
+ genericObjectPoolConfig.setMaxIdle(maxIdle);
+ genericObjectPoolConfig.setMinIdle(minIdle);
+ genericObjectPoolConfig.setMaxTotal(maxActive);
+ genericObjectPoolConfig.setMaxWait(Duration.ofMillis(maxWait));
+ genericObjectPoolConfig.setTimeBetweenEvictionRuns(Duration.ofMillis(timeBetweenEvictionRunsMillis));
+ String[] nodes = clusterNodes.split(",");
+ List<RedisNode> listNodes = new ArrayList();
+ for (String node : nodes) {
+ String[] ipAndPort = node.split(":");
+ RedisNode redisNode = new RedisNode(ipAndPort[0], Integer.parseInt(ipAndPort[1]));
+ listNodes.add(redisNode);
+ }
+ RedisClusterConfiguration redisClusterConfiguration = new RedisClusterConfiguration();
+ redisClusterConfiguration.setClusterNodes(listNodes);
+ redisClusterConfiguration.setPassword(password);
+ redisClusterConfiguration.setMaxRedirects(maxRedirects);
+ // Configure automated topology refresh.
+ ClusterTopologyRefreshOptions topologyRefreshOptions = ClusterTopologyRefreshOptions.builder()
+ .enablePeriodicRefresh(Duration.ofSeconds(period)) // Refresh the topology periodically.
+ .enableAllAdaptiveRefreshTriggers() // Refresh the topology based on events.
+ .build();
+
+ ClusterClientOptions clusterClientOptions = ClusterClientOptions.builder()
+ // Redis command execution timeout. Only when the command execution times out will a reconnection be triggered using the new topology.
+ .timeoutOptions(TimeoutOptions.enabled(Duration.ofSeconds(period)))
+ .topologyRefreshOptions(topologyRefreshOptions)
+ .build();
+ LettuceClientConfiguration clientConfig = LettucePoolingClientConfiguration.builder()
+ .commandTimeout(Duration.ofSeconds(timeout))
+ .poolConfig(genericObjectPoolConfig)
+ .readFrom(ReadFrom.REPLICA_PREFERRED) // Preferentially read data from the replicas.
+ .clientOptions(clusterClientOptions)
+ .build();
+ LettuceConnectionFactory factory = new LettuceConnectionFactory(redisClusterConfiguration, clientConfig);
+ return factory;
+ }
+
+@Bean
+public RedisTemplate<String, Object> redisTemplate(LettuceConnectionFactory lettuceConnectionFactory) {
+ lettuceConnectionFactory.setShareNativeConnection(false);
+ RedisTemplate<String, Object> template = new RedisTemplate<>();
+ template.setConnectionFactory(lettuceConnectionFactory);
+ // Use Jackson2JsonRedisSerializer to replace the default JdkSerializationRedisSerializer to serialize and deserialize the Redis value.
+ Jackson2JsonRedisSerializer<Object> jackson2JsonRedisSerializer = new Jackson2JsonRedisSerializer<>(Object.class);
+ ObjectMapper mapper = new ObjectMapper();
+ mapper.setVisibility(PropertyAccessor.ALL, JsonAutoDetect.Visibility.ANY);
+ mapper.activateDefaultTyping(LaissezFaireSubTypeValidator.instance,
+ ObjectMapper.DefaultTyping.NON_FINAL, JsonTypeInfo.As.PROPERTY);
+ jackson2JsonRedisSerializer.setObjectMapper(mapper);
+ StringRedisSerializer stringRedisSerializer = new StringRedisSerializer();
+ // String serialization of keys
+ template.setKeySerializer(stringRedisSerializer);
+ // String serialization of hash keys
+ template.setHashKeySerializer(stringRedisSerializer);
+ // Jackson serialization of values
+ template.setValueSerializer(jackson2JsonRedisSerializer);
+ // Jackson serialization of hash values
+ template.setHashValueSerializer(jackson2JsonRedisSerializer);
+ template.afterPropertiesSet();
+ return template;
+}
+host is the IP address/domain name of the DCS instance, port is the port number of the DCS instance, and pwd is the password of the DCS instance. Specify these parameters as required before running the code. Connection pooling is recommended. Adjust parameters such as TimeOut, MaxTotal (maximum number of connections), MinIdle (minimum number of idle connections), MaxIdle (maximum number of idle connections), and MaxWait (maximum waiting time) based on service requirements.
+Distributed Cache Service (DCS) is an online, distributed, in-memory cache service compatible with Redis. It is reliable, scalable, usable out of the box, and easy to manage, meeting your requirements for high read/write performance and fast data access.
+DCS provides single-node, master/standby, and cluster instances with specifications ranging from 128 MB to 1024 GB. DCS instances can be created with just a few clicks on the console, without requiring you to prepare servers.
+DCS Redis 3.0 instances are deployed on VMs. DCS Redis 4.0 and 5.0 instances are containerized and can be created within seconds.
+Instance data storage and access are securely protected through security management services, including Identity and Access Management (IAM), Virtual Private Cloud (VPC), Cloud Eye, and Cloud Trace Service (CTS).
+Master/Standby and cluster instances can be deployed within an availability zone (AZ) or across AZs.
+DCS instances can be scaled up or down online, helping you control costs based on service requirements.
+A web-based console is provided for you to perform various operations, such as restarting instances, modifying configuration parameters, and backing up and restoring data. RESTful application programming interfaces (APIs) are also provided for automatic instance management.
+You can create a data migration task on the console to import backup files or migrate data online.
+Redis is a storage system that supports multiple types of data structures, including key-value pairs. It can be used in such scenarios as data caching, event publication/subscription, and high-speed queuing, as described in Application Scenarios. Redis is written in ANSI C, supporting direct read/write of strings, hashes, lists, sets, streams, and sorted sets. Redis works with an in-memory dataset which can be persisted on disk.
+DCS Redis instances can be customized based on your requirements.
+ +Instance type + |
+DCS for Redis provides the following three types of instances to suit different service scenarios: +Single-node: Suitable for caching temporary data in low reliability scenarios. Single-node instances support highly concurrent read/write operations, but do not support data persistence. Data will be deleted after instances are restarted. +Master/Standby: Each master/standby instance runs on two nodes (one master and one standby). The standby node replicates data synchronously from the master node. If the master node fails, the standby node automatically becomes the master node. +Cluster: Each cluster DCS instance consists of multiple shards and each shard includes a master node and zero or multiple replicas. Shards are not visible to users. If the master node fails, a standby node in the same shard takes over. + |
+
Instance specification + |
+DCS for Redis provides instances of different specifications, ranging from 128 MB to 1024 GB. + |
+
Redis version + |
+DCS instances are compatible with open-source Redis 3.0, 4.0, and 5.0. + |
+
Underlying architecture + |
+Standard Redis based on VMs: supports up to 100,000 queries per second (QPS) at a single node. + |
+
High availability (HA) and DR + |
+Master/standby and cluster DCS Redis instances can be deployed across AZs in the same region with physically isolated power supplies and networks. + |
+
For more information about open-source Redis, visit https://redis.io/.
+There are two ways to access DCS:
+The DCS provides a web-based management console. To launch the DCS console, create an account on the management console and log in, and then choose Application > Distributed Cache Service on the homepage. On the DCS console, you can create, restart, and delete DCS instances, and change their passwords.
+If you want to integrate DCS into a third-party system for secondary development, use APIs to access DCS. For more information about available APIs, see the Distributed Cache Service API Reference.
+The public cloud system provides two types of user permissions by default: user management and resource management.
+User management refers to the management of users, user groups, and user group rights.
+Resource management refers to the control operations that can be performed by users on cloud service resources.
+For details, see Permissions.
+For details about the terms involved in this document, see Glossary.
+On the DCS console, you can back up and restore DCS instances.
+There is a small chance that inconsistent data could exist in a DCS instance owing to service system exceptions or problems in loading data from persistence files. In addition, some systems demand not only high reliability but also data security, data restoration, and even permanent data storage.
+Currently, data in DCS instances can be backed up to OBS. If a DCS instance becomes faulty, data in the instance can be restored from backup so that service continuity is not affected.
+DCS instances support the following backup modes:
+You can create a scheduled backup policy on the DCS console. Then, data in the chosen DCS instances will be automatically backed up at the scheduled time.
+You can choose the days of the week on which scheduled backup will run. Backup data will be retained for a maximum of seven days. Backup data older than seven days will be automatically deleted.
+The primary purpose of scheduled backups is to create complete data replicas of DCS instances so that the instance can be quickly restored if necessary.
+Backup requests can also be issued manually. Then, data in the chosen DCS instances will be permanently backed up to OBS. Backup data can be deleted manually.
+Before performing high-risk operations, such as system maintenance or upgrade, back up DCS instance data.
+Redis: Only master/standby, Proxy Cluster, and Redis Cluster instances can be backed up and restored, while single-node instances cannot. However, you can export data of a single-node instance to an RDB file using redis-cli. For details, see Can I Export Backup Data of DCS Redis Instances to RDB Files Using the Console?
+DCS for Redis 3.0 persists data with Redis AOF. DCS for Redis 4.0 and 5.0 persist data to RDB or AOF files in manual backup mode, and to RDB files in automatic backup mode.
+Backup tasks run on standby cache nodes. DCS instance data is backed up by compressing and storing the data persistence files from the standby cache node to SwiftAdapter.
+DCS checks instance backup policies once an hour. If a backup policy is matched, DCS runs a backup task for the corresponding DCS instance.
+Backup tasks run on standby cache nodes, without incurring any downtime.
+In the event of full-data synchronization or heavy instance load, it takes a few minutes to complete data synchronization. If instance backup starts before data synchronization is complete, the backup data will be slightly behind the data in the master cache node.
+During instance backup, the standby cache node stops persisting the latest changes to disk files. If new data is written to the master cache node during backup, the backup file will not contain the new data.
+It is advisable to back up instance data during off-peak periods.
+If a scheduled backup task is triggered while the DCS instance is restarting or being scaled up, the scheduled backup task will be run in the next cycle.
+If backing up a DCS instance fails or the backup is postponed because another task is in progress, DCS will try to back up the instance in the next cycle. A maximum of three retries are allowed within a single day.
+Scheduled backup files are retained for up to seven days. You can configure the retention period. At the end of the retention period, most backup files of the DCS instance will be automatically deleted, but at least one backup file will be retained.
+Manual backup files are retained permanently and need to be manually deleted.
+Restoration tasks run on master cache nodes. During restoration, data cannot be written into or read from instances.
+If a backup file is corrupted, DCS will try to fix the backup file while restoring instance data. If the backup file is successfully fixed, the restoration proceeds. If the backup file cannot be fixed, the master/standby DCS instance will be changed back to the state in which it was before data restoration.
+DCS Redis 3.0/4.0/5.0 instances are deployed in different modes. Therefore, the access control method varies.
+This section describes how to configure a security group for accessing a DCS instance within a VPC.
+An ECS can communicate with a DCS instance if they belong to the same VPC and security group rules are configured correctly.
+In addition, you must configure correct rules for the security groups of both the ECS and DCS instance so that you can access the instance through your client.
+
Add the following outbound rule to allow the ECS to access the DCS instance. Skip this rule if there are no restrictions on the outbound traffic.
+
To ensure that your client can access the DCS instance, add the following inbound rule to the security group configured for the DCS instance:
+
For the source IP address, use the specified IP address of the DCS instance. Avoid using 0.0.0.0/0 to prevent ECSs bound with the same security group from being attacked by Redis vulnerability exploits.
+Cross-VPC means the client and the instance are not in the same VPC.
+Generally, VPCs are isolated from each other and ECSs cannot access DCS instances that belong to a different VPC from these ECSs.
+However, by establishing VPC peering connections between VPCs, ECSs can access single-node and master/standby DCS instances across VPCs.
+CIDR Blocks of DCS Instances + |
+CIDR Blocks Not Allowed for Clients + |
+
|---|---|
172.16.0.0/12 to 172.16.0.0/24 + |
+192.168.1.0/24 +192.168.2.0/24 +192.168.3.0/24 + |
+
192.168.0.0/16 to 192.168.0.0/24 +10.0.0.0/8 to 10.0.0.0/24 + |
+172.31.1.0/24 +172.31.2.0/24 +172.31.3.0/24 + |
+
For more information about VPC peering connection, see "VPC Peering Connection" in the Virtual Private Cloud User Guide.
+
Cluster DCS Redis instances do not support cross-VPC access. ECSs in a VPC cannot access cluster DCS instances in another VPC by using VPC peering connections.
+