Bug #75299 | group commit with GTID enabled need more optimization | ||
---|---|---|---|
Submitted: | 23 Dec 2014 15:45 | Modified: | 26 Jan 2017 19:14 |
Reporter: | zhai weixiang (OCA) | Email Updates: | |
Status: | Duplicate | Impact on me: | |
Category: | MySQL Server: Replication | Severity: | S3 (Non-critical) |
Version: | 5.6 | OS: | Any |
Assigned to: | CPU Architecture: | Any | |
Tags: | Contribution |
[23 Dec 2014 15:45]
zhai weixiang
[23 Dec 2014 15:48]
zhai weixiang
Patch of the second advice ,just for discuss purpose and not fully tested (*) I confirm the code being submitted is offered under the terms of the OCA, and that I am authorized to contribute it.
Contribution: optimize_gtid.diff (application/octet-stream, text), 6.48 KiB.
[23 Dec 2014 15:51]
zhai weixiang
How to repeat : With very extremely concurrency DML worklod ===> With extremely high concurrency DML worklod
[22 Dec 2016 8:48]
MySQL Verification Team
Hello Zhai, Thank you for the report and contribution. Thanks, Umesh
[9 Jan 2017 11:00]
Sven Sandberg
Posted by developer: Thank you for the contribution. We have addressed this in 5.7.17 (BUG#24398760). The bugfix took a different approach compared to this contribution: we do not want to add transactions to GTID_EXECUTED before they are committed as that would be a user-visible change which is potentially problematic (e.g. it might harm fail-over). Instead, it was possible to improve the locking schemes to avoid taking mutexes many times. In our benchmarks this reduced the overhead of enabling GTIDs (in the case of very high concurrency and very small transactions) from 60% before the bugfix to 5% after the bugfix. If you have a chance to test 5.7.17, we would appreciate very much if you can confirm whether it fixes your problem or not. I am closing this as a duplicate. If you feel this needs to be addressed in 5.6, please re-open the bug so we can evaluate if it is possible to backport the existing fix from 5.7 to 5.6.
[26 Jan 2017 19:14]
Erlend Dahl
Duplicate of Bug#82422 GTIDS REDUCE PERFORMANCE ON WORKLOADS WITH MANY SMALL TRANSACTIONS