简体   繁体   English

AWS 设备群能否同时用于具有更多(大约 1000 个)相同设备实例的负载测试?

[英]Can AWS device farm be used for a load test with larger number (around 1000) of the same device instances at the same time?

I have a service deployed in AWS ECS that will be used by android devices to poll data (simple explanation of the service).我在 AWS ECS 中部署了一项服务,Android 设备将使用该服务来轮询数据(该服务的简单说明)。 I am required to test the performance of the service when a larger number of mobile devices are polling at the same time.当大量移动设备同时轮询时,我需要测试服务的性能。

I have checked AWS device farm for achieving this scenario and I read the documentation and I am still doubtful of this.我已经检查了 AWS 设备群以实现这个场景,我阅读了文档,但我仍然对此表示怀疑。 AWS device farm provides a platform of multiple devices for your automation and testing purposes but does this support this type of scenario? AWS 设备群为您的自动化和测试目的提供了一个包含多个设备的平台,但这是否支持这种类型的场景? What I simply want is to use the same android device but a larger number of instances (eg - 1000 instances) polling at the same time to the service.我只是想要使用相同的 android 设备,但有更多的实例(例如 - 1000 个实例)同时轮询服务。

Can this be achieved using AWS device farm or any other ideal suggesting approaches for this?这可以使用 AWS 设备群或任何其他理想的建议方法来实现吗?

PS - I know this can be achieved without actually using mobile devices and performing a load test using such a tool like K6. PS - 我知道这可以在不实际使用移动设备并使用像 K6 这样的工具执行负载测试的情况下实现。 having several other reasons to evaluate this approach有其他几个理由来评估这种方法

Unfortunately, this load-testing use case isn't supported on Device Farm, as our platform only uses real physical mobile devices.不幸的是,Device Farm 不支持此负载测试用例,因为我们的平台仅使用真实的物理移动设备。 We would recommend to use traditional API-based load-testing in combination with device testing on a single device so that you can see what the experience on that device looks like when there is load being placed on the server.我们建议将传统的基于 API 的负载测试与单个设备上的设备测试结合使用,以便您可以看到当服务器上加载负载时该设备上的体验。 For example, if you use a tool like K6, you can run a test using Device Farm's custom environment mode ( https://docs.aws.amazon.com/devicefarm/latest/developerguide/custom-test-environments-extending.html ) on a single device with a test spec file that load tests your API for you, then runs a basic smoke test on the app while the app's server is under load.例如,如果您使用 K6 之类的工具,则可以使用 Device Farm 的自定义环境模式运行测试 ( https://docs.aws.amazon.com/devicefarm/latest/developerguide/custom-test-environments-extending.html ) 在具有测试规范文件的单个设备上为您加载测试您的 API,然后在应用程序的服务器处于负载下时在应用程序上运行基本的冒烟测试。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM