linkedin / cruise-control

Cruise-control is the first of its kind to fully automate the dynamic workload rebalance and self-healing of a Kafka cluster. It provides great value to Kafka users by simplifying the operation of Kafka clusters.
https://github.com/linkedin/cruise-control/tags
BSD 2-Clause "Simplified" License
2.74k stars 587 forks source link

outdated Configuration page for wiki #1261

Closed d1egoaz closed 4 years ago

d1egoaz commented 4 years ago

according to this https://github.com/linkedin/cruise-control/blob/2.0.114/config/cruisecontrol.properties#L76-L77

# The number of partition metric windows to keep in memory
num.partition.metrics.windows=1

it defaults to 1, however wiki says it's 5

it might be more out of sync defaults 🤷

efeg commented 4 years ago

Hi @d1egoaz The "default config value" refers to the value assigned to a config if it is not explicitly assigned a value in cruisecontrol.properties file. In your example, a value of 1 is explicitly assigned to num.partition.metrics.windows in cruisecontrol.properties. For the default value of this config, please see:

  /**
   * <code>num.partition.metrics.windows</code>
   */
  public static final String NUM_PARTITION_METRICS_WINDOWS_CONFIG = "num.partition.metrics.windows";
  public static final int DEFAULT_NUM_PARTITION_METRICS_WINDOWS = 5;
  public static final String NUM_PARTITION_METRICS_WINDOWS_DOC = "The total number of windows to keep for partition "
      + "metric samples";
d1egoaz commented 4 years ago

got it, I wonder what would most people do, I think they will copy over the cruisecontrol.properties file and use the values that are there, overriding the (sane?) defaults from https://github.com/linkedin/cruise-control/blob/2.0.114/cruise-control/src/main/java/com/linkedin/kafka/cruisecontrol/config/constants/MonitorConfig.java