Skip to content

[QUESTION]:Why frequently use util.RandomSleep?  #199

@JeffPhoneix

Description

@JeffPhoneix

LogFileReader 的run协程中, 使用 util.RandomSleep 这种休眠是为了解决什么问题吗?
我猜想是为了实现某种读取磁盘文件的时间片机制,防止某一个LogConfig下的大量文件读取完全占据磁盘带宽,而影响其他LogConfig的读取吗?保证不同采集配置间的公平性?

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions