-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Heartbeat on streaming vreplication can have high binary log space overhead #6805
Comments
aquarapid
added
the
Type: Enhancement
Logical improvement (somewhere between a bug and feature)
label
Sep 30, 2020
sougou
added
Component: VReplication
P2
Type: Performance
and removed
Type: Enhancement
Logical improvement (somewhere between a bug and feature)
labels
Nov 13, 2020
8 tasks
@aquarapid and @shlomi is this still an issue today with on-demand heartbeats? I think we can close this but want to double check. Thanks! |
I'm going to close this as done for now. If I'm missing anything please let me know and we can re-open it. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Scenario:
MoveTables
,Materialize
,Reshard
or just native vreplication constructs.Problem:
vreplication.source
column is large (e.g. lots of tables in the stream), this update will generate large binlog entries every second.vreplication.source
for a single stream was around 13 kb, which resulted in a binlog entry of 13kb + 13kb + change = 27kb each second; even though the upstream database was not being updated. This means around 100 MB of additional binlogs per hour, just for the binlogs. If you have multiple streams, this would be multiplied. If you have MySQL'sexpire_logs_days
set to3
(the Vitess default); this is an additional 7.2 GB of diskspace per stream in this case, just to maintain the heartbeat.Potential solutions:
vreplication.source
column to an FK table?The text was updated successfully, but these errors were encountered: