zoukankan      html  css  js  c++  java
  • 【系统】supervisor支持多进程

    [program:deployworker]
    directory = /etc/ansible/easyAnsible/app/deploy/
    command = python Deploy.py
    process_name = %(program_name)s-%(process_num)s
    numprocs = 10
    stopsignal = QUIT
    autostart = true
    # startsecs = 30
    # startretries = 3
    autorestart = true
    # exitcodes = 0,1,2
    stdout_logfile_maxbytes = 10MB
    stdout_logfile_backups = 5
    stdout_logfile = /var/log/supervisor/%(program_name)s-stdout.log
    stderr_logfile = /var/log/supervisor/%(program_name)s-stderr.log
    # redirect_stderr = true
    [program:gearserver]
    directory = /etc/ansible/easyAnsible/app/dispatch/gearserver/
    command = java -jar java-gearman-service-0.6.6.jar -p 8889
    process_name = %(program_name)s
    numprocs = 1
    stopsignal = QUIT
    autostart = true
    # startsecs = 30
    # startretries = 3
    autorestart = true
    # exitcodes = 0,1,2
    stdout_logfile_maxbytes = 10MB
    stdout_logfile_backups = 5
    stdout_logfile = /var/log/supervisor/%(program_name)s-stdout.log
    stderr_logfile = /var/log/supervisor/%(program_name)s-stderr.log
    # redirect_stderr = true
    [program:jobworker]
    directory = /etc/ansible/easyAnsible/app/dispatch/gearwork
    command = python gearWork.py
    process_name = %(program_name)s-%(process_num)s
    numprocs = 10
    stopsignal = QUIT
    autostart = true
    # startsecs = 30
    # startretries = 3
    autorestart = true
    # exitcodes = 0,1,2
    stdout_logfile_maxbytes = 10MB
    stdout_logfile_backups = 5
    stdout_logfile = /var/log/supervisor/%(program_name)s-stdout.log
    stderr_logfile = /var/log/supervisor/%(program_name)s-stderr.log
    # redirect_stderr = true
    [program:webserver]
    directory = /etc/ansible/easyAnsible
    command = python manage.py runserver 0.0.0.0:80 --noreload
    process_name = %(program_name)s
    numprocs = 1
    stopsignal = QUIT
    autostart = true
    # startsecs = 30
    # startretries = 3
    autorestart = true
    # exitcodes = 0,1,2
    stdout_logfile_maxbytes = 10MB
    stdout_logfile_backups = 5
    stdout_logfile = /var/log/supervisor/%(program_name)s-stdout.log
    stderr_logfile = /var/log/supervisor/%(program_name)s-stderr.log
    # redirect_stderr = true
  • 相关阅读:
    SQL Server中的sysobjects
    SQL:事务(1)
    继续探究HTML与CSS:图像映射
    SQL:事务(2)
    找工作?该复习了!(转)
    继续探究HTML与CSS:!important 和 @import 规则
    JAVA数据结构:二叉树
    SQL:Like 通配符及特殊用法Escape
    JavaScript高级程序设计:在HTML中使用JavaScript
    一个有趣的时钟
  • 原文地址:https://www.cnblogs.com/junneyang/p/6890897.html
Copyright © 2011-2022 走看看