{"id":20586473,"url":"https://github.com/ktanakaj/locust-example","last_synced_at":"2025-04-14T21:26:24.121Z","repository":{"id":80964158,"uuid":"145284283","full_name":"ktanakaj/locust-example","owner":"ktanakaj","description":"Example scripts for Locust","archived":false,"fork":false,"pushed_at":"2019-06-05T13:32:19.000Z","size":22,"stargazers_count":11,"open_issues_count":0,"forks_count":8,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-28T09:36:22.448Z","etag":null,"topics":["example","locust"],"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/ktanakaj.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-08-19T08:02:16.000Z","updated_at":"2025-01-24T20:38:54.000Z","dependencies_parsed_at":null,"dependency_job_id":"aa4b44be-111f-4a00-a9e6-d7ad829a626d","html_url":"https://github.com/ktanakaj/locust-example","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ktanakaj%2Flocust-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ktanakaj%2Flocust-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ktanakaj%2Flocust-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ktanakaj%2Flocust-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ktanakaj","download_url":"https://codeload.github.com/ktanakaj/locust-example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248962082,"owners_count":21190130,"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":["example","locust"],"created_at":"2024-11-16T07:11:52.496Z","updated_at":"2025-04-14T21:26:24.115Z","avatar_url":"https://github.com/ktanakaj.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Locustスクリプトサンプル\n[Locust](http://locust.io/)スクリプトのサンプルです。\n\n起動中のサーバーに対してリクエストを投げます。このサンプルでは、[breakout-mk](https://github.com/ktanakaj/breakout-mk)のAPIをターゲットとしています。\n\n## 実行環境\n* CentOS 7\n* Python 3.6\n* Locust 0.9.0\n\n### 開発環境\n* Vagrant 2.2.4 - 仮想環境管理\n    * Hyper-V (Windows 10 Pro) - 仮想環境\n\n※ [VirtualBox](https://www.virtualbox.org/) + [vagrant-vbguest](https://github.com/dotless-de/vagrant-vbguest)プラグイン等でも動作します。\n\n## インストール方法\nリポジトリ内のファイルを任意の場所に配置してください。\n\nサンプルのVM環境は `vagrant up` で構築可能です。\n\n※ 攻撃対象のサーバーは別途準備してください。\n\n## 実行方法\nサンプルのVM環境は `/vagrant` 移動後に `./run_local.sh` でLocust起動可能です。  \n（例、`./run_local.sh http://172.28.128.3`）\n\n起動後はブラウザで `http://[DHCPで振られたIP]:8089/` 等でWebインタフェースにアクセスしてください。\n\nログは `/var/log/locust/` に出力されます。\n\n## ソース解説\nテストシナリオの本体は `src` ディレクトリ以下に格納されています。  \nスクリプトの起点は `locustfile.py` です。ここでスクリプト全体を統括しています。\n\n`common` ディレクトリには、スクリプト全体で使う共通処理などが実装されています。  \nそれ以外のディレクトリには、主に `TaskSet` の形で個別の画面ごとのテストが実装されています。  \n\n## ライセンス\n[MIT](https://github.com/ktanakaj/locust-example/blob/master/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fktanakaj%2Flocust-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fktanakaj%2Flocust-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fktanakaj%2Flocust-example/lists"}