naroga/foreman
Composer 安装命令:
composer create-project naroga/foreman
包简介
A worker manager with a priority process queue.
README 文档
README
Naroga/Foreman is a worker manager. It allows you to spawn parallel processes without spawning too many processes at once (and thus consuming all your resources). It's an easy way to enqueue new processes, sit back and wait to be notified when the process is done.
It's easy to configure and has a built-in queue priority schema.
Project requisites
This project is now supported in all major OS': UNIX, OSX and Windows.
It requires PHP 5.5+ (or 7.0+), curl, json, and xml extensions.
See the Symfony Requirements for more specific and in-depth requirements.
You can check if your system is ready to use by running php app/check.php.
Installation
Use Composer to install this project and all its dependencies:
composer create-project naroga/foreman
The installation wizard will ask you for a few parameters, such as a hostname and a port for the daemon service. You can change these, but if you wish, you can just press ENTER at each request to use the default configuration, which should run just fine.
Configuration
1. Setting up the servers
There are two servers in this project that should be running at all times
1.1. The Daemon Service
The demon is started from the command line, and if you installed this application using
composer (see the topic above), it should be good to go. Just check if your firewall
isn't blocking connections in the specified port (defaults to 3440). If you wish to make
changes to the host/port, you should edit app/config/parameters.yml.
1.2. The http server
The http server runs like you would expect from a PHP project. Just set up a virtual host pointing to the /web/ folder. If you wish to troubleshoot or to get more information on setting up the virtual host, you should refer to the Symfony WebServer configuration documentation.
2. Additional configuration
Naroga/Foreman comes preconfigured, so you can skip this section. If you wish to tweak the configuration to improve responsiveness, resource usage or to change the default behaviour, proceed to the configuration reference.
Usage
To get started on using this project, proceed to the documentation.
License
This project is released under the MIT License. For more information, see the LICENSE file.
naroga/foreman 适用场景与选型建议
naroga/foreman 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 17 次下载、GitHub Stars 达 6, 最近一次更新时间为 2015 年 08 月 07 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「queue」 「manager」 「workers」 「priority」 「runners」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 naroga/foreman 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 naroga/foreman 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 naroga/foreman 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
A gearman plugin for CakePHP 3
The file manager intended for using Laravel with CKEditor / TinyMCE / Colorbox
PHP AMQP Binding Library
A Laravel package to monitor queue jobs.
Get notified when supervisor is down.
PHP library for dispatching, handling and managing Gearman Workers
统计信息
- 总下载量: 17
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 6
- 点击次数: 25
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-08-07