Henge: Intent-driven Multi-Tenant Stream Processing

Faria Kalim, Le Xu, Sharanya Bathey, Richa Meherwal, Indranil Gupta

Introduction

In modern data-driven organizations, multiple teams often share a single stream processing cluster to handle real-time data pipelines. This multi-tenancy presents a significant challenge: how to allocate resources fairly and efficiently across diverse workloads. Current systems like Apache Storm or Apache Flink are relatively "primitive" in their resource management, often requiring manual over-provisioning or static resource caps. These approaches lead to either wasted hardware or performance degradation during traffic spikes.

Henge compared to general-purpose and batch schedulers, highlighting its focus on stream-specific, adaptive SLOs.

Henge addresses this by introducing an "intent-driven" scheduling paradigm. Instead of forcing developers to tune low-level parameters like thread counts or memory limits, Henge allows users to specify high-level Service Level Objectives (SLOs) related to latency and throughput. The system then automatically determines the necessary resource allocation to meet these goals.

Core Innovation: Utility and Juice

To bridge the gap between user intent and cluster reality, Henge introduces two novel concepts: Utility Functions and the Juice Metric.

Utility-based SLOs

Rather than a binary pass/fail threshold, Henge utilizes utility functions to map a job's current performance to a continuous value (typically between 0 and 1). This allows the scheduler to quantify the "value" of a job even when it is slightly missing its target, enabling more nuanced trade-offs when resources are scarce. For instance, a high-priority ad-bidding job might have a steeper utility drop-off for latency violations than a background log-aggregation job.

The Juice Metric

Traditional throughput (tuples per second) is an unreliable metric for scheduling because it fluctuates with the input data rate. Henge defines Juice as a rate-independent metric representing the ratio of the processing rate to the input rate. A Juice of 1.0 indicates the system is keeping up perfectly with the data stream, while a lower value signals a bottleneck.

Utility functions mapping performance to value. (a) Throughput/Juice utility for two jobs with different priorities. (b) Latency utility showing decay after the SLO threshold.

The Henge Mechanism

Online State Space Exploration

Stream processing performance is notoriously jittery and dependent on the co-location of other jobs. Consequently, offline analytical models often fail to predict real-world behavior. Henge instead employs an online state machine. It takes small, experimental steps (reconfigurations), measures the resulting change in total system utility, and either commits to the change or reverts if performance degrades. This reactive approach ensures robustness in unpredictable environments.

Congestion-Aware Allocation

Rather than scaling an entire job blindly, Henge identifies specific "congested" operators within a topology. By intelligently adding threads only to these bottlenecks, Henge maximizes the impact of every additional resource unit. It also includes a "black-listing" mechanism to prevent "unachievable" SLOs from starving the rest of the cluster; if a job's utility does not improve after receiving more resources, Henge stops feeding it.

Evaluation and Key Results

The authors evaluated Henge using production-grade workloads, including Yahoo! PageLoad topologies and Twitter sentiment analysis datasets. The results demonstrate significant improvements over existing methods:

  • SLO Satisfaction: Henge provided 19.3x better SLO satisfaction than the default Storm scheduler.
  • Dynamic Resilience: The system successfully navigated 3x workload spikes and diurnal patterns, maintaining a Juice of 1.0 through automatic scaling.
  • Fast Convergence: Most topologies reached a stable, high-utility state within 10-20 seconds (1 or 2 reconfiguration rounds).
  • Scalability: Tests on clusters up to 40 nodes with 45 concurrent topologies showed manageable scheduling overhead.

Conclusion

Henge represents a shift toward declarative resource management in stream processing. By decoupling intent from implementation and using an experimental online search for optimal configurations, it achieves Pareto efficiency—a state where no job's utility can be increased without decreasing another's. Future work may expand Henge to include operator migration across nodes and more explicit management of memory and I/O bandwidth.

Summary updated

BibTeX
@inproceedings{kalim2018henge,
  author = {Faria Kalim and Le Xu and Sharanya Bathey and Richa Meherwal and Indranil Gupta},
  title = {{Henge: Intent-driven Multi-Tenant Stream Processing}},
  booktitle = {SoCC},
  year = {2018},
  doi = {10.1145/3267809.3267832},
}
Figure