Apache kafka 选项中的高、中、低重要性级别有什么区别?
What is difference HIGH, MEDIUM, LOW Importance level in Apache kafka options?
我想知道kafka选项重要性级别的区别。 Apache kafka 中有 3 个级别。
org.apache.kafka.commong.config.ConfigDef.Importance
public enum Importance {
HIGH, MEDIUM, LOW
}
这三个有什么区别?
这个枚举作为Kafka社区的指标,在众多配置上为用户提供一些指导。您将在配置说明中看到它们。
没有具体的定义。对于每个用例,重要性可能会有所不同。
如果是“高”,通常是强制配置,用户应该清楚这意味着什么。无论如何,在大多数情况下,默认值对于大多数应用程序应该足够了。
标记为“低”的配置在大多数应用程序中不需要用户考虑,除非他们真的想调整一些 low-level 行为。
在 KAFKA-4094 中描述为:
The importance label is meant to help people navigate this in a sane way. The intention is something like the following:
HIGH - things you must think about and set
MEDIUM - things you don't necessarily need to set but that you might want to tune
LOW - thing you probably don't need to set
总而言之,重要性 没有硬性规定,它只是让用户知道他们需要在多大程度上考虑单个配置。但是,此分类并不适合所有用户及其用例。
我想知道kafka选项重要性级别的区别。 Apache kafka 中有 3 个级别。
org.apache.kafka.commong.config.ConfigDef.Importance
public enum Importance {
HIGH, MEDIUM, LOW
}
这三个有什么区别?
这个枚举作为Kafka社区的指标,在众多配置上为用户提供一些指导。您将在配置说明中看到它们。
没有具体的定义。对于每个用例,重要性可能会有所不同。
如果是“高”,通常是强制配置,用户应该清楚这意味着什么。无论如何,在大多数情况下,默认值对于大多数应用程序应该足够了。
标记为“低”的配置在大多数应用程序中不需要用户考虑,除非他们真的想调整一些 low-level 行为。
在 KAFKA-4094 中描述为:
The importance label is meant to help people navigate this in a sane way. The intention is something like the following:
HIGH - things you must think about and set
MEDIUM - things you don't necessarily need to set but that you might want to tune
LOW - thing you probably don't need to set
总而言之,重要性 没有硬性规定,它只是让用户知道他们需要在多大程度上考虑单个配置。但是,此分类并不适合所有用户及其用例。