Prism: Revealing Hidden Functional Clusters from Massive Instances in Cloud Systems

Jinyang Liu, Zhihan Jiang, Jiazhen Gu, Junjie Huang, Zhuangbin Chen, Cong Feng, Zengyin Yang, Yongqiang Yang, Michael R. Lyu · DOI

Abstract

Cloud vendors manage millions of virtualized instances but often lack visibility into how these instances are logically grouped into functional services due to strict privacy policies. This "black box" problem complicates maintenance and fault diagnosis. We present Prism, a non-intrusive clustering framework that identifies functional clusters using only external monitoring data. By combining network communication patterns with resource usage metrics through a coarse-to-fine strategy, Prism achieves high accuracy and linear scalability, enabling vendors to optimize reliability without accessing private tenant data.

1. Introduction

In modern cloud computing, virtualization provides tenants with flexibility and isolation. However, for cloud vendors like AWS or Huawei Cloud, this isolation creates a significant observability gap. While vendors manage the underlying physical infrastructure, they often have no insight into the logical structure of tenant applications. For instance, a vendor may not know which specific set of virtual machines (VMs) constitutes a distributed database or a web-serving tier.

This lack of semantic understanding makes infrastructure maintenance hazardous. If a physical server requires a reboot, the vendor cannot easily determine if the affected VMs are redundant nodes or if they represent a single point of failure for a mission-critical application. Because privacy policies prohibit inspecting tenant logs or source code, vendors require a method to infer functional groupings using only external metadata, such as network traffic and resource utilization, at a massive scale.

2. The Prism Framework

Prism addresses the challenge of large-scale instance clustering through a coarse-to-fine strategy designed to balance computational efficiency with high precision.

2.1 Trace-based Partitioning (Coarse-grained)

The first stage of Prism utilizes network communication patterns. The authors observed that instances serving the same functional role tend to communicate with a similar set of destinations, such as specific gateways or load balancers. To process millions of instances efficiently, Prism employs Locality Sensitive Hashing (LSH) and MinHash. This approach groups instances into "chunks" based on their communication traces, effectively reducing the search space and avoiding the $O(N^2)$ complexity of comparing every instance pair in a massive system.

2.2 Metric-based Clustering (Fine-grained)

Once instances are partitioned into manageable chunks, Prism performs a more detailed analysis using resource metrics (e.g., CPU usage, disk I/O, and network throughput) represented as time series. Because these metrics may be slightly out of sync across different instances due to network latency or scheduling, Prism uses Dynamic Time Warping (DTW) to calculate similarity. Finally, Hierarchical Agglomerative Clustering (HAC) is applied within each chunk to produce the final functional clusters. This two-step process ensures that the system remains robust against noise while maintaining high granularity.

3. Experimental Evaluation

Prism was evaluated using two large-scale datasets from production environments at Huawei Cloud:

  • Dataset A: 2,035 instances across 292 functionality types.
  • Dataset B: 1,027 instances across 105 functionality types.

In total, the study analyzed over 3,000 labeled instances, 212 million network traces, and nearly 11 million metric data points.

3.1 Performance and Scalability

Prism achieved a V-measure of approximately 0.95, significantly outperforming existing state-of-the-art solutions such as CloudCluster and OmniCluster. Beyond accuracy, Prism demonstrated superior scalability. While competing algorithms often exhibit quadratic growth in time cost, Prism’s overhead increases linearly. In benchmarks, Prism successfully processed 100,000 instances in roughly 30 minutes—a task that caused other solutions to either fail or require orders of magnitude more time.

4. Key Insights and Real-World Impact

The effectiveness of Prism is rooted in two primary observations:

  1. Traffic Locality: Pilot studies revealed that 99.1% of instances communicate with fewer than 50 destinations, making LSH-based partitioning highly effective.
  2. Resource Fingerprinting: Different services exhibit distinct "heartbeats." For example, machine learning services are typically CPU-intensive, while caching services like Redis are memory-intensive. These patterns serve as reliable functional fingerprints.

In a real-world deployment at Huawei Cloud, Prism identified eight "vulnerable deployments." These were cases where all instances of a specific service were accidentally placed on the same physical hardware. By identifying these hidden clusters, the vendor was able to redistribute the instances, eliminating single points of failure that were previously invisible.

5. Conclusion and Future Work

Prism demonstrates that it is possible to achieve high-level observability in the cloud without compromising tenant privacy. By leveraging external metadata, vendors can gain the semantic insights necessary for proactive maintenance and fault tolerance.

Future work will focus on two areas: functional identity, to automatically label the type of service (e.g., identifying a cluster specifically as "MySQL"), and dynamic evolution, to handle the constant creation and destruction of instances in highly elastic cloud environments through incremental clustering techniques.

Summary updated

BibTeX
@inproceedings{liu2023prism,
  author = {Jinyang Liu and Zhihan Jiang and Jiazhen Gu and Junjie Huang and Zhuangbin Chen and Cong Feng and Zengyin Yang and Yongqiang Yang and Michael R. Lyu},
  title = {{Prism: Revealing Hidden Functional Clusters from Massive Instances in Cloud Systems}},
  booktitle = {ASE},
  year = {2023},
  doi = {10.1109/ase56229.2023.00077},
}
Figure