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

关于 python3 使用什么来管理服务器集群的方案,目前构想的方案是采用 paramiko 以及 mysql 存储 server 来实现,不知道还有什么方案

  •  
  •   linhanqiu · Mar 19, 2018 · 3203 views
    This topic created in 3156 days ago, the information mentioned may be changed or developed.

    关于 python3 使用什么来管理服务器集群的方案,目前构想的方案是采用 paramiko 以及 mysql 存储 server 来实现,不知道还有什么方案, 查了一些实现方案,python2 是采用 fabric 来作为管理的,但是不支持 python3,有没有 python3 的异步的管理方案。

    14 replies  •  2018-03-22 13:09:53 +08:00
    DevNet
    DevNet
    Mar 19, 2018
    1
    管理集群? ansible?
    playniuniu
    playniuniu
    Mar 19, 2018 via iPhone
    2
    这种需求还是用 ansible 之类的成熟方案比较好
    dreampython
    dreampython
    Mar 19, 2018 via iPhone
    3
    lz 这里说的服务器集群是什么概念? hadoop 集群、hbase 集群、solr 集群,是这种集群的概念?
    praynise
    praynise
    Mar 19, 2018
    4
    既然想要用 paramiko,说明可以接受基于 ssh 的调用吧?那样的话,如果规模小可以选择 fabric,如果规模大一点可以选择 ansible 和 saltstack
    praynise
    praynise
    Mar 19, 2018
    5
    fabric 有 python3 版本的 fabric3,基本上和 fabric 保持了版本和功能一致(不过每次都是 python2 版本先更新,python3 版本可能要晚个一段时间,如果是小更新的话可能不同步更新)
    linhanqiu
    linhanqiu
    OP
    Mar 20, 2018
    6
    @DevNet 恩,正在尝试
    linhanqiu
    linhanqiu
    OP
    Mar 20, 2018
    7
    @dreampython 不是,就是普通的 liunx 服务器管理
    linhanqiu
    linhanqiu
    OP
    Mar 20, 2018
    8
    @praynise 好的,现在正想尝试一下。
    pc10201
    pc10201
    Mar 20, 2018
    9
    老老实实用 ansible
    huangzxx
    huangzxx
    Mar 20, 2018
    10
    ansible +1
    ksupertu
    ksupertu
    Mar 21, 2018 via iPhone
    11
    jumpserver 也可以试试,如果批量操作 ansibke 或者 saltstack,看你的集群规模定
    ksupertu
    ksupertu
    Mar 21, 2018
    12
    @ksupertu 勘误,ansible,手机没打准,saltstack 带的 MQ 大概能支持 4400 台服务器同时操作,ansible 利用 ssh 协议没法达到这么大量
    linhanqiu
    linhanqiu
    OP
    Mar 22, 2018
    13
    @ksupertu 好的
    julyclyde
    julyclyde
    Mar 22, 2018
    14
    为什么先定锤子后找钉子呢
    管理服务器,和用 python3 管理服务器,是两个概念

    python 系管理工具,推荐 saltstack 和 ansible
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   4145 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 46ms · UTC 01:56 · PVG 09:56 · LAX 17:56 · JFK 20:56
    ♥ Do have faith in what you're doing.