[attach]938[/attach]
創(chuàng)建1000個(gè)客戶,大部分總是集中到20275這個(gè)進(jìn)程。能不能實(shí)現(xiàn)隨機(jī)分配。
平均分配并不總是最優(yōu)的,默認(rèn)是搶占式分配。 可以在start_gateway.php里設(shè)置$gateway->reusePort=true;,這樣是平均分配。
http://doc.workerman.net/315142