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

VReplication Copy Phase: Increase default replica lag tolerance. Also make it and copy timeout modifiable via flags #8130

Merged
merged 2 commits into from
May 19, 2021

Conversation

rohit-nayak-ps
Copy link
Contributor

@rohit-nayak-ps rohit-nayak-ps commented May 14, 2021

Description

VReplication decides to switch from catchup to bulk copy when the replica lag is under a threshold. This was 10 seconds, which could cause a problem under certain circumstances (see #8104).

The default has been increased to a minute and it also been made into a flag -vreplication_replica_lag_tolerance <seconds> in case fine tuning is needed.

The time for which the bulk insert phase runs is currently 1 hour. That can now be changed via a flag -vreplication_copy_phase_duration <seconds>. You will not need to modify either of these normally.

Signed-off-by: Rohit Nayak rohit@planetscale.com

Related Issue(s)

#8104

Checklist

  • Tests were added or are not required
  • Documentation was added or is not required

… and replica log tolerance via flags

Signed-off-by: Rohit Nayak <rohit@planetscale.com>
@rohit-nayak-ps rohit-nayak-ps marked this pull request as ready for review May 16, 2021 12:28
@rohit-nayak-ps rohit-nayak-ps requested review from deepthi, aquarapid, sougou and a team May 16, 2021 12:28
@askdba askdba added Component: VReplication Type: Enhancement Logical improvement (somewhere between a bug and feature) labels May 16, 2021
Copy link
Contributor

@shlomi-noach shlomi-noach left a comment

Choose a reason for hiding this comment

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

Suggestion to re-type the variables as Duration, at your discretion.

go/vt/vttablet/tabletmanager/vreplication/vreplicator.go Outdated Show resolved Hide resolved
go/vt/vttablet/tabletmanager/vreplication/vreplicator.go Outdated Show resolved Hide resolved
Signed-off-by: Rohit Nayak <rohit@planetscale.com>
Copy link
Contributor

@shlomi-noach shlomi-noach left a comment

Choose a reason for hiding this comment

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

🚢

@rohit-nayak-ps rohit-nayak-ps merged commit c443567 into vitessio:master May 19, 2021
@rohit-nayak-ps rohit-nayak-ps deleted the rn-vr-flags branch May 19, 2021 08:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: VReplication Type: Enhancement Logical improvement (somewhere between a bug and feature)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants