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

[WIP] sync resource with the last resource version #21

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

Iceber
Copy link
Member

@Iceber Iceber commented Dec 10, 2021

When an exception happens in a cluster, in order to ensure that resource synchronization is not constantly retried,
we will stop retrying all resources of that cluster after two consecutive failed health checks.

The client-go Reflector will have to list the full amount of data every time it starts up, and this can be a hug waste of resources when synchronizing multiple cluster resources.
And since clustersynchro already knows the last synchronized resource version, we can use the last sync resource version to watch the cluster's resources, and then relist the full amount of resources when the last sync resource version expired.

This is also of great use when the clustersynchro manager performs master-slave switching.

issue: #5

@Iceber Iceber force-pushed the last-resource-version branch 2 times, most recently from 4aa43c0 to 09ebc49 Compare December 10, 2021 15:09
@Iceber Iceber force-pushed the last-resource-version branch from 09ebc49 to f0fb6d1 Compare December 14, 2021 10:00
@Iceber Iceber changed the title sync resource with the last resource version [WIP] sync resource with the last resource version Feb 18, 2022
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.

1 participant