# Database Systems Upgrade

**URL:** <https://community.particle.io/t/database-systems-upgrade/4780>\
**Category:** uncategorized\
**Created:** [June 2, 2014, 3:55am UTC](https://community.particle.io/t/database-systems-upgrade/4780 "2014-06-02T03:55:14Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![zachary](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/zachary/32/20717_2.png) [@zachary](https://community.particle.io/u/zachary)\
**Post date:** [June 2, 2014, 3:55am UTC](https://community.particle.io/t/database-systems-upgrade/4780/1 "2014-06-02T03:55:14Z")

</div>

Greetings Spark Users! **Announcement!**

In the never-ending journey to massive scale for :spark: systems, another milestone has arrived! On Tuesday night we’ll be upgrading our database to a clustered deployment with clean failover. The impact will be minimal, but I wanted to give everyone a heads-up.

**Beginning at approximately midnight in Minneapolis** (10pm Tuesday June 4 in San Francisco, 1am Wednesday June 5 in New York, 5am UTC, 6am in London, 1pm Wednesday in China) **we will take the web IDE down and put up a maintenance page.** If everything goes smoothly, we expect the web IDE to be down for about **10 minutes**.

The Device Service and [api.spark.io](http://api.spark.io) will continue to function normally throughout the transition, _however_, a small number of database writes during the transition may not transfer to the new system. If you happen to claim or rename a Core via the API (including the mobile app or the CLI) during the maintenance window, you may have to claim/rename it again when everything’s up and running on the new system. 😉

When we restart the Device Service and point it at the new database, any Cores you have online will drop and immediately reestablish their connection to the Spark Cloud. If you blink, you’ll miss it.

Don’t hesitate to let us know if you have any questions or concerns. @jgoggins and I will be on point during the transition. I’ll post here when everything’s back to normal.

Cheers, and may the :spark: be with you!

---

<div class="post-metadata">

**Author:** ![zachary](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/zachary/32/20717_2.png) [@zachary](https://community.particle.io/u/zachary)\
**Post date:** [June 2, 2014, 3:55am UTC](https://community.particle.io/t/database-systems-upgrade/4780/2 "2014-06-02T03:55:24Z")

</div>

Pinned globally on June 2, 2014, 3:55am UTC



---

<div class="post-metadata">

**Author:** ![wgbartley](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/wgbartley/32/1910_2.png) [@wgbartley](https://community.particle.io/u/wgbartley)\
**Post date:** [June 2, 2014, 4:07am UTC](https://community.particle.io/t/database-systems-upgrade/4780/3 "2014-06-02T04:07:11Z")

</div>

> [@zachary](#):
>
> If everything goes smoothly

You just jinxed it! ☹

---

<div class="post-metadata">

**Author:** ![zachary](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/zachary/32/20717_2.png) [@zachary](https://community.particle.io/u/zachary)\
**Post date:** [June 4, 2014, 4:32am UTC](https://community.particle.io/t/database-systems-upgrade/4780/4 "2014-06-04T04:32:25Z")

</div>

Heads-up — maintenance in half an hour. 🔧

---

<div class="post-metadata">

**Author:** ![zachary](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/zachary/32/20717_2.png) [@zachary](https://community.particle.io/u/zachary)\
**Post date:** [June 4, 2014, 5:03am UTC](https://community.particle.io/t/database-systems-upgrade/4780/5 "2014-06-04T05:03:31Z")

</div>

Maintenance in progress.

---

<div class="post-metadata">

**Author:** ![kennethlimcp](https://avatars.discourse-cdn.com/v4/letter/k/c0e974/32.png) [@kennethlimcp](https://community.particle.io/u/kennethlimcp)\
**Post date:** [June 4, 2014, 5:05am UTC](https://community.particle.io/t/database-systems-upgrade/4780/6 "2014-06-04T05:05:19Z")

</div>

Just want to say that the monitoring notification is working proper.

So excited like I’m part of this (remotely) 😃

![](https://sea2.discourse-cdn.com/flex026/uploads/particle/1552/42db11eb7684fdcd.png)

---

<div class="post-metadata">

**Author:** ![zachary](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/zachary/32/20717_2.png) [@zachary](https://community.particle.io/u/zachary)\
**Post date:** [June 4, 2014, 5:09am UTC](https://community.particle.io/t/database-systems-upgrade/4780/7 "2014-06-04T05:09:59Z")

</div>

All finished. Thanks for playing our game—you win! 💖

---

<div class="post-metadata">

**Author:** ![kennethlimcp](https://avatars.discourse-cdn.com/v4/letter/k/c0e974/32.png) [@kennethlimcp](https://community.particle.io/u/kennethlimcp)\
**Post date:** [June 4, 2014, 5:12am UTC](https://community.particle.io/t/database-systems-upgrade/4780/8 "2014-06-04T05:12:34Z")

</div>

@zachary, it would be so awesome if you and @jgoggins just do a quick run through of what happened for learning purpose when you guys are free.

It’s late already! 🙂

---

<div class="post-metadata">

**Author:** ![jgoggins](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/jgoggins/32/20654_2.png) [@jgoggins](https://community.particle.io/u/jgoggins)\
**Post date:** [June 4, 2014, 5:53am UTC](https://community.particle.io/t/database-systems-upgrade/4780/9 "2014-06-04T05:53:31Z")

</div>

Hey @kennethlimcp , no problem. I’ll see if I can provide a little more technical detail for learning purposes.

In a nutshell, as @zachary explained, we leveled up our database to be faster and more fault-tolerant.

To prepare we did lots of testing to see how different aspects of the cloud function with a clustered setup. We did a bunch of things like test how long it takes for data to replicate across cluster nodes and confirmed that a config change coupled with a restart does what we expect. We primed complex commands and wrote a little play-by- play checklist of when to execute what (where full programmatic automation was impractical). We had the rollback commands primed in case things went south. We conducted a dry run of the migration several times to confirm things behaved as expected and to get a realistic feel for how long it would take.

Upgrades can be kind of fun when you front load the work so you know what’s gonna happen and you are prepared to respond if things don’t work the way to expect (or maybe I’m a weirdo 😄).

I’m glad to be on a beefier setup! Glad you see you were following along!

---

<div class="post-metadata">

**Author:** ![kennethlimcp](https://avatars.discourse-cdn.com/v4/letter/k/c0e974/32.png) [@kennethlimcp](https://community.particle.io/u/kennethlimcp)\
**Post date:** [June 4, 2014, 5:59am UTC](https://community.particle.io/t/database-systems-upgrade/4780/10 "2014-06-04T05:59:57Z")

</div>

So much planning, smooth upgrade, endless fun!

My kind of enjoyment 😃

---

<div class="post-metadata">

**Author:** ![wgbartley](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/wgbartley/32/1910_2.png) [@wgbartley](https://community.particle.io/u/wgbartley)\
**Post date:** [June 4, 2014, 2:37pm UTC](https://community.particle.io/t/database-systems-upgrade/4780/11 "2014-06-04T14:37:05Z")

</div>

> [@jgoggins](#):
>
> in case things went south.

What do you mean by that? Going South is way better than going north. North is where things freeze and get bitter. 😛

---

<div class="post-metadata">

**Author:** ![jgoggins](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/jgoggins/32/20654_2.png) [@jgoggins](https://community.particle.io/u/jgoggins)\
**Post date:** [June 4, 2014, 3:59pm UTC](https://community.particle.io/t/database-systems-upgrade/4780/12 "2014-06-04T15:59:59Z")

</div>

@wgbartley, haha, it’s true. Dang, especially true after last winter. That sentence should have read:

“We had the rollback commands primed in case things became a Minnesota winter actively trying to eat your face off and kill you with -50 °F wind chills and 5 feet of snow.”

---

<div class="post-metadata">

**Author:** ![zachary](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/zachary/32/20717_2.png) [@zachary](https://community.particle.io/u/zachary)\
**Post date:** [June 7, 2014, 10:02pm UTC](https://community.particle.io/t/database-systems-upgrade/4780/13 "2014-06-07T22:02:17Z")

</div>

Unpinned on June 7, 2014, 10:02pm UTC


