使用的web-msg-sender服務(wù),想問一下,下列的$consumer->count最大值怎么計算?
// ######## 消息隊列消費者 ########
$consumer = new Worker();
// 消費的隊列的id
$consumer->queueId = $QUEUE_ID;
// 慢任務(wù),消費者的進(jìn)程數(shù)可以開多一些
$consumer->count = 40;
系統(tǒng):CentOS 7.9.2009 x86_64(Py3.7.9)
CPU:8核
內(nèi)存:16G
硬盤:30G
WORKERMAN版本:4.0.2
PHP:7.3
NGINX
手冊有說怎么設(shè)置進(jìn)程數(shù) http://m.wtbis.cn/doc/workerman/faq/processes-count.html
另外我記得web-msg-sender本身只能單進(jìn)程,$consumer->count 看起來是消費者進(jìn)程數(shù),和web-msg-sender沒什么關(guān)系