Towards a Hybrid Cloud Platform Using Apache Mesos

Noha Xue, Hårek Haugerud, Anis YazidiAIMS 2017

Abstract

This paper presents a practical, open-source blueprint for building a resilient hybrid cloud by leveraging Apache Mesos. By bridging private infrastructure with public cloud providers through VPN tunneling, the authors demonstrate a system capable of surviving regional outages and complex networking hurdles like NAT traversal. The prototype spans three geographic regions, providing a robust framework for managing heterogeneous computing resources without relying on proprietary vendor solutions.

Introduction

Hybrid clouds—combining the security of private infrastructure with the scalability of public clouds—are highly desirable but notoriously difficult to implement. Most existing solutions are "walled gardens" offered by major commercial vendors. A significant gap exists in documented, open-source implementations capable of managing clusters across heterogeneous environments. The primary obstacle is the "connectivity wall," where incompatible network abstractions and nested NAT layers prevent standard clustering software from communicating across provider boundaries.

System Architecture

The researchers developed a prototype using a stack of open-source tools to abstract hardware resources across different sites.

Figure 1: High-level architecture of the hybrid Mesos cluster spanning AWS regions and a private cloud in Oslo.

The architecture relies on three core components:

  • Apache Mesos: Acts as the primary cluster manager to abstract CPU, memory, and storage.
  • ZooKeeper: Handles coordination and leader election among Mesos master nodes.
  • VPN Tunneling: Establishes a Virtual Private Network between all sites, allowing nodes to communicate via private, routable IP addresses.

The cluster was geographically distributed across three "availability regions": a private cloud in Oslo (Altocloud) and two public AWS regions (Ireland and Frankfurt). By placing one Mesos master in each region, the system ensures the cluster's "brain" survives the total failure of any single provider.

The Connectivity Wall: Overcoming the NAT Trap

A critical finding was the "NAT Trap," which causes standard Mesos setups to fail in hybrid environments. When a slave node registers with a master, it typically sends its local, non-routable private IP. The master then attempts to send acknowledgments back to this address, which fails because the master is outside the slave's local network.

Figure 2: Sequence diagram illustrating the failure of registration due to non-routable private IP addresses in a NAT environment.

To solve this, the authors utilized VPNs as a "unified fabric." This creates a flat network where every node can access every other node's private IP directly, bypassing the limitations of public IP mapping and complex NAT configurations.

Experimental Validation

The functional hybrid cluster was tested against several failure scenarios to ensure stability:

  1. Node Resilience: The master successfully detected slave failures and rescheduled tasks within 75 seconds.
  2. Master High Availability: Using a quorum of two out of three masters, ZooKeeper successfully elected a new leader when the primary master was rebooted.
  3. Regional Fault Tolerance: By cutting VPN tunnels to an entire region, the authors simulated a total site failure. The remaining masters maintained cluster integrity.
  4. Network Partitioning: Using iptables to simulate "split-brain" scenarios, the ZooKeeper quorum mechanics prevented the cluster from falling into an inconsistent state.

Conclusion and Future Work

While this proof-of-concept demonstrates a viable path for open-source hybrid clouds, several challenges remain. The performance overhead introduced by VPN latency and encryption needs quantification for high-performance workloads. Additionally, future work should address intelligent data segmentation between private and public storage and test the scalability of this approach with thousands of nodes across more diverse providers.

Summary updated

BibTeX
@inproceedings{xue2017towards,
  author = {Noha Xue and Hårek Haugerud and Anis Yazidi},
  title = {{Towards a Hybrid Cloud Platform Using Apache Mesos}},
  booktitle = {AIMS},
  year = {2017},
  doi = {10.1007/978-3-319-60774-0\_12},
}
Figure