CLOUD
This topic describes the default Kafka topic and broker configurations in Confluent Cloud. For a complete description of all Kafka broker and topic configurations, see Confluent Platform Configuration Reference.
Important
__consumer_offsets
cleanup.policy
delete
compact
We are gradually upgrading all dedicated clusters in order to make the following settings modifiable. If your clusters haven’t been upgraded yet, you can submit a support request to enable modification of these settings on a per-cluster basis. Your support ticket must include the cluster ID, which you can find on the Cluster Settings page in the Confluent Cloud UI. After support confirms that your cluster has been enabled, you will be able to use the commands below to modify the listed cluster settings. These settings cannot be modified on Basic or Standard clusters.
The following Dedicated cluster settings can be modified using the Kafka CLI:
Enable automatic topic creation (auto.create.topics.enable)
auto.create.topics.enable
kafka-configs --bootstrap-server <bootstrap> --command-config config.properties --entity-type brokers --entity-default --alter --add-config auto.create.topics.enable=true
For more information about why the auto.create.topics.enable parameter is disabled by default in Confluent Cloud, see this blog post.
Restrict allowed SSL cipher suites (ssl.cipher.suites)
ssl.cipher.suites
kafka-configs --bootstrap-server <bootstrap> --command-config config.properties --entity-type brokers --entity-default --alter --add-config ssl.cipher.suites=<list>
The valid list of ciphers includes:
TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256 TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256 TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384
Set the default number of partitions for new topics (num.partitions)
num.partitions
kafka-configs --bootstrap-server <bootstrap> --config-file <auth-configs> --entity-type brokers --entity-default --alter --add-config num.partitions=<int>
Set the default maximum log compaction time for new topics (log.cleaner.max.compaction.lag.ms)
log.cleaner.max.compaction.lag.ms
kafka-configs --bootstrap-server <bootstrap> --config-file <auth-configs> --entity-type brokers --entity-default --alter --add-config log.cleaner.max.compaction.lag.ms=<int>
Set the default log retention time for new topics (log.retention.ms)
log.retention.ms
kafka-configs --bootstrap-server <bootstrap> --config-file <auth-configs> --entity-type brokers --entity-default --alter --add-config log.retention.ms=<int>
Changes to the above config setting are dynamically applied to your Confluent Cloud cluster.