Skip to content

Agent task queue pop rate limit #7636

@DavidePrincipi

Description

@DavidePrincipi

Under unexpected conditions, the agent task queue may be filled with hundreds of tasks. The agent has no rate limit when it pops the tasks out of its queue: this behavior might lead to high loads and OOM killings.

Reported by @NethNick with hundreds of get-cluster-status tasks in the queue.
Discussion https://mattermost.nethesis.it/nethesis/pl/nuuxze8e6fyi8fx3xg88hn87mr

Relevant agent code: https://github.com/NethServer/ns8-core/blob/005f7bc89077c8e598e4cdb7fbf949cb522e878c/core/agent/htask.go#L345

Metadata

Metadata

Assignees

No one assigned

    Labels

    verifiedAll test cases were verified successfully

    Projects

    Status

    Done

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions