XiaoMi / mone

No description, website, or topics provided

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Improving Log Agent Performance by Switching to Coroutine and Monitoring Active Log

goodjava opened this issue · comments

Currently, the log agent uses a polling method to obtain log status, which is not the best solution in most cases. Now, a log is also bound to a thread, which is a heavy burden in itself. The performance is greatly improved after switching to coroutine. We are prepared to go further. We plan to start monitoring log files and only process those active logs to reduce the number of threads.