Closed
Description
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.