Uneven load distribution between threads on the TCP server
TheMadius opened this issue · 5 comments
TheMadius commented
Goga1992 commented
I confirm. I observe the same uneven load when adding video streams very quickly
xia-chu commented
The load balancing algorithm of zltoolkit is not round robin,
So some imbalances are reasonable。
There is a thread load evaluation algorithm inside the zltoolkit, which has latency and may not be accurately evaluated in the short term.
xia-chu commented
This is the load evaluation algorithm:
ZLToolKit/src/Thread/TaskExecutor.h
Line 25 in e6fd7c7
xia-chu commented
This is the algorithm for obtaining the thread with the lowest load:
ZLToolKit/src/Thread/TaskExecutor.cpp
Line 126 in e6fd7c7
TheMadius commented
Thank you