Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Change throttle limit distribution logic #669

Closed
kirillov6 opened this issue Aug 30, 2024 · 0 comments · Fixed by #670
Closed

Feature: Change throttle limit distribution logic #669

kirillov6 opened this issue Aug 30, 2024 · 0 comments · Fixed by #670
Assignees
Labels
enhancement New feature or request

Comments

@kirillov6
Copy link
Collaborator

Now with config:

default_limit: 3000
limit_distribution:
  field: level
  ratios:
    - ratio: 0.1
      values:
        - debug

10% of limit will be reserved for debug logs.
That is, if the service does not write debug logs at all, only 2700 logs will be written, then they will start throttling.
The logic needs to be changed so that with the same config there is no reservation and no more than 10% of debug logs can be written. Then, for example, if the service does not write debug logs at all, all 3000 logs are written.

@kirillov6 kirillov6 added the enhancement New feature or request label Aug 30, 2024
@kirillov6 kirillov6 self-assigned this Aug 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant