Enable Global Rate Limiting
If you need to use the global rate limiting feature, you need to enable service global rate limiting by connecting to Redis.
You can connect to the Redis provided by the platform's Data Services, or you can connect to your own Redis.
TOC
Connecting to the Redis Provided by the Platform
If your enterprise has subscribed to Data Services and deployed Redis (Cluster Mode, Sentinel Mode) through Data Services that can be connected to the mesh-managed cluster, you can refer to the following steps and instructions to obtain and configure the Redis Configuration for the service mesh cluster dimension.
Obtain Redis Access Method
-
Switch to the Data Services platform, and select Redis from the left navigation bar.
-
In the left cluster list, select the cluster, namespace where Redis is deployed.
-
Click on the Redis Name.
-
In the Details tab, check Secret Dictionary to get the password to access Redis.
-
In the Access Method tab, you can view the configuration information required to connect to Redis.
-
Redis Configuration Instructions
Based on the Deployment Mode and Deployment Location of Redis, refer to the following instructions to configure the Redis Configuration for the service mesh cluster dimension.
Note:
-
Authentication Method: If the Redis to be connected has a password set, please select Basic Auth and enter the password.
-
Address List: Enter multiple addresses to enhance the availability of the access address, separated by commas.
-
Connection Method: Same Cluster means that Redis is deployed on the cluster to be connected in the mesh; Cross-Cluster means that the cluster deploying Redis is not the same cluster as the one to be connected in the mesh.
Connecting to Non-Platform Redis
Please refer to the following configuration instructions to connect to non-platform Redis.