一句话:提出 AutoConfig,用基于比较的模型和加权拉丁超立方采样自动调优 Kafka 生产者吞吐,显著优于默认配置与现有算法。
分布式消息系统(DMS)是实时流处理应用的通信骨干,但其大量配置参数令用户难以调优。现有自动配置方法仍面临样本有限时模型不鲁棒、高维参数空间搜索效率低等挑战。本文提出 AutoConfig,面向 DMS 生产者侧吞吐优化:它构建基于比较的模型(CBM),比基于预测的模型(PBM)更鲁棒;并采用加权拉丁超立方采样(wLHS)覆盖高维参数空间,辅助 CBM 搜索更优配置。在 Kafka 与公有云八种场景中,AutoConfig 平均超过默认配置 215.40%,超过五种先进算法 7.21%-64.56%,且 CBM 优于 PBM。
Distributed message systems (DMSs) serve as the communication backbone for many real-time streaming data processing applications. To support the vast diversity of such applications, DMSs provide a large number of parameters to configure. However, It overwhelms for most users to configure these parameters well for better performance. Although many automatic configuration approaches have been proposed to address this issue, critical challenges still remain: 1) to train a better and robust performance prediction model using a limited number of samples, and 2) to search for a high-dimensional parameter space efficiently within a time constraint. In this paper, we propose AutoConfig -- an automatic configuration system that can optimize producer-side throughput on DMSs. AutoConfig constructs a novel comparison-based model (CBM) that is more robust that the prediction-based model (PBM) used by previous learning-based approaches. Furthermore, AutoConfig uses a weighted Latin hypercube sampling (wLHS) approach to select a set of samples that can provide a better coverage over the high-dimensional parameter space. wLHS allows AutoConfig to search for more promising configurations using the trained CBM. We have implemented AutoConfig on the Kafka platform, and evaluated it using eight different testing scenarios deployed on a public cloud. Experimental results show that our CBM can obtain better results than that of PBM under the same random forests based model. Furthermore, AutoConfig outperforms default configurations by 215.40% on average, and five state-of-the-art configuration algorithms by 7.21%-64.56%.