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

feat: reduce meta reconcile time #299

Merged
merged 5 commits into from
Sep 27, 2023
Merged

feat: reduce meta reconcile time #299

merged 5 commits into from
Sep 27, 2023

Conversation

kqzh
Copy link
Contributor

@kqzh kqzh commented Sep 26, 2023

What type of PR is this?

  • bug
  • feature
  • enhancement

What problem(s) does this PR solve?

Issue(s) number:

Description:

How do you solve it?

Special notes for your reviewer, ex. impact of this fix, design document, etc:

@@ -128,6 +129,10 @@ func (p *pvClient) UpdatePersistentVolume(pv *corev1.PersistentVolume) error {

return retry.RetryOnConflict(retry.DefaultBackoff, func() error {
if updated, err := p.GetPersistentVolume(pvName); err == nil {
if reflect.DeepEqual(labels, updated.GetLabels()) && reflect.DeepEqual(annotations, updated.GetAnnotations()) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Why only compare the lables and annotations?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

because only update lables and annotations here

)

const (
Concurrency = 5
Copy link
Contributor

Choose a reason for hiding this comment

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

It doesn't seem like it needs to be exposed. Also, I feel like there is a lack of modifiers. xxxConcurrency ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ok

Copy link
Contributor

@veezhang veezhang left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@MegaByte875 MegaByte875 left a comment

Choose a reason for hiding this comment

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

LGTM

@MegaByte875 MegaByte875 merged commit 1a1d7fa into vesoft-inc:master Sep 27, 2023
1 check passed
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.

The reconcile process takes too long while managing dozens of PVCs
3 participants