On startup the image throws the following warnings, each of which seems to contribute to the container taking longer to finish start-up tasks, making full start-up take over a minute.
Least impactful is the first warning-
2021-11-17 20:47:02 1 [Warning] Failed to load slave replication state from table mysql.gtid_slave_pos: 1017: Can't find file: './mysql/' (errno: 2 "No such file or directory")
|
This one is probably fine as-is, but if it can be addressed, would be nice.
The bigger issues are these three-
2021-11-17 20:47:07 0 [Note] mariadbd: ready for connections.
|
Version: '10.6.5-MariaDB-1:10.6.5+maria~focal-log' socket: '/run/mysqld/mysqld.sock' port: 0 mariadb.org binary distribution
|
2021-11-17 20:47:07+00:00 [Note] [Entrypoint]: Temporary server started.
|
Warning: Unable to load '/usr/share/zoneinfo/leap-seconds.list' as time zone. Skipping it.
|
Warning: Unable to load '/usr/share/zoneinfo/leapseconds' as time zone. Skipping it.
|
Warning: Unable to load '/usr/share/zoneinfo/tzdata.zi' as time zone. Skipping it.
|
2021-11-17 20:47:57 6 [Warning] 'proxies_priv' entry '@% root@3ca6dd5b620d' ignored in --skip-name-resolve mode.
|
2021-11-17 20:47:57+00:00 [Note] [Entrypoint]: Creating database test
|
2021-11-17 20:47:57+00:00 [Note] [Entrypoint]: Creating user tester
|
2021-11-17 20:47:57+00:00 [Note] [Entrypoint]: Giving user tester access to schema test
|
2021-11-17 20:47:57+00:00 [Note] [Entrypoint]: Stopping temporary server
|
2021-11-17 20:47:57 0 [Note] mariadbd (initiated by: root[root] @ localhost []): Normal shutdown
|
2021-11-17 20:47:57 0 [Note] InnoDB: FTS optimize thread exiting.
|
Key here are the time stamps- it is 20:47:07 before the Warning: Unable to load... entries occur and then 20:47:57 after. It seems like the system waits for these to time out before proceeding.
The amount of time here doesn't look significant, but this was a faster than typical run for this- it can take longer. It also feels inordinately long compared to when the temporary server starts up (and also quite long compared to Nginx and PHP-FPM container start-up times, making MariaDB the bottleneck for launching new EMP stacks). If we can resolve or work-around this issue, the MariaDB Docker container will feel much more responsive and yield a much improved user experience.
{"report":{"fcp":1106.8000001907349,"ttfb":257.30000019073486,"pageVisibility":"visible","entityId":105300,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"c1a26985-c91c-40af-a42b-d9b0ac3fa238","navigationType":0,"readyForUser":1222.8000001907349,"redirectCount":0,"resourceLoadedEnd":788.1000003814697,"resourceLoadedStart":264.7000002861023,"resourceTiming":[{"duration":77.40000009536743,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":264.7000002861023,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":264.7000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":342.1000003814697,"responseStart":0,"secureConnectionStart":0},{"duration":77.7999997138977,"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":265.1000003814697,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":265.1000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":342.90000009536743,"responseStart":0,"secureConnectionStart":0},{"duration":265.90000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":265.2000002861023,"connectEnd":265.2000002861023,"connectStart":265.2000002861023,"domainLookupEnd":265.2000002861023,"domainLookupStart":265.2000002861023,"fetchStart":265.2000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":347,"responseEnd":531.1000003814697,"responseStart":367.1000003814697,"secureConnectionStart":265.2000002861023},{"duration":454.40000009536743,"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":265.40000009536743,"connectEnd":265.40000009536743,"connectStart":265.40000009536743,"domainLookupEnd":265.40000009536743,"domainLookupStart":265.40000009536743,"fetchStart":265.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":347.2000002861023,"responseEnd":719.8000001907349,"responseStart":367.80000019073486,"secureConnectionStart":265.40000009536743},{"duration":107,"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":265.7000002861023,"connectEnd":265.7000002861023,"connectStart":265.7000002861023,"domainLookupEnd":265.7000002861023,"domainLookupStart":265.7000002861023,"fetchStart":265.7000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":347.40000009536743,"responseEnd":372.7000002861023,"responseStart":370,"secureConnectionStart":265.7000002861023},{"duration":106.09999990463257,"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":265.90000009536743,"connectEnd":265.90000009536743,"connectStart":265.90000009536743,"domainLookupEnd":265.90000009536743,"domainLookupStart":265.90000009536743,"fetchStart":265.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":347.30000019073486,"responseEnd":372,"responseStart":368.6000003814697,"secureConnectionStart":265.90000009536743},{"duration":111.40000009536743,"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":266.2000002861023,"connectEnd":266.2000002861023,"connectStart":266.2000002861023,"domainLookupEnd":266.2000002861023,"domainLookupStart":266.2000002861023,"fetchStart":266.2000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":347.6000003814697,"responseEnd":377.6000003814697,"responseStart":372.80000019073486,"secureConnectionStart":266.2000002861023},{"duration":77.59999990463257,"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":266.30000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":266.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":343.90000009536743,"responseStart":0,"secureConnectionStart":0},{"duration":111.5,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":266.5,"connectEnd":266.5,"connectStart":266.5,"domainLookupEnd":266.5,"domainLookupStart":266.5,"fetchStart":266.5,"redirectEnd":0,"redirectStart":0,"requestStart":347.80000019073486,"responseEnd":378,"responseStart":375.1000003814697,"secureConnectionStart":266.5},{"duration":77.40000009536743,"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":266.7000002861023,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":266.7000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":344.1000003814697,"responseStart":0,"secureConnectionStart":0},{"duration":111,"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":266.80000019073486,"connectEnd":266.80000019073486,"connectStart":266.80000019073486,"domainLookupEnd":266.80000019073486,"domainLookupStart":266.80000019073486,"fetchStart":266.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":347.90000009536743,"responseEnd":377.80000019073486,"responseStart":374.30000019073486,"secureConnectionStart":266.80000019073486},{"duration":520.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":267.80000019073486,"connectEnd":267.80000019073486,"connectStart":267.80000019073486,"domainLookupEnd":267.80000019073486,"domainLookupStart":267.80000019073486,"fetchStart":267.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":438.30000019073486,"responseEnd":787.9000000953674,"responseStart":772.3000001907349,"secureConnectionStart":267.80000019073486},{"duration":512.6000003814697,"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":275.5,"connectEnd":275.5,"connectStart":275.5,"domainLookupEnd":275.5,"domainLookupStart":275.5,"fetchStart":275.5,"redirectEnd":0,"redirectStart":0,"requestStart":439,"responseEnd":788.1000003814697,"responseStart":773,"secureConnectionStart":275.5},{"duration":191.59999990463257,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":675.6000003814697,"connectEnd":675.6000003814697,"connectStart":675.6000003814697,"domainLookupEnd":675.6000003814697,"domainLookupStart":675.6000003814697,"fetchStart":675.6000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":786.7000002861023,"responseEnd":867.2000002861023,"responseStart":857.6000003814697,"secureConnectionStart":675.6000003814697},{"duration":305.7999997138977,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":995.7000002861023,"connectEnd":995.7000002861023,"connectStart":995.7000002861023,"domainLookupEnd":995.7000002861023,"domainLookupStart":995.7000002861023,"fetchStart":995.7000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":1262.2000002861023,"responseEnd":1301.5,"responseStart":1298.9000000953674,"secureConnectionStart":995.7000002861023}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":55,"responseStart":257,"responseEnd":277,"domLoading":262,"domInteractive":1325,"domContentLoadedEventStart":1325,"domContentLoadedEventEnd":1393,"domComplete":1810,"loadEventStart":1810,"loadEventEnd":1810,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1282.7000002861023},{"name":"bigPipe.sidebar-id.end","time":1283.5},{"name":"bigPipe.activity-panel-pipe-id.start","time":1283.7000002861023},{"name":"bigPipe.activity-panel-pipe-id.end","time":1286.7000002861023},{"name":"activityTabFullyLoaded","time":1429.6000003814697}],"measures":[],"correlationId":"f04486c0bf3741","effectiveType":"4g","downlink":9.1,"rtt":0,"serverDuration":133,"dbReadsTimeInMs":14,"dbConnsTimeInMs":29,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
The unable to load message itself isn't incuring a timeout, these are just that these particular files are zoneinfo file. The timezone loading is quite IO intense. I did reduce the time in https://github.com/MariaDB/mariadb-docker/commit/88ff4eed96a7662c1a06b16397592af954770070, however there are better ways like LOCK TABLES ... WRITE on these that I haven't done. 50 seconds does seem like far too long however.
If you don't need the timezones - MARIADB_INITDB_SKIP_TZINFO=1 can help.
On the replication, yes there is an every growing list of things that should be implicitly part of mysql_install_db. It will be addressed soon.
I'll look into the number of restarts and what is being done in each. Do you have a mariadb configuration file that may hint as to which bits are taking time in the server itself?