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

perf(rate-limiting): sync to redis periodically #9538

Merged
merged 2 commits into from
Jun 21, 2023

Conversation

ADD-SP
Copy link
Contributor

@ADD-SP ADD-SP commented Oct 12, 2022

Summary

BLOCKED BY #9764

Adds a new configuration sync_rate to the redis policy, which synchronizes metrics to redis periodically instead of on every request.

Checklist

  • changelog
  • tests
  • cherry-pick to EE

Issue reference

Fix FT-3464
Fix #8729

@ADD-SP ADD-SP force-pushed the add_sp/perf-rate-limiting branch from da44d69 to bb5dfa9 Compare October 12, 2022 03:17
@ADD-SP ADD-SP force-pushed the add_sp/perf-rate-limiting branch 4 times, most recently from 097e933 to cdcfe60 Compare October 12, 2022 05:19
@ADD-SP ADD-SP force-pushed the add_sp/perf-rate-limiting branch from cdcfe60 to de20bd5 Compare October 13, 2022 03:19
@chronolaw chronolaw changed the title perf(rate-limiting) sync to redis periodically perf(rate-limiting): sync to redis periodically Oct 14, 2022
@ADD-SP ADD-SP force-pushed the add_sp/perf-rate-limiting branch 6 times, most recently from 93a0080 to 30c714e Compare October 18, 2022 01:55
CHANGELOG.md Outdated Show resolved Hide resolved
kong/plugins/rate-limiting/schema.lua Outdated Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
kong/plugins/rate-limiting/policies/init.lua Outdated Show resolved Hide resolved
kong/plugins/rate-limiting/policies/init.lua Outdated Show resolved Hide resolved
kong/plugins/rate-limiting/policies/init.lua Outdated Show resolved Hide resolved
kong/tools/timestamp.lua Outdated Show resolved Hide resolved
@ADD-SP ADD-SP force-pushed the add_sp/perf-rate-limiting branch 5 times, most recently from 8836b84 to a2ab543 Compare October 31, 2022 05:36
@ADD-SP ADD-SP force-pushed the add_sp/perf-rate-limiting branch 3 times, most recently from 7195057 to 438061f Compare April 14, 2023 04:45
@StarlightIbuki StarlightIbuki force-pushed the add_sp/perf-rate-limiting branch from 438061f to 2098f43 Compare June 5, 2023 03:03
Copy link
Contributor

@StarlightIbuki StarlightIbuki left a comment

Choose a reason for hiding this comment

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

I approve this PR. But as I committed to this PR, we need someone else to review this PR. To prevent merging with my approval, I leave this as a comment.

kong/clustering/compat/removed_fields.lua Outdated Show resolved Hide resolved
kong/plugins/rate-limiting/policies/init.lua Outdated Show resolved Hide resolved
kong/plugins/rate-limiting/policies/init.lua Outdated Show resolved Hide resolved
kong/plugins/rate-limiting/policies/init.lua Outdated Show resolved Hide resolved
kong/plugins/rate-limiting/policies/init.lua Show resolved Hide resolved
kong/plugins/rate-limiting/policies/init.lua Outdated Show resolved Hide resolved
kong/plugins/rate-limiting/policies/init.lua Outdated Show resolved Hide resolved
kong/plugins/rate-limiting/policies/init.lua Outdated Show resolved Hide resolved
@StarlightIbuki StarlightIbuki force-pushed the add_sp/perf-rate-limiting branch 2 times, most recently from db9aee5 to 52bfe24 Compare June 12, 2023 07:31
CHANGELOG.md Outdated Show resolved Hide resolved
* perf(tools/timestamp): using Lua std API instead of `luatz` module for function `get_timestamps`

Thanks to Dan Carley for fixing the ACL test.
dcarley@f18458d

fix merge issues
refactor
Apply suggestions from code review
revert unnecessary changes

Co-authored-by: Chrono <[email protected]>
@StarlightIbuki StarlightIbuki force-pushed the add_sp/perf-rate-limiting branch from 52bfe24 to a5c1729 Compare June 13, 2023 06:26
@AndyZhang0707 AndyZhang0707 requested a review from fffonion June 13, 2023 06:29
@StarlightIbuki StarlightIbuki force-pushed the add_sp/perf-rate-limiting branch from a5c1729 to 63e7f13 Compare June 13, 2023 06:32
CHANGELOG.md Show resolved Hide resolved
@hanshuebner hanshuebner merged commit 1988ac3 into master Jun 21, 2023
@hanshuebner hanshuebner deleted the add_sp/perf-rate-limiting branch June 21, 2023 08:57
windmgc pushed a commit that referenced this pull request Jun 26, 2023
#9538 was created before 3.3.0 released, so the remove_fields was added for 3.3.0.

Now we are developing 3.4, so we need to move that to the correct place.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

PR #6150 (fix for issue #5763) accidentally reverted by PR #8213 ?
9 participants