<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Tim Ford on Medium]]></title>
        <description><![CDATA[Stories by Tim Ford on Medium]]></description>
        <link>https://medium.com/@sqlagentman?source=rss-e370fb1150fa------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*0htwpQAoaY8HBKF9.jpeg</url>
            <title>Stories by Tim Ford on Medium</title>
            <link>https://medium.com/@sqlagentman?source=rss-e370fb1150fa------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 07:42:43 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@sqlagentman/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[We Moved 60,000 Databases to AWS… Twice.]]></title>
            <link>https://medium.com/devtopia/we-moved-60-000-databases-to-aws-twice-e4b873762987?source=rss-e370fb1150fa------2</link>
            <guid isPermaLink="false">https://medium.com/p/e4b873762987</guid>
            <category><![CDATA[sql-server]]></category>
            <category><![CDATA[cloud-migration]]></category>
            <category><![CDATA[aws]]></category>
            <dc:creator><![CDATA[Tim Ford]]></dc:creator>
            <pubDate>Fri, 26 Jun 2026 22:57:52 GMT</pubDate>
            <atom:updated>2026-06-26T22:57:52.099Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/799/1*MHHYIB2WMjTIKvjCUJ78Xw.jpeg" /><figcaption>“Cloud Patterns | Wolkenmuster” by Astro_Alex is licensed under CC BY-SA 2.0. To view a copy of this license, visit <a href="https://creativecommons.org/licenses/by-sa/2.0/?ref=openverse">https://creativecommons.org/licenses/by-sa/2.0/?ref=openverse</a>.</figcaption></figure><h3>Introduction</h3><p>Migrating databases at scale is never easy. At Mindbody, we faced the daunting challenge of moving 60,000 SQL Server databases to AWS. Our goal was to reduce costs, improve scalability, and eliminate operational bottlenecks. Through a mix of careful planning, troubleshooting, and AWS collaboration, we not only completed the migration but also optimized our infrastructure along the way. Here’s how we did it — and what we learned.</p><h3>Why We Moved to AWS</h3><p>When we started, we had three major objectives:</p><p>1. <strong>Cost Optimization</strong> Shift from large capital investments in aging data centers to an operationalized cloud model.</p><p>2. <strong>Innovation &amp; Efficiency</strong> Free up our team from repetitive infrastructure work and enable infrastructure as code.</p><p>3. <strong>High Availability &amp; Scalability</strong> Improve system resilience and ensure we could <strong>increase capacity on demand</strong>.</p><p>At the time, we were managing SQL Server 2016 databases on standalone Windows 2016 servers with no built-in HA. Our central tier was running on clusters with availability groups, but we knew we needed a more robust and cost-effective solution.</p><h3>The First Attempt: Latency Killed the Radio Star</h3><p>Our initial plan was to migrate everything to AWS’s Oregon region. We thought this would be straightforward — until we started testing.</p><p>As soon as we ran real workloads, we hit a 20-millisecond latency issue between our Los Angeles-hosted applications and our cloud-hosted databases we were testing in Oregon’s US-WEST2 Availability Zone. We always knew our application was chatty, but we didn’t realize just how chatty. Every conversation back to the databases was an additional 20‑millisecond round trip.</p><p>Because light moves too slowly, we were suddenly facing the worst-case scenario: A high-latency cloud deployment that would degrade user experience and slow down our operations.</p><h3>Finding a New Strategy with AWS Local Zones</h3><p><strong>The game changer:</strong> AWS introduced us to Local Zones, which allow cloud infrastructure to be deployed closer to our existing data center. Local Zones are similar to AWS Availability Zones, but with fewer offerings available for purchase. Think convenience store, as opposed to your local grocery store chain.</p><p>By deploying our databases in AWS’s LAX Local Zone, we could minimize latency and still take advantage of AWS’s elasticity and automation. Most importantly, it allowed us to migrate in phases rather than an all-at-once “Big Bang” cutover.</p><h3>Storage Challenges: Hitting a $1.86M Budget Overrun</h3><p>Once we committed to Local Zones, we ran into another challenge: <strong>storage options</strong>.</p><p>Our initial plan used GP3 (General Purpose) volumes, but these weren’t yet available in Local Zones. The AWS GP3 offering is a cost-effective alternative to premium IO1/IO2 storage and offers better performance than its GP2 predecessor.</p><p><strong>Switching to IO1 volumes for performance would have cost us $2.86M annually — $1.86M over budget</strong>.</p><p><strong>Our solution?</strong> RAID-0 GP2 configurations to boost performance while keeping costs in check. By creating a RAID-0 array for storage, we were able to attain the max IOPS capable for GP2 storage, but it required provisioning 6TB of EBS (Elastic Block Storage) to get us there.</p><p>We also petitioned AWS to bring GP3 storage to Local Zones, and three months later, they launched support for it — allowing us to optimize costs even further.</p><h3>Solving High Availability Without Shared Storage</h3><p>Another major challenge was ensuring high availability (HA). In our original physical environment, we relied on shared storage clusters, but Local Zones didn’t support shared storage solutions that we felt met our standards for stability at the time of our migrations.</p><p><strong>Our workaround:</strong> Identical storage stacks under each SQL Server EC2 node in our two-node SQL Server Failover Clusters (FCIs). A third-party block-level replication product called SIOS DataKeeper would lock the “secondary” cluster node and replicate changes from the active node supporting the clustered SQL Server environment. DataKeeper addresses storage consistency and ownership during cluster ownership changes.</p><p>This allowed us to maintain a failover cluster model without shared storage, ensuring that our databases could still recover quickly in case of failure. However, it did require us to consume 2x the amount of storage required because of having to maintain two copies of storage rather than one.</p><h3>Migrating to AWS Oregon — Again, but This Time for Good</h3><p>With our Local Zones deployment stable, AWS encouraged us to reassess our costs and infrastructure. Over the course of almost three years we worked with our AWS dedicated support team to assess, debate, and decide: Finally committing to making the best of the situation we were currently in or migrate to US-West2 in Oregon. Along the way we performed another Optimization and Licensing Assessment (OLA) and it was revealed that if we fully moved to AWS Oregon, we could reduce our total cloud hosting costs by almost 13% while gaining access to modern, optimized services not available to the Local Zones.</p><p>But there was one catch: Unlike our original migration where it transpired over the period of almost two years, we only had a two-hour cutover window to move everything-databases, applications, DNS, etc.-and that included testing.</p><h3>The Final Cutover: From 18 Months to 12 Minutes</h3><p>With just two hours to execute the full migration, we needed to be meticulous:</p><p><strong>For Availability Groups (AGs)</strong>: We extended them to Oregon and used log shipping to keep data in sync.</p><p><strong>For Failover Cluster Instances (FCIs):</strong> We mirrored data using SIOS DataKeeper from our existing clusters to a parallel infrastructure in Oregon.</p><p><strong>For Automation:</strong> We deployed everything via Pulumi, ensuring a smooth, repeatable infrastructure rollout.</p><p>On the night of the cutover, once our environment was closed to customers, we executed a script that orchestrated failover of ownership from hosts in Los Angeles to those in Oregon. AGs are built for such deeds, but we had to get creative with our failover clusters. This involved breaking replication, bringing storage online, some DNS magic and a bit of DBA trade secrets.</p><p><strong>We completed the migration in just 12 minutes</strong> — far exceeding our expectations.</p><h3>Results</h3><p>Migrating to AWS wasn’t just about moving servers — it was about transformation. Our key wins:</p><ul><li>Almost 13% cost reduction after optimizing compute and storage.</li><li>30% faster backup performance and improved recovery speed, improving overall resilience.</li><li>High availability across three AWS availability zones, eliminating past single points of failure.</li></ul><h3>Lessons Learned</h3><p>Looking back, a few key lessons stand out:</p><p>1. <strong>Assess Before You Move</strong>: The OLA assessment helped us optimize costs before migration, not after.</p><p>2. <strong>Latency Matters More Than You Think</strong>: Chatty applications can kill performance in a cloud migration.</p><p>3. <strong>Local Zones Are Powerful Stepping Stones</strong>: They gave us time to optimize before fully committing to a region.</p><p>4. <strong>Storage Costs Can Be Tricky</strong>: Push AWS for the features you need and get creative with solutions.</p><p>5. <strong>Automation is Everything</strong>: Infrastructure as code made deployment seamless and repeatable.</p><p>6. <strong>Be Ready to Pivot</strong>: The best-laid plans will change — embrace it, get creative, and stay agile.</p><h3>Final Thoughts</h3><p>Migrating 60,000 SQL Server databases to AWS — not once, but twice — was the most challenging project I have tackled in my 25 years as a Database Professional. But by working closely with partners, staying flexible, and continuously optimizing, our team was able to turn obstacles into opportunities.</p><p>For any team considering a large-scale cloud migration, our biggest advice is simple: Plan meticulously, automate aggressively, and be ready for the unexpected.</p><p>“You’re reading the Mindbody Developer Blog, a publication written by the<br> engineers at Mindbody where we’re sharing how we work and our<br> discoveries along the way. You can also find us on <a href="https://www.facebook.com/mindbodybusiness">Facebook</a>, <a href="https://www.instagram.com/mindbody">Instagram</a>, and <a href="https://www.linkedin.com/company/mindbody/">LinkedIn</a>.</p><p>If you like what you’re reading, you can learn more on our <a href="https://www.playlist.com/careers">careers website</a>.”</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e4b873762987" width="1" height="1" alt=""><hr><p><a href="https://medium.com/devtopia/we-moved-60-000-databases-to-aws-twice-e4b873762987">We Moved 60,000 Databases to AWS… Twice.</a> was originally published in <a href="https://medium.com/devtopia">The Mindbody Dev Report</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>