{"id":13728126,"url":"https://github.com/debugtalk/stormer","last_synced_at":"2025-04-15T11:33:20.731Z","repository":{"id":87470164,"uuid":"83143407","full_name":"debugtalk/stormer","owner":"debugtalk","description":"Wrappers for making load test with locust more convienient.","archived":false,"fork":false,"pushed_at":"2017-05-18T08:00:28.000Z","size":82,"stargazers_count":49,"open_issues_count":0,"forks_count":17,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-11-01T10:42:31.341Z","etag":null,"topics":["http-requests","locust","performance-testing","remote-machine","ssh-client","wrapper"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/debugtalk.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2017-02-25T16:02:47.000Z","updated_at":"2024-09-26T08:25:09.000Z","dependencies_parsed_at":null,"dependency_job_id":"575245fe-30f8-449f-ac3d-00a7c1118a74","html_url":"https://github.com/debugtalk/stormer","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/debugtalk%2Fstormer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/debugtalk%2Fstormer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/debugtalk%2Fstormer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/debugtalk%2Fstormer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/debugtalk","download_url":"https://codeload.github.com/debugtalk/stormer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223673050,"owners_count":17183618,"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":["http-requests","locust","performance-testing","remote-machine","ssh-client","wrapper"],"created_at":"2024-08-03T02:00:37.552Z","updated_at":"2024-11-08T11:03:27.283Z","avatar_url":"https://github.com/debugtalk.png","language":"Python","readme":"# Stormer\n\nWrappers for making load test with [`locust`](https://github.com/locustio/locust) more convienient.\n\n## Features\n\n- Start locust master and specified number of slaves at once.\n- Overwrite test scripts on all remote machines with ease.\n- Download remote file/directory to local path.\n\n## Dependencies\n\nStormer is mainly based on [`locustio`](https://github.com/locustio/locust) and [`paramiko`](https://github.com/paramiko/paramiko/), you can install all dependencies through `requirements.txt`.\n\n```bash\n$ pip install -r requirements.txt --upgrade\n```\n\n## Usages\n\nCurrently, Stormer supports two subcommands.\n\n```text\n$ python main.py -h\nusage: main.py [-h] {locust,sput} ...\n\nWrappers for making load test with locust more convienient.\n\npositional arguments:\n  {locust,sput}  sub-command help\n    locust       locust wrapper.\n    sput         scp wrapper for putting files.\n\noptional arguments:\n  -h, --help     show this help message and exit\n```\n\n`locust` usage: Start locust master and specified number of slaves with one command.\n\n```text\n$ usage: main.py locust [-h] [-f LOCUSTFILE] [-P PORT] [--slaves-num SLAVES-NUM]\n\nStart locust master and specified number of slaves with one command.\n\noptional arguments:\n  -h, --help            show this help message and exit\n  -f LOCUSTFILE, --locustfile LOCUSTFILE\n                        Specify locust file to run test.\n  -P PORT, --port PORT, --web-port PORT\n                        Port on which to run web host, default is 8089.\n  --slave-only          Only start locust slaves.\n  --master-host MASTER_HOST\n                        Host or IP address of locust master for distributed\n                        load testing.\n  --slaves-num SLAVES_NUM\n                        Specify number of locust slaves, default to machine's\n                        cpu count.\n```\n\n`sput` usage: Copy local file/directory to remote machines and overwrite.\n\n```text\n$ python main.py sput -h\nusage: main.py sput [-h] [--hostsfile HOSTSFILE] [--localpath LOCALPATH] [--remotepath REMOTEPATH]\n\nCopy local file/directory to remote machines and overwrite.\n\noptional arguments:\n  -h, --help            show this help message and exit\n  --hostsfile HOSTSFILE\n                        Specify hosts file to handle.\n  --localpath LOCALPATH\n                        Specify localpath of file or directory to transfer.\n  --remotepath REMOTEPATH\n                        Specify remotepath of file or directory to transfer.\n```\n\n## Examples\n\nStart locust master and locust slaves, the slaves number is equal to the machine's cpu count.\n\n```text\n$ python main.py locust -f examples/demo_task.py\n[2017-02-26 10:52:04,875] Leos-MacBook-Air.local/INFO/logger: Starting Locust 0.8a2\n[2017-02-26 10:52:04,897] Leos-MacBook-Air.local/INFO/logger: Starting web monitor at *:8089\n[2017-02-26 01:32:15,757] Leos-MacBook-Air.local/INFO/locust.runners: Client 'Leos-MacBook-Air.local_9cfcb5acf942af4b52063c138952a999' reported as ready. Current\nly 1 clients ready to swarm.\n[2017-02-26 01:32:15,757] Leos-MacBook-Air.local/INFO/locust.runners: Client 'Leos-MacBook-Air.local_0dba26cc993de413436db0f854342b9f' reported as ready. Current\nly 2 clients ready to swarm.\n[2017-02-26 01:32:15,758] Leos-MacBook-Air.local/INFO/locust.runners: Client 'Leos-MacBook-Air.local_2d49585a20f6bcdca33b8c6179fa0efb' reported as ready. Current\nly 3 clients ready to swarm.\n[2017-02-26 01:32:15,782] Leos-MacBook-Air.local/INFO/locust.runners: Client 'Leos-MacBook-Air.local_cc9d414341823d0e9421679b5f9dd4c4' reported as ready. Current\nly 4 clients ready to swarm.\n```\n\nOnly start 4 locust slaves and connect to locust master.\n\n```text\n$ python main.py locust -f examples/demo_task.py --slaves-only --master-host \u003cmaster-host-ip\u003e --slaves-num 4\n```\n\nCopy local directory to all remote hosts.\n\n```text\n$ python main.py sput --hostsfile examples/hosts.yml --localpath examples --remotepath /root/examples\n```","funding_links":[],"categories":["Tools \u0026 Integrations"],"sub_categories":["Wrappers"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdebugtalk%2Fstormer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdebugtalk%2Fstormer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdebugtalk%2Fstormer/lists"}