Bosh

 Has anyone used AWS spot instances for their worker nodes?

Saravanan Srinivasan's profile image
Saravanan Srinivasan posted Sep 30, 2021 12:22 PM

 

Daniel Lynch's profile image
Broadcom Employee Daniel Lynch

This is supported by the OSS BOSH AWS CPI, but it not a feature supported or enabled in VMWare Tanzu Operations Manager.

https://www.cloudfoundry.org/blog/using-aws-spot-instances-to-cut-the-cost-of-your-bosh-deployments/

 

if this is a feature you are interested in then i would recommend reaching out to your account service representative.

Saravanan Srinivasan's profile image
Saravanan Srinivasan

Hi Dan,

Thanks responding

yes we have asked our acct rep to create feature request but I was wondering if there is way to use bosh command to specify that in the runtime config.

 

Thanks

Daniel Lynch's profile image
Broadcom Employee Daniel Lynch

yes you can manually edit the runtime-config using bosh cli. But opsman will wipe out any manual changes when apply changes is run.

 

https://bosh.io/docs/runtime-config/

Saravanan Srinivasan's profile image
Saravanan Srinivasan

Hi Dan,

I would like to try the manual option at least for POC, not sure where to start.

Would you be able to help with high level steps?

thank you

Srini

Daniel Lynch's profile image
Broadcom Employee Daniel Lynch

looks like the blog post is suggesting you edit the cloud-config and not the runtime-config

https://bosh.io/docs/cloud-config/

 

I have never tested this but it is saying to simply add the "spot_bid_price" to the cloud properties of the instance type you want to enable this on.

 

here is an example for the CPI test case

https://github.com/cloudfoundry/bosh-aws-cpi-release/blob/68cc50959fc01ff7fef175abc9c2aa497466c797/ci/assets/e2e-test-release/cloud-config.yml#L29

 

you would just dump out the cpi, backup, edit, and update the cpi

Saravanan Srinivasan's profile image
Saravanan Srinivasan

Hi Dan,

I ran update cloud config with new file but nothing changed though I got succeeded.

bosh cloud-config doesn't show the change that It applied.

 

Any idea?

 

Thanks