arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2206.11170cs.DC
收藏

Kafka Consumer Group Autoscaler

Kafka Consumer Group Autoscaler

Diogo Landau, Xavier Andrade, Jorge G. Barbosa

摘要:

消息代理通过将消息分配给有序队列,使分布式环境中的数据生产者和消费者之间能够进行异步通信。消息代理系统通常提供在消费者之间并行化任务的机制,以提高数据消费的速率。消费率必须超过生产率,否则队列将无限增长。尽管如此,消费者是昂贵的,他们的数量应尽量减少。我们模型的问题,确定所需数量的消费者,分区消费者的分配,作为一个可变的项目大小箱包装的变化。当队列迁移到另一个使用者时,无法读取数据。因此,我们提出了R分数指标来考虑这些再平衡成本。然后,我们介绍了一个品种的R-分数为基础的算法,并比较其性能,建立装箱问题为这个应用程序。我们在现有的系统中实例化我们的方法,证明其有效性。我们的方法保证了足够的消耗率,这是以前的系统无法以较低的运营成本做到的。

英文摘要:

Message brokers enable asynchronous communication between data producers and consumers in distributed environments by assigning messages to ordered queues. Message broker systems often provide with mechanisms to parallelize tasks between consumers to increase the rate at which data is consumed. The consumption rate must exceed the production rate or queues would grow indefinitely. Still, consumers are costly and their number should be minimized. We model the problem of determining the required number of consumers, and the partition-consumer assignments, as a variable item size bin packing variant. Data cannot be read when a queue is being migrated to another consumer. Hence, we propose the R-score metric to account for these rebalancing costs. Then, we introduce an assortment of R-score based algorithms, and compare their performance to established heuristics for the Bin Packing Problem for this application. We instantiate our method within an existing system, demonstrating its effectiveness. Our approach guarantees adequate consumption rates something the previous system was unable to at lower operational costs.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑