{"id":19273532,"url":"https://github.com/dbwodlf3/locust-cluster-docker","last_synced_at":"2026-06-13T06:32:02.852Z","repository":{"id":126795612,"uuid":"406291195","full_name":"dbwodlf3/locust-cluster-docker","owner":"dbwodlf3","description":null,"archived":false,"fork":false,"pushed_at":"2022-11-11T05:50:09.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-23T20:43:44.455Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dbwodlf3.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-09-14T08:46:07.000Z","updated_at":"2021-11-16T05:30:29.000Z","dependencies_parsed_at":"2023-06-18T02:33:22.982Z","dependency_job_id":null,"html_url":"https://github.com/dbwodlf3/locust-cluster-docker","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dbwodlf3/locust-cluster-docker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dbwodlf3%2Flocust-cluster-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dbwodlf3%2Flocust-cluster-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dbwodlf3%2Flocust-cluster-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dbwodlf3%2Flocust-cluster-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dbwodlf3","download_url":"https://codeload.github.com/dbwodlf3/locust-cluster-docker/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dbwodlf3%2Flocust-cluster-docker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34275065,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-13T02:00:06.617Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-09T20:43:20.336Z","updated_at":"2026-06-13T06:32:02.834Z","avatar_url":"https://github.com/dbwodlf3.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# build\n\ndocker build -t locust-cluster ./\n\n# docker compose\n\ncd ./test \u0026\u0026 docker-compose up -d\n\n# stack\n\ncd ./test \u0026\u0026 docker stack deploy -c ./stack.yml locust-cluster\n\n## AWS Example\n\n### 1. Create AMI, Create Template\n\n```Connect```\nCreate ec2 instance. I selected t4g.small aws linux 2. You need to open port 22 for ssh and 9000 for locust web interface via aws secuirity group.\nAnd connect to the instance. i used visual studio code remote ssh extension.\n\nIf you use visual studio code, then Ctrl + Shift + X and search Remote SSH extension.\nnext Ctrl + Shift + P execute Remote-SSH: Open SSH Configuration File.\nand set like below.\n```\nHost AWS-LOCUST\n\tHostName your-ec2-ip\n\tUser ec2-user\n\tIdentityFile C:\\Users\\home\\Desktop\\your-key.pem\n```\n\nnext Ctrl + Shift + P, Remote-SSH: Connect to Host, Select AWS-LOCUST.\n\n```Source```\n```\nsudo yum install git docker -y\nsudo systemctl enable docker\nsudo systemctl start docker\n\ngit clone https://github.com/dbwodlf3/locust-cluster-docker.git\ncd locust-cluster-docker\nsudo docker build ./ -t locust-cluster\n\nsudo docker swarm init\ncd test\ndocker stack deploy -c ./stack.yml locust-cluster\n\n# check it works.\ncurl locahlost:9000\n```\n\nand open it with your web browser.\n```http://your-ec2-public-ip:9000```\neverything works then create AMIs from this ec2 instance.\n\n```Launch Template```\nSelect the AMI, security group opend port, the ec2 instance type as t4g.small, the key pair and then create launch template.\nThis is be a master node.\n\nAnd then will make a worker node.\ncreate ec2 instance from the AMI.\n```\n# Worker EC2 instance\nsudo docker swarm leave --force \u0026\u0026 sudo docker swarm leave\n```\n\nThen also create Worker AMI  and Worker Launch Template this will be used for autoscaling.\nAnd add template initalize shell code.\n(Template Advanced details, User data)\n```\n#/bin/sh\nsudo docker swarm join --token your-token-key your-ip:port\n```\n\n### 2. Register Autoscaling Group\n\nCreate Target groups.\nChoose a target type as Instances.\nSelect properly VPC.(select the same vpc as your EC2 template)\nAnd then make it.\n\nCreate Application Load Balancer.\nSelect properly VPC.(select the same vpc as your EC2 template)\nSelect the target group made just before\nAnd then make it.\n\nCreate Autoscaling Group\nSelect properly launch template, properly VPC, properly load balancer and make it.\n\n### 3. Test\n\nRelease a autoscaling group.\nand in master node you can chek it works.\n```\nsudo node ls\n```\n\nAnd make your test script and run it.\nedit my_locustfile.py and update stack.\n```\ndocker stack deploy -c ./stack.yml locust-cluster\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdbwodlf3%2Flocust-cluster-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdbwodlf3%2Flocust-cluster-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdbwodlf3%2Flocust-cluster-docker/lists"}