一种持续集成构建算法及其系统实现

ALGORITHM AND IMPLEMENTATION OF CONTINUOUS INTEGRATION SYSTEM

  • 摘要: 针对目前持续集成平台构建任务分配不合理、构建服务器资源利用率低、构建效率不高、构建资源抢占的问题。提出一种持续集成构建算法及其系统实现的方案,提升软件集成构建效率,汇总构建任务的各类特征,如操作系统、CPU架构、应用软件环境、最低磁盘空间要求等,计算构建任务的价值得分;获取构建服务器的特征,如CPU利用率、内存利用率、剩余磁盘容量、磁盘IO利用率等性能特征,计算构建服务器性能价值得分;通过构建算法将构建任务分配到合适的构建服务器中执行。实践表明,该方案能够充分利用构建服务器的计算资源,减少构建耗时,有效提升持续集成构建效率。

     

    Abstract: Aiming at the problems of unreasonable allocation of build tasks, low utilization of server resources, low efficiency and preemption of server resources of the current continuous integration platform, this paper presents a continuous integration build algorithm and its system implementation to improve the efficiency of software integration. We calculated the various characteristics of the build task, such as operating system, CPU architecture, application software environment, minimum disk space requirements, and calculated the value score of the build task. We obtained the characteristics of the build server in real time, such as CPU utilization, memory utilization, remaining disk capacity, disk IO utilization and other performance characteristics, and calculated the performance value score of the build server. The build task was assigned to the appropriate build server through the build algorithm. Practice shows that the algorithm can make full use of the computing resources of the build server, reduce the build time, and improve the efficiency of continuous integration construction.

     

/

返回文章
返回