4 mini talks in 1 - mariadb.org · 4 mini talks in 1 staying in the ... daniel black (community...
TRANSCRIPT
![Page 1: 4 mini talks in 1 - MariaDB.org · 4 mini talks in 1 Staying in the ... Daniel Black (community contributor and MariaDB consultant) Staying In the Picture ... Galera is in production](https://reader031.vdocuments.us/reader031/viewer/2022022715/5c1302d309d3f2557b8c39e1/html5/thumbnails/1.jpg)
4 mini talks in 1
● Staying in the picture● Victories and battle wounds from the front● Blood out of Stone / Failure No Emergency● New blood into the system
Daniel Black
(community contributor and MariaDB consultant)
![Page 2: 4 mini talks in 1 - MariaDB.org · 4 mini talks in 1 Staying in the ... Daniel Black (community contributor and MariaDB consultant) Staying In the Picture ... Galera is in production](https://reader031.vdocuments.us/reader031/viewer/2022022715/5c1302d309d3f2557b8c39e1/html5/thumbnails/2.jpg)
Staying In the Picture
moving beyond the image of a fork and staying/becoming a supported platform for more open source projects.
![Page 3: 4 mini talks in 1 - MariaDB.org · 4 mini talks in 1 Staying in the ... Daniel Black (community contributor and MariaDB consultant) Staying In the Picture ... Galera is in production](https://reader031.vdocuments.us/reader031/viewer/2022022715/5c1302d309d3f2557b8c39e1/html5/thumbnails/3.jpg)
Language in official docs
VS
MariaDB is an enhanced, drop-in replacement for MySQL and is available under the Terms of the GPL v2 license.
MariaDB is a community-developed fork of MySQL
http://docs.travis-ci.com/user/database-setup/
![Page 4: 4 mini talks in 1 - MariaDB.org · 4 mini talks in 1 Staying in the ... Daniel Black (community contributor and MariaDB consultant) Staying In the Picture ... Galera is in production](https://reader031.vdocuments.us/reader031/viewer/2022022715/5c1302d309d3f2557b8c39e1/html5/thumbnails/4.jpg)
Language in official docs (cont)● https://www.drupal.org/documentation/install/create-database
![Page 5: 4 mini talks in 1 - MariaDB.org · 4 mini talks in 1 Staying in the ... Daniel Black (community contributor and MariaDB consultant) Staying In the Picture ... Galera is in production](https://reader031.vdocuments.us/reader031/viewer/2022022715/5c1302d309d3f2557b8c39e1/html5/thumbnails/5.jpg)
Official Goals
● Maintain MySQL equivalent functionality● Upgrades and downgrades between minor version
● …..● …..
(Eric's talk from Tues)
![Page 6: 4 mini talks in 1 - MariaDB.org · 4 mini talks in 1 Staying in the ... Daniel Black (community contributor and MariaDB consultant) Staying In the Picture ... Galera is in production](https://reader031.vdocuments.us/reader031/viewer/2022022715/5c1302d309d3f2557b8c39e1/html5/thumbnails/6.jpg)
Supported Connectors
● https://travis-ci.org/PyMySQL/PyMySQL/jobs/82853525
![Page 7: 4 mini talks in 1 - MariaDB.org · 4 mini talks in 1 Staying in the ... Daniel Black (community contributor and MariaDB consultant) Staying In the Picture ... Galera is in production](https://reader031.vdocuments.us/reader031/viewer/2022022715/5c1302d309d3f2557b8c39e1/html5/thumbnails/7.jpg)
Supported Connectors (cont)
https://github.com/go-sql-driver/mysql (Go)https://github.com/brianmario/mysql2 (Ruby)https://github.com/balderdashy/sails-mysql (Sail.js)https://github.com/jugglingdb/mysql-adapter (JugglingDB)
![Page 9: 4 mini talks in 1 - MariaDB.org · 4 mini talks in 1 Staying in the ... Daniel Black (community contributor and MariaDB consultant) Staying In the Picture ... Galera is in production](https://reader031.vdocuments.us/reader031/viewer/2022022715/5c1302d309d3f2557b8c39e1/html5/thumbnails/9.jpg)
Your thoughts?
● Is MariaDB seen as at least equal status than MySQL generally
● What other things can be done to remove any negative perceptions?
![Page 10: 4 mini talks in 1 - MariaDB.org · 4 mini talks in 1 Staying in the ... Daniel Black (community contributor and MariaDB consultant) Staying In the Picture ... Galera is in production](https://reader031.vdocuments.us/reader031/viewer/2022022715/5c1302d309d3f2557b8c39e1/html5/thumbnails/10.jpg)
Victoriesand
Battle wounds(consulting with clients)
![Page 11: 4 mini talks in 1 - MariaDB.org · 4 mini talks in 1 Staying in the ... Daniel Black (community contributor and MariaDB consultant) Staying In the Picture ... Galera is in production](https://reader031.vdocuments.us/reader031/viewer/2022022715/5c1302d309d3f2557b8c39e1/html5/thumbnails/11.jpg)
Victories
● All ongoing clients of Open Query are now on MariaDB
● Migration was never a hard sell● They are staying on it because:
– Stability– Response times to critical bugs
● Galera is in production– few large users are looking at it too
![Page 12: 4 mini talks in 1 - MariaDB.org · 4 mini talks in 1 Staying in the ... Daniel Black (community contributor and MariaDB consultant) Staying In the Picture ... Galera is in production](https://reader031.vdocuments.us/reader031/viewer/2022022715/5c1302d309d3f2557b8c39e1/html5/thumbnails/12.jpg)
Largest Fears
● Replication failure (and Galera)– Embarrassingly high use of slave_skip_errors
(galera and async)
![Page 13: 4 mini talks in 1 - MariaDB.org · 4 mini talks in 1 Staying in the ... Daniel Black (community contributor and MariaDB consultant) Staying In the Picture ... Galera is in production](https://reader031.vdocuments.us/reader031/viewer/2022022715/5c1302d309d3f2557b8c39e1/html5/thumbnails/13.jpg)
Largest Fears
● Server aborting
Count (text ~ "abort" and status!=closed ) = 144
Count(text ~ "segment fault" and status!=closed) = 14
![Page 14: 4 mini talks in 1 - MariaDB.org · 4 mini talks in 1 Staying in the ... Daniel Black (community contributor and MariaDB consultant) Staying In the Picture ... Galera is in production](https://reader031.vdocuments.us/reader031/viewer/2022022715/5c1302d309d3f2557b8c39e1/html5/thumbnails/14.jpg)
Largest Fears
● Server aborting
![Page 15: 4 mini talks in 1 - MariaDB.org · 4 mini talks in 1 Staying in the ... Daniel Black (community contributor and MariaDB consultant) Staying In the Picture ... Galera is in production](https://reader031.vdocuments.us/reader031/viewer/2022022715/5c1302d309d3f2557b8c39e1/html5/thumbnails/15.jpg)
Causing Hardship – default settings
● (Aka what brings new clients)● Default settings have only just to move beyond
at year 2000 level and not taking into account new features
● MySQL - Morgan Tocker – getting Mysql-5.7 changes done
● getting good changes in early (MDEV-7635)
![Page 16: 4 mini talks in 1 - MariaDB.org · 4 mini talks in 1 Staying in the ... Daniel Black (community contributor and MariaDB consultant) Staying In the Picture ... Galera is in production](https://reader031.vdocuments.us/reader031/viewer/2022022715/5c1302d309d3f2557b8c39e1/html5/thumbnails/16.jpg)
Greatest Annoyance
● Realization of fears– replication failure
– Asserts / aborts
![Page 17: 4 mini talks in 1 - MariaDB.org · 4 mini talks in 1 Staying in the ... Daniel Black (community contributor and MariaDB consultant) Staying In the Picture ... Galera is in production](https://reader031.vdocuments.us/reader031/viewer/2022022715/5c1302d309d3f2557b8c39e1/html5/thumbnails/17.jpg)
Annoyance
● Variables that aren't dynamic (very few left)– log_slave_updates
– slave_skip_errors● Stopped io/sql thread to make change acceptable ● Stopped server isn't
● More online table alterations are good
![Page 18: 4 mini talks in 1 - MariaDB.org · 4 mini talks in 1 Staying in the ... Daniel Black (community contributor and MariaDB consultant) Staying In the Picture ... Galera is in production](https://reader031.vdocuments.us/reader031/viewer/2022022715/5c1302d309d3f2557b8c39e1/html5/thumbnails/18.jpg)
Annoyance
● Analyze table blocking – hampers use of engine independent statistics (MDEV-7901)
● mysql -NB -u openquery -p -e "select CONCAT('ANALYZE NO_WRITE_TO_BINLOG TABLE ',TABLE_SCHEMA,'.',TABLES.TABLE_NAME, ' PERSISTENT FOR ALL') from information_schema.TABLES LEFT JOIN mysql.table_stats ON TABLES.TABLE_NAME=table_stats.table_name AND TABLES.TABLE_SCHEMA=table_stats.db_name where TABLE_SCHEMA NOT IN ('information_schema', 'performance_schema', 'mysql', 'sys') and table_stats.table_name is null and TABLES.TABLE_TYPE='BASE TABLE';" | while read cmd; do mysql -e "${cmd}" & sleep 0.5; done
● ( mysqldump --skip-add-locks --skip-lock-tables --no-create-info --replace mysql column_stats index_stats table_stats ; echo 'flush tables;'; ) | mysql -u openquery -p -h DESTINATION mysql
● More online table alterations are good
![Page 19: 4 mini talks in 1 - MariaDB.org · 4 mini talks in 1 Staying in the ... Daniel Black (community contributor and MariaDB consultant) Staying In the Picture ... Galera is in production](https://reader031.vdocuments.us/reader031/viewer/2022022715/5c1302d309d3f2557b8c39e1/html5/thumbnails/19.jpg)
Failure not an Emergency
Kernelopps.org
![Page 20: 4 mini talks in 1 - MariaDB.org · 4 mini talks in 1 Staying in the ... Daniel Black (community contributor and MariaDB consultant) Staying In the Picture ... Galera is in production](https://reader031.vdocuments.us/reader031/viewer/2022022715/5c1302d309d3f2557b8c39e1/html5/thumbnails/20.jpg)
Blood out of Stone / Failure is not Emergency
Alternatives - Asserts and Abort● Aborts(), SEGV● Killing thread?
– Restructuring cleanup - mutex cleanup
● Opportunities – generating debug information
![Page 21: 4 mini talks in 1 - MariaDB.org · 4 mini talks in 1 Staying in the ... Daniel Black (community contributor and MariaDB consultant) Staying In the Picture ... Galera is in production](https://reader031.vdocuments.us/reader031/viewer/2022022715/5c1302d309d3f2557b8c39e1/html5/thumbnails/21.jpg)
New Blood into the system