Cluster settings

You can view and edit cluster properties and broker configurations in the Cluster settings pages. When you click the Cluster settings submenu for a cluster, the General tab appears by default.

Edit a cluster name

You can edit the cluster name and view the host details. The host field lock icon indicates it cannot be changed.

To change the cluster name:

  1. Click the cluster from the cluster navigation bar.

  2. Click the Cluster settings menu.

  3. Edit the cluster name in Cluster Name field. You should choose a human-friendly name for the cluster that follows these rules:

    • Cluster names can only include characters from the English alphabet, numbers, underscores (_), and dashes (-).
    • Cluster names are case-sensitive.

    The new cluster name is saved to the Cluster Registry, if it is enabled.

  4. Click Save changes to apply your changes.

    Cluster settings Kafka tab

View-only broker configuration

View the cluster broker configuration.

Note

If broker configuration editing is disabled, the view is read-only and the Edit Settings feature is not available.

Important

If RBAC is enabled for Control Center, it takes precedence over Access Control settings. The privileges associated with your assigned roles determine what you can view and access.

To view a broker configuration:

  1. Click the cluster from the cluster navigation bar.

  2. Click the Cluster settings menu.

  3. Click the Broker defaults tab.

    Expected different config values for brokers

Edit dynamic broker configuration settings

The dynamic broker configuration option is enabled by default. The feature allows editing broker configurations within Control Center that do not require a restart. Any configuration option that has a per-broker or cluster-wide Dynamic Update Mode can be edited. Any options designated as read-only for the dynamic update mode requires a restart and cannot be edited dynamically.

For information about available broker configuration options, including the dynamic update mode per option, see Kafka Broker Configurations.

Legend:

  • Green-filled bullet: Indicates non-default configuration options. An option had its value changed from the default.

  • Empty-fill bullet: Indicates default configuration options.

  • Asterisk*: Indicates a possible issue with configuration options that have n different values* (asterisk) between brokers.

    Important

    Review any brokers flagged with different configuration values to ensure they are all set as intended. In the example below, broker IDs are expected to be unique values.

    Expected different config values for brokers

To edit the broker configuration:

  1. Click the cluster from the cluster navigation bar.

  2. Click the Cluster settings menu.

  3. Click the Broker defaults tab.

    Tip

    If you have a large number of brokers, use the Deselect all and Select all check boxes to quickly work with the brokers you want. To compare and edit settings for multiple brokers, select two or more brokers in the broker IDs pane.

  4. Click Edit Settings. The broker settings appear with edit icons:

    Edit broker settings on a cluster
    • Hover over any configuration option to view its description.
    • Click the edit icon to make changes to a configuration option.
    • Click Set to Default to reset an option back to its original default. The bullet changes from green to empty.
  5. Click Save to save your changes, or Cancel to cancel edits to settings.

To see examples of changing broker configurations dynamically using the Kafka command line kafka-configs tool, see Changing Broker Configurations Dynamically.

Download broker configuration settings

  1. Click the cluster from the cluster navigation bar.

  2. Click the Cluster settings menu.

  3. Click the Brokers defaults tab.

  4. Select a broker if there are multiple brokers.

  5. Click Download. A file that contains the broker configuration settings is downloaded into your downloads directory in JSON file format. The filename is based on the Kafka cluster ID.

    Example filename: iKGixtHySCa0ANeH43pWHA.json

    Example contents snippet:

    {"0":{"entries":[{"name":"log.cleaner.min.compaction.lag.ms","value":"0","source":"DEFAULT_CONFIG","synonyms":[{"name":"log.cleaner.min.compaction.lag.ms","value":"0","source":"DEFAULT_CONFIG"}],"isReadOnly":false,"isSensitive":false},{"name":"offsets.topic.num.partitions","value":"50","source":"DEFAULT_CONFIG","synonyms":[{"name":"offsets.topic.num.partitions","value":"50","source":"DEFAULT_CONFIG"}],"isReadOnly":true,"isSensitive":false},{"name":"confluent.support.metrics.enable","value":null,"source":"STATIC_BROKER_CONFIG","synonyms" ...
    

Enable and disable dynamic editing of broker configurations

The Dynamic Broker Configuration feature that allows editing settings without a restart is enabled by default. The feature can be disabled in Control Center if an organization does not want any users to access the feature. After disabling the feature, the Edit Settings button in the Brokers tab in the Control Center UI is no longer visible.

Important

If RBAC is enabled for Control Center, it takes precedence over Access Control settings.

To disable the edit broker config settings feature in Control Center:

  1. Set the confluent.controlcenter.broker.config.edit.enable option in your control-center.properties file to false.

    ...
    confluent.controlcenter.broker.config.edit.enable=false
    ...
    

    Note

    Make the change in the appropriate Control Center properties files configured for your environments, including control-center-dev.properties or control-center-production.properties. The properties files are located in /path-to-confluent/etc/confluent-control-center/.

  2. Restart Control Center and pass in the properties file for the configuration to take effect. For more information, see Control Center Properties Files.

    • Local (dev) environment:

      Important

      Do not use confluent local for production use.

      confluent local services control-center stop
      confluent local services control-center start --config ../etc/confluent-control-center/control-center.properties
      
    • Production environment:

      ./bin/control-center-stop
      ./bin/control-center-start ../etc/confluent-control-center/control-center.properties
      

To enable the feature again, set the option back to true and restart Control Center with the updated properties file.

Work with Self-Balancing Clusters

For a complete guide to Self-Balancing Clusters, see Self-Balancing Clusters in the Overview of Kafka Operations documentation, including a primer on Configuration and Monitoring and comprehensive hands-on tutorial.

Monitor and configure Self-Balancing

  1. Click the cluster from the cluster navigation bar.

  2. Click the Cluster settings menu.

  3. Click the Self-balancing tab.

    ../_images/sbc-c3.png
  4. To change dynamic configurations, click Edit Settings.

    Self-Balancing has several dynamic properties which can be configured while the cluster is running, including options to:

  5. Make changes and click Save.

    ../_images/sbc-c3-anytime.png

Remove a broker

If you remove a broker from the cluster, Self-Balancing will redistribute topic data to the other brokers. A summary of this procedure is shown below. For a more detailed walkthrough, see Remove a broker in the context of the Self-Balancing Tutorial.

Tip

  1. Remove a broker using the Control Center option on the Brokers overview page.

    • Select Brokers, scroll to the bottom of the Overview page to view the list of brokers currently online.

    • Select a broker to remove, to drill down to its monitoring details.

      ../_images/sbc-c3-select-a-broker.png
    • At the bottom of this page, click Remove broker, then type REMOVE in the input field to verify that you want to take this action.

    When the broker removal is completed, click the confirm option to acknowledge.

    Note

    If you get an error message that broker removal failed due to insufficient metrics, Self-Balancing is still initializing, which can take up to 30 minutes. If this happens, retry broker removal after several minutes, and it should succeed.

  2. Use the Control Center to monitor the rebalance.

    On Control Center click Cluster settings > Self-balancing to track the progress.

    When the rebalance is complete, both the Brokers overview page and Cluster settings > Broker defaults will show only the remaining brokers, and not the one you removed.

Configure Tiered Storage

For a complete guide to setting up and working with Tiered Storage, see Tiered Storage in the Overview of Kafka Operations documentation.

To configure and work with Tiered Storage starting from Control Center:

  1. Click the cluster from the cluster navigation bar.

  2. Click the Cluster settings menu.

  3. Click the Storage tab.

    ../_images/c3-storage.png

    You can hide or show the on-screen setup instructions, which walk through cloud provider setup as fully described in Tiered Storage.

  4. To view and edit dynamic settings, click Edit settings.

    ../_images/c3-storage-dynamic-configs.png

    View or change settings and click Cancel or Save changes as appropriate.

  5. To set up storage, choose a cloud provider (click the GCS or S3 tab).

    The S3 configuration options are shown here as an example.

    ../_images/c3-storage-setup-s3.png
  6. Specify property values and paths to your credentials, then click Generate configurations.

    ../_images/c3-storage-setup-example.png
  7. Copy the generated configurations block and paste it into the properties files for your brokers (for example, $CONFLUENT_HOME/etc/kafka/server.properties).

    ../_images/c3-storage-gen-configs-output.png

    Important

    • The same bucket must be used across all brokers within a Tiered Storage enabled cluster. This applies to all supported platforms.

    • The Tiered Storage internal topic defaults to a replication factor of 3. If you use confluent local services start to run a single broker cluster such as that described in Quick Start for Apache Kafka using Confluent Platform (Local),’ you must add an additional line to the broker file, $CONFLUENT_HOME/etc/kafka/server.properties:

      confluent.tier.metadata.replication.factor=1

  8. After you update these configurations to enable Tiered Storage, restart the brokers. This can be done in a rolling fashion.

  9. You can view or change your Tiered Storage settings from the Cluster Settings > Storage tab.

    Tiered Storage panel enabled
  10. View cluster-wide metrics for Tiered Storage are shown on the Tiered Storage card on the Brokers overview page for the cluster.

    Tiered Storage panel enabled

    Click into these initial stats to view a metrics chart for Tiered Storage.

    Tiered Storage metrics chart

    Hover and slide the cursor over a chart to get details on data at any particular point in time.

    Tiered Storage metrics detail on hover
  11. To get storage metrics on a specific topic, navigate to the topic (<environment> > <cluster> > < topic>).

    The Storage card is shown on the Overview page for the topic.

    Tiered Storage metrics on a single topic

To learn more, see Tiered Storage in the Overview of Kafka Operations documentation.