Type:
Task
Priority:
Minor
Resolution:
Duplicate
I have binary logs that are inconsistent in rate. That is, some days I write a tremendous amount to the log, and some days comparatively very little.
I have a partition dedicated to binary logs, and I always want to keep a minimum of 3 days' worth of logs. That part is easily achievable by setting binlog_expire_logs_seconds (or its alias, expire_logs_days).
But most of the time, I have plenty of disk space on that partition and would like to store far more than 3 days' worth of logs. Most of the time, setting it to 7 days works, but then every once in a while I run out of space.
What I would like to do is set binlog_expire_logs_seconds to 3 days, and then have a new "binlog_keep_max" Boolean variable. Setting that to true would always allow the binary logs to fill up the partition, only deleting logs when the partition is full (but of course refusing to delete logs if they're newer than binlog_expire_logs_seconds). There's no reason NOT to have that partition be full of binary logs.
relates to
MDEV-31404
Implement binlog_space_limit
Closed
{"report":{"fcp":960.0999999046326,"ttfb":266.2999999523163,"pageVisibility":"visible","entityId":113282,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"aca0c322-2c75-4048-8769-905e702cf881","navigationType":0,"readyForUser":1024.7000000476837,"redirectCount":0,"resourceLoadedEnd":1142.7999999523163,"resourceLoadedStart":274.09999990463257,"resourceTiming":[{"duration":214.30000019073486,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":274.09999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":274.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":488.40000009536743,"responseStart":0,"secureConnectionStart":0},{"duration":214.19999980926514,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2cib/820016/12ta74/2bf333562ca6724060a9d5f1535471f6/_/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":274.40000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":274.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":488.59999990463257,"responseStart":0,"secureConnectionStart":0},{"duration":223,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":274.5,"connectEnd":274.5,"connectStart":274.5,"domainLookupEnd":274.5,"domainLookupStart":274.5,"fetchStart":274.5,"redirectEnd":0,"redirectStart":0,"requestStart":274.5,"responseEnd":497.5,"responseStart":497.5,"secureConnectionStart":274.5},{"duration":307,"initiatorType":"script","name":"https://jira.mariadb.org/s/2d8175ec2fa4c816e8023260bd8c1786-CDN/lu2cib/820016/12ta74/2bf333562ca6724060a9d5f1535471f6/_/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":274.7000000476837,"connectEnd":274.7000000476837,"connectStart":274.7000000476837,"domainLookupEnd":274.7000000476837,"domainLookupStart":274.7000000476837,"fetchStart":274.7000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":274.7000000476837,"responseEnd":581.7000000476837,"responseStart":581.7000000476837,"secureConnectionStart":274.7000000476837},{"duration":311.09999990463257,"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":274.90000009536743,"connectEnd":274.90000009536743,"connectStart":274.90000009536743,"domainLookupEnd":274.90000009536743,"domainLookupStart":274.90000009536743,"fetchStart":274.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":274.90000009536743,"responseEnd":586,"responseStart":586,"secureConnectionStart":274.90000009536743},{"duration":311.40000009536743,"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":275.09999990463257,"connectEnd":275.09999990463257,"connectStart":275.09999990463257,"domainLookupEnd":275.09999990463257,"domainLookupStart":275.09999990463257,"fetchStart":275.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":275.09999990463257,"responseEnd":586.5,"responseStart":586.5,"secureConnectionStart":275.09999990463257},{"duration":311.7000000476837,"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":275.2000000476837,"connectEnd":275.2000000476837,"connectStart":275.2000000476837,"domainLookupEnd":275.2000000476837,"domainLookupStart":275.2000000476837,"fetchStart":275.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":275.2000000476837,"responseEnd":586.9000000953674,"responseStart":586.9000000953674,"secureConnectionStart":275.2000000476837},{"duration":367.09999990463257,"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":275.40000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":275.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":642.5,"responseStart":0,"secureConnectionStart":0},{"duration":311.80000019073486,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":275.59999990463257,"connectEnd":275.59999990463257,"connectStart":275.59999990463257,"domainLookupEnd":275.59999990463257,"domainLookupStart":275.59999990463257,"fetchStart":275.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":275.59999990463257,"responseEnd":587.4000000953674,"responseStart":587.4000000953674,"secureConnectionStart":275.59999990463257},{"duration":366.90000009536743,"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":275.7999999523163,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":275.7999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":642.7000000476837,"responseStart":0,"secureConnectionStart":0},{"duration":311.90000009536743,"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":276,"connectEnd":276,"connectStart":276,"domainLookupEnd":276,"domainLookupStart":276,"fetchStart":276,"redirectEnd":0,"redirectStart":0,"requestStart":276,"responseEnd":587.9000000953674,"responseStart":587.9000000953674,"secureConnectionStart":276},{"duration":861.6999998092651,"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":276.90000009536743,"connectEnd":276.90000009536743,"connectStart":276.90000009536743,"domainLookupEnd":276.90000009536743,"domainLookupStart":276.90000009536743,"fetchStart":276.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":276.90000009536743,"responseEnd":1138.5999999046326,"responseStart":1138.5999999046326,"secureConnectionStart":276.90000009536743},{"duration":865.7999999523163,"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":277,"connectEnd":277,"connectStart":277,"domainLookupEnd":277,"domainLookupStart":277,"fetchStart":277,"redirectEnd":0,"redirectStart":0,"requestStart":277,"responseEnd":1142.7999999523163,"responseStart":1142.7999999523163,"secureConnectionStart":277},{"duration":484.09999990463257,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":654.9000000953674,"connectEnd":654.9000000953674,"connectStart":654.9000000953674,"domainLookupEnd":654.9000000953674,"domainLookupStart":654.9000000953674,"fetchStart":654.9000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":654.9000000953674,"responseEnd":1139,"responseStart":1139,"secureConnectionStart":654.9000000953674},{"duration":192.79999995231628,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":952.9000000953674,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":952.9000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1145.7000000476837,"responseStart":0,"secureConnectionStart":0},{"duration":112.29999995231628,"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","startTime":1142.2999999523163,"connectEnd":1142.2999999523163,"connectStart":1142.2999999523163,"domainLookupEnd":1142.2999999523163,"domainLookupStart":1142.2999999523163,"fetchStart":1142.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":1142.2999999523163,"responseEnd":1254.5999999046326,"responseStart":1254.5999999046326,"secureConnectionStart":1142.2999999523163}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":114,"responseStart":266,"responseEnd":268,"domLoading":272,"domInteractive":1215,"domContentLoadedEventStart":1215,"domContentLoadedEventEnd":1253,"domComplete":1937,"loadEventStart":1937,"loadEventEnd":1938,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1162.5},{"name":"bigPipe.sidebar-id.end","time":1163.4000000953674},{"name":"bigPipe.activity-panel-pipe-id.start","time":1163.5},{"name":"bigPipe.activity-panel-pipe-id.end","time":1165.9000000953674},{"name":"activityTabFullyLoaded","time":1261.2999999523163}],"measures":[],"correlationId":"7c0baefd316a2d","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":83,"dbReadsTimeInMs":8,"dbConnsTimeInMs":16,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}