In a cloud-native era, the Kubernetes-based workflow engine enables workflow containerized execution through the inherent abilities of Kubernetes. However, when encountering continuous workflow requests and unexpected resource request spikes, the engine is limited to the current workflow load information for resource allocation, which lacks the agility and predictability of resource allocation, resulting in over and under-provisioning resources. This mechanism seriously hinders workflow execution efficiency and leads to high resource waste. To overcome these drawbacks, we propose an adaptive resource allocation scheme named ARAS for the Kubernetes-based workflow engines. Considering potential future workflow task requests within the current task pod's lifecycle, the ARAS uses a resource scaling strategy to allocate resources in response to high-concurrency workflow scenarios. The ARAS offers resource discovery, resource evaluation, and allocation functionalities and serves as a key component for our tailored workflow engine (KubeAdaptor). By integrating the ARAS into KubeAdaptor for workflow containerized execution, we demonstrate the practical abilities of KubeAdaptor and the advantages of our ARAS. Compared with the baseline algorithm, experimental evaluation under three distinct workflow arrival patterns shows that ARAS gains time-saving of 9.8% to 40.92% in the average total duration of all workflows, time-saving of 26.4% to 79.86% in the average duration of individual workflow, and an increase of 1% to 16% in CPU and memory resource usage rate.
翻译:在一个云端时代,Kubernetes的工作流程引擎通过Kubernetes的固有能力,使工作流程能够通过Kubernetes的固有能力,实现工作流程的集装箱化执行。然而,当遇到连续的工作流程请求和意外的资源请求激增时,引擎仅限于目前的资源分配工作流程负荷信息,这种信息缺乏资源分配的灵活性和可预测性,导致资源分配过多和不足。这一机制严重妨碍了工作流程执行效率并导致高资源浪费。为了克服这些缺陷,我们建议为Kubernetes的工作流程引擎制定一个名为ARAS的适应性资源分配计划。考虑到当前任务舱生命周期内未来潜在的工作流程请求,ARAS使用资源规模战略分配资源,以应对高通缩的工作流程情景。ARAS提供资源发现、资源评估和分配功能,并成为我们定制的工作流程引擎(KubeAdaptor)的一个关键组成部分。通过将ARAS纳入KubeAdaptor的工作流程集装箱化执行,我们展示了KubeAdaptor的实用能力以及我们ARAS的优势。 与40.4%的基线算算法和196%平均工作流程周期中AAS的平均时间段相比,在三种不同工作流程周期内,ARS-li平均时间递增百分之百分期为16。