推荐学习书目
› 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
iammutex
V2EX  ›  Python

请教:python+thrift的结构做service,如何实现部署的自动化

  •  
  •   iammutex · Oct 16, 2012 · 5548 views
    This topic created in 5096 days ago, the information mentioned may be changed or developed.
    使用python进行底层模块开发,thrift方式提供外部接口。由于是web应用,变化会比较频繁。用thrift自带的server的话,每次有功能变更都需要重启server,期间会导致服务暂时中断。请问有没有什么集成部署的方式,可以实现平滑的reload。
    PS:看过douban的策略,使用pastescript,不过对其原理和使用方法都不甚了解,希望有了解的朋友给指点一二。
    多谢!
    4 replies  •  1970-01-01 08:00:00 +08:00
    superisaac
        1
    superisaac  
       Oct 16, 2012   ❤️ 1
    还在迅猛开发的过程中不要用thrift
    iammutex
        2
    iammutex  
    OP
       Oct 18, 2012
    @superisaac 等api稳定后再用thrift重新封装?
    Livid
        3
    Livid  
    MOD
    PRO
       Oct 18, 2012   ❤️ 1
    将代码放入 git 中,部署过程写成 Ansible 的 playbook,每次需要部署的时候,运行一下这个 playbook 即可。

    http://ansible.cc/
    phuslu
        4
    phuslu  
       Oct 19, 2012
    看到有人做了这个, 思路倒是蛮好的, 但是性能不晓得哎.
    https://github.com/blackwithwhite666/socket_zmq
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   944 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 19:31 · PVG 03:31 · LAX 12:31 · JFK 15:31
    ♥ Do have faith in what you're doing.