On-demand virtual research environments using microservices

Marco Capuccini, Anders Larsson, Matteo Carone, Jon Ander Novella, Noureddin Sadawi, Jianliang Gao, Salman Toor, Ola Spjuth

TL;DR

This paper introduces a microservice-oriented methodology for creating on-demand Virtual Research Environments (VREs) that are easily deployable and scalable across various cloud providers. Their open-source implementation, KubeNow, simplifies the process for researchers to set up complex computational environments, enabling reproducible and efficient scientific analysis.

What Problem Does This Paper Address?

Modern scientific research increasingly relies on massive datasets and computationally intensive tasks. While cloud computing offers on-demand resource allocation, setting up the necessary infrastructure and software environments can be complex and time-consuming, especially for researchers without extensive IT expertise. Existing solutions often tie users to specific cloud providers or require significant manual configuration, hindering flexibility and reproducibility. The authors aim to bridge this gap by providing a general, vendor-agnostic methodology for creating flexible, scalable, and easy-to-deploy VREs using microservices and containerization.

Methods

The core of the methodology is a microservice-oriented architecture deployed on a distributed orchestration platform using containerized applications. This approach offers several advantages:

  • Microservices: Applications are broken down into small, independent services that can be easily composed and managed.
  • Containerization (Docker, Singularity): Encapsulates applications and their dependencies, ensuring consistent execution across different environments and reducing dependency conflicts.
  • Orchestration (Kubernetes): Manages the deployment, scaling, and networking of containers across a cluster of virtual machines.
  • On-Demand VREs: The system is designed for short-lived, dynamically provisioned environments, prioritizing fast instantiation over high availability.
  • KubeNow Implementation: An open-source tool that automates the deployment of these VREs. It supports major cloud providers (AWS, Azure, GCP, OpenStack) and commodity clouds. KubeNow leverages tools like Terraform for infrastructure provisioning and Ansible for configuration, abstracting away much of the underlying complexity.
  • Deployment Automation: KubeNow automates the entire process, from infrastructure setup to microservice deployment, using pre-provisioned images and cloud-init for faster and more scalable deployments.

Datasets

The paper does not describe datasets used for training models. Instead, it focuses on evaluating the performance and scalability of their VREs using existing scientific datasets and benchmarks.

  • PhenoMeNal Project: The methodology was adopted by the PhenoMeNal project, which facilitates large-scale metabolomics research. This project utilizes various datasets for metabolomics studies.
  • Gao et al. (2019) data: Used 2000 1-dimensional spectra of blood serum from the MESA consortium.
  • Novella et al. (2018) data: Used a large-scale dataset containing 138 mass spectrometry runs from 37 cerebrospinal fluid samples.
  • Emami Khoonsari et al. (2018) data: Used the MTBLS233 dataset, consisting of 528 mass spectrometry samples from human renal proximal tubule cells.

Key Insights and Ideas

  • Microservices + Containers = Flexible VREs: Combining microservices with containerization is a powerful approach for building isolated, composable, and reproducible scientific environments.
  • Vendor Agnosticism is Crucial: For scientific communities, the ability to deploy VREs across multiple cloud providers (public and private) is essential for leveraging grants, data sovereignty, and cost optimization.
  • Automation is Key for Accessibility: Researchers need tools that abstract away IT complexity. KubeNow's command-line interface and preset system significantly lower the barrier to entry for setting up sophisticated computational environments.
  • On-Demand, Short-Lived Deployments are Sufficient for Analytics: For many scientific analyses, the focus should be on rapid instantiation and efficient execution rather than on long-term high availability, which simplifies the architecture and deployment process.
  • Scalable Storage is a Bottleneck: While compute can scale well, efficient and scalable shared storage solutions (like object storage or shared POSIX) are critical for parallel scientific pipelines.

Key Results

  • Scalable Scientific Analysis: The methodology demonstrated good scaling for parallel scientific pipelines. For example, speedups for individual tools (Batman, FeatureFinderMetabo, CSI:FingerID) showed close to linear growth up to 500 vCPUs. Weak Scaling Efficiency (WSE) for a full workflow pipeline reached 0.83 at full regimen.
  • Fast and Scalable Deployment: KubeNow significantly outperforms Kubespray in deployment speed, especially for larger clusters. For a 64-node deployment, KubeNow was approximately 12 times faster than Kubespray.
  • Cloud Provider Performance: KubeNow showed good deployment scaling across AWS, Azure, GCP, and EMBL-EBI OpenStack, with GCP and EMBL-EBI OpenStack exhibiting the best scaling characteristics.
  • Simplified User Experience: Researchers with limited IT expertise were able to autonomously allocate multi-node VREs using KubeNow.

Limitations and Future Work

  • High Availability: The current methodology is designed for on-demand, short-lived deployments, and high availability is not a primary focus.
  • Network Contention: For large-scale analyses, network contention can become a bottleneck, impacting scaling efficiency. The authors suggest that locality-aware scheduling for containers could mitigate this.
  • Commodity Cloud Limitations: While the system supports commodity clouds, some features like managed storage and load balancing might not be available, necessitating their implementation as microservices.
  • Future Work: The authors mention implementing locality-aware scheduling as future work. They also envision their work serving as a guideline for communities to build their own on-demand VRE systems.

Summary updated

BibTeX
@article{capuccini2019demand,
  author = {Marco Capuccini and Anders Larsson and Matteo Carone and Jon Ander Novella and Noureddin Sadawi and Jianliang Gao and Salman Toor and Ola Spjuth},
  title = {{On-demand virtual research environments using microservices}},
  journal = {PeerJ Comput. Sci.},
  year = {2019},
  doi = {10.7717/peerj-cs.232},
}
Figure