我使用的gateway-worker框架 我想看下当前系统的压测指标,其中一项是gateway转发消息给businessworker时,消息是否有积压
目前理解:gateway转发时把消息放在了一个缓存堆栈->_sendBuffer中,整个堆栈的总容量为->sendToWorkerBufferSize,所以_sendBuffer/sendToWorkerBufferSize 即堆栈使用百分比
目前我的代码:
这里拿到的$totalSize总是0,不知道哪里出了问题?
$totalSize一直为0是因为图中 $this->_workerConnections 一直为空,我已经启动了businessworker
$totalSize一直为0是因为图中 $this->_workerConnections 一直为空,我已经启动了businessworker