Twitter releases its MySQL scalability tweaks

NEW YORK — Twitter has released some of the tweaks it has made to MySQL, potentially bringing greater scalability to the open-source relational database management system.

As one of the largest users of MySQL, Twitter uses the database software to store most of the data its 140 million users generate.

“Due to our scale, we push MySQL a lot further than most companies,” wrote Twitter engineers Jeremy Cole and Davi Arnau, in a blog post announcing the release of a number of changes to the software Twitter originally made for its own use.

This code addresses a crucial issue for MySQL: the ability to scale to meet the demands of large data-processing-intensive systems, such as Twitter’s. Much of the appeal behind NoSQL-styled databases, such as Cassandra, has come from how they bypass the limits that relational databases systems such as MySQL have had in scaling across multiple servers.

Among the changes is some code that would allow MySQL to run more effectively on large pooled-memory systems. Specifically, it allocates during startup all the memory needed for the core InnoDB database engine. It also ensures adequate performance even when available server memory is at a minimum.

Twitter’s efforts to massively scale MySQL join a number of other products that target that specific need, such as Percona’s recently released XtraDB cluster, Oracle’s MySQL Cluster and TokuTek’s TokuDB.

In addition to the scalability enhancements, Twitter also added a number of other features as well to the free code. They include new internal status checks, which would allow users to monitor InnoDB performance more closely. The code also optimizes MySQL for use of SSDs (Solid-State Disks).

Twitter released the code on the eve of the Percona Live MySQL conference, being held this week in Santa Clara, California. There, Cole and Arnau will be giving a presentation on Gizzard, Twitter’s sharding and replication framework for MySQL.

Twitter posted the patches on GitHub, under a BSD (Berkeley Software Distribution) license.

Would you recommend this article?

Share

Thanks for taking the time to let us know what you think of this article!
We'd love to hear your opinion about this or any other story you read in our publication.


Jim Love, Chief Content Officer, IT World Canada

Featured Download

Featured Articles

Cybersecurity in 2024: Priorities and challenges for Canadian organizations 

By Derek Manky As predictions for 2024 point to the continued expansion...

Survey shows generative AI is a top priority for Canadian corporate leaders.

Leaders are devoting significant budget to generative AI for 2024 Canadian corporate...

Related Tech News

Tech Jobs

Our experienced team of journalists and bloggers bring you engaging in-depth interviews, videos and content targeted to IT professionals and line-of-business executives.

Tech Companies Hiring Right Now