Skip to content

Make per tenant queue size reloadable during runtime #5017

Closed
@yeya24

Description

@yeya24

Is your feature request related to a problem? Please describe.
We make max queue size a per tenant value in #4991. However, although they are per-tenant now, they are not dynamically updated during runtime because each user's queue is a buffered channel created during the initialization time. We should also update it during runtime.

Describe the solution you'd like
It is a little bit tricky here because we need to resize the channel, which means we need to handle increasing and shrinking channel size.

Describe alternatives you've considered
Maybe using an unbounded channel in this case is easier like https://github.com/smallnest/chanx.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions