LeanCloud 的云引擎是什么配置,为什么免费版的性能还比阿里云的最低配要快?

2017-03-01 10:45:02 +08:00
 TangMonk

leancloud 测试并发如下, 带数据库查询:

Running 10s test @ http://xxxx.leanapp.cn/?id=58b62dfa61ff4b006ccc0113
  12 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency   172.36ms  159.26ms   1.37s    80.84%
    Req/Sec    54.37     21.85   128.00     63.17%
  6459 requests in 10.09s, 9.06MB read
  Non-2xx or 3xx responses: 4756
Requests/sec:    640.04
Transfer/sec:      0.90MB

阿里云的并发测试, 1 核 1G 最低配, 不带数据库查询:

Running 10s test @ http://xxx.76.215.104:3000/
  12 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency   312.36ms  139.82ms   1.89s    92.13%
    Req/Sec    21.15     11.70    70.00     63.86%
  2007 requests in 10.10s, 0.94MB read
  Socket errors: connect 0, read 0, write 0, timeout 43
Requests/sec:    198.80
Transfer/sec:     95.13KB

0.5 CPU 具体是什么配置

7080 次点击
所在节点    LeanCloud
5 条回复
bingwenshi
2017-03-01 10:53:43 +08:00
你这只是测试的网速,跟机器配置没关系
subpo
2017-03-01 10:54:50 +08:00
因为计价方式不同
TangMonk
2017-03-01 11:06:13 +08:00
@bingwenshi 阿里云的是 100M 按量计费的带宽,我的本地带宽也是 100M
peesefoo
2017-03-01 11:06:16 +08:00
然而不支持数据库没什么卵用
jybox
2017-03-01 14:02:08 +08:00
0.5CPU/256M 是对你的容器的限制,你的容器里基本上就只有应用进程了,操作系统、数据库、负载均衡( Nginx )等等都不在你的容器中。另外 Nginx 在处理慢请求上会比 Node.js 更有效率,因此 Node.js 前面套一个 Nginx 通常会比直接测 Node.js 更快(尤其公网上)。

有关 LeanCloud 的更多问题建议来我们的论坛提问 https://forum.leancloud.cn

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/343990

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX