Skip to main content
QUICK REVIEW

[Paper Review] A Case Study: Using Genetic Algorithm for Job Scheduling Problem

Burak Tağtekin, Mahiye Uluyağmur Öztürk|arXiv (Cornell University)|Jun 9, 2021
Distributed and Parallel Computing SystemsComputer Science20 references5 citations
TL;DR

This paper proposes a genetic algorithm (GA)-based approach to automatically generate optimal job priority lists and machine allocations in DevOps CI/CD pipelines, minimizing both makespan and machine usage. By encoding job priorities and resource requirements in a custom chromosome representation and using a weighted fitness function, the method achieves a 20% improvement in build efficiency over manual scheduling.

ABSTRACT

Nowadays, DevOps pipelines of huge projects are getting more and more complex. Each job in the pipeline might need different requirements including specific hardware specifications and dependencies. To achieve minimal makespan, developers always apply as much machines as possible. Consequently, others may be stalled for waiting resource released. Minimizing the makespan of each job using a few resource is a challenging problem. In this study, it is aimed to 1) automatically determine the priority of jobs to reduce the waiting time in the line, 2) automatically allocate the machine resource to each job. In this work, the problem is formulated as a multi-objective optimization problem. We use GA algorithm to automatically determine job priorities and resource demand for minimizing individual makespan and resource usage. Finally, the experimental results show that our proposed priority list generation algorithm is more effective than current priority list producing method in the aspects of makespan and allocated machine count.

Motivation & Objective

  • To automate the generation of job priority lists in complex DevOps pipelines to reduce waiting times and resource contention.
  • To minimize makespan and the number of machines used in job scheduling, addressing a multi-objective optimization challenge.
  • To develop a novel chromosome representation that encodes both job priorities and machine-specific requirements (type and count).
  • To improve scalability and performance of the GA by introducing a fast, deadlock-free priority list validation algorithm.
  • To enhance crossover efficiency using an ordered crossover method that preserves job order and reduces computation time.

Proposed method

  • A custom chromosome representation encodes job priority order and machine allocation details, including machine type and count, for each job.
  • A weighted fitness function combines run time (weighted by maximum run time in population) and machine count (weighted by maximum machine count) to evaluate solutions.
  • The fitness function incorporates dependency constraints, ensuring that a job is scheduled only after all its dependencies are completed.
  • A fast, iterative priority list validation algorithm (Algorithm 3) ensures no deadlocks by placing jobs after their highest-dependent predecessors.
  • An ordered crossover method is used to generate offspring, preserving job order and avoiding duplicates by filling gaps with genes from the other parent.
  • The algorithm is tested across three scenarios: benchmarking against baseline runtimes, assessing consistency, and measuring total time to solution including GA runtime.

Experimental results

Research questions

  • RQ1Can a genetic algorithm effectively minimize both makespan and machine count in a DevOps job scheduling pipeline?
  • RQ2How does the proposed automated priority list generation compare to manual scheduling in terms of runtime and resource efficiency?
  • RQ3What is the impact of a novel chromosome representation combining job order and machine allocation on solution quality and convergence speed?
  • RQ4Can a fast, deadlock-free priority list validation algorithm significantly reduce computational overhead in large-scale scheduling problems?
  • RQ5To what extent does the use of ordered crossover improve the efficiency and scalability of the genetic algorithm in job scheduling?

Key findings

  • The proposed GA-based priority list generation reduced the average makespan by approximately 20% compared to manual scheduling in real-world CI/CD pipelines.
  • The algorithm consistently produced near-optimal results across multiple runs, demonstrating high reliability and low variance in performance.
  • The second priority list validation algorithm (Algorithm 3) was approximately 30 times faster than the first version, enabling larger and more diverse populations.
  • The total time to find a solution (makespan + GA runtime) remained shorter than the baseline manual method, even when including GA computation time.
  • The use of ordered crossover significantly reduced the time spent on crossover operations compared to PMX, especially for large job lists with 400+ jobs.
  • The chromosome representation successfully encoded both job dependencies and machine-specific requirements, enabling effective optimization across multiple objectives.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.