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

Avoid retrying while syncing security groups #275

Merged
merged 1 commit into from
Jul 11, 2023
Merged

Avoid retrying while syncing security groups #275

merged 1 commit into from
Jul 11, 2023

Conversation

reachjainrahul
Copy link
Contributor

Description

Nephe runs periodic sync with cloud routine to sync cloud entity with internal cache. If any error occurs while syncing cloud entities, we want to avoid adding the entity in retry queue. This is to avoid unnecessary retries if sync with cloud fails, as it itself is another retry mechanism.

Changes

With this PR, we maintain a new state on cloud entity to indicate if that entity is eligible for retry if any error occurs.

@reachjainrahul
Copy link
Contributor Author

/nephe-test-e2e-kind

@reachjainrahul
Copy link
Contributor Author

/nephe-test-e2e-kind

1 similar comment
@reachjainrahul
Copy link
Contributor Author

/nephe-test-e2e-kind

shenmo3
shenmo3 previously approved these changes Jul 11, 2023
Copy link
Contributor

@shenmo3 shenmo3 left a comment

Choose a reason for hiding this comment

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

LGTM

Nephe runs periodic sync with cloud routine to sync cloud entity
with internal cache. If any error occurs while syncing cloud entities,
we want to avoid adding the entity in retry queue. This is to avoid
unneccessary retries if sync with cloud fails, as it itself is another
retry mechanism.

With this PR, we mantain a new state on cloud entity to indicate if
that entity is eligibile for retry if any error occurs.

Signed-off-by: Rahul Jain <[email protected]>
@reachjainrahul reachjainrahul merged commit 413e23f into main Jul 11, 2023
@reachjainrahul reachjainrahul deleted the sync branch July 11, 2023 04:36
@reachjainrahul reachjainrahul added this to the Nephe v0.6.0 release milestone Jul 11, 2023
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.

2 participants