We upgraded some 10.1.48 MariaDB servers to 10.6.17 and noticed that by having semi-sync replication enabled, throughput was stalled and context switching has been heavily impacted leading to poor performance across the board.
By looking at `information_schema.processlist` we were able to detect that most of the queries were stuck for several seconds in
Waiting for semi-sync ACK from slave
|
STATE.
After disabling semisync replication on the primary server, everything came back to life.
This is a high-throughput high QPS environment (80K QPS avg, 140K on pak, >2500 sessions at any given time)
We've found a MySQL bug reported several years ago that looks related but although the relevant patch can't be found in the equivalent MariaDB code position, I'm not confident that it hasn't been ported in some other way over the years.
The only relevant change I've found in upgrade docs between 10.1 and 10.6 is this one but it doesn't look guilty by itself.
Given that this caused serious performance degradation in our case after upgrading to 10.6, let us know if there is something more we can help with in order to spot the root cause of the issue.
- is duplicated by
-
MDEV-33551
Semi-sync Wait Point AFTER_COMMIT Slow on Workloads with Heavy Concurrency
-
-
Closed
{"report":{"fcp":812.2000000476837,"ttfb":132.90000009536743,"pageVisibility":"visible","entityId":129729,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"d82c8e2b-7d4b-4ce9-98c0-5f3374040081","navigationType":0,"readyForUser":903.2000000476837,"redirectCount":0,"resourceLoadedEnd":1024.1000001430511,"resourceLoadedStart":138.60000014305115,"resourceTiming":[{"duration":227.09999990463257,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":138.60000014305115,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":138.60000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":365.7000000476837,"responseStart":0,"secureConnectionStart":0},{"duration":226.90000009536743,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2bu7/820016/12ta74/8679b4946efa1a0bb029a3a22206fb5d/_/download/contextbatch/css/jira.browse.project,project.issue.navigator,jira.view.issue,jira.general,jira.global,atl.general,-_super/batch.css?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true","startTime":138.90000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":138.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":365.80000019073486,"responseStart":0,"secureConnectionStart":0},{"duration":239.80000019073486,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":139,"connectEnd":139,"connectStart":139,"domainLookupEnd":139,"domainLookupStart":139,"fetchStart":139,"redirectEnd":0,"redirectStart":0,"requestStart":139,"responseEnd":378.80000019073486,"responseStart":378.80000019073486,"secureConnectionStart":139},{"duration":279.09999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/s/099b33461394b8015fc36c0a4b96e19f-CDN/lu2bu7/820016/12ta74/8679b4946efa1a0bb029a3a22206fb5d/_/download/contextbatch/js/jira.browse.project,project.issue.navigator,jira.view.issue,jira.general,jira.global,atl.general,-_super/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&locale=en&slack-enabled=true","startTime":139.10000014305115,"connectEnd":139.10000014305115,"connectStart":139.10000014305115,"domainLookupEnd":139.10000014305115,"domainLookupStart":139.10000014305115,"fetchStart":139.10000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":139.10000014305115,"responseEnd":418.2000000476837,"responseStart":418.2000000476837,"secureConnectionStart":139.10000014305115},{"duration":282.7999999523163,"initiatorType":"script","name":"https://jira.mariadb.org/s/94c15bff32baef80f4096a08aceae8bc-CDN/lu2bu7/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":139.20000004768372,"connectEnd":139.20000004768372,"connectStart":139.20000004768372,"domainLookupEnd":139.20000004768372,"domainLookupStart":139.20000004768372,"fetchStart":139.20000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":139.20000004768372,"responseEnd":422,"responseStart":422,"secureConnectionStart":139.20000004768372},{"duration":283.19999980926514,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":139.30000019073486,"connectEnd":139.30000019073486,"connectStart":139.30000019073486,"domainLookupEnd":139.30000019073486,"domainLookupStart":139.30000019073486,"fetchStart":139.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":139.30000019073486,"responseEnd":422.5,"responseStart":422.5,"secureConnectionStart":139.30000019073486},{"duration":283.40000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":139.40000009536743,"connectEnd":139.40000009536743,"connectStart":139.40000009536743,"domainLookupEnd":139.40000009536743,"domainLookupStart":139.40000009536743,"fetchStart":139.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":139.40000009536743,"responseEnd":422.80000019073486,"responseStart":422.80000019073486,"secureConnectionStart":139.40000009536743},{"duration":283.90000009536743,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2bu7/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":139.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":139.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":423.40000009536743,"responseStart":0,"secureConnectionStart":0},{"duration":283.7000000476837,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":139.60000014305115,"connectEnd":139.60000014305115,"connectStart":139.60000014305115,"domainLookupEnd":139.60000014305115,"domainLookupStart":139.60000014305115,"fetchStart":139.60000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":139.60000014305115,"responseEnd":423.30000019073486,"responseStart":423.30000019073486,"secureConnectionStart":139.60000014305115},{"duration":283.89999985694885,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2bu7/820016/12ta74/d176f0986478cc64f24226b3d20c140d/_/download/contextbatch/css/com.atlassian.jira.projects.sidebar.init,-_super,-project.issue.navigator,-jira.view.issue/batch.css?jira.create.linked.issue=true","startTime":139.80000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":139.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":423.7000000476837,"responseStart":0,"secureConnectionStart":0},{"duration":284,"initiatorType":"script","name":"https://jira.mariadb.org/s/3339d87fa2538a859872f2df449bf8d0-CDN/lu2bu7/820016/12ta74/d176f0986478cc64f24226b3d20c140d/_/download/contextbatch/js/com.atlassian.jira.projects.sidebar.init,-_super,-project.issue.navigator,-jira.view.issue/batch.js?jira.create.linked.issue=true&locale=en","startTime":139.90000009536743,"connectEnd":139.90000009536743,"connectStart":139.90000009536743,"domainLookupEnd":139.90000009536743,"domainLookupStart":139.90000009536743,"fetchStart":139.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":139.90000009536743,"responseEnd":423.90000009536743,"responseStart":423.90000009536743,"secureConnectionStart":139.90000009536743},{"duration":424.7000000476837,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":140.60000014305115,"connectEnd":140.60000014305115,"connectStart":140.60000014305115,"domainLookupEnd":140.60000014305115,"domainLookupStart":140.60000014305115,"fetchStart":140.60000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":140.60000014305115,"responseEnd":565.3000001907349,"responseStart":565.3000001907349,"secureConnectionStart":140.60000014305115},{"duration":883.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":140.60000014305115,"connectEnd":140.60000014305115,"connectStart":140.60000014305115,"domainLookupEnd":140.60000014305115,"domainLookupStart":140.60000014305115,"fetchStart":140.60000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":140.60000014305115,"responseEnd":1024.1000001430511,"responseStart":1024.1000001430511,"secureConnectionStart":140.60000014305115},{"duration":363.69999980926514,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":611.3000001907349,"connectEnd":611.3000001907349,"connectStart":611.3000001907349,"domainLookupEnd":611.3000001907349,"domainLookupStart":611.3000001907349,"fetchStart":611.3000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":611.3000001907349,"responseEnd":975,"responseStart":974.9000000953674,"secureConnectionStart":611.3000001907349},{"duration":240.90000009536743,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":790.4000000953674,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":790.4000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1031.3000001907349,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":13,"responseStart":133,"responseEnd":136,"domLoading":137,"domInteractive":1045,"domContentLoadedEventStart":1045,"domContentLoadedEventEnd":1080,"domComplete":1657,"loadEventStart":1657,"loadEventEnd":1658,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1026.1000001430511},{"name":"bigPipe.sidebar-id.end","time":1027},{"name":"bigPipe.activity-panel-pipe-id.start","time":1027.1000001430511},{"name":"bigPipe.activity-panel-pipe-id.end","time":1029.4000000953674},{"name":"activityTabFullyLoaded","time":1083.2000000476837}],"measures":[],"correlationId":"4d412e55b39dce","effectiveType":"4g","downlink":9.6,"rtt":0,"serverDuration":66,"dbReadsTimeInMs":9,"dbConnsTimeInMs":16,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}