# CapacityConfig

- [JSON representation](https://docs.cloud.google.com/managed-service-for-apache-kafka/docs/reference/rest/v1/CapacityConfig#SCHEMA_REPRESENTATION)

A capacity configuration of a Kafka cluster.

| JSON representation |
|---|
| ``` { "vcpuCount": string, "memoryBytes": string } ``` |

| Fields ||
|---|---|
| `vcpuCount` | `string (https://developers.google.com/discovery/v1/type-format format)` Required. The number of vCPUs to provision for the cluster. Minimum: 3. |
| `memoryBytes` | `string (https://developers.google.com/discovery/v1/type-format format)` Required. The memory to provision for the cluster in bytes. The CPU:memory ratio (vCPU:GiB) must be between 1:1 and 1:8. Minimum: 3221225472 (3 GiB). |