19.06.2015 Views

ADMIN

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

MySQL Forks and Patches<br />

Features<br />

In non-traditional mode, MySQL ignores<br />

the default use and still runs<br />

the queries; in traditional mode, the<br />

query quits with an error. Thus, it is<br />

a good idea in many cases to change<br />

the line to sql‐mode=NO_ENGINE_SUB‐<br />

STITUTION and then restart the<br />

server. This problem is not specific<br />

to MariaDB, simply a very restrictive<br />

configuration in line with the MySQL<br />

standard. Additionally, it makes sense<br />

to check whether programs compiled<br />

against Libmysqlclient-dev need to be<br />

recompiled against the current Libmariadbclient-device.<br />

In a Rails environment,<br />

this will affect Mysql-Gem.<br />

Besides the benefits of the InnoDB<br />

plugin described thus far, XtraDB also<br />

offers a considerable performance<br />

boost, as a variety of benchmarks<br />

with various setups proves [10]. Numerous<br />

additional functions make life<br />

easier for developers and administrators<br />

– and don’t forget the ability to<br />

write out the InnoDB buffer to disk.<br />

If you do need to restart the MySQL<br />

or MariaDB server, the InnoDB engine<br />

loses its valuable buffer pool in RAM.<br />

Depending on your configuration and<br />

the application, the pool can be several<br />

gigabytes and might be filled in<br />

the course of hours. Storing the buffer<br />

pool before quitting and loading it<br />

again after restarting will save valuable<br />

warmup time, which you would<br />

notice as slow response on the part of<br />

the database server. Listing 5 shows<br />

the commands and returns for storing<br />

and loading the buffer pool.<br />

Drizzle<br />

At this point, I’ll take a quick look<br />

at a new development, Drizzle [11].<br />

According to the project, the fork is a<br />

return to the original MySQL values:<br />

simplicity, reliability, and performance.<br />

Drizzle was originally based<br />

on the code of the not-yet-released<br />

MySQL 6.0 and mainly pursues the<br />

goals of removing unnecessary functions<br />

and reducing complexity.<br />

The developers really have been radical<br />

in the features they eradicated: E<br />

Listing 5: Storing and Loading the Buffer Pool<br />

// storing the buffer pool<br />

MariaDB [(none)]> select * from<br />

information_schema.XTRADB_<strong>ADMIN</strong>_COMMAND<br />

/*!XTRA_LRU_DUMP*/;<br />

+‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐+<br />

| result_message |<br />

+‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐+<br />

| XTRA_LRU_DUMP was succeeded. |<br />

+‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐+<br />

// loading buffer pool and<br />

MariaDB [(none)]> select * from information_schema.<br />

XTRADB_<strong>ADMIN</strong>_COMMAND /*!XTRA_LRU_RESTORE*/;<br />

+‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐+<br />

| result_message |<br />

+‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐+<br />

| XTRA_LRU_RESTORE was succeeded. |<br />

+‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐+<br />

Make the most of your Data Center<br />

Watch our video archiv of the Open Source Data Center<br />

Conference – each session complete with slides.<br />

Hot Topics<br />

• High Availability<br />

• Computer Clusters<br />

• Load Balancing<br />

• Configuration Management<br />

• Security Management<br />

Register here:<br />

streaming.linux-magazin.de/en<br />

www.admin-magazine.com<br />

Admin 01<br />

Contact: Phone: +49 (0) 89 / 99 34 11 - 0 • Fax: +49 (0) 89 / 99 34 11 - 99 • E-Mail: streaming@linux-magazin.de 23

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!