Type:
Task
Priority:
Critical
Resolution:
Fixed
MaxScale should be able to react when some node of a cluster hits a disk-full situation.
For instance, if the master in a master-slave cluster hits a disk-full situation, MaxScale should promote some existing slave to master and remove the old master from the cluster. That way, a client connected to MaxScale would not necessarily detect anything special at all.
In order to do that, MaxScale must be able to detect that a disk-full situation has occurred. It's difficult and unreliable to do that using MariaDB itself, for instance, by trying to create a table and assuming it was a disk-full situation in case the creation fails or the attempt ends with a timeout. Further, that approach would not allow MaxScale to become aware of the situation before the disk actually becomes full.
A more reliable way would be to actually monitor the disk-space situation on the node and use that for the decision making, but arranging that is rather complex and fragile.
A robust solution would be if there were a pseudo table or pseudo tables in information_schema using which information about the node could be found out. For instance as follows:
MariaDB [information_schema]> select * from information_schema.system;
+------+--------+-----+
| CPUS | MEMORY | ... |
+---------------------+
| 4 | 4096 | ... |
+---------------------+
1 row in set (0.00 sec)
MariaDB [information_schema]> select * from information_schema.disks;
+------------+------------+----------+-----+
| Filesystem | 1K-blocks | Used | ... |
+------------+------------+----------+-----+
| udev | 8156512 | 0 | |
| tmpfs | 1635388 | 9820 | ... |
| /dev/sda3 | 47929956 | 28150612 | |
| ... | ... | ... | |
+------------+------------+----------+-----+
10 rows in set (0.00 sec)
With this information available, MaxScale could automatically take corrective action in case the amount of used disk-space grows above, say, 90%.
{"report":{"fcp":1141.0999999940395,"ttfb":243.59999999403954,"pageVisibility":"visible","entityId":64602,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"806a2b5f-41a0-43be-82f3-a02e6e00ad47","navigationType":0,"readyForUser":1244.0999999940395,"redirectCount":0,"resourceLoadedEnd":1813.0999999940395,"resourceLoadedStart":250.79999999701977,"resourceTiming":[{"duration":345.70000000298023,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bv2/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":250.79999999701977,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":250.79999999701977,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":596.5,"responseStart":0,"secureConnectionStart":0},{"duration":345.79999999701977,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2bv2/820016/12ta74/2380add21a9a1006587582385952de73/_/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":251,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":251,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":596.7999999970198,"responseStart":0,"secureConnectionStart":0},{"duration":354.79999999701977,"initiatorType":"script","name":"https://jira.mariadb.org/s/e9b27a47da5fb0f74a35acd57e9847fb-CDN/lu2bv2/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":251.20000000298023,"connectEnd":251.20000000298023,"connectStart":251.20000000298023,"domainLookupEnd":251.20000000298023,"domainLookupStart":251.20000000298023,"fetchStart":251.20000000298023,"redirectEnd":0,"redirectStart":0,"requestStart":251.20000000298023,"responseEnd":606,"responseStart":606,"secureConnectionStart":251.20000000298023},{"duration":413,"initiatorType":"script","name":"https://jira.mariadb.org/s/c32eb0da7ad9831253f8397e6cc26afd-CDN/lu2bv2/820016/12ta74/2380add21a9a1006587582385952de73/_/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":251.40000000596046,"connectEnd":251.40000000596046,"connectStart":251.40000000596046,"domainLookupEnd":251.40000000596046,"domainLookupStart":251.40000000596046,"fetchStart":251.40000000596046,"redirectEnd":0,"redirectStart":0,"requestStart":251.40000000596046,"responseEnd":664.4000000059605,"responseStart":664.4000000059605,"secureConnectionStart":251.40000000596046},{"duration":416.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/bc0bcb146314416123c992714ee00ff7-CDN/lu2bv2/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":251.70000000298023,"connectEnd":251.70000000298023,"connectStart":251.70000000298023,"domainLookupEnd":251.70000000298023,"domainLookupStart":251.70000000298023,"fetchStart":251.70000000298023,"redirectEnd":0,"redirectStart":0,"requestStart":251.70000000298023,"responseEnd":668.2000000029802,"responseStart":668.2000000029802,"secureConnectionStart":251.70000000298023},{"duration":416.90000000596046,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":251.79999999701977,"connectEnd":251.79999999701977,"connectStart":251.79999999701977,"domainLookupEnd":251.79999999701977,"domainLookupStart":251.79999999701977,"fetchStart":251.79999999701977,"redirectEnd":0,"redirectStart":0,"requestStart":251.79999999701977,"responseEnd":668.7000000029802,"responseStart":668.7000000029802,"secureConnectionStart":251.79999999701977},{"duration":416.8999999910593,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":252.20000000298023,"connectEnd":252.20000000298023,"connectStart":252.20000000298023,"domainLookupEnd":252.20000000298023,"domainLookupStart":252.20000000298023,"fetchStart":252.20000000298023,"redirectEnd":0,"redirectStart":0,"requestStart":252.20000000298023,"responseEnd":669.0999999940395,"responseStart":669.0999999940395,"secureConnectionStart":252.20000000298023},{"duration":501.1000000089407,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2bv2/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":252.29999999701977,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":252.29999999701977,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":753.4000000059605,"responseStart":0,"secureConnectionStart":0},{"duration":416.90000000596046,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":252.59999999403954,"connectEnd":252.59999999403954,"connectStart":252.59999999403954,"domainLookupEnd":252.59999999403954,"domainLookupStart":252.59999999403954,"fetchStart":252.59999999403954,"redirectEnd":0,"redirectStart":0,"requestStart":252.59999999403954,"responseEnd":669.5,"responseStart":669.5,"secureConnectionStart":252.59999999403954},{"duration":500.79999999701977,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2bv2/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":252.70000000298023,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":252.70000000298023,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":753.5,"responseStart":0,"secureConnectionStart":0},{"duration":417.29999999701977,"initiatorType":"script","name":"https://jira.mariadb.org/s/719848dd97ebe0663199f49a3936487a-CDN/lu2bv2/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":252.90000000596046,"connectEnd":252.90000000596046,"connectStart":252.90000000596046,"domainLookupEnd":252.90000000596046,"domainLookupStart":252.90000000596046,"fetchStart":252.90000000596046,"redirectEnd":0,"redirectStart":0,"requestStart":252.90000000596046,"responseEnd":670.2000000029802,"responseStart":670.2000000029802,"secureConnectionStart":252.90000000596046},{"duration":1527.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":259.5,"connectEnd":259.5,"connectStart":259.5,"domainLookupEnd":259.5,"domainLookupStart":259.5,"fetchStart":259.5,"redirectEnd":0,"redirectStart":0,"requestStart":259.5,"responseEnd":1787,"responseStart":1787,"secureConnectionStart":259.5},{"duration":1551.8999999910593,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":259.70000000298023,"connectEnd":259.70000000298023,"connectStart":259.70000000298023,"domainLookupEnd":259.70000000298023,"domainLookupStart":259.70000000298023,"fetchStart":259.70000000298023,"redirectEnd":0,"redirectStart":0,"requestStart":259.70000000298023,"responseEnd":1811.5999999940395,"responseStart":1811.5999999940395,"secureConnectionStart":259.70000000298023},{"duration":166.70000000298023,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":789.2999999970198,"connectEnd":789.2999999970198,"connectStart":789.2999999970198,"domainLookupEnd":789.2999999970198,"domainLookupStart":789.2999999970198,"fetchStart":789.2999999970198,"redirectEnd":0,"redirectStart":0,"requestStart":789.2999999970198,"responseEnd":956,"responseStart":956,"secureConnectionStart":789.2999999970198},{"duration":743.1999999880791,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/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":1069.9000000059605,"connectEnd":1069.9000000059605,"connectStart":1069.9000000059605,"domainLookupEnd":1069.9000000059605,"domainLookupStart":1069.9000000059605,"fetchStart":1069.9000000059605,"redirectEnd":0,"redirectStart":0,"requestStart":1069.9000000059605,"responseEnd":1813.0999999940395,"responseStart":1813.0999999940395,"secureConnectionStart":1069.9000000059605},{"duration":769.5,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":1127,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1127,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1896.5,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":83,"responseStart":244,"responseEnd":248,"domLoading":249,"domInteractive":1842,"domContentLoadedEventStart":1842,"domContentLoadedEventEnd":1890,"domComplete":3144,"loadEventStart":3144,"loadEventEnd":3144,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1815},{"name":"bigPipe.sidebar-id.end","time":1815.9000000059605},{"name":"bigPipe.activity-panel-pipe-id.start","time":1816.0999999940395},{"name":"bigPipe.activity-panel-pipe-id.end","time":1818.7000000029802},{"name":"activityTabFullyLoaded","time":1901.2999999970198}],"measures":[],"correlationId":"f77b74714d88e3","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":99,"dbReadsTimeInMs":13,"dbConnsTimeInMs":21,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}