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

Cache current usage query result #122

Merged
merged 1 commit into from
Jul 28, 2024
Merged

Cache current usage query result #122

merged 1 commit into from
Jul 28, 2024

Conversation

mahendrapaipuri
Copy link
Owner

  • Current usage query is quite slow due to go-cgo trips for custom funcs. So we cache the query results by rounding the query period to the cache interval.

  • As long as query period stays within cache interval, results of cached query will be returned.

  • Rate limiting is applied over entire API server which can be configured from config file

@mahendrapaipuri mahendrapaipuri added the enhancement New feature or request label Jul 28, 2024
@mahendrapaipuri mahendrapaipuri added this to the v0.2.0 milestone Jul 28, 2024
* Current usage query is quite slow due to go-cgo trips for custom funcs. So we cache the query results by rounding the query period to the cache interval.

* As long as query period stays within cache interval, results of cached query will be returned.

* Rate limiting is applied over entire API server which can be configured from config file

Signed-off-by: Mahendra Paipuri <[email protected]>
@mahendrapaipuri mahendrapaipuri merged commit e366d3d into main Jul 28, 2024
21 checks passed
@mahendrapaipuri mahendrapaipuri deleted the cache_queries branch July 28, 2024 09:28
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 this pull request may close these issues.

1 participant