neighborhoods/kojo
Composer 安装命令:
composer require neighborhoods/kojo
包简介
Neighborhoods Kōjō is a distributed task manager.
README 文档
README
工場
A distributed task manager.
Kōjō is a collection of the following components:
- Distributed task management.
- Distributed, cooperative, process-aware semaphores and mutexes.
- Static cron scheduling.
- Multi-process model.
- Distributed IPC.
Trying out Kōjō
Real-world use cases for Kōjō and instructions for getting Kōjō up and running in your project can be found at KojoFitness.
Debugging Kōjō
XDebug version greater than xdebug-2.7.0alpha1 is required when trying to debug Kōjō. This version of XDebug resolves issues (https://bugs.xdebug.org/938) caused by the way the Kōjō forks using pcntl.
If you are using PhpStorm and you have more concurrent Kōjō jobs running than the Max. simultaneous connections defined for your XDebug listener, Kōjō will appear to hang. To avoid this, increase your Max. simultaneous connections to the max value of 20 in PhpStorm's preferences under Languages & Frameworks > PHP > Debug, External connections section.
Kōjō appears to be hanging during local development?
- Stop all local containers and rebuild them
- Run
ps -auxfto see if any processes are still running Kōjō with a title likeneighborhoods-kojo: /server[8]/root[22]/job[30]- If yes run
pkill -9 -f kojoto SIG_KILL all the processes containing the wordkojo
- If yes run
- Run
docker-compose exec redis redis-cli monitorto see if Kōjō is creating any activity in redis.- If nothing is streaming by like
"GET" "/neighborhoods/kojo/area_manager/job_state_changelog_processor.lock"messages then something else is blocking the execution of Kōjō internals. This is typically due to a debugger.
- If nothing is streaming by like
- Turn off the debugger. Sometimes this will mess with Kojo
- Check your version of XDebug (version before
2.7.0won't work and2.8.2has seen some odd behavior. Recommend2.9.2) - Checkout the debugging logs Troubleshooting common PHP debugging issues - Help | PhpStorm
neighborhoods/kojo 适用场景与选型建议
neighborhoods/kojo 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 21.04k 次下载、GitHub Stars 达 13, 最近一次更新时间为 2018 年 07 月 26 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 neighborhoods/kojo 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 neighborhoods/kojo 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 21.04k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 15
- 点击次数: 2
- 依赖项目数: 2
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-07-26