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

fix: Fix cache accounting in loading failures case #74

Merged
merged 1 commit into from
Dec 31, 2022

Conversation

njhill
Copy link
Member

@njhill njhill commented Dec 22, 2022

Motivation

Some issues have been observed in production where the cache appears to get into a broken state, including a cascading eviction of all models.

Modifications

  • Fix cache accounting in loading failure + unload case
  • Eagerly remove expired failure records from cache
  • Correct misworded log message
  • Log some internal cache values along with published instance records, to facilitate further diagnoses
  • Increase load failure expiry times

Result

Hopefully fixed cache accounting issue

Motivation

Some issues have been observed in production where the cache appears to get into a broken state, including a cascading eviction of all models.

Modifications

- Fix cache accounting in loading failure + unload case
- Eagerly remove expired failure records from cache
- Correct misworded log message
- Log some internal cache values along with published instance records, to faciliate further diagnoses
- Increase load failure expiry times

Result

Hopefully fixed cache accounting issue

Signed-off-by: Nick Hill <nickhill@us.ibm.com>
@njhill njhill force-pushed the fix-fail-accounting branch from 58b46f7 to 9d2c7c3 Compare December 23, 2022 00:49
@njhill njhill marked this pull request as ready for review December 23, 2022 00:50
Copy link
Member

@ckadner ckadner left a comment

Choose a reason for hiding this comment

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

/lgtm

@kserve-oss-bot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ckadner, njhill

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@kserve-oss-bot kserve-oss-bot merged commit c5a4d66 into main Dec 31, 2022
@njhill njhill deleted the fix-fail-accounting branch January 3, 2023 16:41
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.

3 participants