Skip to content

fix2640: Distributor refactoring to assert ingestion rate limits as early as possible#2703

Merged
joe-elliott merged 2 commits intografana:mainfrom
mghildiy:fix2640
Jul 27, 2023
Merged

fix2640: Distributor refactoring to assert ingestion rate limits as early as possible#2703
joe-elliott merged 2 commits intografana:mainfrom
mghildiy:fix2640

Conversation

@mghildiy
Copy link
Copy Markdown
Contributor

@mghildiy mghildiy commented Jul 26, 2023

What this PR does: Refactor distributor to ensure that rate limits are checked before other costly operations are done

Which issue(s) this PR fixes:
Fixes #2640

Checklist

  • Tests updated
  • Documentation added
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]

Copy link
Copy Markdown
Collaborator

@joe-elliott joe-elliott left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice fix! thanks.

two easy comments/changes.

Comment thread CHANGELOG.md Outdated
Comment thread modules/distributor/distributor.go
Copy link
Copy Markdown
Collaborator

@joe-elliott joe-elliott left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice improvement 👍

@joe-elliott
Copy link
Copy Markdown
Collaborator

looks like we're all fighting for space in the 2.3 changelog :). If you can resolve that conflict, I will merge.

@mghildiy
Copy link
Copy Markdown
Contributor Author

looks like we're all fighting for space in the 2.3 changelog :). If you can resolve that conflict, I will merge.

Done.

@joe-elliott joe-elliott merged commit 35df974 into grafana:main Jul 27, 2023
@mghildiy mghildiy deleted the fix2640 branch July 27, 2023 12:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Distributor perf: assert ingestion rate limits as early as possible

2 participants