Abstract
In the late 2000s, Yahoo! faced significant challenges in scaling its diverse array of services, including Mail, Flickr, and Search. Historically, individual teams managed their own infrastructure, leading to redundant efforts and slow time-to-market. This paper presents Yahoo!’s transition to a unified "horizontal" cloud infrastructure. By centralizing core functions such as batch processing (Hadoop), unstructured storage (MObStor), and structured storage (Sherpa), Yahoo! shifted the burden of distributed systems management from application developers to specialized infrastructure teams. This model prioritizes human productivity, allowing developers to focus on application logic while the cloud handles high availability, global replication, and elastic scaling.
Introduction
As web services reached unprecedented scales, the traditional model of vertical, application-specific infrastructure became unsustainable. At Yahoo!, serving over half a billion users required a fundamental shift. The goal was to move away from developers managing raw hardware and toward a cloud services model. In this paradigm, infrastructure is treated as a set of managed services that abstract away the complexities of distributed computing.
Architecture
The Yahoo! cloud is built on a three-tiered architecture designed to provide a robust foundation for "vertical" applications.
The architecture consists of:
- Edge Services: Responsible for caching and routing to ensure low-latency access for global users.
- Messaging: Acts as the "glue" for communication between various services, often utilizing a Message Broker.
- Core Services: The heart of the infrastructure, divided into functional areas for processing, storage, and provisioning.
Core Infrastructure Services
The core of the cloud provides specialized platforms for different data and processing needs:
- Batch Processing (Hadoop): Utilizing an open-source implementation of MapReduce and HDFS, Hadoop allows for the processing of massive datasets without manual management of node failures. The use of Pig, a high-level data-flow language, further simplifies data transformation tasks.
- Unstructured Storage (MObStor): This middleware layer virtualizes mass storage (SAN, NAS, or clusters), providing a URL-based interface for "blobs" like photos and attachments. It manages replication policies across geographically distributed datacenters.
- Structured Storage (Sherpa/PNUTS): Designed for low-latency web workloads, Sherpa uses a simplified relational model with flexible schemas. It prioritizes performance by using asynchronous global replication, offering specific consistency models to help developers manage data staleness.
- Provisioning: A framework that automates the deployment of services to either virtual machines (VMs) or bare-metal hardware, ensuring elastic resource allocation.
Real-World Scale and Performance
The effectiveness of this unified infrastructure is demonstrated through Yahoo!’s production workloads. A primary example is the Yahoo! Search Webmap, a graph of over 1 trillion page links. Running on a Linux cluster with over 10,000 cores, this application processes more than 300 TB of compressed data.
Key results include:
- Efficiency: The Search Webmap application performed 33% faster on the unified Hadoop infrastructure compared to previous bespoke methods.
- Adoption: Major properties like Yahoo! Mail, Maps, and the APT advertising platform have successfully migrated to MObStor and Sherpa.
- Velocity: The "Hadoop from birth to death" workflow allows data to be collected, processed, and served entirely within the cloud ecosystem, significantly increasing developer velocity.
Discussion and Future Work
While the transition to a horizontal cloud has yielded significant benefits, several research challenges remain:
- Quality of Service (QoS): Moving beyond rigid quotas to "weighted fair sharing" to better handle resource spikes in multi-tenant environments.
- Unified APIs: Developing a common query language to reduce the manual "glue" logic required to bridge different services.
- Automated Capacity Management: Transitioning to a "free pool" model for real-time server reallocation.
- Privacy: Ensuring strict isolation and privacy as data traverses various cloud components.
By addressing these challenges, Yahoo! continues to refine a blueprint for web-scale infrastructure that balances performance, scalability, and developer productivity.
Summary updated