Currently there's no way to prevent the huge size of binarylogs which are generated in a short period of time. In our case we use binlog for MASTER-SLAVE replication and a high traffic weekend filled up the diskspace in the master server.
Percona has implemented max_binlog_files directive which can be used to ensure the maximum disk usage of binarylogs with conjunction with max_binlog_size directive.
I do not know if this is relevant but the author mentions some drawbacks using max_binlog_files variable and suggest a variable max_binlog_space or binlog_space_limit instead.
Nicolas Payart
added a comment - Before working on this feature (which is a real progress I think), you should consider the following issue opened on Percona bug tracker:
https://jira.percona.com/browse/PS-275
I do not know if this is relevant but the author mentions some drawbacks using max_binlog_files variable and suggest a variable max_binlog_space or binlog_space_limit instead.
This would be a useful option! Be it max_binlog_files or binlog_space_limit.
We have a 130GB DB replicated to a backup cluster, and binlog consume about 400GB of HD for a single day!
COUNOTTE CEDRIC
added a comment - This would be a useful option! Be it max_binlog_files or binlog_space_limit.
We have a 130GB DB replicated to a backup cluster, and binlog consume about 400GB of HD for a single day!
People
Unassigned
Onni Hakala
Votes:
4Vote for this issue
Watchers:
7Start watching this issue
Dates
Created:
Updated:
Git Integration
Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.
{"report":{"fcp":851.3999996185303,"ttfb":310.5,"pageVisibility":"visible","entityId":61948,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"36b4896b-7c43-4aa6-b27a-c25cbba5828d","navigationType":0,"readyForUser":895.6999998092651,"redirectCount":0,"resourceLoadedEnd":538.8999996185303,"resourceLoadedStart":317.7999997138977,"resourceTiming":[{"duration":3.8000001907348633,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":317.7999997138977,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":317.7999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":321.59999990463257,"responseStart":0,"secureConnectionStart":0},{"duration":9.199999809265137,"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":318.09999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":318.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":327.2999997138977,"responseStart":0,"secureConnectionStart":0},{"duration":84.30000019073486,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":318.2999997138977,"connectEnd":318.2999997138977,"connectStart":318.2999997138977,"domainLookupEnd":318.2999997138977,"domainLookupStart":318.2999997138977,"fetchStart":318.2999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":330.19999980926514,"responseEnd":402.59999990463257,"responseStart":344.19999980926514,"secureConnectionStart":318.2999997138977},{"duration":110.80000019073486,"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":318.3999996185303,"connectEnd":318.3999996185303,"connectStart":318.3999996185303,"domainLookupEnd":318.3999996185303,"domainLookupStart":318.3999996185303,"fetchStart":318.3999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":332.09999990463257,"responseEnd":429.19999980926514,"responseStart":362,"secureConnectionStart":318.3999996185303},{"duration":64.7999997138977,"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":318.59999990463257,"connectEnd":318.59999990463257,"connectStart":318.59999990463257,"domainLookupEnd":318.59999990463257,"domainLookupStart":318.59999990463257,"fetchStart":318.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":334.7999997138977,"responseEnd":383.3999996185303,"responseStart":382.19999980926514,"secureConnectionStart":318.59999990463257},{"duration":69.59999990463257,"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":318.69999980926514,"connectEnd":318.69999980926514,"connectStart":318.69999980926514,"domainLookupEnd":318.69999980926514,"domainLookupStart":318.69999980926514,"fetchStart":318.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":336.5,"responseEnd":388.2999997138977,"responseStart":387.7999997138977,"secureConnectionStart":318.69999980926514},{"duration":68.7000002861023,"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":318.8999996185303,"connectEnd":318.8999996185303,"connectStart":318.8999996185303,"domainLookupEnd":318.8999996185303,"domainLookupStart":318.8999996185303,"fetchStart":318.8999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":337.69999980926514,"responseEnd":387.59999990463257,"responseStart":386.8999996185303,"secureConnectionStart":318.8999996185303},{"duration":17.40000009536743,"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":319.09999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":319.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":336.5,"responseStart":0,"secureConnectionStart":0},{"duration":38.90000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":319.2999997138977,"connectEnd":341.2999997138977,"connectStart":341.2999997138977,"domainLookupEnd":341.2999997138977,"domainLookupStart":341.2999997138977,"fetchStart":319.2999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":343.09999990463257,"responseEnd":358.19999980926514,"responseStart":355.69999980926514,"secureConnectionStart":341.2999997138977},{"duration":18.699999809265137,"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":319.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":319.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":338.19999980926514,"responseStart":0,"secureConnectionStart":0},{"duration":40.5,"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":319.69999980926514,"connectEnd":319.69999980926514,"connectStart":319.69999980926514,"domainLookupEnd":319.69999980926514,"domainLookupStart":319.69999980926514,"fetchStart":319.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":343.59999990463257,"responseEnd":360.19999980926514,"responseStart":356.7999997138977,"secureConnectionStart":319.69999980926514},{"duration":211.7000002861023,"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":326.8999996185303,"connectEnd":326.8999996185303,"connectStart":326.8999996185303,"domainLookupEnd":326.8999996185303,"domainLookupStart":326.8999996185303,"fetchStart":326.8999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":379.19999980926514,"responseEnd":538.5999999046326,"responseStart":534.7999997138977,"secureConnectionStart":326.8999996185303},{"duration":211.89999961853027,"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":327,"connectEnd":327,"connectStart":327,"domainLookupEnd":327,"domainLookupStart":327,"fetchStart":327,"redirectEnd":0,"redirectStart":0,"requestStart":379.2999997138977,"responseEnd":538.8999996185303,"responseStart":535.6999998092651,"secureConnectionStart":327},{"duration":189.40000009536743,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":610.3999996185303,"connectEnd":610.3999996185303,"connectStart":610.3999996185303,"domainLookupEnd":610.3999996185303,"domainLookupStart":610.3999996185303,"fetchStart":610.3999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":761.5999999046326,"responseEnd":799.7999997138977,"responseStart":798.8999996185303,"secureConnectionStart":610.3999996185303},{"duration":153.30000019073486,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":827.7999997138977,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":827.7999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":981.0999999046326,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":94,"domainLookupEnd":140,"connectStart":140,"connectEnd":160,"secureConnectionStart":149,"requestStart":161,"responseStart":310,"responseEnd":325,"domLoading":314,"domInteractive":947,"domContentLoadedEventStart":947,"domContentLoadedEventEnd":980,"domComplete":1496,"loadEventStart":1496,"loadEventEnd":1497,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":930.0999999046326},{"name":"bigPipe.sidebar-id.end","time":930.8999996185303},{"name":"bigPipe.activity-panel-pipe-id.start","time":931},{"name":"bigPipe.activity-panel-pipe-id.end","time":932.0999999046326},{"name":"activityTabFullyLoaded","time":996.2999997138977}],"measures":[],"correlationId":"7ee06ce8ce2b1d","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":89,"dbReadsTimeInMs":9,"dbConnsTimeInMs":17,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
Before working on this feature (which is a real progress I think), you should consider the following issue opened on Percona bug tracker:
https://jira.percona.com/browse/PS-275
I do not know if this is relevant but the author mentions some drawbacks using max_binlog_files variable and suggest a variable max_binlog_space or binlog_space_limit instead.