{"id":24375216,"url":"https://github.com/enricopesce/locuster","last_synced_at":"2026-01-07T13:36:02.027Z","repository":{"id":154533099,"uuid":"252113879","full_name":"enricopesce/locuster","owner":"enricopesce","description":"Deploy load test infrastructure based on Locust.io with AWS CDK","archived":false,"fork":false,"pushed_at":"2021-09-24T08:58:55.000Z","size":14,"stargazers_count":3,"open_issues_count":1,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-03T07:11:08.374Z","etag":null,"topics":["aws","cdk","locust","locustio"],"latest_commit_sha":null,"homepage":"","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/enricopesce.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":"2020-04-01T08:17:29.000Z","updated_at":"2024-03-22T17:05:15.000Z","dependencies_parsed_at":null,"dependency_job_id":"6b9ce809-80ac-4a54-942b-676e9af50f74","html_url":"https://github.com/enricopesce/locuster","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enricopesce%2Flocuster","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enricopesce%2Flocuster/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enricopesce%2Flocuster/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enricopesce%2Flocuster/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/enricopesce","download_url":"https://codeload.github.com/enricopesce/locuster/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246100458,"owners_count":20723469,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["aws","cdk","locust","locustio"],"created_at":"2025-01-19T05:54:17.341Z","updated_at":"2026-01-07T13:36:01.983Z","avatar_url":"https://github.com/enricopesce.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Locuster\n\n\u003e Example how with [AWS CDK](https://docs.aws.amazon.com/cdk/latest/guide/home.html) you can deploy a\n\u003e load test infrastructure using [Locust.io](https://locust.io/)\n\n\u003e The infrastructure code is written in [Python](https://www.python.org/), it executes a master\\slave Locust infrastructure\n\n\u003e I totally love LOCUST and CDK!\n\n### Installation and requirements:\n\nInstall the CDK framework\n\n```bash\nnpm install -g aws-cdk\n```\n\nInstall the Python dependencies\n\n```bash\npip install -r requirements.txt\n```\n\nAuthenticate in your AWS account:\n\n\u003e Follow this guide: [Configuring the AWS CLI](https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-configure.html)\n\nBootstrap AWS CDK (if needed)\n\n```bash\ncdk bootstrap --region eu-west-1\n```\n\n## Usage\n\nDeploy locust:\n\n```bash\nexport AWS_PROFILE=\"profilename\"\nexport AWS_DEFAULT_REGION=\"eu-west-1\"\ncdk deploy locuster\n\n.....\n\n ✅  locuster\n\nOutputs:\nlocuster.LocustWebConsole = http://locus-nbala-15IY958M7LUVF-ab8bf6ee96743c80.elb.eu-west-1.amazonaws.com:8089\n```\n\n\u003e After the deployment you need to wait for a 1-minute maximum, you can start the load using the output address\n\n\nDestroy locust:\n\n```bash\ncdk destroy locuster\n```\n\nLocal test:\n\n\u003e You can try locally the platform:\n\n```bash\ncd docker\ndocker-compose up --scale worker=2 --build\n```\n\nCustomize the loucustfile test code:\n\n\u003e You can customize the code inside the docker/code directory\n\nHave fun!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fenricopesce%2Flocuster","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fenricopesce%2Flocuster","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fenricopesce%2Flocuster/lists"}