环境:Workerman version:3.5.14 PHP version:7.2.8
为了分开部署演练,在同一台机器,我把Register Gateway BusinessWorker 按顺序分开启动,wokerman.log不停的提示:
2018-09-24 11:15:18 pid:9978 Gateway: Worker->name conflict. Key:127.0.0.1:MailBusinessWorker:3
2018-09-24 11:15:18 pid:9966 Gateway: Worker->name conflict. Key:127.0.0.1:MailBusinessWorker:3
2018-09-24 11:15:18 pid:9926 Gateway: Worker->name conflict. Key:127.0.0.1:MailBusinessWorker:3
2018-09-24 11:15:18 pid:9966 Gateway: Worker->name conflict. Key:127.0.0.1:MailBusinessWorker:3
2018-09-24 11:15:18 pid:9954 Gateway: Worker->name conflict. Key:127.0.0.1:MailBusinessWorker:3
2018-09-24 11:15:18 pid:9978 Gateway: Worker->name conflict. Key:127.0.0.1:MailBusinessWorker:3
导致我的磁盘很快就爆满了。
我看了一下源码说在一台服务器上businessWorker->name不能相同,但还是没有搞清楚怎么会提示conflict
// bussinessWorker 进程
$worker = new BusinessWorker();
$worker->name = 'MailBusinessWorker';
$worker->count = 6;
......
请大家帮忙,什么原因导致的conflict?怎么解决?
慕尼黑5688855
相关分类