V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
LeanCloud
LeanCloud
TangMonk
V2EX  ›  LeanCloud

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

  •  
  •   TangMonk · 2017-03-01 10:45:02 +08:00 · 7022 次点击
    这是一个创建于 2584 天前的主题,其中的信息可能已经有所发展或是发生改变。

    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 具体是什么配置

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

    有关 LeanCloud 的更多问题建议来我们的论坛提问 https://forum.leancloud.cn
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3294 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 13:12 · PVG 21:12 · LAX 06:12 · JFK 09:12
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.