【问题标题】:Google Compute Engine Automated Load Test VM Instance?谷歌计算引擎自动负载测试虚拟机实例?
【发布时间】:2020-09-27 23:11:18
【问题描述】:

我在 docker 容器中有一个简单的 Web 服务器应用程序,我已将其固定到 GCP Compute Engine 中的 vm 实例。

我想知道如何在我的 VM 实例上运行的 Web 服务器应用程序上设置自动负载测试(通过 GKE 进行 Locust 负载测试)?

我在这里看到了一个教程:https://cloud.google.com/solutions/distributed-load-testing-using-gke。但这涉及到使用 App Engine。我找不到在 Compute Engine 中自动加载测试 vm 实例的 GCP 教程。

任何链接或想法?

【问题讨论】:

    标签: kubernetes google-cloud-platform google-compute-engine load-testing locust


    【解决方案1】:

    本教程包含一个从 github 克隆的项目。从该项目中,您将 sample-webapp 部署到 Google Compute Engine,其域如 test1.appspot.comtest1.appspot.comLocust 集群的目标。

    这个sample-webapp 是一个简单的 Flask 应用程序,您可以在 GCP 中的实例中复制和部署它(有几种方法可以实现)。部署应用程序并可以从 Internet 访问后,您需要提供其地址/域作为 Locust 集群的目标。

    【讨论】:

      猜你喜欢
      • 2018-02-25
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-08-05
      • 1970-01-01
      • 1970-01-01
      • 2015-10-22
      • 2015-12-25
      相关资源
      最近更新 更多