負荷試験用のArtilleryツールを追加 #341
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
対応Issue
概要
BINGOアプリケーション用のArtillery負荷試験ツールを追加しました。HTTPとWebSocketの統合負荷試験が可能です。
ファイル統合・整理済み: 冗長なファイルを削除し、3ファイル構成でシンプル化されています。
実装詳細
ファイル統合・整理の実施
統合前(5ファイル)→ 統合後(3ファイル)
削除されたファイル
integrated-load-test.yml- 基本版(最適化版で機能包含)artillery-processor.js- 基本プロセッサー(最適化版で機能包含)統合・リネームされたファイル
optimized-user-scenarios.yml→load-test.yml- メイン設定ファイルoptimized-processor.js→processor.js- メインプロセッサー最終ファイル構成(3ファイル)
load-test.yml: Artillery負荷試験設定(最適化版ベース)processor.js: カスタムプロセッサー(最適化版ベース)dynamic-config.js: 動的設定生成スクリプト主な機能
Artillery統合負荷試験
負荷パターン
テストシナリオ
ユーザー閲覧シナリオ (70%)
WebSocket購読シナリオ (30%)
技術的な改善点
動的設定生成
dynamic-config.jsによる最大ユーザー数対応カスタムメトリクス
プロセッサー機能
使用方法
出力ファイル
results/artillery_YYYYMMDD_HHMMSS.jsonresults/artillery_report_YYYYMMDD_HHMMSS.htmlresults/artillery_dynamic_config_YYYYMMDD_HHMMSS.yml画面スクリーンショット等
コマンドライン実行のため、スクリーンショットはありません。Artillery実行時には詳細な進行状況とメトリクスが表示されます。
テスト項目
備考
ファイル統合の効果
注意事項
Artillery の特徴
パフォーマンス目標
ブランチ構成
このプロジェクトは3ブランチに分離されています: