This is an automated email from the ASF dual-hosted git repository. ningjiang pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/servicecomb-pack.git
commit de886fb1321a694a282ccc633427e780ba0f9669 Author: Lei Zhang <[email protected]> AuthorDate: Fri Nov 15 16:53:34 2019 +0800 SCB-1593 Update benchmark documents for Alpha cluster --- docs/fsm/assets/benchmark-alpha-1.png | Bin 0 -> 137281 bytes docs/fsm/assets/benchmark-alpha-2.png | Bin 0 -> 141321 bytes docs/fsm/benchmark_zh.md | 38 +++++++++++++++++++++++++++++++--- docs/fsm/fsm_manual.md | 2 +- docs/fsm/fsm_manual_zh.md | 2 +- 5 files changed, 37 insertions(+), 5 deletions(-) diff --git a/docs/fsm/assets/benchmark-alpha-1.png b/docs/fsm/assets/benchmark-alpha-1.png new file mode 100644 index 0000000..4469a37 Binary files /dev/null and b/docs/fsm/assets/benchmark-alpha-1.png differ diff --git a/docs/fsm/assets/benchmark-alpha-2.png b/docs/fsm/assets/benchmark-alpha-2.png new file mode 100644 index 0000000..056d435 Binary files /dev/null and b/docs/fsm/assets/benchmark-alpha-2.png differ diff --git a/docs/fsm/benchmark_zh.md b/docs/fsm/benchmark_zh.md index e6df3ff..024e1ca 100644 --- a/docs/fsm/benchmark_zh.md +++ b/docs/fsm/benchmark_zh.md @@ -72,6 +72,7 @@ java \ --spring.datasource.password=saga-password \ --spring.datasource.url="jdbc:postgresql://10.22.1.234:5432/saga?useSSL=false" \ --spring.profile.active=prd \ + --alpha.feature.native=true \ --alpha.feature.akka.enabled=true ``` @@ -80,11 +81,11 @@ java \ 总结: * 0.5.0 Akka的性能比0.4.0版本提升一个数量级,吞吐率最高可达到每秒1351笔全局事务,每笔全局事务包含包含3个子事务,Alpha gPRC 接口吞吐量 1.8w/每秒 -* 0.5.0版本单节点Alpha最优并发量为 500~1000,平均耗<1s,吞吐率 1200+/秒, CPU利用率稳定工作在80% +* 0.6.0版本单节点Alpha最优并发量为 500~1000,平均耗<1s,吞吐率 1900+/秒, CPU利用率稳定工作在80% * 本测试客户端和服务端分别部署在不同的服务器,模拟真实网络通讯 -* Alpha估算:Alpha部署数量=最大吞吐量/1200 +* Alpha估算:Alpha部署数量=最大吞吐量/1900 -| 节点数 | 并发数 | 总耗时(s) | 平均耗时(ms) | 吞吐率 | 事务量 | +| 版本 | 并发数 | 总耗时(s) | 平均耗时(ms) | 吞吐率 | 事务量 | | ------ | ------ | --------- | ---- | ------ | ---- | | 0.5.0 without Akka | 100 | 102 | 1026 | 98/sec | 10000 | | 0.5.0 without Akka | 500 | 99 | 4970 | 101/sec | 10000 | @@ -95,6 +96,37 @@ java \ | 0.5.0 with Akka | 1000 | 39 | 786 | 1282/sec | 50000 | | 0.5.0 with Akka | 2000 | 37 | 1519 | 1351/sec | 50000 | | 0.5.0 with Akka | 3000 | 43 | 2687 | 1116/sec | 50000 | +| 0.6.0 with Akka | 500 | 7 | 373 | 1428/sec | 10000 | +| 0.6.0 with Akka | 500 | 26 | 267 | 1923/sec | 50000 | +| 0.6.0 with Akka | 1000 | 27 | 552 | 1851/sec | 50000 | +| 0.6.0 with Akka | 2000 | 28 | 1139 | 1785/sec | 50000 | + +集群场景 + +* 使用5台服务器,分别部署2节点Alpha集群和3节点模拟客户端 +* 使用 Alpha 0.6.0 版本并开启 `alpha.feature.native=true` 参数 + +| 客户端 | 并发数 | 总耗时(s) | 平均耗时(ms) | 吞吐率 | 事务量 | +| ------ | ------ | --------- | ---- | ------ | ---- | +| 客户端1 | 500 | 39 | 392 | 1282/sec | 50000 | +| 客户端2 | 500 | 38 | 388 | 1315/sec | 50000 | +| 客户端3 | 500 | 39 | 393 | 1282/sec | 50000 | + +通过集群部署 Alpha 可以水平扩展吞吐率,两节点集群的 QPS 约为3879,并且单节点 Alpha 的健康度指标看起来不错 + +* Events 接收 Omega 消息平均耗时约 0.39~9 毫秒 +* Actors 发送分片消息平均耗时约0~0.02毫秒 +* Sagas 单笔全局事务处理平均耗时约20.13~23.84毫秒 +* DB 单笔全局事务持久化平均耗时约1.81~1.98毫秒 + +Alpha Node 1 + + + +Alpha Node 2 + + + ## 测试详细说明 diff --git a/docs/fsm/fsm_manual.md b/docs/fsm/fsm_manual.md index 9f98b1c..e3e0e68 100755 --- a/docs/fsm/fsm_manual.md +++ b/docs/fsm/fsm_manual.md @@ -293,7 +293,7 @@ services: [设计文档](design_fsm_zh.md) -[压力测试报告](benchmark_zh.md) +[基准测试报告](benchmark_zh.md) diff --git a/docs/fsm/fsm_manual_zh.md b/docs/fsm/fsm_manual_zh.md index dfec974..18dd5dc 100755 --- a/docs/fsm/fsm_manual_zh.md +++ b/docs/fsm/fsm_manual_zh.md @@ -293,7 +293,7 @@ services: [设计文档](design_fsm_zh.md) -[压力测试报告](benchmark_zh.md) +[基准测试报告](benchmark_zh.md)
