Since MDEV-23855 InnoDB can do checkpoints much more rarely. This improves performance under write-heavy load, but makes mariadb-backup create huge incremental backups (since the last checkpoint).
One way to solve it would be to let mariadb-backup to force an InnoDB checkpoint before a backup. There are many ways of doing it, innodb.page_cleaner test shows one of them, marko knows more. Perhaps it should be optional, but, likely, enabled by default.
Alternatively, InnoDB can force a checkpoint automatically when entering a certain backup stage.
would be the best approach. It clearly says what's to be done, doesn't make any system-wide changes that need to be restored (so, no problems if the client suddenly disconnects). Let's do that?
Sergei Golubchik
added a comment - I think that
SET GLOBAL innodb_log_checkpoint_now= ON ;
would be the best approach. It clearly says what's to be done, doesn't make any system-wide changes that need to be restored (so, no problems if the client suddenly disconnects). Let's do that?
brevilo, I don’t think that setting innodb_log_buffer_size larger than a few megabytes should help at all. The parameter innodb_log_file_size should be much more relevant.
Marko Mäkelä
added a comment - brevilo , I don’t think that setting innodb_log_buffer_size larger than a few megabytes should help at all. The parameter innodb_log_file_size should be much more relevant.
Ooops, my bad, I meant innodb_log_file_size = 64 GB, not innodb_log_buffer_size (still at the default of 16 MB!).
I fixed my previous comment above but since that was meant as a reply to your's it kind of lost its context now Maybe it helps anyway...
Oliver Bock
added a comment - - edited Ooops, my bad, I meant innodb_log_file_size = 64 GB , not innodb_log_buffer_size (still at the default of 16 MB!).
I fixed my previous comment above but since that was meant as a reply to your's it kind of lost its context now Maybe it helps anyway...
I introduced the parameter --skip-innodb-log-checkpoint-on to backup, so that the extra checkpoint at the start of the backup can be avoided when necessary. This is necessary in the regression test encryption.doublewrite_debug.
Marko Mäkelä
added a comment - I introduced the parameter --skip-innodb-log-checkpoint-on to backup, so that the extra checkpoint at the start of the backup can be avoided when necessary. This is necessary in the regression test encryption.doublewrite_debug .
People
Marko Mäkelä
Sergei Golubchik
Votes:
9Vote for this issue
Watchers:
13Start watching this issue
Dates
Created:
Updated:
Resolved:
Git Integration
Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.
{"report":{"fcp":2270.2999999523163,"ttfb":1088.4000000953674,"pageVisibility":"visible","entityId":116689,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"a740b4f3-0bb1-426c-9351-2d17f3b1f9c9","navigationType":0,"readyForUser":2354.7000000476837,"redirectCount":0,"resourceLoadedEnd":2826.5,"resourceLoadedStart":1094.4000000953674,"resourceTiming":[{"duration":662.2999999523163,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":1094.4000000953674,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1094.4000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1756.7000000476837,"responseStart":0,"secureConnectionStart":0},{"duration":662.3999998569489,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2cib/820016/12ta74/494e4c556ecbb29f90a3d3b4f09cb99c/_/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&whisper-enabled=true","startTime":1094.6000001430511,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1094.6000001430511,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1757,"responseStart":0,"secureConnectionStart":0},{"duration":717.2000000476837,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":1094.9000000953674,"connectEnd":1094.9000000953674,"connectStart":1094.9000000953674,"domainLookupEnd":1094.9000000953674,"domainLookupStart":1094.9000000953674,"fetchStart":1094.9000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":1094.9000000953674,"responseEnd":1812.1000001430511,"responseStart":1812.1000001430511,"secureConnectionStart":1094.9000000953674},{"duration":784,"initiatorType":"script","name":"https://jira.mariadb.org/s/2d8175ec2fa4c816e8023260bd8c1786-CDN/lu2cib/820016/12ta74/494e4c556ecbb29f90a3d3b4f09cb99c/_/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&whisper-enabled=true","startTime":1095.1000001430511,"connectEnd":1095.1000001430511,"connectStart":1095.1000001430511,"domainLookupEnd":1095.1000001430511,"domainLookupStart":1095.1000001430511,"fetchStart":1095.1000001430511,"redirectEnd":0,"redirectStart":0,"requestStart":1095.1000001430511,"responseEnd":1879.1000001430511,"responseStart":1879,"secureConnectionStart":1095.1000001430511},{"duration":787.5999999046326,"initiatorType":"script","name":"https://jira.mariadb.org/s/a9324d6758d385eb45c462685ad88f1d-CDN/lu2cib/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":1095.4000000953674,"connectEnd":1095.4000000953674,"connectStart":1095.4000000953674,"domainLookupEnd":1095.4000000953674,"domainLookupStart":1095.4000000953674,"fetchStart":1095.4000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":1095.4000000953674,"responseEnd":1883,"responseStart":1883,"secureConnectionStart":1095.4000000953674},{"duration":788,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":1095.6000001430511,"connectEnd":1095.6000001430511,"connectStart":1095.6000001430511,"domainLookupEnd":1095.6000001430511,"domainLookupStart":1095.6000001430511,"fetchStart":1095.6000001430511,"redirectEnd":0,"redirectStart":0,"requestStart":1095.6000001430511,"responseEnd":1883.6000001430511,"responseStart":1883.6000001430511,"secureConnectionStart":1095.6000001430511},{"duration":788.2000000476837,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":1095.7000000476837,"connectEnd":1095.7000000476837,"connectStart":1095.7000000476837,"domainLookupEnd":1095.7000000476837,"domainLookupStart":1095.7000000476837,"fetchStart":1095.7000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":1095.7000000476837,"responseEnd":1883.9000000953674,"responseStart":1883.9000000953674,"secureConnectionStart":1095.7000000476837},{"duration":860.8999998569489,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2cib/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":1095.9000000953674,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1095.9000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1956.7999999523163,"responseStart":0,"secureConnectionStart":0},{"duration":788.4000000953674,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":1096,"connectEnd":1096,"connectStart":1096,"domainLookupEnd":1096,"domainLookupStart":1096,"fetchStart":1096,"redirectEnd":0,"redirectStart":0,"requestStart":1096,"responseEnd":1884.4000000953674,"responseStart":1884.4000000953674,"secureConnectionStart":1096},{"duration":860.7999999523163,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2cib/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":1096.2000000476837,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1096.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1957,"responseStart":0,"secureConnectionStart":0},{"duration":788.8000001907349,"initiatorType":"script","name":"https://jira.mariadb.org/s/5d5e8fe91fbc506585e83ea3b62ccc4b-CDN/lu2cib/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":1096.2999999523163,"connectEnd":1096.2999999523163,"connectStart":1096.2999999523163,"domainLookupEnd":1096.2999999523163,"domainLookupStart":1096.2999999523163,"fetchStart":1096.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":1096.2999999523163,"responseEnd":1885.1000001430511,"responseStart":1885.1000001430511,"secureConnectionStart":1096.2999999523163},{"duration":1217.0999999046326,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":1097.9000000953674,"connectEnd":1097.9000000953674,"connectStart":1097.9000000953674,"domainLookupEnd":1097.9000000953674,"domainLookupStart":1097.9000000953674,"fetchStart":1097.9000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":1097.9000000953674,"responseEnd":2315,"responseStart":2315,"secureConnectionStart":1097.9000000953674},{"duration":1728.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":1098,"connectEnd":1098,"connectStart":1098,"domainLookupEnd":1098,"domainLookupStart":1098,"fetchStart":1098,"redirectEnd":0,"redirectStart":0,"requestStart":1098,"responseEnd":2826.5,"responseStart":2826.5,"secureConnectionStart":1098},{"duration":349.40000009536743,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":1968.2000000476837,"connectEnd":1968.2000000476837,"connectStart":1968.2000000476837,"domainLookupEnd":1968.2000000476837,"domainLookupStart":1968.2000000476837,"fetchStart":1968.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":1968.2000000476837,"responseEnd":2317.600000143051,"responseStart":2317.600000143051,"secureConnectionStart":1968.2000000476837},{"duration":598.9000000953674,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":2263.2999999523163,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":2263.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":2862.2000000476837,"responseStart":0,"secureConnectionStart":0},{"duration":533.2999999523163,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/e65b778d185daf5aee24936755b43da6/_/download/contextbatch/js/browser-metrics-plugin.contrib,-_super,-project.issue.navigator,-jira.view.issue,-atl.general/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true&whisper-enabled=true","startTime":2397.5,"connectEnd":2397.5,"connectStart":2397.5,"domainLookupEnd":2397.5,"domainLookupStart":2397.5,"fetchStart":2397.5,"redirectEnd":0,"redirectStart":0,"requestStart":2397.5,"responseEnd":2930.7999999523163,"responseStart":2930.7999999523163,"secureConnectionStart":2397.5}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":908,"responseStart":1088,"responseEnd":1090,"domLoading":1091,"domInteractive":2868,"domContentLoadedEventStart":2868,"domContentLoadedEventEnd":2914,"domComplete":3269,"loadEventStart":3269,"loadEventEnd":3269,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":2843.5},{"name":"bigPipe.sidebar-id.end","time":2844.4000000953674},{"name":"bigPipe.activity-panel-pipe-id.start","time":2844.600000143051},{"name":"bigPipe.activity-panel-pipe-id.end","time":2846.7999999523163},{"name":"activityTabFullyLoaded","time":2932.4000000953674}],"measures":[],"correlationId":"41475ceeb0b877","effectiveType":"4g","downlink":9.6,"rtt":0,"serverDuration":124,"dbReadsTimeInMs":22,"dbConnsTimeInMs":33,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
I think that
would be the best approach. It clearly says what's to be done, doesn't make any system-wide changes that need to be restored (so, no problems if the client suddenly disconnects). Let's do that?