hashicorp / terraform-aws-consul

A Terraform Module for how to run Consul on AWS using Terraform and Packer
Apache License 2.0
399 stars 482 forks source link

Consul cluster on spot instances #211

Closed igoris closed 3 years ago

igoris commented 3 years ago

I'm trying to understand what's the correct way to run consul_cluster with spot_price specified. It seems to me that as all spot requests will be created with the same price, all spot instances may go down at the same time if current price exceeds the spot_price. This will require manual intervention to restore state from backups and at least some data loss. The best idea I have so far is to run N/2+1 instances as on-demand and remaining as spot. Is this how it's intended to be used or am I missing something? Thanks and sorry if this is not the correct place for this type of questions.

brikis98 commented 3 years ago

Sorry for the delay; we've been super buried. This sort of question is probably best for the Consul community forum: https://discuss.hashicorp.com/c/consul/29.