Comments (2)
Thank you for your detailed report and the depth of understanding you've shown regarding gh-ost and MySQL functionalities.
We have carefully reviewed the implications of accepting binlog events that exceed the standard max_binlog_size
and max_allowed_packet
settings, as documented in the MySQL Reference Manual (max_binlog_size, max_allowed_packet). After this review, we have decided against implementing the requested change, primarily due to the way gh-ost interacts with the primary instance.
gh-ost functions by mimicking a replica to the primary database. This design means that in scenarios where a transaction exceeds 1GB, the likelihood of gh-ost successfully replicating this data without encountering errors is significantly reduced. MySQL's replication mechanism, which gh-ost relies upon, is not designed to handle individual transactions of this size, as they exceed the max_binlog_size
and max_allowed_packet
limit. For information on replication and max_allowed_packet, see this dev doc.
Our commitment with gh-ost is to provide a tool that not only enhances MySQL's capabilities but also aligns closely with its core principles and standards. Deviating from these established limits, even for edge cases, could lead to unpredictable challenges and potentially encourage practices that are outside MySQL’s recommended configurations.
In light of your report, we are considering ways to harden this check to move it from a soft failure to a hard failure. However, at this time, we cannot provide a specific timeline for this enhancement. We believe this approach will further safeguard the tool against unintended consequences and align it more closely with MySQL's standards.
We understand this might pose challenges in specific scenarios, especially with very large transactions. We recommend exploring alternate strategies, such as breaking down these transactions into smaller, more manageable sizes that align with MySQL's configuration guidelines.
Thank you again for your contribution and understanding.
from gh-ost.
Hi, Since the data table has a big row, assuming a single row is 4M and the chunk is 1000, the transaction generated by one copy is larger than 4G. There is nothing we can do to prevent this from happening. Losing data is a serious problem.
Thanks for the evaluation.
from gh-ost.
Related Issues (20)
- amogus
- Add git commit hash to version info
- `RELEASE_VERSION` file is stale
- 786
- Feature request: add ability to profile gh-ost
- This dependency update will be handled internally by our engineering team.
- a question about the usage of gh-ost when migrated
- Is there a reason why the norm is to use screenshots of the rendered markdown instead of displaying the formatted/rendered markdown on docs.github.com (since the docs themselves are written in markdown)? Besides cases where a red box has to be drawn to show where to click of course.
- Lock wait timeout exceeded during cutover HOT 2
- "--attempt-instant-ddl" flag causing some issues with hooks and is incompatible with --execute flag HOT 1
- Incorrect max retries in streamer
- Status message is not properly formatted and contains MISSING on STDERR HOT 1
- # Set the sshd service to be started automatically
- 👋 Hey there spelunker. It looks like you've modified some files that we can't accept as contributions:
- support create-table flag for simplified gh-ost migration
- [TASK] Confirm if your service is required for Proxima
- "attempt-instant-ddl" should support lock_wait_timeout HOT 1
- max-lag-millis parameter description is misleading when running on master HOT 3
- When will the throttled state be triggered HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gh-ost.