The GA4GH Task Execution Application Programming Interface: Enabling Easy Multicloud Task Execution

Alexander Kanitz, Matthew H. McLoughlin, Liam Beckman, Venkat S. Malladi, Kyle EllrottComput. Sci. eng 2024

TL;DR

The GA4GH Task Execution Service (TES) API provides a standardized way to describe and execute computational tasks across diverse computing environments, from on-premises HPC clusters to multiple cloud platforms. This API simplifies the deployment of complex bioinformatics workflows, enabling researchers to focus on their science rather than the underlying infrastructure.

What Problem Does This Paper Address?

In bioinformatics and computational biology, analyzing data often involves chaining together numerous command-line programs. These tools are developed independently, leading to diverse software stacks and library dependencies. This complexity makes it challenging to run these tools consistently across different computing environments. Furthermore, the massive size of biological data (e.g., Whole Genome Sequencing files exceeding 200 GB) makes it impractical to move data to a single location for analysis. Researchers need a way to execute tasks on various compute resources, including federated and distributed data, without needing to understand the intricacies of each platform. Existing solutions like the Distributed Resource Management (DRM) API or Kubernetes have limitations in terms of standardization, network accessibility, or broad applicability to diverse batch computing needs.

Methods

The paper introduces the GA4GH Task Execution Service (TES) API, a standardized schema and API designed for describing and executing batch tasks. Key aspects of the TES API include:

  • Network-based API: Unlike previous library-based approaches, TES is designed from the ground up as a network-based API, allowing for easier integration and rapid generation of language-specific bindings.
  • Task Definition: The core of the TES API is the "task" object, an atomic message containing all necessary parameters for execution. This includes:
  • Application Environment: Specifies the software and tools required, often leveraging containerization systems like Docker images to package entire environments.
  • Computational Resources: Defines minimum requirements for CPUs, GPUs, memory, and storage.
  • Inputs/Outputs: Specifies custom input files and directories to be transferred and output files/directories to be exported.
  • Environmental Variables: Allows for modification of tool behavior through variable settings.
  • Command Lines: Defines the sequence of commands to be executed, supporting setup, tear-down, and main jobs, potentially using different container images but sharing inputs, outputs, and volumes.
  • Extensibility and Flexibility: The API is designed to be flexible and extensible, accommodating various use cases like "bring compute to the data" solutions and load balancing across multicloud infrastructures.
  • Conformance Testing: A crucial element for adoption is the development of a conformance test suite to ensure that implementations adhere to the API specification.

Datasets

Not discussed in the paper. The paper focuses on the API specification and its use cases rather than specific datasets used for training or evaluation.

Key Insights and Ideas

  • Unifying Compute Environments: The TES API acts as a crucial abstraction layer, allowing researchers to write and deploy workflows without needing to manage the complexities of diverse compute infrastructures (HPC, cloud, hybrid).
  • "Bring Compute to the Data": The API is particularly well-suited for scenarios where moving large datasets is impractical, enabling analysis to be performed where the data resides.
  • Standardization is Key for Interoperability: By providing a common language for task execution, TES fosters an ecosystem where different workflow engines and service providers can easily integrate and interoperate.
  • Containerization as a Foundation: The reliance on container images (like Docker) for defining application environments is a critical enabler for reproducible and portable task execution.
  • Ecosystem Development: The success of TES is heavily reliant on the development of a robust ecosystem of compatible servers, proxies, and client libraries, which the paper details.

Key Results

The paper highlights the successful adoption and utilization of the TES API by numerous service providers and workflow engines. While specific quantitative results are not presented in terms of performance benchmarks, the paper emphasizes:

  • Scalability: The TES API has been successfully used to submit arrays of 10,000 jobs and manage thousands of cloud virtual machines, with scalability largely dependent on the underlying platform.
  • Broad Adoption: The ecosystem includes implementations supporting various HPC schedulers (SLURM, Grid Engine), Kubernetes, and commercial cloud APIs (AWS Batch, Azure Batch).
  • Workflow Engine Integration: Major workflow engines like Cromwell, Nextflow, and Snakemake have integrated or are developing integrations with TES, demonstrating its utility.
  • Community-driven Development: The specification has been refined through community feedback and driver projects, with version 1.0 accepted in 2021 and version 1.1 released to address identified gaps.

Limitations and Future Work

  • Authentication and Authorization: The paper acknowledges that guidance around credentials, authorization flow, and restricting compute availability in hybrid systems needs further development.
  • Containerization Flexibility: While initially designed around Docker, the TES API is evolving to accommodate other containerization systems like LXC, Singularity, rkt, and Podman, with the server responsible for image translation.
  • Potential Extensions: Discussions are ongoing for potential extensions to the API, including support for privacy-preserving federated learning, Hadoop/Spark jobs, and a callback API, which could be added as optional extensions.
  • File Transfer: File transfer is explicitly not part of the TES specification to prevent the server from becoming a bottleneck. Users are expected to stage files in appropriate storage systems, with the GA4GH DRS API managing file identifier translation.

Summary updated

BibTeX
@article{kanitz2024ga,
  author = {Alexander Kanitz and Matthew H. McLoughlin and Liam Beckman and Venkat S. Malladi and Kyle Ellrott},
  title = {{The GA4GH Task Execution Application Programming Interface: Enabling Easy Multicloud Task Execution}},
  journal = {Comput. Sci. eng},
  year = {2024},
  doi = {10.1109/mcse.2024.3414994},
}
Figure