Apache kafka 选项中的高、中、低重要性级别有什么区别? [英] What is difference HIGH, MEDIUM, LOW Importance level in Apache kafka options?

查看:32
本文介绍了Apache kafka 选项中的高、中、低重要性级别有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道关于 kafka 选项 Importnace 级别的区别.Apache kafka 有 3 个级别.

I want to know difference about kafka option Importnace level. There is 3 levels in Apache kafka.

org.apache.kafka.commong.config.ConfigDef.Importance

public enum Importance {
    HIGH, MEDIUM, LOW
}

这三个有什么区别?

推荐答案

此枚举用作 Kafka 社区的指示器,为用户在许多配置上提供一些指导.您将在配置说明中看到它们.

This enumeration is used as indicator of the Kafka community to provide some guidance for the user on the many configurations. You will see them in the description of the configurations.

没有具体的定义.对于每个用例,重要性可能会有所不同.

There is no concrete definition for it. For each use case the importance may vary.

如果它是高"它通常是强制性配置,用户应该清楚它的含义.无论如何,在大多数情况下,默认值对于大多数应用程序来说应该足够了.

If it is "high" it is usually a mandatory configuration and the user should definitely have the knowledge what it means. Anyway, in most cases the default values should be sufficient for most applications.

标记为低"的配置在大多数应用程序中不需要用户考虑,除非他们真的想调整一些低级行为.

Configurations marked as "low" are in most applications not required to be considered by the user unless they really want to tweak some low-level behavior.

在 KAFKA-4094 中,它被描述为:

In KAFKA-4094 it is described as:

重要性标签旨在帮助人们以理智的方式导航.意图类似于以下内容:

The importance label is meant to help people navigate this in a sane way. The intention is something like the following:

HIGH - 你必须考虑和设置的事情

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 - 你可能不需要设置

LOW - thing you probably don't need to set

总而言之,对于重要性没有硬性规定,它只是向用户表明他们需要考虑多少个人配置.但是,这种分类并不适合所有用户及其用例.

To conclude, there is no hard rule on the importance, it just gives a user an indication on how much they need to think about an individual configuration. However, this categorization does not fit all users and their use cases.

这篇关于Apache kafka 选项中的高、中、低重要性级别有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆