You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by li...@apache.org on 2018/08/27 09:01:44 UTC
[incubator-servicecomb-docs] 06/09: update
java-chassis-reference/en_US/build-consumer/flow-control.md
This is an automated email from the ASF dual-hosted git repository.
liubao pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-servicecomb-docs.git
commit 0e0c4b332d80c2058ab76c8b248da1ad9ddc6ed4
Author: DeanLee <li...@huawei.com>
AuthorDate: Sat Aug 25 18:33:07 2018 +0800
update java-chassis-reference/en_US/build-consumer/flow-control.md
---
.../en_US/build-consumer/flow-control.md | 26 ++++++++++------------
1 file changed, 12 insertions(+), 14 deletions(-)
diff --git a/java-chassis-reference/en_US/build-consumer/flow-control.md b/java-chassis-reference/en_US/build-consumer/flow-control.md
index bba55b4..7e01a04 100644
--- a/java-chassis-reference/en_US/build-consumer/flow-control.md
+++ b/java-chassis-reference/en_US/build-consumer/flow-control.md
@@ -1,14 +1,15 @@
-## 场景描述
+## Flow Control Policy
+### Scenario
-用户在consumer端使用限流策略,可以限制发往指定微服务的请求的频率。
+You can limit the frequency of request send to specific microservice when flow control was enables in consumer service.
-## 注意事项
+### Precaution
-参考3.7.2-限流策略。
+See detail info at [Service Configurations](/users/service-configurations/#限流策略)。
-## 配置说明
+### Configuration
-限流策略配置在microservice.yaml文件中,相关配置项见下表。要开启服务消费者端的限流策略,还需要在处理链中配置消费端限流handler,配置示例如下:
+Flow control policy configuration is in microservice.yaml file. You need to configure consumer handler in chain of service. See example blow:
```yaml
servicecomb:
@@ -18,12 +19,9 @@ servicecomb:
default: qps-flowcontrol-consumer
```
-QPS流控配置项说明
-
-| 配置项 | 默认值 | 取值范围 | 是否必选 | 含义 | 注意 |
-| :--- | :--- | :--- | :--- | :--- | :--- |
-| servicecomb.flowcontrol.Consumer.qps.enabled | true | Boolean | 否 | 是否启用Consumer流控 | - |
-| servicecomb.flowcontrol.Consumer.qps.limit.\[ServiceName\].\[Schema\].\[operation\] | 2147483647 \(max int\) | \(0,2147483647\],整形 | 否 | 每秒钟允许的请求数 | 支持microservice、schema、operation三个级别的配置 |
-
-
+Configuration items of QPS:
+| Configuration Item | Default Value | Value Range | Mandatory | Description | Remark |
+| :--------------------------------------- | :-------------------- | :---------------------- | :-------- | :--------------------------------------- | :--------------------------------------- |
+| servicecomb.flowcontrol.Consumer.qps.enabled | true | Boolean | No | Specifies whether consumers flowcontrol enables. | - |
+| servicecomb.flowcontrol.Consumer.qps.limit.[ServiceName].[Schema].[operation] | 2147483647 (max int) | (0,2147483647], Integer | No | Specifies number of requests per second. | Support three level configurations: microservice、schema、operation. |
\ No newline at end of file