Type:
New Feature
Priority:
Major
Resolution:
Unresolved
Fix Version/s:
None
Component/s:
None
MariaDB Server must adapt seamlessly to hardware resource changes (CPU, RAM) in dynamic environments like Kubernetes/Cloud, where allocations can shift online without server restarts. This story covers the development of automatic scaling mechanisms to optimize thread pool and buffer pool usage based on real-time hardware availability, reducing manual tuning and enhancing cloud-native performance.
Current State
Thread Pool Dynamism: The thread pool adjusts active threads based on workload within thread_pool_min_threads and thread_pool_max_threads.
Manual CPU Scaling: thread_pool_size can be changed via SET GLOBAL, but there’s no automatic adjustment for CPU changes.
Buffer Pool Static Configuration: innodb_buffer_pool_size defaults to 128MB and requires manual tuning, despite recommendations of 75-80% of RAM.
Kubernetes & Cloud Constraints: Containerized environments dynamically scale CPU and RAM, but MariaDB relies on manual intervention or scripts to optimize resource usage.
*Proposed Feature Set: Automatic CPU-Based, RAM-Based Auto-Scaling and Hill-Climbing (Enterprise).
Introduce configurable auto-scaling mechanisms to dynamically adjust the thread pool and buffer pool based on resource changes.
No workflow transitions have been executed yet.
{"report":{"fcp":3930.600000023842,"ttfb":349.5,"pageVisibility":"visible","entityId":133048,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"fac3f182-54da-45b1-8777-b53c2f561082","navigationType":0,"readyForUser":3046.7000000476837,"redirectCount":0,"resourceLoadedEnd":3738.100000023842,"resourceLoadedStart":373.10000002384186,"resourceTiming":[{"duration":168.39999997615814,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":373.10000002384186,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":373.10000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":541.5,"responseStart":0,"secureConnectionStart":0},{"duration":169.89999997615814,"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":373.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":373.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":543.3999999761581,"responseStart":0,"secureConnectionStart":0},{"duration":1937.6999999284744,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":373.7000000476837,"connectEnd":373.7000000476837,"connectStart":373.7000000476837,"domainLookupEnd":373.7000000476837,"domainLookupStart":373.7000000476837,"fetchStart":373.7000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":543.2000000476837,"responseEnd":2311.399999976158,"responseStart":556.5,"secureConnectionStart":373.7000000476837},{"duration":1944.5,"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":373.89999997615814,"connectEnd":373.89999997615814,"connectStart":373.89999997615814,"domainLookupEnd":373.89999997615814,"domainLookupStart":373.89999997615814,"fetchStart":373.89999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":543.8999999761581,"responseEnd":2318.399999976158,"responseStart":570.8999999761581,"secureConnectionStart":373.89999997615814},{"duration":238.29999995231628,"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":374.10000002384186,"connectEnd":374.10000002384186,"connectStart":374.10000002384186,"domainLookupEnd":374.10000002384186,"domainLookupStart":374.10000002384186,"fetchStart":374.10000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":545.7000000476837,"responseEnd":612.3999999761581,"responseStart":589.1000000238419,"secureConnectionStart":374.10000002384186},{"duration":1256.1999999284744,"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":374.3000000715256,"connectEnd":374.3000000715256,"connectStart":374.3000000715256,"domainLookupEnd":374.3000000715256,"domainLookupStart":374.3000000715256,"fetchStart":374.3000000715256,"redirectEnd":0,"redirectStart":0,"requestStart":546.3999999761581,"responseEnd":1630.5,"responseStart":1629.8999999761581,"secureConnectionStart":374.3000000715256},{"duration":1737.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":374.39999997615814,"connectEnd":374.39999997615814,"connectStart":374.39999997615814,"domainLookupEnd":374.39999997615814,"domainLookupStart":374.39999997615814,"fetchStart":374.39999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":548.7000000476837,"responseEnd":2112.100000023842,"responseStart":2057.7000000476837,"secureConnectionStart":374.39999997615814},{"duration":173,"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":374.7000000476837,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":374.7000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":547.7000000476837,"responseStart":0,"secureConnectionStart":0},{"duration":1928.3999999761581,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":374.8000000715256,"connectEnd":374.8000000715256,"connectStart":374.8000000715256,"domainLookupEnd":374.8000000715256,"domainLookupStart":374.8000000715256,"fetchStart":374.8000000715256,"redirectEnd":0,"redirectStart":0,"requestStart":552.2000000476837,"responseEnd":2303.2000000476837,"responseStart":2240.7000000476837,"secureConnectionStart":374.8000000715256},{"duration":175.20000004768372,"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":375,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":375,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":550.2000000476837,"responseStart":0,"secureConnectionStart":0},{"duration":1865.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":375.10000002384186,"connectEnd":375.10000002384186,"connectStart":375.10000002384186,"domainLookupEnd":375.10000002384186,"domainLookupStart":375.10000002384186,"fetchStart":375.10000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":553.3999999761581,"responseEnd":2240.600000023842,"responseStart":2117,"secureConnectionStart":375.10000002384186},{"duration":3086.2999999523163,"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":376.2000000476837,"connectEnd":376.2000000476837,"connectStart":376.2000000476837,"domainLookupEnd":376.2000000476837,"domainLookupStart":376.2000000476837,"fetchStart":376.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":1225.6000000238419,"responseEnd":3462.5,"responseStart":3288.8000000715256,"secureConnectionStart":376.2000000476837},{"duration":3356.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":381.60000002384186,"connectEnd":381.60000002384186,"connectStart":381.60000002384186,"domainLookupEnd":381.60000002384186,"domainLookupStart":381.60000002384186,"fetchStart":381.60000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":1340.6000000238419,"responseEnd":3738.100000023842,"responseStart":3662.2000000476837,"secureConnectionStart":381.60000002384186},{"duration":283.6999999284744,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":2614.7000000476837,"connectEnd":2614.7000000476837,"connectStart":2614.7000000476837,"domainLookupEnd":2614.7000000476837,"domainLookupStart":2614.7000000476837,"fetchStart":2614.7000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":2822.899999976158,"responseEnd":2898.399999976158,"responseStart":2877.7000000476837,"secureConnectionStart":2614.7000000476837},{"duration":250.10000002384186,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":2966,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":2966,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":3216.100000023842,"responseStart":0,"secureConnectionStart":0},{"duration":481.5,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":2977.399999976158,"connectEnd":2977.399999976158,"connectStart":2977.399999976158,"domainLookupEnd":2977.399999976158,"domainLookupStart":2977.399999976158,"fetchStart":2977.399999976158,"redirectEnd":0,"redirectStart":0,"requestStart":3217.5,"responseEnd":3458.899999976158,"responseStart":3285.5,"secureConnectionStart":2977.399999976158}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":177,"responseStart":349,"responseEnd":371,"domLoading":365,"domInteractive":3766,"domContentLoadedEventStart":3766,"domContentLoadedEventEnd":3843,"domComplete":4295,"loadEventStart":4295,"loadEventEnd":4295,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":3739.7000000476837},{"name":"bigPipe.sidebar-id.end","time":3740.600000023842},{"name":"bigPipe.activity-panel-pipe-id.start","time":3740.7000000476837},{"name":"bigPipe.activity-panel-pipe-id.end","time":3741.399999976158},{"name":"activityTabFullyLoaded","time":3848.100000023842}],"measures":[],"correlationId":"aa8d9e704d323","effectiveType":"4g","downlink":9.8,"rtt":0,"serverDuration":110,"dbReadsTimeInMs":22,"dbConnsTimeInMs":34,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}