MariaDB Upgrade – Using the Diff Router – Part 5

Part 5  –  Visualising the results

This multipart series breaks down each section into easy logical steps.


Once you have completed the process and stopped the comparison, you will want to actually look at the results. The amazing MaxScale team have thought of this as well and provide a tool to look at the results from your testing.


Looking at the results

MariaDB MaxScale has a tool called maxvisualize, this tool allows us to look at our results. This tool is provided when you install MaxScale to your server. This is a python tool and the first time you run this, it may need to install some python related dependencies.

Before looking at the results, I would recommend you stop the service and ensure your MaxScale is back to the state it was in before you started testing.


Hopefully this miniseries has helped you understand how you can compare different versions of MariaDB against production, without having to impact your users.


If you were following this, you will have the files created in the /var/lib/maxscale/diff/Diff-Service folder

To run the visualisation, you can run the maxvisualize command, you need to pass in to the script the baseline and comparison files. You will also note the –Voila.ip=’0.0.0.0′ command, this will allow you to serve the webpage that is created publically, as generally MaxScale servers are headless :

Bash
maxvisualize /var/lib/maxscale/diff/Diff-Service/server1_2025-07-13_094038.json /var/lib/maxscale/diff/Diff-Service/server4_2025-07-13_094038.json  --Voila.ip='0.0.0.0'

The GUI

The MaxScale visualize tool allows you to browse to the IP address of the server and view the information. The default port is 8866. This provides an in-depth analysis of the comparison of the servers.

maxvisualize – Queries Per Second
maxvisualize – comparision

Conclusion

Conclusion

Upgrading MariaDB doesn’t have to be a leap of faith. By using MaxScale’s Diff Router, you can confidently compare query results between two MariaDB versions in real time, ensuring application compatibility before making the switch. Pair this with MaxVisualize, and you get a clear, visual breakdown of any differences that need attention.

This approach not only reduces the risk of upgrade-related issues but also paves the way for zero-downtime, production-grade upgrades. With the right tools and a bit of planning, your next MariaDB upgrade can be smoother, safer, and smarter.


Part 1 | Part 2 | Part 3 | Part 4 | Part 5

Kester Riley

Kester Riley is a Global Solutions Engineering Leader who leverages his website to establish his brand and build strong business relationships. Through his blog posts, Kester shares his expertise as a consultant, mentor, trainer, and presenter, providing innovative ideas and code examples to empower ambitious professionals.

#womeninit (1) CentOS (15) Connector (5) Continuous Availability (1) Cooperative Monitoring (3) diff router (5) High Availability (12) Java (3) MariaDB (21) MaxScale (19) Mentoring (1) Python (2) Replica Rebuild (10) Rocky Linux (15) upgrade (5) Work Place (1)

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.