You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by zh...@apache.org on 2018/06/14 09:07:56 UTC
[incubator-servicecomb-website] branch master updated: Fix bug
about description of Rate Limiting Policy
This is an automated email from the ASF dual-hosted git repository.
zhengyangyong pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-servicecomb-website.git
The following commit(s) were added to refs/heads/master by this push:
new 4b28615 Fix bug about description of Rate Limiting Policy
4b28615 is described below
commit 4b286158c741f1b90f40c375c58cfd4f5ca265ba
Author: MabinGo <bi...@huawei.com>
AuthorDate: Tue Jun 12 10:10:36 2018 +0800
Fix bug about description of Rate Limiting Policy
Signed-off-by: MabinGo <bi...@huawei.com>
---
_users/cn/service-configurations.md | 14 ++++++++++++--
_users/service-configurations.md | 14 ++++++++++++--
2 files changed, 24 insertions(+), 4 deletions(-)
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 |
--
To stop receiving notification emails like this one, please contact
zhengyangyong@apache.org.