Re:GCP releases Spot VMs, the next generation of Pre-emptibl...
by roca on Wednesday October 13, 2021 @01:26AM
(#28848527)
All our pernos.co infrastructure uses AWS spot VMs. Batch processing runs on spot and fails over to regular VMs as necessary. CI jobs run on spot. Our front-end server running the Web site and our application also runs on spot and automatically fails over to a regular VM if it gets terminated. Termination is rare.
[ Parent
| on HN ]
Re:GCP releases Spot VMs, the next generation of Pre-emptibl...
by technics256 on Wednesday October 13, 2021 @08:08AM
(#28851125)
How do you coordinate the failover? Custom scripts or?
Re:GCP releases Spot VMs, the next generation of Pre-emptibl...
by roca on Thursday October 14, 2021 @05:56PM
(#28870719)
We use custom logic. There are various ways to do it. One way to do it is to poll for the termination signal on the running instance, as part of your app say, and if you see termination coming, trigger a Lambda that supervises the bringup of an on-demand instance. For critical stuff you probably want a backup system that checks instance health and brings up a new instance if the old one is not available ... but you probably want that even if you always run on-demand.