arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2205.08818cs.DC
收藏

Python多处理应用程序的透明无服务器执行

Transparent Serverless execution of Python multiprocessing applications

Aitor Arjona, Gerard Finol, Pedro Garcia-Lopez

摘要:

访问透明性意味着使用相同的操作访问本地和远程资源。通过透明性,未经修改的单机应用程序可以在分散的计算,存储和内存资源上运行。通过透明性隐藏分布式系统的复杂性将带来巨大的好处,例如在云中灵活的分散资源上扩展本地并行科学应用程序。本文提出了一个性能评估,我们评估的可行性,访问透明度超过国家的最先进的云分解资源的Python多处理应用程序。我们已经将多处理模块与一个实现接口,该实现透明地在无服务器函数上运行进程,并将内存中的数据存储用于共享状态。为了评估透明度,我们在云中运行了四个未经修改的应用程序:Uber Research的演化策略,Baselines-AI的近端策略优化,Pandaral.lel的Arrame和ScikitLearn的Hyperparameter tuning。我们比较了使用我们的库在分散的资源上运行的相同应用程序的执行时间和可扩展性,以及大型VM中的单机Python多处理库。对于相同的资源,尽管远程通信的开销很大,但有效地使用消息传递抽象的应用程序可以获得类似的结果。其他共享内存密集型应用程序由于高远程内存延迟而无法执行。结果表明,Python的多处理库设计是实现透明性的一个推动因素:使用高效的分解抽象的遗留应用程序可以透明地扩展到VM有限的资源之外,以提高并行性,而无需更改底层代码或架构。

英文摘要:

Access transparency means that both local and remote resources are accessed using identical operations. With transparency, unmodified single-machine applications could run over disaggregated compute, storage, and memory resources. Hiding the complexity of distributed systems through transparency would have great benefits, like scaling-out local-parallel scientific applications over flexible disaggregated resources in the Cloud. This paper presents a performance evaluation where we assess the feasibility of access transparency over state-of-the-art Cloud disaggregated resources for Python multiprocessing applications. We have interfaced the multiprocessing module with an implementation that transparently runs processes on serverless functions and uses an in-memory data store for shared state. To evaluate transparency, we run in the Cloud four unmodified applications: Uber Research's Evolution Strategies, Baselines-AI's Proximal Policy Optimization, Pandaral.lel's dataframe, and ScikitLearn's Hyperparameter tuning. We compare execution time and scalability of the same application running over disaggregated resources using our library, with the single-machine Python multiprocessing libraries in a large VM. For equal resources, applications efficiently using message-passing abstractions achieve comparable results despite the significant overheads of remote communication. Other shared-memory intensive applications do not perform due to high remote memory latency. The results show that Python's multiprocessing library design is an enabler towards transparency: legacy applications using efficient disaggregated abstractions can transparently scale beyond VM limited resources for increased parallelism without changing the underlying code or architecture.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑