Atlassian 实际测试了应用程序节点数量对性能的影响。
性能测试
以 Confluence 单服务器版(1个节点),16个浏览器各种操作的平均响应时间为100%作为基线。
通过测试结果可以看出,随着用户访问量上升,节点分担了运算量,用户操作的响应时间也会比单服务器大幅缩短。
浏览器操作数量 | 1 个节点 | 2 个节点 | 4 个节点 |
---|---|---|---|
16 | 100.00 | 93.79 | 94.24 |
24 | 125.28 | 122.61 | 122.22 |
36 | 142.95 | 123.50 | 103.94 |
48 | 222.76 | 141.98 | 123.47 |
60 | 276.54 | 168.47 | 114.76 |
72 | 334.79 | 201.97 | 134.61 |
84 | 393.03 | 235.47 | 138.90 |
96 | 451.28 | 268.97 | 160.95 |
测试环境
环境 | 说明 |
---|---|
硬件服务器 | CPU: 2 x Intel Xeon E5-2430L, 2.0GHz (6-Core, HT, 15MB Cache, 60W) 32nm 内存: 48GB (6 x 8GB DDR3-1600 ECC Registered 2R DIMMs) Operating at 1600 MT/s Max 网卡: Dual Intel 82574L Gigabit Ethernet Controllers - Integrated 控制器: 8 Ports 3Gb/s SAS, 2 Ports 6Gb/s SATA, and 4 Ports 3Gb/s SATA via Intel C606 Chipset PCIe 3.0 x16: Intel X540-T2 10GbE Dual-Port Server Adapter (X540) 10GBASE-T Cat 6A - RJ45 硬盘: 240GB Intel 520 Series MLC (6Gb/s) 2.5" SATA SSD |
应用节点 | 4 核CPU,6G JVM内存 |
数据库 | Postgresql |
浏览器 | Chrome |
负载均衡 | Apache |