Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yorek/locust-on-azure
Running distributed Locust.io on Azure Container Instances
https://github.com/yorek/locust-on-azure
api azure docker locustio python rest test testing
Last synced: about 2 months ago
JSON representation
Running distributed Locust.io on Azure Container Instances
- Host: GitHub
- URL: https://github.com/yorek/locust-on-azure
- Owner: yorek
- License: mit
- Created: 2020-02-16T19:35:48.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2022-08-05T18:20:42.000Z (over 2 years ago)
- Last Synced: 2024-08-04T02:07:54.884Z (4 months ago)
- Topics: api, azure, docker, locustio, python, rest, test, testing
- Language: Shell
- Size: 97.7 KB
- Stars: 14
- Watchers: 4
- Forks: 10
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-locust - locust-on-azure - Running distributed Locust on Azure Container Instances. (Tools / Distributed)
README
# Running Locust.io on Azure Container Instances
Running distributed Locust.io (version 1.3.0) on Azure Container Instances
Article with details is here:
[Running Locust on Azure](https://dev.to/azure/running-locust-on-azure-2k40)
Or just run `azure-deploy.sh` and follow instructions. Is that easy :)
A VNet integrated deployment is available via `azure-vnet-deploy.sh`
![Locust on Azure](./images/locust-dotnet-sqlhs.png)
You can try it right away, even if you don't have any API you can call, using [JSONPlaceholder](https://jsonplaceholder.typicode.com). To avoid flooding JSONPlaceholder with tons of request, the default values are set to create 1 locust client that will simulate 1 user only. The user will send a GET or a POST request every 5 to 10 seconds.
## Editing .sh files in VS Code on Windows
In case you are editing .sh files in Windows, you might encounter error at runtime in WSL because of the default CRLF line ending applied.
You can fix existing files with command `sed -i.bak 's/\r$//' azure-deploy.sh` [see this discussion](https://askubuntu.com/questions/803162/how-to-change-windows-line-ending-to-unix-version) and if you are using VS Code you can [configure line ending](https://github.com/Microsoft/vscode/issues/2957)