<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Kodai Sakabe on Medium]]></title>
        <description><![CDATA[Stories by Kodai Sakabe on Medium]]></description>
        <link>https://medium.com/@koudaiii?source=rss-39eb9d11e0d8------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*ax5cL60QHMEtr1vd.png</url>
            <title>Stories by Kodai Sakabe on Medium</title>
            <link>https://medium.com/@koudaiii?source=rss-39eb9d11e0d8------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 19 Nov 2026 05:58:23 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@koudaiii/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Introducing Distributed Load Testing Using locust on Azure Kubernetes Service ( AKS )]]></title>
            <link>https://koudaiii.medium.com/introducing-distributed-load-testing-using-locust-on-aks-4b998f68429d?source=rss-39eb9d11e0d8------2</link>
            <guid isPermaLink="false">https://medium.com/p/4b998f68429d</guid>
            <category><![CDATA[locust]]></category>
            <category><![CDATA[ak]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[azure-kubernetes-service]]></category>
            <category><![CDATA[azure]]></category>
            <dc:creator><![CDATA[Kodai Sakabe]]></dc:creator>
            <pubDate>Fri, 09 Jul 2021 18:30:59 GMT</pubDate>
            <atom:updated>2025-03-24T01:42:34.436Z</atom:updated>
            <content:encoded><![CDATA[<p>Updated:</p><p>Generally Available: Azure Load Testing Now Supports Locust 🚀</p><p><a href="https://azure.microsoft.com/en-us/updates?id=483803">https://azure.microsoft.com/en-us/updates?id=483803</a></p><p>— — —</p><p>Updated: Now, Azure Load Testing has supported Locust script😄</p><p><a href="https://learn.microsoft.com/en-us/azure/load-testing/quickstart-create-run-load-test-with-locust?tabs=portal">https://learn.microsoft.com/en-us/azure/load-testing/quickstart-create-run-load-test-with-locust?tabs=portal</a></p><p>Updated: Now, Azure has released Azure Load Testing. <a href="https://docs.microsoft.com/en-us/azure/load-testing/">https://docs.microsoft.com/en-us/azure/load-testing/</a></p><p>— — —</p><p>Today I’m open-sourcing <a href="https://github.com/koudaiii/distributed-load-testing-using-locust-on-aks">distributed-load-testing-using-locust-on-aks</a>, making an easy to scalable distributed load testing using Azure Kubernetes Service (AKS) and locust.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*S1E91j5DGrAgKuM4_Q9uUQ.png" /></figure><p><a href="https://github.com/koudaiii/distributed-load-testing-using-locust-on-aks">koudaiii/distributed-load-testing-using-locust-on-aks</a></p><p>If you’ve used a performance tools, then you are probably familiar with the concept of <a href="https://en.wikipedia.org/wiki/Load_testing">Distributed Load Testing</a>. Distributed Load Testing lets you check your application for High Availability and Scalability, and Resiliency, and Reliability.</p><p>However, Azure currently does not offer <a href="https://azure.microsoft.com/ja-jp/updates/cloud-based-load-testing-features-will-be-retired-on-march-31-2020/">a managed service</a> for load test, so you need to prepare a performance tool on Azure. If you want to check performance, you can quickly get a distributed load testing by using <a href="https://github.com/koudaiii/distributed-load-testing-using-locust-on-aks">distributed-load-testing-using-locust-on-aks</a>.</p><h3>Table of Contents</h3><ol><li>What does <a href="https://github.com/koudaiii/distributed-load-testing-using-locust-on-aks">distributed-load-testing-using-locust-on-aks</a> solve?</li><li>What does <a href="https://github.com/koudaiii/distributed-load-testing-using-locust-on-aks">distributed-load-testing-using-locust-on-aks</a> do?</li><li>Getting started with <a href="https://github.com/koudaiii/distributed-load-testing-using-locust-on-aks">distributed-load-testing-using-locust-on-aks</a></li><li>How does <a href="https://github.com/koudaiii/distributed-load-testing-using-locust-on-aks">distributed-load-testing-using-locust-on-aks</a> work?</li><li>Conclusion</li></ol><h3>1. What does <a href="https://github.com/koudaiii/distributed-load-testing-using-locust-on-aks">distributed-load-testing-using-locust-on-aks</a> solve?</h3><p>Two prominent issues led me to develop <a href="https://github.com/koudaiii/distributed-load-testing-using-locust-on-aks">distributed-load-testing-using-locust-on-aks</a>:</p><p>1 Azure currently does not have a managed service for load testing. So you need to prepare a tool for load testing yourself.</p><p>I want to select a simple tool and also can run on my laptop pc.</p><p>2 Even if you prepared a performance tool, your performance tool might have a bottleneck. So your application might not be a correct result of performance. Currently, Web Applications often have auto-scale.</p><p>You need to solve the bottleneck of this tool. Then, performance tests can confirm where broken in your application. And, your applications can demonstrate degenerate driving methods appropriate. And the application can establish scaling at the right time.</p><h3>2. What does <a href="https://github.com/koudaiii/distributed-load-testing-using-locust-on-aks">distributed-load-testing-using-locust-on-aks</a> do?</h3><p>It precisely solves the two problems listed above:</p><ol><li><a href="https://github.com/koudaiii/distributed-load-testing-using-locust-on-aks">distributed-load-testing-using-locust-on-aks</a> solves a complex operation using locust on Azure Kubernetes Service (AKS):</li><li><a href="https://github.com/koudaiii/distributed-load-testing-using-locust-on-aks">distributed-load-testing-using-locust-on-aks</a> builds a scalable environment for your workload using locust on Azure Kubernetes Service (AKS) :</li></ol><h3>3. Getting started with <a href="https://github.com/koudaiii/distributed-load-testing-using-locust-on-aks">distributed-load-testing-using-locust-on-aks</a></h3><p><a href="https://github.com/koudaiii/distributed-load-testing-using-locust-on-aks">distributed-load-testing-using-locust-on-aks</a> has the bootstrap script. So you can run bootstrap script.</p><pre>$ script/bootstrap</pre><p>If you have Azure Kubernetes Service (AKS) environment, you might apply kubernetes/ manifest files to your Azure Kubernetes Service (AKS).</p><p>you need run kubectl port-forwardcommand because you can access WebUI.</p><pre>$ kubectl port-forward svc/locust-master 8089:8089 -n locust</pre><pre>(Command+t)</pre><pre>$ open http://localhost:8089</pre><pre># Set your target URL</pre><p>Please check out <a href="https://github.com/koudaiii/distributed-load-testing-using-locust-on-aks">distributed-load-testing-using-locust-on-aks</a> and consider trying out the project and giving feedback.</p><p>I did a load test on a sample application in a repository called myapp, assuming a scenario that I experienced in the past. This scenario is based on a spike that occurred when the application was introduced on TV.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JUxfMELIRAn5qHbWqyrgMA.png" /><figcaption>Statistics</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_dpDFrMHstQivlI5bKmkJw.png" /><figcaption>Request Transition Graph</figcaption></figure><p>I checked myapp can scalable application because of application can scale until request peak.</p><pre>$ kubectl get hpa -A -w<br>NAMESPACE   NAME         REFERENCE                  TARGETS    MINPODS   MAXPODS   REPLICAS   AGE<br>locust      locust-hpa   Deployment/locust-worker   100%/40%   2         100       5          5m15s</pre><pre>myapp       myapp-hpa    Deployment/myapp           29%/40%    1         100       1          2m31s</pre><pre>myapp       myapp-hpa    Deployment/myapp           59%/40%    1         100       1          2m47s</pre><pre>locust      locust-hpa   Deployment/locust-worker   99%/40%    2         100       5          5m32s</pre><pre>myapp       myapp-hpa    Deployment/myapp           59%/40%    1         100       2          3m2s</pre><pre>locust      locust-hpa   Deployment/locust-worker   99%/40%    2         100       10         5m47s</pre><pre>myapp       myapp-hpa    Deployment/myapp           59%/40%    1         100       2          3m18s</pre><pre>myapp       myapp-hpa    Deployment/myapp           73%/40%    1         100       2          3m48s</pre><pre>locust      locust-hpa   Deployment/locust-worker   95%/40%    2         100       10         6m32s</pre><pre>locust      locust-hpa   Deployment/locust-worker   95%/40%    2         100       20         6m47s</pre><pre>locust      locust-hpa   Deployment/locust-worker   95%/40%    2         100       24         7m3s</pre><pre>locust      locust-hpa   Deployment/locust-worker   76%/40%    2         100       24         7m33s</pre><pre>myapp       myapp-hpa    Deployment/myapp           89%/40%    1         100       2          4m49s</pre><pre>locust      locust-hpa   Deployment/locust-worker   76%/40%    2         100       41         7m47s</pre><pre>myapp       myapp-hpa    Deployment/myapp           89%/40%    1         100       4          5m3s</pre><pre>myapp       myapp-hpa    Deployment/myapp           89%/40%    1         100       5          5m19s</pre><pre>locust      locust-hpa   Deployment/locust-worker   59%/40%    2         100       41         8m33s</pre><pre>myapp       myapp-hpa    Deployment/myapp           59%/40%    1         100       5          5m49s</pre><pre>locust      locust-hpa   Deployment/locust-worker   59%/40%    2         100       47         8m48s</pre><pre>locust      locust-hpa   Deployment/locust-worker   59%/40%    2         100       47         9m34s</pre><pre>myapp       myapp-hpa    Deployment/myapp           59%/40%    1         100       5          6m50s</pre><pre>locust      locust-hpa   Deployment/locust-worker   59%/40%    2         100       47         10m</pre><pre>myapp       myapp-hpa    Deployment/myapp           59%/40%    1         100       5          7m51s</pre><pre>locust      locust-hpa   Deployment/locust-worker   59%/40%    2         100       47         11m</pre><pre>myapp       myapp-hpa    Deployment/myapp           59%/40%    1         100       5          8m52s</pre><pre>myapp       myapp-hpa    Deployment/myapp           59%/40%    1         100       5          9m53s</pre><pre>locust      locust-hpa   Deployment/locust-worker   60%/40%    2         100       47         13m</pre><pre>myapp       myapp-hpa    Deployment/myapp           59%/40%    1         100       5          10m</pre><p>As you can see, it scaled from 2 locust workers to a maximum of 47. Also, one of myapp’s responses went down due to the sudden load, but myapp could scale up to 5 workers before the peak.</p><p>When the performance test is done, let’s clean up.</p><pre>$ script/clean</pre><h3>4. How does <a href="https://github.com/koudaiii/distributed-load-testing-using-locust-on-aks">distributed-load-testing-using-locust-on-aks</a> work?</h3><p><a href="https://github.com/koudaiii/distributed-load-testing-using-locust-on-aks">distributed-load-testing-using-locust-on-aks</a> builds locust on Azure Kubernetes Service (AKS). locust on Azure Kubernetes Service (AKS) has master and some workers. In addition, locust on Azure Kubernetes Service (AKS) has included hpa(horizontal pod autoscaler) setting for the worker. Therefore, <a href="https://github.com/koudaiii/distributed-load-testing-using-locust-on-aks">distributed-load-testing-using-locust-on-aks</a> realizes distributed load testing depending on the load.</p><p>Why use Kubernetes?</p><p>To increase the scalability of the load tool, I used hpa of kubernetes because manual scale is very difficult. Nowadays, web applications support scalability as a matter of course. I solved a bottleneck in my load tool this way.</p><p>Why use Azure Kubernetes Service (AKS)?</p><ul><li>If you have an account in Azure, you can easily create and delete the Kubernetes infrastructure using az commands.</li><li>If you have a Web Application on Azure, you can performance test in Azure.</li></ul><h3>5. Conclusion</h3><p>Using <a href="https://github.com/koudaiii/distributed-load-testing-using-locust-on-aks">distributed-load-testing-using-locust-on-aks</a>, you can easily use distributed load testing on Azure and get the experience that you’re used to in terms of end-to-end performance.</p><p>I hope this article explains why and how I built <a href="https://github.com/koudaiii/distributed-load-testing-using-locust-on-aks">distributed-load-testing-using-locust-on-aks</a>. Please make sure to <a href="https://github.com/koudaiii/distributed-load-testing-using-locust-on-aks">check out the GitHub repository</a>, star/fork it, and give feedback through the <a href="https://github.com/koudaiii/distributed-load-testing-using-locust-on-aks/issues/new">issue</a> tracker or on <a href="https://twitter.com/koudaiii">Twitter(@koudaiii)</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4b998f68429d" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>