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

replication: set RequeueAfter to 30 secondary for requeue #123

Merged
merged 1 commit into from Oct 25, 2021

Conversation

Madhu-1
Copy link
Member

@Madhu-1 Madhu-1 commented Oct 25, 2021

Setting Requeue time for 30 seconds as the resync can take time and having default Requeue exponential backoff time can affect the RTO time

closes: #120

Signed-off-by: Madhu Rajanna madhupr007@gmail.com

Setting Requeue time for 30 seconds as the
resync can take time and having default
Requeue exponential backoff time can affect
the RTO time

closes: csi-addons#120

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
@humblec
Copy link
Contributor

humblec commented Oct 25, 2021

@Madhu-1 the referred issue says of requeing at 15seconds where this PR is on 30 seconds. so would be good to correct either of the place.

Also, ooc, do we have any of the controller references which does 30 second reque?

@Madhu-1
Copy link
Member Author

Madhu-1 commented Oct 25, 2021

Also, ooc, do we have any of the controller references which does 30 second reque?

@humblec what controllers you are looking at here? the resync is something async operation and it does not fix the exponential backoff.

@@ -263,7 +263,13 @@ func (r *VolumeReplicationReconciler) Reconcile(ctx context.Context, req ctrl.Re
logger.Info("volume is not ready to use, requeuing for resync")

_ = r.updateReplicationStatus(instance, logger, getCurrentReplicationState(instance), "volume is degraded")
return ctrl.Result{Requeue: true}, nil
return ctrl.Result{
Copy link
Contributor

Choose a reason for hiding this comment

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

I would add the same to the replicationErr condition above, as during resync post initial errors it goes into an exponential backoff as well post the initial 15 second check at line 231?

IOW, a resync check moves to exponential backoff if it receives errors, this does not impact RTO as failover/recover is not impacted by waiting for the failed cluster to establish a resync.

Copy link
Contributor

@ShyamsundarR ShyamsundarR left a comment

Choose a reason for hiding this comment

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

It would be better to combine the error case as well into the same PR. And that possibly impacts only Secondary state changes.

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.

taking more time than expected to update the Resync status after marking VR as secondary
4 participants