Browse Source

doc(readme): add shared source performance test result

Signed-off-by: Jiyong Huang <huangjy@emqx.io>
Jiyong Huang 3 years ago
parent
commit
ca7c45a67b
2 changed files with 38 additions and 2 deletions
  1. 19 1
      README-CN.md
  2. 19 1
      README.md

+ 19 - 1
README-CN.md

@@ -122,7 +122,7 @@ eKuiper 可以运行在各类物联网的边缘使用场景中,比如工业物
 
 ### 最大规则数支持
 
-- 8000 条规则,吞吐量为 800 条消息/秒
+- 8000 条规则,吞吐量为 800 条消息/秒
 - 配置
   - AWS 2 核 * 4GB 内存 
   - Ubuntu
@@ -135,6 +135,24 @@ eKuiper 可以运行在各类物联网的边缘使用场景中,比如工业物
   - SQL: SELECT temperature FROM source WHERE temperature > 20 (90% 数据被过滤) 
   - 目标: 日志
 
+### 多规则共享源实例测试
+
+- 300 条规则,处理一个共享流
+  - MQTT 源吞吐量为 500 条消息/秒
+  - 总的消息处理吞吐量为 150,000 条消息/秒
+- 配置
+  - AWS 2 核 * 2GB 内存
+  - Ubuntu
+- 资源消耗
+  - 内存: ~95MB
+  - CPU: 50%
+- 规则
+  - 源: MQTT
+  - SQL: SELECT temperature FROM source WHERE temperature > 20 (90% 数据被过滤)
+  - 目标: 90% nop 10% MQTT
+
+请参考[测试指南](./test/benchmark/multiple_rules/readme.md)进行该基准测试。
+
 ## 文档
 
 - [开始使用](docs/zh_CN/getting_started.md) 

+ 19 - 1
README.md

@@ -114,7 +114,7 @@ Thank you for your contribution! Please refer to the [CONTRIBUTING.md](./docs/en
 
 ### Max number of rules support
 
-- 8000 rules with 800 message/second
+- 8000 rules with 800 message/second in total
 - Configurations
   - 2 core * 4GB memory in AWS
   - Ubuntu
@@ -127,6 +127,24 @@ Thank you for your contribution! Please refer to the [CONTRIBUTING.md](./docs/en
   - SQL: SELECT temperature FROM source WHERE temperature > 20 (90% data are filtered) 
   - Sink: Log
 
+### Multiple rules with shared source instance
+
+- 300 rules with a shared mqtt stream instance.
+  - 500 messages/second in the mqtt source
+  - 150,000 message processing per second in total
+- Configurations:
+  - 2 Core * 2GB memory in AWS
+  - Ubuntu
+- Resource usage
+  - Memory: 95MB
+  - CPU: 50%
+- Rule
+  - Source: MQTT
+  - SQL: SELECT temperature FROM source WHERE temperature > 20 (90% data are filtered)
+  - Sink: 90% nop and 10% MQTT
+
+To run this benchmark by yourself, please check [the instruction](./test/benchmark/multiple_rules/readme.md).
+
 ## Documents
 
 - [Getting started](docs/en_US/getting_started.md)