{"id":21903487,"url":"https://github.com/graboskyc/mongodbscaletester","last_synced_at":"2026-02-26T18:36:42.238Z","repository":{"id":146292093,"uuid":"319998515","full_name":"graboskyc/MongoDBScaleTester","owner":"graboskyc","description":"Simple skeleton tester for Locust.IO and MongoDB","archived":false,"fork":false,"pushed_at":"2024-11-08T14:05:15.000Z","size":264,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-24T23:58:35.254Z","etag":null,"topics":["docker","docker-compose","locustio","mongodb","pymongo"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/graboskyc.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-12-09T15:27:26.000Z","updated_at":"2024-11-27T13:52:35.000Z","dependencies_parsed_at":null,"dependency_job_id":"3c7d9ae6-6da6-4325-bdaa-fad9b43c3622","html_url":"https://github.com/graboskyc/MongoDBScaleTester","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/graboskyc/MongoDBScaleTester","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/graboskyc%2FMongoDBScaleTester","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/graboskyc%2FMongoDBScaleTester/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/graboskyc%2FMongoDBScaleTester/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/graboskyc%2FMongoDBScaleTester/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/graboskyc","download_url":"https://codeload.github.com/graboskyc/MongoDBScaleTester/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/graboskyc%2FMongoDBScaleTester/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29867561,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-26T18:27:06.972Z","status":"ssl_error","status_checked_at":"2026-02-26T18:26:57.848Z","response_time":89,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["docker","docker-compose","locustio","mongodb","pymongo"],"created_at":"2024-11-28T15:27:56.164Z","updated_at":"2026-02-26T18:36:42.215Z","avatar_url":"https://github.com/graboskyc.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Scale Tester\n\n## About\nThis is a basic test suite load gen tester built on [locust.io](https://locust.io/)\n\n## Use\n### Prep\n* Deploy an [Atlas](https://www.mongodb.com/cloud/atlas) cluster\n* Create a username and password\n* Add your IP address to your IP Access List\n* Press the connect button and choose \"Connect your Application\" then \"Python\" and make note of the connection string for later\n\n\n### Modifying load\n* Edit [locustfile](WorkerNode/locustfile.py) and copy the one function in there to do whatever you want\n    * Today this will create 11k docs with a random ID and binary payload and store them via upsert\n* Use the `tag` directive for identifying the function within the Locust UI\n* Use the `task` directive for task frequency (i.e. 2 will happen half as frequently as 1)\n* Add any python packages to the requirements.txt file\n\n### Container names\n* The [build.sh](WorkerNode/build.sh) and [compose](docker-compose.yml) reference my DockerHub username. If you aren't me, change instances of `graboskyc`\n\n### Building the container\n* Locust uses the same container for the master and workers\n* Run the [build.sh](WorkerNode/build.sh) in bash to create the containers locally. It will auto tag it with an auto-incrementing version number and latest tags\n\n### Environment variables\n* Copy the [worker-variables.sample.env](worker-variables.sample.env) to `worker-variables.env`\n* modify the `MDBCONNSTRING` field with your [Atlas](https://www.mongodb.com/cloud/atlas) connection string\n\n### Running the test\n* Run the [run.sh](run.sh) and this will start the load test\n* Hard coded in that script it will launch one `master` and 2 `workers` which you can modify in that script\n* Open a web browser to `http://localhost:8089`\n\n### Ending the test\n* Return to console and press control+c to end the compose stack\n\n## Results\n![](SS/ss01.png)\n\n![](SS/ss02.png)\n\n![](SS/ss03.png)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgraboskyc%2Fmongodbscaletester","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgraboskyc%2Fmongodbscaletester","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgraboskyc%2Fmongodbscaletester/lists"}