Reboot, roll back or restart, with a swipe and Face ID
A droplet power action is a request to DigitalOcean to change a droplet's power state: shutdown and reboot are graceful, while power off and power cycle are like pulling the plug or pressing reset. Duskwatch is an independent iPhone app for DigitalOcean, in development; it runs 13 actions on droplets, apps and databases, each armed by a swipe on one sheet and confirmed with Face ID.
Updated
- 13actions on droplets, apps and databases
- 1 swipearms every action; a tap never does
- Face IDafter the swipe, right before the request
- 0delete, destroy or resize actions
01Actions
Thirteen actions, red when they interrupt a service
Restore service, contain damage or take a safety copy: what is worth doing from a phone at night.
Droplets: 6
Power on, shut down, power off, reboot, power cycle and take a snapshot.
Apps: 6
Redeploy or force rebuild, roll back, commit or revert the rollback, cancel a deployment, and restart an app or one of its components.
Databases: 1
Add my IP to a cluster's trusted sources: the app looks up your public IPv4 address, or you type one in.
All 13 actions, their colour and what each swipe reads
| Resource | Action | Swipe colour | The swipe reads |
|---|---|---|---|
| Droplet | Power on | Plum | Swipe to power on web-01 |
| Droplet | Shut down | Red | Swipe to shut down web-01 |
| Droplet | Power off | Red | Swipe to power off web-01 |
| Droplet | Reboot | Red | Swipe to reboot web-01 |
| Droplet | Power cycle | Red | Swipe to power cycle web-01 |
| Droplet | Take snapshot | Plum | Swipe to take a snapshot of web-01 |
| App | Redeploy, optionally with a forced rebuild | Red | Swipe to redeploy api-prod |
| App | Roll back | Red | Swipe to roll back api-prod |
| App | Commit the rollback | Plum | Swipe to commit the rollback of api-prod |
| App | Revert the rollback | Red | Swipe to revert the rollback of api-prod |
| App | Cancel a deployment | Red | Swipe to cancel the deployment of api-prod |
| App | Restart the app, or one of its components | Red | Swipe to restart api-prod, or Swipe to restart worker in api-prod |
| Database | Add my IP to trusted sources | Plum | Swipe to add 192.0.2.10 to db-prod |
For "Add my IP", the app asks the Duskwatch server for your public IPv4 address, which that server neither logs nor stores. Restarting one component restarts it one instance at a time, without a new build; it is blocked while a deploy runs or a rollback is pinned.
02The sheet
One sheet names the action, the resource and the team
The team chip is the line that stops you rebooting a client's web-01 instead of your own.
- 1
Reboot web-01 · acme-prod
"Restarts web-01 cleanly. Its services are down until it's back, usually a minute or two."
- 2
Swipe to reboot web-01
The swipe arms it. A tap on the track only shows "Swipe right or touch and hold."
- 3
Face ID
Its prompt reads "Reboot web-01 in acme-prod"; the request then goes straight to DigitalOcean.
- 4
Done in 47 s
A Live Activity follows the reboot on the Lock Screen until it ends.
03Swipe
A swipe for every change, then Face ID
A button can be hit by a thumb reaching for something else; a swipe across a track can't. Changes inside the app swipe too, without Face ID.
No Cancel button
There is no Cancel button: the sheet closes like any iOS sheet. There is no setting to turn the swipe off.
Touch and hold
Touch and hold, or the VoiceOver action, also arms it.
No passcode, no actions
Face ID or your passcode follows the swipe of every action. Without a passcode on the iPhone, actions stay off.
Changes inside the app that swipe too, without Face ID
| Change | The swipe reads |
|---|---|
| Sign out of a team | Swipe to sign out of acme-prod |
| Turn off alerts | Swipe to turn off alerts for acme-prod |
| Delete your alert data | Swipe to delete your alert data |
| Set a spend budget | Swipe to use $200 |
| Enable actions | Swipe to continue to DigitalOcean |
| Mute a resource | Swipe to mute web-01 for 8 hours |
| Narrow the alert scope | Swipe to save alert scope |
Unmuting a resource is one tap, and going back to "All resources" needs no swipe.
04Power
Shut down, power off, reboot or power cycle: which to use
Start gentle: a shutdown or reboot lets the operating system close files and stop services. Power off and power cycle are for a droplet that no longer answers.
| Graceful | Use it when | |
|---|---|---|
| Shut down | Yes | You want it off cleanly |
| Reboot | Yes | It needs a clean restart |
| Power off | No | A shutdown did not work |
| Power cycle | No | It no longer responds |
From DigitalOcean's docs
A power off is a hard shutdown, similar to cutting the power, and should only be used if a shutdown does not work. Powered-off droplets are still billable.
doctl reference: droplet-action power-off (external link), verified
Shutdowns, reboots, power cycles and snapshots, in DigitalOcean's words
From DigitalOcean's docs
A shutdown is an attempt to shut the droplet down gracefully, like running the shutdown command from its console.
doctl reference: droplet-action shutdown (external link), verified
A power cycle is similar to pushing the reset button on a physical machine.
doctl reference: droplet-action power-cycle (external link), verified
A reboot is an attempt to reboot the droplet gracefully, like running the reboot command from its console.
doctl reference: droplet-action reboot (external link), verified
You can snapshot a running droplet, but DigitalOcean warns that doing so may degrade performance and compromise data consistency.
DigitalOcean docs: snapshot droplets (external link), verified
05Rollback
Roll back, then commit or revert
Rolling back to the last good deployment is usually the fastest way back to a working app. A rollback is a state you leave on purpose.
- 1
Roll back
api-prod returns to an earlier successful deployment.
- 2
Pinned
The app shows "Pinned to a rollback: pushes won't deploy".
- 3
Commit or revert
Commit keeps the old version and turns deploys on push back on; revert deploys the version from before the rollback.
What DigitalOcean says about rollbacks
From DigitalOcean's docs
You can roll back to any of the ten most recent successful deployments; a rollback restores code, configuration and app spec but does not affect database data.
DigitalOcean docs: manage deployments (external link), verified
By default, a rollback pins the app to that deployment, and no new deployment is created, manually or by Auto Deploy on Push, until the rollback is committed or reverted.
DigitalOcean docs: create an app rollback (external link), verified
Reverting creates a new deployment from the latest app spec before the rollback and unpins the app.
DigitalOcean docs: revert an app rollback (external link), verified
What Duskwatch doesn't do here
- No creating, resizing, deleting or destroying anything
- No editing firewalls, DNS or app specs
- No actions on Kubernetes, load balancers, volumes or Spaces
- No scheduled, automatic or queued offline actions
- No DigitalOcean actions from a widget, Siri or a Live Activity
Questions
Can I reboot a droplet from my iPhone?
Yes. Open the droplet, choose Reboot, check the sheet that names web-01 and its team, swipe to reboot, then confirm with Face ID.
What is the difference between shut down, power off, reboot and power cycle?
Shut down and reboot are graceful. Power off cuts the power and power cycle presses reset, for a droplet that no longer responds. A powered-off droplet is still billed.
Can I restart one App Platform component?
Yes. "Restart worker" on the component screen opens a red sheet, "Restart worker in api-prod". After the swipe and Face ID, worker restarts one instance at a time, without a new build.
Why a swipe instead of a button?
A swipe cannot be triggered by a stray tap, so every action is armed with one, then Face ID.
Does your server run the action?
No. The request goes from your iPhone straight to DigitalOcean, with the permission you add with "Enable actions", kept in your iPhone's Keychain. The alert server can only read.