Fallback to cached value if available#7317
Conversation
|
Thank you for your contribution! 🙏 Please understand that we will do our best to review your PR and give you feedback as soon as possible, but please bear with us if it takes a little longer as expected. While you are waiting, make sure to:
Once the initial tests are successful, a KEDA member will ensure that the e2e tests are run. Once the e2e tests have been successfully completed, the PR may be merged at a later date. Please be patient. Learn more about our contribution guide. |
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
JorTurFer
left a comment
There was a problem hiding this comment.
I like this idea! just smal nits inline
|
Could you open a PR also to docs repo adding the new option there too? |
Signed-off-by: Dmitriy Altuhov <altuhovd@gmail.com> Signed-off-by: Dima Altukhov <dimaal@monday.com>
Replace self-hosted ARM64 runners with GitHub's free ubuntu-24.04-arm runners. Consolidate ARM64 and AMD64 smoke tests into a unified matrix. Signed-off-by: Vincent Link <vlink@redhat.com> Co-authored-by: Jorge Turrado Ferrero <Jorge_turrado@hotmail.es> Signed-off-by: Dima Altukhov <dimaal@monday.com>
* Fix smoke tests To use `go.mod` version for restoring golang, checkout must happen before golang installation task Signed-off-by: Jorge Turrado Ferrero <Jorge_turrado@hotmail.es> * Remove duplicate checkout step in workflow Signed-off-by: Jorge Turrado Ferrero <Jorge_turrado@hotmail.es> * Apply suggestions from code review Signed-off-by: Jorge Turrado Ferrero <Jorge_turrado@hotmail.es> * Update pr-e2e.yml Signed-off-by: Jorge Turrado Ferrero <Jorge_turrado@hotmail.es> --------- Signed-off-by: Jorge Turrado Ferrero <Jorge_turrado@hotmail.es> Signed-off-by: Dima Altukhov <dimaal@monday.com>
…dacore#7326) Bumps [github.com/expr-lang/expr](https://github.com/expr-lang/expr) from 1.17.6 to 1.17.7. - [Release notes](https://github.com/expr-lang/expr/releases) - [Commits](expr-lang/expr@v1.17.6...v1.17.7) --- updated-dependencies: - dependency-name: github.com/expr-lang/expr dependency-version: 1.17.7 dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Signed-off-by: Dima Altukhov <dimaal@monday.com>
* fix: projected service accounts are validated to prevent arbitrary path reads Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es> * validate signature Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es> --------- Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es> Signed-off-by: Dima Altukhov <dimaal@monday.com>
* Update releases Signed-off-by: Jorge Turrado <jorge.turrado@mail.schwarz> * Update releases Signed-off-by: Jorge Turrado <jorge.turrado@mail.schwarz> * fix linting issues Signed-off-by: Jorge Turrado <jorge.turrado@mail.schwarz> --------- Signed-off-by: Jorge Turrado <jorge.turrado@mail.schwarz> Signed-off-by: Dima Altukhov <dimaal@monday.com>
Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es> Signed-off-by: Dima Altukhov <dimaal@monday.com>
Signed-off-by: Rick Brouwer <rickbrouwer@gmail.com> Signed-off-by: Dima Altukhov <dimaal@monday.com>
Signed-off-by: Shivamrut <incineroaraditya@gmail.com> Signed-off-by: Dima Altukhov <dimaal@monday.com>
…dacore#7351) Bumps [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action) from 3.7.1 to 3.12.0. - [Release notes](https://github.com/docker/setup-buildx-action/releases) - [Commits](docker/setup-buildx-action@c47758b...8d2750c) --- updated-dependencies: - dependency-name: docker/setup-buildx-action dependency-version: 3.12.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Signed-off-by: Dima Altukhov <dimaal@monday.com>
…e#7352) Bumps [github/codeql-action](https://github.com/github/codeql-action) from 4.31.6 to 4.31.9. - [Release notes](https://github.com/github/codeql-action/releases) - [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md) - [Commits](github/codeql-action@fe4161a...5d4e8d1) --- updated-dependencies: - dependency-name: github/codeql-action dependency-version: 4.31.9 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Signed-off-by: Dima Altukhov <dimaal@monday.com>
…ore#7353) Bumps [oNaiPs/secrets-to-env-action](https://github.com/onaips/secrets-to-env-action) from 1.5 to 1.7. - [Release notes](https://github.com/onaips/secrets-to-env-action/releases) - [Commits](oNaiPs/secrets-to-env-action@ec46a22...be0f849) --- updated-dependencies: - dependency-name: oNaiPs/secrets-to-env-action dependency-version: '1.7' dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Signed-off-by: Dima Altukhov <dimaal@monday.com>
the final semaphore acquisition was still missing, which resulted in loop not waiting until all metrics were gathered from each metrics API server Signed-off-by: julian GUINARD <julian.guinard@ovhcloud.com> Signed-off-by: Dima Altukhov <dimaal@monday.com>
* Include trigger actvivity in raw metrics Include information about trigger activity in raw metrics. This is usefull when a trigger defines `activityThreshold`, where non-zere value does not necessarily mean that the trigger is active. Signed-off-by: Josef Karasek <karasek.jose@gmail.com> * update changelog Signed-off-by: Josef Karasek <karasek.jose@gmail.com> * Fix lint Signed-off-by: Josef Karasek <karasek.jose@gmail.com> --------- Signed-off-by: Josef Karasek <karasek.jose@gmail.com> Signed-off-by: Dima Altukhov <dimaal@monday.com>
597d1d6 to
51bd50c
Compare
|
@kedacore/keda-core-contributors |
|
Interesting, I just noticed this information. And a bit confused.
|
JorTurFer
left a comment
There was a problem hiding this comment.
Looking nice! just a question inlined 😄
| // scaler instances but keep last known good metrics available for fallback behavior. | ||
| func (h *scaleHandler) resetScalersCacheKeepMetrics(ctx context.Context, scalableObject interface{}) error { |
There was a problem hiding this comment.
Does it make sense to rename the current to something like DeleteScalersCache and the new one as ResetScalersCache? I understand that this new one is called during refresh and the previous one during scaledobject update/delete
@kedacore/keda-core-contributors @kedacore/keda-core-maintainers ?
|
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions. |
|
This pull request has been automatically closed due to inactivity. |
Adds new fallback behaviour "cached".
Fallback will return metric value from cache (if available)
Checklist
make generate-scalers-schemahas been run to update any outdated generated files.Fixes #6887
Relates to #