gpt4 book ai didi

apache-kafka - Kafka 配额是如何工作的?

转载 作者:行者123 更新时间:2023-12-05 03:06:57 25 4
gpt4 key购买 nike

我的问题是:如果我将配额设置为 1 MB/秒,多代理集群会得到多少? (例如,取 2 个经纪人)每个代理的速度是 1MB/秒(还是)每个代理 0.5MB/秒?

文档说:

For example, if (user="test-user", client-id="test-client") has a produce quota of 10MB/sec, this is shared across all producer instances of user "test-user" with the client-id "test-client.

最佳答案

是的,配额按经纪人计算。因此,在您的示例中,您将在每个代理上获得 1MB/秒的速度。

Quotas Enforcement Kafka 文档中的部分说:

By default, each unique client group receives a fixed quota as configured by the cluster. This quota is defined on a per-broker basis. Each client can utilize this quota per broker before it gets throttled. We decided that defining these quotas per broker is much better than having a fixed cluster wide bandwidth per client because that would require a mechanism to share client quota usage among all the brokers. This can be harder to get right than the quota implementation itself!

关于apache-kafka - Kafka 配额是如何工作的?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48691975/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com