GoogleCloudDataproc / bdutil

[DEPRECATED] Script used to manage Hadoop and Spark instances on Google Compute Engine
https://cloud.google.com/dataproc
Apache License 2.0
109 stars 94 forks source link

Add support for Preemptible VMs. #28

Closed boulos closed 9 years ago

boulos commented 9 years ago

Allow users to setup their cluster to have some fraction as preemptible VMs controlled by the new --preemptible flag (valid values are between 0.0 and 1.0). As part of this change, we now set the heartbeat expiration to 1 minute instead of the default of 10 minutes.

Note: running with Preemptible VMs is only safe when using GCS with the connector, because when backed by GCS we don't rely on datanodes (only tasknodes). The script will emit an error if DEFAULT_FS is not gs when PREEMPTIBLE_FRACTION is greater than 0.