dengliming commented on code in PR #662:
URL: https://github.com/apache/shenyu-website/pull/662#discussion_r933956099


##########
versioned_docs/version-2.4.3/plugin-center/fault-tolerance/rate-limiter-plugin.md:
##########
@@ -107,3 +134,60 @@ For more information on selectors and rules configuration, 
see [Selector And Rul
   * `burstCapacity`: The maximum number of requests in the time window (per 
unit time).
 
   * `keyResolverName`: `whole` indicates that the traffic is limited by 
gateway per second, and `remoteAddress` indicates that the traffic is limited 
by IP per second.
+  
+## 2.5 Examples
+
+### 2.5.1 Limit traffic with `RateLimiter` plugin in gateway cluster 
environment
+
+#### 2.5.1.1 Preparation
+
+- Start ShenYu Admin on `10.10.10.10:9095`
+- Start two ShenYu Bootstrap on `10.10.10.20:9195` and `10.10.10.30:9195`, and 
config data sync center on `10.10.10.10:9095`
+- config nginx, for example:
+
+```conf
+upstream shenyu_gateway_cluster {
+  ip_hash;
+  server 10.1.1.1:9195 max_fails=3 fail_timeout=10s weight=50;
+  server 10.1.1.2:9195 max_fails=3 fail_timeout=10s weight=50;
+}
+
+server {
+  location / {
+        proxy_pass http://shenyu_gateway_cluster;
+        proxy_set_header HOST $host;
+        proxy_read_timeout 10s;
+        proxy_connect_timeout 10s;
+  }
+}
+```
+
+#### 2.5.1.2 Plugin/Selector/Rule Configuration
+
+- config redis configuration with ratelimiter plugin
+
+- config selector
+
+- config rule
+
+![](/img/shenyu/plugin/ratelimiter/rule-example-en.png)
+
+replenishRate is 3, burstCapacity is 10
+
+#### 2.5.1.3 Send Request to `Ngin`x by `Apache Jmeter`

Review Comment:
   ```suggestion
   #### 2.5.1.3 Send Request to `Nginx` by `Apache Jmeter`
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to