__init__#

AutoscalingCluster.__init__(head_resources: dict, worker_node_types: dict, autoscaler_v2: bool = False, **config_kwargs)[source]#

Create the cluster.

Parameters:
  • head_resources (dict) – resources of the head node, including CPU.

  • worker_node_types (dict) – autoscaler node types config for worker nodes.

  • autoscaler_v2 (bool) – If True, enable autoscaler v2 features in the generated config.

  • **config_kwargs – Additional configuration values merged into the generated cluster config.