kakuilan / phalwoo
swoole server frame for phalcon
Requires
- php: ^7.0
- ext-phalcon: ^3.2
- ext-swoole: ^1.9
- monolog/monolog: ^1.23
- mtdowling/cron-expression: ^1.2
- phpunit/phpunit: ^6.4
Requires (Dev)
- kakuilan/kphplib: dev-master
- phalcon/ide-stubs: *
This package is auto-updated.
Last update: 2025-03-08 12:19:52 UTC
README
swoole server frame for phalcon
必须安装swoole和phalcon扩展
测试
cd tests
phpunit ServerTest.php
或
php Server/bin.php start
nginx配置
server { listen 80; root /home/wwwroot/default; server_name my.com; location / { try_files $uri $uri/ /index.php?_url=$uri&$args; } location ~ ^/(index)\.php(/|$) { proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $remote_addr; proxy_set_header Host $host; proxy_pass http://127.0.0.1:6666; } }
部署时去掉:
phalcon/ide-stubs
eaglewu/swoole-ide-helper
react/promise
$ret->send(); $response->end($ret->getContent());
session前缀_PHCR PHCOOKIE
压测性能不行,找原因:
`1 redis写入问题
TODO:
定时器待优化,会导致worker err
Cmponent 组件
log eventsManager
日志切割
redis长连接
db长连接
大量连接时session redis超时错误
redis/mysql连接池pop并发下出错
连接池参考Promise
https://github.com/reactphp/promise
https://github.com/guzzle/promises
https://github.com/mkusher/reactphp-co
cat-sys/cat-core
Hprose\Promise
Prophecy
cron定时器基本格式 :
* * * * * 分 时 日 月 周 命令 第1列表示分钟1~59 每分钟用*或者 */1表示 第2列表示小时1~23(0表示0点) 第3列表示日期1~31 第4列表示月份1~12 第5列标识号星期0~6(0表示星期天)
abnormal exit, status=0, signal=11
signal=11 表示产生了 core dump,你需要使用 gdb 跟踪