This feature lets you select a
[minimum CPU platform](https://docs.cloud.google.com/compute/docs/instances/specify-min-cpu-platform.md.txt)
for your Managed Service for Apache Spark clusters. For example, when you create a cluster,
you can select Intel Skylake CPUs for the cluster nodes
to improve job performance.

Before using this feature, see [Available regions \& zones](https://docs.cloud.google.com/compute/docs/regions-zones.md.txt#available), which lists
the platforms available in each zone. You can also run the
`gcloud compute zones describe zone` command to list
the `availableCpuPlatforms` in the cluster zone. For more information, see
[Specifying a minimum CPU platform for VM instances](https://docs.cloud.google.com/compute/docs/instances/specify-min-cpu-platform.md.txt).

## Use minimum CPU platform

### Console

To specify a minimum CPU platform for cluster nodes:

1. Open the [Create cluster](https://console.cloud.google.com/dataproc/clusters/create) page.
2. In the **Worker configuration** section, under **CPU platform and GPU**, confirm or select a CPU platform.
3. By default, driver (master) node settings are the same as primary worker settings. Under **Additional configuration** , you can edit **Driver node** to clear the **Default driver node to the same as primary worker** checkbox, then specify driver node settings.

### gcloud CLI command

To specify a minimum CPU platform for your cluster's master and/or worker (including
preemptible) nodes, pass one or both of the following flags to the
[`gcloud dataproc clusters create`](https://docs.cloud.google.com/sdk/gcloud/reference/dataproc/clusters/create.md.txt)
command:

```
gcloud dataproc clusters create \
    --region=region \
    --master-min-cpu-platform=cpu-platform-name \
    --worker-min-cpu-platform=cpu-platform-name \
    other args ...
```

### REST API

To specify a minimum CPU platform for your cluster's master, primary worker,
and/or secondary (preemptible) worker nodes, set the `minCpuPlatform` field in
[InstanceGroupConfig](https://docs.cloud.google.com/managed-spark/docs/reference/rest/v1/ClusterConfig.md.txt#InstanceGroupConfig)
for your master, primary worker, and/or secondary (preemptible) instances in your
[cluster.create](https://docs.cloud.google.com/managed-spark/docs/reference/rest/v1/projects.regions.clusters/create.md.txt)
request.