Distributed-Something: scripts to leverage AWS storage and computing for distributed workflows at scale

Erin Weisbart, Beth A. CiminiarXiv 2022 · DOI

Introduction

Modern scientific research, particularly in the field of bioimage analysis, generates massive datasets that frequently exceed the capacity of local workstations. While cloud providers like Amazon Web Services (AWS) offer virtually unlimited on-demand infrastructure, the learning curve for non-experts is steep. Researchers often face significant hurdles in configuration complexity, cost management, and the requirement to learn specialized workflow description languages such as WDL or Nextflow.

Distributed-Something (DS) is an open-source Python framework designed to lower these barriers. It allows researchers to scale any Dockerized tool on AWS using simple commands and human-readable configuration files. By abstracting the complexity of cloud infrastructure and leveraging cost-effective "Spot" instances, DS enables "perfectly parallel" processing of massive datasets without requiring users to become full-time cloud architects.

System Architecture and Methods

Distributed-Something acts as a customizable template that coordinates five core AWS services to manage computational tasks. The workflow is divided into distinct phases: setup, job submission, cluster management, and monitoring.

Workflow and AWS service orchestration in Distributed-Something.

The framework utilizes the following services:

  • Simple Storage Service (S3): For data storage and hosting configuration files.
  • EC2 Spot Fleets: To provide low-cost, high-performance computing power.
  • Elastic Container Service (ECS): To manage and place Docker containers on the EC2 instances.
  • Simple Queue Service (SQS): To track the list of pending jobs and manage task distribution.
  • CloudWatch: To monitor logs and performance metrics for container-level introspection.

The user experience is distilled into editing two files—a Config file for infrastructure and a Job file for task metadata—and executing three primary Python commands: setup, submitJobs, and startCluster. A fourth command, monitor, handles resource cleanup to prevent unnecessary costs.

Use Cases and Extensibility

While DS does not introduce a new benchmark dataset, it focuses on the framework's ability to handle large-scale scientific image data. The authors highlight two specific implementations:

  • Distributed-Fiji: Scaling scripts for Fiji (an open-source distribution of ImageJ).
  • Distributed-OmeZarrCreator: Converting large bioimage datasets into the .ome.zarr format to improve data findability and reusability (FAIR principles).

The framework is highly extensible; any Dockerized software can be integrated. The authors suggest that a developer with moderate Python skills can implement a new "Distributed-X" version of a tool in just a few hours.

Comparative Analysis

Compared to alternatives like Terra, Galaxy, or AWS Batch, Distributed-Something is specifically optimized for "perfectly parallel" tasks where thousands of files can be processed independently. This focus allows for a much simpler user interface and lower overhead.

Comparison of Distributed-Something with other workflow management platforms.

As shown in the comparative analysis, DS is rated as "Easy" for end-users because it avoids complex workflow languages and web interfaces in favor of simple CLI commands. Additionally, it provides superior container-level introspection, allowing users to monitor the performance of individual tasks, a feature often missing in proprietary cloud services.

Limitations and Future Work

Despite its advantages, Distributed-Something has specific limitations:

  • Task Structure: It is currently limited to single-stage, perfectly parallel tasks and is not designed for complex multi-stage pipelines where steps have interdependencies.
  • Interface: It remains a Command Line Interface (CLI) tool, which may be intimidating for users with limited computational experience.
  • Manual Teardown: Infrastructure teardown requires a user-initiated script or a pre-set schedule to ensure all resources are stopped and costs are contained.

Future work involves expanding the ecosystem of "Distributed" scientific tools through community contributions to the open-source codebase.

Summary updated

BibTeX
@misc{weisbart2022distributed,
  author = {Erin Weisbart and Beth A. Cimini},
  title = {{Distributed-Something: scripts to leverage AWS storage and computing for distributed workflows at scale}},
  year = {2022},
  eprint = {2210.01073},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2210.01073},
}
Figure