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

最近写的一个基于 Raft 算法定义的分布式运维软件

  •  
  •   firejoke · Jul 9, 2022 · 2471 views
    This topic created in 1408 days ago, the information mentioned may be changed or developed.

    keeper

    SRkv

    1. 使用 zerorpc 对外暴露和节点选举以及存取键值对有关的方法。
    2. 使用 gevent 生成集群角色维护的事件循环和数据事务执行的事件循环(还包括一个 zerorpc 自己的事件循环)。
    3. 因为 zerorpc 原生不支持使用 kwargs 形参,并且是明文传输,增加对传参和返回的修饰。

    manager

    1. 从配置文件读取需要运行的运维脚本的配置( keeper-procs)。
    2. 从工作目录下导入需要运行的脚本,并生成子进程运行该脚本的 proc 方法。
    3. 根据脚本配置的 require 参数决定脚本的加载顺序,根据 reload_max 参数决定在脚本运行失败后的重启次数。
    4. SRkv 为默认运行脚本。
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3019 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 12:02 · PVG 20:02 · LAX 05:02 · JFK 08:02
    ♥ Do have faith in what you're doing.