Suppressing internal metrics topics

Suppress the creation of unused internal metrics topics to avoid unnecessary topic creation.

By default, the Streams Replication Manager Service eagerly creates a number of different srm-metrics topics in advance for all possible replication flows. This ensures that the Service does not crash when there are no source topics if the Service starts earlier than the Driver.

Because the Service does not have information of all the exact replications running in the cluster, this behavior generates unused topics. You can configure Streams Replication Manager to suppress the eager creation of these topics by setting the metrics.topic.creation.for.possible.flows.enabled property to false.

When you set this property to false, only the Driver creates the srm-metrics topics.

  1. In Cloudera Manager, select the Streams Replication Manager service.
  2. Go to Configuration.
  3. Find the Additional Configs For Streams Application Running Inside SRM Service property.
  4. Add the following configuration property:
    metrics.topic.creation.for.possible.flows.enabled=false
  5. Click Save Changes.
  6. Restart the service.