{"id":562,"date":"2007-06-05T00:07:52","date_gmt":"2007-06-05T05:07:52","guid":{"rendered":"http:\/\/www.bytebot.net\/blog\/archives\/2007\/06\/05\/ticketmaster-thrives-on-mysql-replication"},"modified":"2007-06-05T00:07:55","modified_gmt":"2007-06-05T05:07:55","slug":"ticketmaster-thrives-on-mysql-replication","status":"publish","type":"post","link":"https:\/\/www.bytebot.net\/blog\/archives\/2007\/06\/05\/ticketmaster-thrives-on-mysql-replication","title":{"rendered":"Ticketmaster thrives on MySQL Replication"},"content":{"rendered":"<p>Even though the <a href=\"http:\/\/www.mysqlconf.com\/\">conference<\/a> is long over, I still have unpublished notes sitting on my ~\/Desktop, and it only makes sense that I clean it out. These are notes from Ed Presz&#8217;s session, titled <a href=\"http:\/\/mysqlconf.com\/cs\/mysqluc2007\/view\/e_sess\/10799\">For Ticketmaster, MySQL Replication is the Ticket!<\/a> They are as always, pretty raw.<\/p>\n<p>We were all given a handout, which was some corporate spiel, which contained a lot of information about hiring. Their mission is to &#8220;sell more tickets better than anyone in the event business, worldwide&#8221;.<\/p>\n<p>I found it impressive to note that Ticketmaster managed last year&#8217;s Melbourne Commonwealth ticket sales. I guess, even more impressive is that for next year&#8217;s Beijing Olympics, Ticketmaster ran a <i>ticket lottery<\/i>, and 17,843 seat tickets were sold in 75 seconds!<\/p>\n<p>MySQL 4.0.18 is currently used, and they plan to upgrade to MySQL 5.0.27 in 2007 &#8211; difference in the join syntax between 4 &amp; 5 was a blocker. Reference was made to mysql<a href=\"http:\/\/bugs.mysql.com\/bug.php?id=13551\">#13551<\/a>.<\/p>\n<p>They use InnoDB, for its row-level locking, referential integrity, transaction support. The average size of the &#8220;event&#8221; database is ~20GB, with around ~230 tables. Rely heavily on MySQL replication. At any one time there are between 100,000 &#8211; 130,000 visible events!<\/p>\n<p>MyISAM tables for full-text searching (InnoDB doesn&#8217;t do this yet) and <a href=\"http:\/\/www.livedaily.com\/\">LiveDaily<\/a>. Using vBulletin, MyISAM performs better too.<\/p>\n<p>One-way replication is very fast. No\/minimal performance hit on MySQL master. Its <b>real<\/b> easy to add slaves. Dual masters, a farm of slaves (4) [cluster], then 4 more slaves of those slaves. Then they send all traffic to the lower level slaves.<\/p>\n<p>Think through your architecture, since there is no multi-master replication. A slave can only have one master. Setup two instances of MySQL on MySQL_Server_1 listening on different ports (but this is not what they use). They use Bi-Directional replication (multi-master, circular, dual-master). Replicating from the UK to the US. They use UTF-8 and UTC time on the servers.<\/p>\n<p><tt>innodb_flush_log_at_trx_commit=0<\/tt> &#8211; resulted in huge performance improvement with MySQL replication. However its not writing to disk at each commit, so you can lose 1 second of insert\/update\/delete values in the event of a crash. Mitigated the risk because there are so many slaves.<\/p>\n<p>Technorati Tags: <a class=\"performancingtags\" href=\"http:\/\/technorati.com\/tag\/mysql\" rel=\"tag\">mysql<\/a>, <a class=\"performancingtags\" href=\"http:\/\/technorati.com\/tag\/mysqlconf\" rel=\"tag\">mysqlconf<\/a>, <a class=\"performancingtags\" href=\"http:\/\/technorati.com\/tag\/mysqlconf07\" rel=\"tag\">mysqlconf07<\/a>, <a class=\"performancingtags\" href=\"http:\/\/technorati.com\/tag\/ticketmaster\" rel=\"tag\">ticketmaster<\/a>, <a class=\"performancingtags\" href=\"http:\/\/technorati.com\/tag\/replication\" rel=\"tag\">replication<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Even though the conference is long over, I still have unpublished notes sitting on my ~\/Desktop, and it only makes sense that I clean it out. These are notes from Ed Presz&#8217;s session, titled For Ticketmaster, MySQL Replication is the Ticket! They are as always, pretty raw. We were all given a handout, which was [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[23],"tags":[],"class_list":["post-562","post","type-post","status-publish","format-standard","hentry","category-mysql"],"jetpack_publicize_connections":[],"jetpack_shortlink":"https:\/\/wp.me\/p4vJD-94","jetpack_sharing_enabled":true,"jetpack-related-posts":[],"amp_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/posts\/562","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/comments?post=562"}],"version-history":[{"count":0,"href":"https:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/posts\/562\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/media?parent=562"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/categories?post=562"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/tags?post=562"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}