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

查看:80
本文介绍了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.

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

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-您不必设置但可能需要调整的内容

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

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

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天全站免登陆