<p>I have a simple web server application in a docker container that I have pinned to a vm instance in GCP Compute Engine. </p>

<p>I am wondering how to set up automated load testing (Locust load testing via GKE) on the web server application running on my VM instance?</p>

<p>I saw a tutorial here: <a href="https://cloud.google.com/solutions/distributed-load-testing-using-gke" rel="nofollow noreferrer">https://cloud.google.com/solutions/distributed-load-testing-using-gke</a>. But this involves using App Engine. I am not able to find a GCP tutorial to auto load test vm instances in Compute Engine.</p>

<p>Any links or ideas?</p>

<p>The tutorial comprises of a project that you clone from github. from that project you deploy a  <code>sample-webapp</code> to Google Compute Engine, with a domain such as <em>test1.appspot.com</em>.
This <em>test1.appspot.com</em> is the target for the <strong>Locust</strong> cluster.</p>

<p>This <code>sample-webapp</code> is a simple Flask app that you can copy and deploy in your instance in GCP (there are several ways of accomplishing this). Once the app is deployed and reachable from the internet, you need supply its address/domain as the target for the <strong>Locust</strong> cluster.</p>
