@Generated public class InstancePoolsAPI extends Object
Databricks pools reduce cluster start and auto-scaling times by maintaining a set of idle, ready-to-use instances. When a cluster is attached to a pool, cluster nodes are created using the pool’s idle instances. If the pool has no idle instances, the pool expands by allocating a new instance from the instance provider in order to accommodate the cluster’s request. When a cluster releases an instance, it returns to the pool and is free for another cluster to use. Only clusters attached to a pool can use that pool’s idle instances.
You can specify a different pool for the driver node and worker nodes, or use the same pool for both.
Databricks does not charge DBUs while instances are idle in the pool. Instance provider billing does apply. See pricing.
Constructor and Description |
---|
InstancePoolsAPI(ApiClient apiClient)
Regular-use constructor
|
InstancePoolsAPI(InstancePoolsService mock)
Constructor for mocks
|
public InstancePoolsAPI(ApiClient apiClient)
public InstancePoolsAPI(InstancePoolsService mock)
public CreateInstancePoolResponse create(String instancePoolName, String nodeTypeId)
public CreateInstancePoolResponse create(CreateInstancePool request)
Creates a new instance pool using idle and ready-to-use cloud instances.
public void delete(String instancePoolId)
public void delete(DeleteInstancePool request)
Deletes the instance pool permanently. The idle instances in the pool are terminated asynchronously.
public void edit(EditInstancePool request)
Modifies the configuration of an existing instance pool.
public GetInstancePool get(String instancePoolId)
public GetInstancePool get(GetInstancePoolRequest request)
Retrieve the information for an instance pool based on its identifier.
public GetInstancePoolPermissionLevelsResponse getInstancePoolPermissionLevels(String instancePoolId)
public GetInstancePoolPermissionLevelsResponse getInstancePoolPermissionLevels(GetInstancePoolPermissionLevelsRequest request)
Gets the permission levels that a user can have on an object.
public InstancePoolPermissions getInstancePoolPermissions(String instancePoolId)
public InstancePoolPermissions getInstancePoolPermissions(GetInstancePoolPermissionsRequest request)
Gets the permissions of an instance pool. Instance pools can inherit permissions from their root object.
public Iterable<InstancePoolAndStats> list()
Gets a list of instance pools with their statistics.
public InstancePoolPermissions setInstancePoolPermissions(String instancePoolId)
public InstancePoolPermissions setInstancePoolPermissions(InstancePoolPermissionsRequest request)
Sets permissions on an instance pool. Instance pools can inherit permissions from their root object.
public InstancePoolPermissions updateInstancePoolPermissions(String instancePoolId)
public InstancePoolPermissions updateInstancePoolPermissions(InstancePoolPermissionsRequest request)
Updates the permissions on an instance pool. Instance pools can inherit permissions from their root object.
public InstancePoolsService impl()
Copyright © 2023. All rights reserved.