<img class="alignright size-medium wp-image-2934" title="estimation" src="https:\/\/pagely.com\/wp-content\/uploads\/2011\/08\/estimation-265x300.png" alt="" width="265" height="300" \/>I don't fancy myself a developer or a sysadmin. I pay people far more talented than me to wear those titles. However I do consider myself a steadfast hacker, CEO, customer support agent, biz dev, janitor, bookeeper....etc... Entrepreneur.\r\n\r\nOur <a href="https:\/\/pagely.com\/">managed WordPress hosting<\/a> service Pagely, will be 2 years old in September. We have bootstrapped this bad boy from 1 server to 26. From our first 100 customers I knew by name, to thousands that include universities, SV based startups, Fortune 500's, state and local agencies, and everything in between. Through all of that there is 1 indisputable fact:<strong> At scale, everything breaks<\/strong>. (heard first from my good friend <a href="http:\/\/stu.mp">Joe Stump<\/a>).\r\n\r\nWe are on the last stretch of a system upgrade we started 4 months ago. Entirely new server stack, new load balancers, new SANs, new provisioning and maintenance code. All of it happening behind the scenes. I use the analogy of the <a href="http:\/\/en.wikipedia.org\/wiki\/Big_Dig">Boston big dig<\/a>; we are building a new system under the existing one and trying not to disrupt the day-to-day operation of our customers and business. Like any major construction project there are sometimes road closures, and detours. It has not gone as smooth as we like. Seemingly minor performance issues on 1 site; at scale become bottlenecks system wide.\r\n<h2>Example:<\/h2>\r\nWordPress is a great platform that is easy to develop on. 15,000 or so plugins have been contributed. Pick a plugin, any plugin, and you have a 15-25% chance of getting one that is a mysql life suck. In context of 1 site, the fact it does not join on an index, or for that matter does not even have an index defined it appears to affect 1 site owner and a handful of readers. Now move up the stack. In the context of page.ly where that common plugin may be used across thousands of WordPress sites you can watch a handful of mysql slaves work breathlessly to process these queries. <em>Now it affects everyone<\/em>.\r\n<blockquote>You cant see the forest through the trees<\/blockquote>\r\nWe can add.. you cannot see the performance drain of your plugin until you see it used across a few thousands sites. We know which popular plugins bring mysql to it's knees and we know which commercial\/premium WordPress themes break tinymce and users complain about most. Stats like this are just the icing on a data stack of WordPress usage we see, and have to deal with.\r\n\r\n<em>Aside: Stats\/Analytics plugins are the worst offenders. Services like <a href="http:\/\/cloudflare.com">Cloudflare<\/a> and Google's new product just mask the performance issue with caching<\/em>.\r\n\r\nWe look forward to sharing some of the data we see with the community and helping authors to improve their plugins\/themes for the greater good.\r\n<h2>Moral of the Story:<\/h2>\r\nShit breaks sometimes. It breaks more often at scale when the small issues are magnified exponentially.\r\n<h2>Gratuitous Pagely 3.0 Update:<\/h2>\r\nThe move to the new database master\/slaves setup is complete. All sites are now using <a href="http:\/\/codex.wordpress.org\/HyperDB">hyperDB<\/a> and further mysql traffic shaping happens via our load balancers. This week we have been syncing a few millions files from our old disks to the new ones getting us closer to the switch over. Thank you again for your patience.