You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by GitBox <gi...@apache.org> on 2018/06/14 09:07:55 UTC

[GitHub] zhengyangyong closed pull request #98: Fix bug about description of Rate Limiting Policy

zhengyangyong closed pull request #98: Fix bug about  description of Rate Limiting Policy
URL: https://github.com/apache/incubator-servicecomb-website/pull/98
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/_users/cn/service-configurations.md b/_users/cn/service-configurations.md
old mode 100644
new mode 100755
index 62904ff..d65ca9c
--- a/_users/cn/service-configurations.md
+++ b/_users/cn/service-configurations.md
@@ -86,16 +86,26 @@ servicecomb:
 
 ### 配置说明
 
-  限流策略配置在microservice.yaml文件中,相关配置项见下表。要开启服务提供者端的限流策略,还需要在处理链中配置服务端限流handler,配置示例如下:
+  限流策略配置在microservice.yaml文件中,相关配置项见表2。要开启服务提供者端的限流策略,还需要在处理链中配置服务端限流handler,并添加pom依赖。
 
+* microservice.yaml配置示例如下:
 ```yaml
 servicecomb:
   handler:
     chain:
-      Consumer:
+      Provider:
         default: qps-flowcontrol-provider
 ```
 
+* 添加handler-flowcontrol-qps的pom依赖:
+```yaml
+<dependency>
+    <groupId>org.apache.servicecomb</groupId>
+    <artifactId>handler-flowcontrol-qps</artifactId>
+    <version>1.0.0-m1</version>
+</dependency>
+```
+
   **表2 QPS流控配置项说明**
 
 | 配置项 | 默认值 | 取值范围 | 是否必选 | 含义 | 注意 |
diff --git a/_users/service-configurations.md b/_users/service-configurations.md
old mode 100644
new mode 100755
index 833447f..f870e3e
--- a/_users/service-configurations.md
+++ b/_users/service-configurations.md
@@ -85,16 +85,26 @@ Users at the provider end can use the rate limiting policy to limit the maximum
 
 ### Configuration
 
-  Rate limiting policies are configured in the microservice.yaml file. For related configuration items, see Table 2. To enable the rate limiting policy at the provider end, you also need to configure the rate limiting handler on the server in the processing chain and add dependencies in the pom.xml file. An example of microservice.yaml file configuration is as follows:
+  Rate limiting policies are configured in the microservice.yaml file. For related configuration items, see Table 2. To enable the rate limiting policy at the provider end, you also need to configure the rate limiting handler on the server in the processing chain and add dependencies in the pom.xml file. 
 
+* An example of microservice.yaml file configuration is as follows,
 ```yaml
 servicecomb:
   handler:
     chain:
-      Consumer:
+      Provider:
         default: qps-flowcontrol-provider
 ```
 
+* Add dependencies of handler-flowcontrol-qps in the pom.xml file,
+```yaml
+<dependency>
+    <groupId>org.apache.servicecomb</groupId>
+    <artifactId>handler-flowcontrol-qps</artifactId>
+    <version>1.0.0-m1</version>
+</dependency>
+```
+
   **Table2 Configuration items of the QPS rate limit**
 
 | Configuration Item                       | Default Value       | Value Range              | Mandatory | Description                              | Remarks                                  |


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services