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

use Pod informer to avoid Pod GET API calls #293

Merged
merged 1 commit into from
Jul 5, 2024
Merged

Conversation

songjiaxun
Copy link
Collaborator

This change refactors GetPod function to use Pod informer and lister to get Pod spec. This change avoids direct Pod GET API calls to increase the CSI node driver scalability.

@songjiaxun songjiaxun changed the title use Pod informer to avoid Pod GET API calles use Pod informer to avoid Pod GET API calls Jun 16, 2024
@saikat-royc
Copy link
Collaborator

looks good after the minor comments are addressed

@hime is this tested?

@hime
Copy link
Collaborator

hime commented Jul 2, 2024

looks good after the minor comments are addressed

Jaime is this tested?

Hi @saikat-royc, we have tested this PR with informer. We saw that the pod get calls from gcsfuse are eliminated and the nodeselector is able to only track the pods that are assigned to that specific node.

@songjiaxun songjiaxun merged commit 2a62228 into main Jul 5, 2024
8 checks passed
@songjiaxun songjiaxun deleted the pod-informer branch July 5, 2024 22:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants