WorkspaceDefaultComputeSpecs#
- class polars_cloud.WorkspaceDefaultComputeSpecs(
- cluster_size: int = 1,
- instance_type: str | None = None,
- cpus: int | None = None,
- memory: int | None = None,
- storage: int | None = None,
Default cluster settings of a Workspace.
Default cluster settings of a Workspace. This is a global setting that is applicable to all users in the workspace.
- Parameters:
- cluster_size
The number of nodes in the cluster
- instance_type
The AWS instance type of each node (e.g. t2.large)
- memory
The amount of RAM memory in GB for each node
- cpus
The amount of vCPU cores for each node
- storage
The amount of disk storage on each node
Examples
>>> workspace = pc.Workspace(name="xxx") >>> defaults = pc.WorkspaceDefaultComputeSpecs(memory=8, cpus=4, storage=256) >>> workspace.defaults = defaults