Skip to main content

Scale a Kafka cluster

The Kafka Managed Database cluster can be scaled. For example:

  • increase vCPU and RAM to improve cluster performance;
  • change a configuration line with a local disk to another line with a local disk—the disk size must be larger than in the previous configuration, the number of vCPUs and RAM can be decreased or increased. You cannot change a configuration line with one disk type to a line with a different disk type.

See the list of node configurations.

While changes are being applied, the master node will be stopped, and the cluster will be temporarily unavailable for read and write operations.

The time required to change the configuration depends on the volume of data in the cluster.

Scale a cluster

Scale the cluster when user activity is at its lowest.

  1. In the Dashboard, on the top menu, click Products and select Managed Databases.

  2. Open the Active tab.

  3. Open the cluster page → Settings tab.

  4. Click Change configuration.

  5. Select a different configuration. You can:

    • select a configuration with a larger disk size only;
    • decrease or increase the number of vCPUs and RAM;
    • change a configuration line with a local disk to another line with a local disk. You cannot change a configuration line with one disk type to a line with a different disk type.
  6. Click Save.

  7. After scaling, clear the DNS cache.

  8. Verify that the cluster has scaled correctly.

Clear DNS cache

  1. Open the CLI.

  2. Clear the DNS cache:

    sudo systemctl restart systemd-resolved