V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
CMGS
V2EX  ›  Python

pypy+tornado+toro=?

  •  6
     
  •   CMGS · 2014-05-05 16:46:29 +08:00 · 7370 次点击
    这是一个创建于 3650 天前的主题,其中的信息可能已经有所发展或是发生改变。
    业务需要,随手写了个demo,详细记录在 http://www.douban.com/note/349004890/

    最终结果是C410K,65M/58M in/out,PUSH 5msg/s @ CPU Avg Load 1.1,8G MEM

    0 error,没有可见timeout,CPU消耗还凑合……

    表示这个组合很让人惊喜恩……
    18 条回复    2014-06-12 16:14:57 +08:00
    est
        1
    est  
       2014-05-05 17:05:11 +08:00
    没记错的话LZ在长沙?
    tonic
        2
    tonic  
       2014-05-05 17:15:16 +08:00
    又出来浪了...
    CMGS
        3
    CMGS  
    OP
       2014-05-05 17:24:28 +08:00 via Android
    @est 恩,长沙~
    est
        4
    est  
       2014-05-05 17:27:12 +08:00
    @CMGS 现在在哪个厂推销安利啊。哦不对,python。。。。
    fanzeyi
        5
    fanzeyi  
       2014-05-05 17:45:42 +08:00
    又出来浪了...
    lizheming
        6
    lizheming  
       2014-05-05 17:46:20 +08:00
    虽然我看不懂,不多我大涵叔的帖子必须好顶赞一个先~
    CMGS
        7
    CMGS  
    OP
       2014-05-05 17:58:41 +08:00
    @est 果断芒果台。。。那酸爽才是真的爽
    @lizheming 你可以假装看懂了
    riaqn
        8
    riaqn  
       2014-05-05 18:04:04 +08:00
    pypy比较非主流啊……不知道CPython的结果如何……
    lizheming
        9
    lizheming  
       2014-05-05 18:12:11 +08:00
    @est 我大函数现在去芒果台为IT界代言老坛酸菜去了→_→..随时关注天天向上吧,说不定哪天汪涵请假了就是我大涵叔去主持的呢←_←...

    @CMGS 历史的车轮告诉我们,装逼总有一天是要被雷劈的...所以还是不装了吧T_T
    initialdp
        10
    initialdp  
       2014-05-05 18:19:33 +08:00
    pypy这么强? 有同学在生产环境用么?
    CMGS
        11
    CMGS  
    OP
       2014-05-05 19:39:23 +08:00
    CPython上,tornado是被gevent完爆的……
    Pypy 有大公司用了,可以试试嘛
    ericFork
        12
    ericFork  
       2014-05-05 20:06:31 +08:00   ❤️ 1
    @lizheming 如果有一期汪涵胖了就知道了
    baocaixiong
        13
    baocaixiong  
       2014-05-05 20:07:52 +08:00
    我做梦都想在芒果台。在湘只言芒果。哎。
    lizheming
        14
    lizheming  
       2014-05-05 20:33:10 +08:00
    @ericFork 我擦简直神标志!!!给赞!!!!
    wuxqing
        15
    wuxqing  
       2014-05-08 09:45:45 +08:00
    C410K 是很猛。走websocket可以做高负载IM了?
    CMGS
        16
    CMGS  
    OP
       2014-05-08 13:06:33 +08:00
    @wuxqing 这台服务器的极限做到C2M都没啥问题。。。关键是你做IM,最大的瓶颈是CPU了……
    defage
        17
    defage  
       2014-06-12 15:44:06 +08:00
    你最好是能在可见时间内, 把芒果换乘pypy, 不然不是拍自己脸上了么.
    CMGS
        18
    CMGS  
    OP
       2014-06-12 16:14:57 +08:00
    @defage 在计划中了。。。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2079 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 16:03 · PVG 00:03 · LAX 09:03 · JFK 12:03
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.