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

[controller] Fix the cache freezed Bound PVC #84

Merged
merged 4 commits into from
Sep 27, 2024

Conversation

ViktorKram
Copy link
Contributor

@ViktorKram ViktorKram commented Sep 24, 2024

Description

Fixed the issue where a Bound PVC could get stuck in the cache due to the LVGCacheWatcher executing earlier than the PVCCacheWatcher, causing the PVC to be updated to status Bound after the clearing operation.

Now, there is a special algorithm that monitors for expired and Bound PVCs in the cache and removes them. Users can specify the desired expiration time through the sds-local-volume-scheduler configuration.

Why do we need it, and what problem does it solve?

Due to this bug, some Pods might not have been scheduled correctly due to inaccurate node free space counting.

What is the expected result?

No freezed PVC in the cache, everything works fine.

Checklist

  • The code is covered by unit tests.
  • e2e tests passed.
  • Documentation updated according to the changes.
  • Changes were tested in the Kubernetes cluster manually.

@ViktorKram ViktorKram added the bug Something isn't working label Sep 24, 2024
@ViktorKram ViktorKram self-assigned this Sep 24, 2024
@ViktorKram ViktorKram force-pushed the v-kramarenko-fix-cache branch 2 times, most recently from b252977 to 3dfd94c Compare September 24, 2024 15:50
@ViktorKram ViktorKram changed the title [controller] Fix the cache freezed PVC [controller] Fix the cache freezed Bound PVC Sep 25, 2024
Signed-off-by: Viktor Kramarenko <viktor.kramarenko@flant.com>
@ViktorKram ViktorKram force-pushed the v-kramarenko-fix-cache branch 2 times, most recently from 3aceed3 to 54a6256 Compare September 26, 2024 10:57
Signed-off-by: Viktor Kramarenko <viktor.kramarenko@flant.com>
@ViktorKram ViktorKram force-pushed the v-kramarenko-fix-cache branch from 54a6256 to bcc10bb Compare September 26, 2024 11:21
@ViktorKram ViktorKram marked this pull request as ready for review September 26, 2024 12:31
Signed-off-by: Viktor Kramarenko <viktor.kramarenko@flant.com>
Signed-off-by: Viktor Kramarenko <viktor.kramarenko@flant.com>
@AleksZimin AleksZimin merged commit ad59d63 into main Sep 27, 2024
6 of 8 checks passed
@AleksZimin AleksZimin deleted the v-kramarenko-fix-cache branch September 27, 2024 10:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants