用Kubernetes实现自动驾驶测试的分布式并行运行,提速超8倍。
Scalable Distributed Simulation-Based Testing for Automated Driving Systems

- 基于Kubernetes和Helm构建自动化测试框架,支持多场景并行执行。
- 200个场景在多节点集群上运行,端到端耗时比串行快8倍以上。
- 适合需要大规模可复现测试的自动驾驶安全验证团队。
虚拟场景测试是验证自动驾驶系统(ADS)和智能交通系统(ITS)的关键手段,但涉及数千个场景的大规模测试仍存在执行繁琐、难以扩展的问题。本文提出一种端到端的DevOps驱动框架,通过轻量级Kubernetes集群自动构建、部署并分发基于CARLA的ADS场景测试。ROS 2应用以标准化Helm图表形式打包,仿真环境通过动态Helmfile声明式组合。利用Argo Workflows实现分布式测试流程:动态获取配置来源的OpenSCENARIO测试用例,批量分发至集群节点并行执行,收集日志与资源指标。在包含多个节点的K3s集群上对200个场景进行评估,最佳配置下端到端流程时间较串行基准提升超过8倍。结果表明,该框架显著缩短执行耗时,并量化了并行度、编排开销与集群稳定性间的权衡。框架已在真实自动驾驶测试中验证,可连接场景源与下游评估模块,为安全论证提供可追溯证据。
原文摘要 · Abstract (English)
Virtual scenario-based testing is a key enabler for validating automated driving systems (ADS) and intelligent transport systems (ITS). However, executing large-scale test suites involving possibly thousands of scenarios remains labor-intensive and difficult to scale. This paper presents an end-to-end, DevOps-driven framework that automates build, deployment, and distributed execution of CARLA-based scenario tests of an ADS on a lightweight Kubernetes cluster. ROS 2 applications are packaged as standardized Kubernetes Helm charts generated from repository specifications, while entire simulation environments are composed declaratively via dynamic Helmfile manifests. The paper describes how a distributed testing workflow can be implemented in Argo Workflows to provision environments, aggregate and batch OpenSCENARIO test cases from configurable sources, execute scenarios in parallel across cluster nodes, and collect logs and resource metrics. In an evaluation on a multi-node K3s cluster running 200 scenarios, the best configuration speeds up end-to-end workflow time by more than a factor of eight compared to a sequential baseline. The results demonstrate significant gains in end-to-end execution time and quantify trade-offs between parallelism, orchestration overhead, and cluster stability. The framework is further demonstrated in a real-world ADS test application with connections to scenario sources and downstream evaluation modules. This demonstrates that the approach provides a strong foundation not only for scalable simulation testing, but also for generating traceable evidence that can support safety arguments.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。