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

restart only replicas ahead of the master #113

Merged
merged 2 commits into from
Jun 27, 2024

Conversation

teem0n
Copy link
Contributor

@teem0n teem0n commented Jun 26, 2024

restart only replicas ahead of the master

Describe what this PR fix

When replicas return to active nodes it may be streaming binlog. If binlog is big enough and we restart replication - we will interrupt download process. So we should restart only replicas ahead, as they have all required binary logs

@teem0n teem0n force-pushed the feature/restart_only_ahead_replicas branch from 22b08af to 09b1143 Compare June 26, 2024 16:17
internal/app/util.go Outdated Show resolved Hide resolved
internal/app/replication.go Outdated Show resolved Hide resolved
@teem0n teem0n force-pushed the feature/restart_only_ahead_replicas branch from 05a4138 to eb0f9e1 Compare June 26, 2024 20:24
@teem0n teem0n merged commit a5a64da into master Jun 27, 2024
52 checks passed
@teem0n teem0n deleted the feature/restart_only_ahead_replicas branch June 27, 2024 07:29
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