Abstract
High-performance computing (HPC) workflows in Python often rely on Dask for task orchestration. However, Dask's centralized scheduler can become a bottleneck when handling large data objects due to the overhead of serialization and communication within the task graph. This paper introduces an integration between Dask Distributed and ProxyStore, a middleware that implements a "pass-by-reference" paradigm using transparent object proxies. By offloading large data from the task graph, this approach significantly reduces scheduler overhead. Experimental results on the Sunspot supercomputer show up to a 50% reduction in task round-trip times and improved throughput for data-intensive workloads.
Introduction
Dask is a widely used framework for distributed computing in Python, providing powerful abstractions for managing complex task graphs. Despite its strengths, Dask typically employs a "pass-by-value" approach where data objects are embedded directly into the task graph. This design forces the central scheduler to handle the serialization, communication, and deserialization of all task data. As data sizes grow or task frequency increases, the scheduler becomes an I/O bottleneck, leading to performance degradation. This is particularly problematic in scientific workflows, such as active learning, where large datasets frequently move between clients and workers.
Methods
To address these limitations, we integrated ProxyStore into Dask to decouple control flow from data flow. This integration enables a "pass-by-proxy" paradigm.
As illustrated in the figure above, instead of sending actual data to the scheduler, ProxyStore creates a transparent object proxy—a lightweight reference pointing to data stored in an external mediated location like Redis or DAOS. The scheduler only processes these small proxies, while workers resolve them to fetch the actual data only when required for computation.
Key technical contributions include:
- Integration Patterns: Support for manual proxying, automatic size-based proxying via a custom Dask Client, and a StoreExecutor for standard Python concurrency interfaces.
- Metadata Caching: Proxies cache common metadata to prevent Dask's internal optimization passes from inadvertently triggering expensive data fetches.
- Optimized Serialization: A custom serialization system supporting zero-copy operations for NumPy, Pandas, and Polars, achieving 2-3x faster performance than standard Python pickle.
Results
The system was evaluated using the Task-based Execution Framework Performance Suite (TaPS) on the Sunspot supercomputer at Argonne National Laboratory. Benchmarks included Cholesky decomposition and Federated Learning patterns.
Experimental results demonstrate that ProxyStore significantly reduces task overhead for large payloads. As shown in the performance analysis, round-trip times for payloads exceeding 100 kB see substantial improvements, reaching a reduction of approximately 50% for 100 MB payloads. Furthermore, ProxyStore enhances scalability; while the native Dask scheduler's throughput plateaus and eventually degrades as more workers are added due to the data-handling burden, the ProxyStore-enabled system maintains significantly higher sustained throughput by keeping the scheduler "thin."
Conclusion
By transitioning Dask from a pass-by-value to a pass-by-proxy model, we effectively mitigate the centralized scheduler bottleneck for data-intensive applications. While this approach solves the data-volume problem, performance limitations related to the absolute number of tasks at extreme scales remain an area for future research. Deeper integration with Dask's scheduling logic to account for data locality of proxied objects represents a promising next step.
Summary updated