imper86/supervisor-bundle 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

imper86/supervisor-bundle

Composer 安装命令:

composer require imper86/supervisor-bundle

包简介

Symfony bundle to create/update supervisor configurations and control supervisor process

README 文档

README

Symfony bundle to create/update supervisor configurations and control supervisor process.

This bundle was heavily inspired by phobetor/rabbitmq-supervisor-bundle.

Installation

Install with composer:

composer require imper86/supervisor-bundle

Add bundle to your bundles.php:

Imper86\SupervisorBundle\Imper86SupervisorBundle::class => ['all' => true]

Configuration

To start using this bundle you must configure your supervisor "instances". Instances are groups of commands that are controlled together.

So, if you want some commands to be started/stopped/etc separately it's possible by using another instance.

Example config:

imper86_supervisor:
    # you can define workspace dir for bundle, this is default:
    workspace_directory: '%kernel.project_dir%/var/imper86supervisor/%kernel.environment%'

    # to start using bundle you must configure your instances and worker commands
    instances:
        default:
            commands:
                messenger:
                    command: 'messenger:consume async_high async_low --limit=50'
                    numprocs: 1
                messenger_multiproc:
                    command: 'messenger:consume async_multiproc --limit=50'
                    numprocs: 4
                crawler:
                    command: 'app:crawl'
                    numprocs: 1
        enqueue:
            commands:
                enqueue:
                    command: 'enqueue:consume --message-limit=10'
                    numprocs: 4
        foo_instance:
            commands:
                foo:
                    command: 'app:foo'
                bar:
                    command: 'app:bar'

Console commands

  • i86:supervisor:rebuild - this command will:
    • stop running workers
    • create config files using your configuration
    • ask do you want to start workers
  • i86:supervisor:control - use this command with argument:
    • stop - to stop running workers
    • status - to get supervisor's current status
    • start/restart - starts workers with current configuration
  • i86:supervisor:clean:dirs - Removes every directory in workspace, which is not currently configured
  • i86:supervisor:clean:logs - removes all .log files related to the bundle

Contributing

Any help will be very appreciated :)

统计信息

  • 总下载量: 49
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-09-29

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固