Resize a Cluster
db_cluster_resize(
cluster_id,
num_workers = NULL,
autoscale = NULL,
host = db_host(),
token = db_token(),
perform_request = TRUE
)
Canonical identifier for the cluster.
Number of worker nodes that this cluster should have. A
cluster has one Spark driver and num_workers
executors for a total of
num_workers
+ 1 Spark nodes.
Instance of cluster_autoscale()
.
Databricks workspace URL, defaults to calling db_host()
.
Databricks workspace token, defaults to calling db_token()
.
If TRUE
(default) the request is performed, if
FALSE
the httr2 request is returned without being performed.
The cluster must be in the RUNNING
state.
Other Clusters API:
db_cluster_create()
,
db_cluster_edit()
,
db_cluster_events()
,
db_cluster_get()
,
db_cluster_list()
,
db_cluster_list_node_types()
,
db_cluster_list_zones()
,
db_cluster_perm_delete()
,
db_cluster_pin()
,
db_cluster_restart()
,
db_cluster_runtime_versions()
,
db_cluster_start()
,
db_cluster_terminate()
,
db_cluster_unpin()
,
get_and_start_cluster()
,
get_latest_dbr()