Back to the blog

Keeping Hexa Studios online from a phone

How we use hexshell to check on and restart Hexa Studios' services from wherever we are, and why that matters for 99.99% uptime.

hexshell is made by Hexa Studios. We also run the servers behind our clients' websites and apps, and their health is public on our status page, status.hexastudios.co. We aim for 99.99% uptime, which leaves about 52 minutes of downtime in a whole year. Most of that budget goes on the walk to a laptop when something breaks.

So the first thing hexshell had to do well was let us fix things from a phone.

hexshell's Servers tab: server cards with CPU, RAM and disk bars, running containers and uptime. A terminal on web-prod with the port forwards sheet open: Grafana and a site preview running.
Live stats on every server card, and port forwards to dashboards that only listen on the server.

See the problem before you connect

Every server card shows CPU, RAM, disk, uptime and how many containers are running. A full disk or a stopped container is often the whole story, and you can see it before opening a terminal. When it is a container, the Containers tab restarts it or shows its logs without a terminal at all.

Fix it in the terminal

Tap Connect and you have a real terminal: journalctl to read what went wrong, systemctl restart to bring a service back, htop to find what's eating the CPU. Commands we run every week are saved as snippets, so a restart is two taps, not a lot of typing on a phone keyboard.

Stay connected on the move

Debugging on a train or on mobile data means the connection drops. hexshell keeps sessions running in the background, reconnects on its own, and supports Mosh, so a session survives a change of network or a tunnel. Give a server a tmux session name and hexshell attaches to the same session every time.

Look at the dashboards too

Port forwards put Grafana or an admin page that only listens on the server in your phone's browser, without opening it to the internet. Port forwards are part of hexshell Pro.

That's the reason hexshell exists in the first place: the fix is usually a minute's work, and the phone is already in your pocket. See everything hexshell does.