Ask HN: How do you make sure your servers are up as a single founder?
448 pointsI'm running a small business on AWS as a solo founder. It's just me. Yesterday I had a service interruption while I was in the London subway. Luckily, I was able to sign in to the AWS console and resolve the issue.
But it does (again) raise the question I'd rather not think about. What if something happens to me and there's another outage that I can't fix?
So - how do you make sure that your servers are up as a one person founder? Can I pay someone to monitor my AWS deploy and make sure it's healthy?
Comments (223) 94 threads
Show all comments
Showing thread 88 of 94
- add health check mechanisms
- if health check is broken => restart service
- if restart service doesn't help after X retry => redeploy previous state (if any available)
Try to use Kubernetes or Docker Swarm if possible, combined with Terraform
Otherwise you allow the problem to persist, pile up with other issues (also fixed by restarts, I assume) and implementing automated restarts in that manner reduces not only your uptime in uncontrollable manner, but also your code/infrastructure quality, increasing your tech debt beyond the point of recovery.
Friends don't let friends fixing things by restarting them ;)
I’m speaking in terms of AWS translate to your chosen infrastructure.
At the bare minimum you should have two redundant servers behind an autoscaling group with a min/max of two with health checks.
When you need to get something up now and you want to keep the crash state, configure the crash instance to be taken out the autoscaling group but not terminate and start up a new instance. You can then troubleshoot.
I assume you have a separated logging mechanism, where all logs are collected, independently from the restarted service. Don't forget to log the state of your system as much as possible for post-mortem analysis