by toast0 · 8y ago · 0 comments
I'd simply spread out these jobs over time and have customers pay to get specific timeslots, which you can fill costs for the baremetal servers.
And when not in direct use, you can surely find something else for the server to run on it's CPU (or simply put it in standby and do WoL when needed).
E-commerce, viral, social media, news are all examples.
The Amazon Retail site scales its machines up and down. Netflix built a tool called "scryer" to guess when to spin up and down instances more accurately [0].
Jenkins has a series of plugins for provisioning workers on-demand, and multiple companies I've worked at have used that plugin (or a variant of it) to spin up CI workers when needed (during the work day usually) and shut them down when not needed.
Clearly this is something that real companies do. If you wish to spend some time googling on how people use Autoscaling groups, you'll find many other examples.
[0]: https://medium.com/netflix-techblog/scryer-netflixs-predicti...
We also do an immutable deployment for our web stack - we spin up a completely new stack - VMs, autoscaling groups, load balancers, etc. test it, slowly move users over to it and then kill the old stack.
That doesn’t even include all of the managed services we use and don’t have to worry about managing the underlying servers.