Import the spider storage engine into MariaDB.
From the website:
Spider is the first step when accessing a remote database and a storage engine that updates and improves upon the existing architecture of MySQL. Spider supports database transaction. In addition Spider allows an unlimited amount of users to quickly access the MySQL database. Spider supports MySQL partitioning. Spider operates as a "cluster" acting as a single system that supports unlimited parallel processing. To supports XA transaction and table partitioning itself, the Spider also created for the database shardings.
More information can be found on the website: http://spiderformysql.com/
Initial discussion of the potential import can be found in the archives of the maria-discuss mailing list: https://lists.launchpad.net/maria-discuss/msg00787.html