天天看點

【supervisord 】supervisord 4.0.0 以上支援 python3.5

摘錄 - 1:

請問 python3.5 可以使用哪個工具來代替 supervisor 呢?

vainpray · 2017-07-29 14:44:37 +08:00 · 5303 次點選

這是一個建立于 705 天前的主題,其中的資訊可能已經有所發展或是發生改變。

請問 python3.5 可以使用哪個工具來代替 supervisor 呢? supervisor 隻支援 python2,好苦悶…(同樣讓人苦悶的還有 fabric …不過好在 fabric3 和 fabric 目前隻差了一個小版本) 

查到一個包叫做 circus,不過檢視 circus 的文檔上說 circus 支援到 python3.3,不知道用在 3.5 上會不會有什麼問題…請問各位使用 py3.5+的使用什麼工具代替 supervisor 呢

  •  Supervisor
  •  Circus
  •  Python
  •  請問

11 回複  |  直到 2017-08-03 14:51:08 +08:00

【supervisord 】supervisord 4.0.0 以上支援 python3.5

    1

tammy   2017-07-29 15:02:46 +08:00

裝個 py2,用 py2 跑 supervisor 咯

【supervisord 】supervisord 4.0.0 以上支援 python3.5

    2

weakish   2017-07-29 16:25:02 +08:00

沒有特殊需求的話任意語言寫的 supervisor 都可以,畢竟管理的是 process

【supervisord 】supervisord 4.0.0 以上支援 python3.5

    3

infun   2017-07-29 20:16:51 +08:00

https://stackoverflow.com/questions/19796883/supervisord-for-python-3

【supervisord 】supervisord 4.0.0 以上支援 python3.5

    4

LokiSharp   2017-07-29 21:16:46 +08:00

裝個 python 2 啊。。。又不沖突

【supervisord 】supervisord 4.0.0 以上支援 python3.5

    5

iakisey   2017-07-29 21:20:36 +08:00

supervisor 4.0.0.dev0 已經支援 python3 了,

【supervisord 】supervisord 4.0.0 以上支援 python3.5

    6

vainpray   2017-07-30 07:07:16 +08:00

@iakisey 我之前看 supervisor 的文檔上強調說,千萬不能将 supervisor4 用在生産環境上…我是想用在生産環境做程序管理,是以沒敢上(⊙﹏⊙)b

【supervisord 】supervisord 4.0.0 以上支援 python3.5

    7

iakisey   2017-07-30 07:51:42 +08:00 via iPhone

@vainpray 我這邊已經線上上用了。。。。。

【supervisord 】supervisord 4.0.0 以上支援 python3.5

    8

vainpray   2017-07-30 15:35:34 +08:00

@iakisey 額…用起來怎麼樣?有沒有遇到什麼坑?穩定嗎

【supervisord 】supervisord 4.0.0 以上支援 python3.5

    9

iakisey   2017-07-30 21:49:45 +08:00 via iPhone

@vainpray 蠻穩定的,沒出現錯過

【supervisord 】supervisord 4.0.0 以上支援 python3.5

    10

simpleapples   2017-07-30 23:34:02 +08:00

我司線上就是 py2 環境下的 supervisor 跑 py3 的 web 項目 兩年多來沒遇到過什麼問題

【supervisord 】supervisord 4.0.0 以上支援 python3.5

    11

ossicee   2017-08-03 14:51:08 +08:00 via Android

circus

摘要 - 2:

Want to use supervisord to control the processes for my Python 3 project. It is specifically stated that "Supervisor is known to work with Python 2.4 or later but will not work under any version of Python 3".

Any suggestions for supervisor replacement for Python 3?

python python-3.x supervisord

shareimprove this question

edited Nov 6 '13 at 23:20

【supervisord 】supervisord 4.0.0 以上支援 python3.5

Martijn Pieters♦

744k157157 gold badges26782678 silver badges24122412 bronze badges

asked Nov 5 '13 at 19:10

【supervisord 】supervisord 4.0.0 以上支援 python3.5

user2777473

1,53133 gold badges1616 silver badges2727 bronze badges

add a comment

5 Answers

activeoldestvotes

64

The upcoming 4.0 release of Supervisord will support Python 2.7, and 3.4 and up. Until then, you could use the 

supervisor-py3k

 fork.

Or simply run 

supervisord

 with Python 2; your Python 3 codebase is otherwise unaffected, as 

supervisord

 is an independent process.

shareimprove this answer

edited Jul 25 '18 at 6:50

【supervisord 】supervisord 4.0.0 以上支援 python3.5

toolforger

31233 silver badges1515 bronze badges

answered Nov 6 '13 at 23:23

【supervisord 】supervisord 4.0.0 以上支援 python3.5

Martijn Pieters♦

744k157157 gold badges26782678 silver badges24122412 bronze badges

  • 1

    Thx... God the Installation gives no information and I totally don't know how to start, with so many *.py files:( – user2395922 Sep 15 '14 at 3:20

  • 1

    Could you add a reference for "The upcoming 4.0 release of Supervisord will support Python 2 and 3 (3.2 and up)."? – joar May 11 '15 at 12:20

  • 3

    @joar: See this issue for a status of the Supervisord move to support Python 3.x. The master branch in GitHub supports Python 3, and is marked as version 4.0.0-dev. – Martijn Pieters♦ May 11 '15 at 14:21

add a comment

26

To use supervisord with Python 3 you can setup it directly with pip:

pip install git+https://github.com/Supervisor/supervisor
           

shareimprove this answer

answered Apr 20 '18 at 9:12

【supervisord 】supervisord 4.0.0 以上支援 python3.5

Vasili Pascal

1,3011515 silver badges1313 bronze badges

  • 2

    This is a good option as of Aug 2018, where the latest pip version is 3.3.4 versus 4.0.0dev on GitHub, as noted above – Brad Solomon Aug 21 '18 at 20:21

add a comment

17

Python 3 support for supervisord is still experimental and as mentioned in documentation, you shouldn't use it in production.

Mozilla Foundation has developed a package called circus which works on Python 3.

It manages process with circusd and it also has circusctl, circus-top, circus-web(similar to supervisor).

You can use your supervisor conf file with circus with some changes. It also has a seperate section in docs for users coming from supervisor. You can read that for more details.

Update: Latest master has python 3 support. You can install it with

pip install git+https://github.com/Supervisor/supervisor
           

shareimprove this answer

edited Jun 4 '18 at 5:35

answered Jan 12 '17 at 7:37

【supervisord 】supervisord 4.0.0 以上支援 python3.5

ChillarAnand

16.7k33 gold badges7878 silver badges9696 bronze badges

add a comment

15

Master branch of Supervisor already supports Python3. It's a development version, so please notify any bug you find.

shareimprove this answer

edited Sep 4 '15 at 19:01

answered Apr 7 '15 at 19:08

【supervisord 】supervisord 4.0.0 以上支援 python3.5

Adrian Lopez

1,38022 gold badges1919 silver badges3636 bronze badges

add a comment

supervisor 4+ supports Python3, It's available in PyPI so you can simply do 

pip install supervisor

 to install it.

shareimprove this answer

answered Jun 13 at 21:05

【supervisord 】supervisord 4.0.0 以上支援 python3.5

atb00ker

7322 silver badges99 bronze badges

add a comment