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

feat(acme): add scan_count to redis storage schema #11532

Merged
merged 2 commits into from
Sep 26, 2023

Conversation

szesch
Copy link
Contributor

@szesch szesch commented Sep 8, 2023

Summary

SRE has started seeing entries in the Redis slowlog related to retrieving keys for kong_acme:renew_config. lua-resty-acme was recently changed to use Redis scan instead of keys for performance reasons. See the lua-resty-acme PR for more details fffonion/lua-resty-acme#106.

This PR exposes a new configuration field for Redis storage that controls how many keys are returned in a scan call and bumps lua-resty-acme to 0.12.0.

Checklist

  • The Pull Request has tests
  • A changelog file has been added to CHANGELOG/unreleased/kong or adding skip-changelog label on PR if unnecessary. README.md
  • There is a user-facing docs PR against https://github.com/Kong/docs.konghq.com - PUT DOCS PR HERE

@fffonion

@fffonion
Copy link
Contributor

@kikito kikito added the pending author feedback Waiting for the issue author to get back to a maintainer with findings, more details, etc... label Sep 19, 2023
@github-actions github-actions bot added the author/community PRs from the open-source community (not Kong Inc) label Sep 19, 2023
* bump lua-resty-acme plugin to 0.12.0
* expose scan_count in redis storage schema to configure
  the number of keys returned in redis scan calls
@szesch szesch force-pushed the feat/acme-redis-scan-count branch from 4d5b1da to 6a2cf8d Compare September 21, 2023 19:02
@pull-request-size pull-request-size bot added size/M and removed size/S labels Sep 21, 2023
@szesch
Copy link
Contributor Author

szesch commented Sep 21, 2023

@fffonion updated with a unit test and change log file

@fffonion fffonion merged commit 94acc02 into master Sep 26, 2023
23 checks passed
@fffonion fffonion deleted the feat/acme-redis-scan-count branch September 26, 2023 05:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
author/community PRs from the open-source community (not Kong Inc) core/clustering pending author feedback Waiting for the issue author to get back to a maintainer with findings, more details, etc... plugins/acme schema-change-noteworthy size/M
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants