#author("2021-09-09T01:13:43+00:00","default:admin","admin")
#author("2021-09-09T08:31:42+00:00","default:admin","admin")
[[k6:https://k6.io/]]
-[[k6 - github:https://github.com/grafana/k6]]

-[[k6を使って負荷テストをやってみる:https://qiita.com/ryotaro76/items/f4bbcc1bec3fbae0e4b4]]
-[[k6の使い方 シンプル&軽快な負荷試験ツールを試す:https://future-architect.github.io/articles/20210324/]]
-[[TypeScriptで負荷シナリオテストを作りたくなった話:https://kaminashi-developer.hatenablog.jp/entry/typescript-load-testing]]
-[[k6を使うと負荷テストのパフォーマンス計測が捗る話:https://qiita.com/szk3/items/c1172ef3d182d7fe6868]]
-[[モダンな負荷テストツールのk6を試してみた:http://blog.soushi.me/entry/2017/11/11/220606]]

-[[k6 - Datadog:https://docs.datadoghq.com/ja/integrations/k6/]]

*概要 [#d18ac3c5]
-k6はGoで開発されたモダンな負荷試験ツール
-軽快なフットワークでインストールが可能
-JavaScriptで書いたシナリオを実行する形で利用
-試験結果は様々な外部システムと組み合わせることが可能

**必要スペック [#iaa37d97]
-[[Running large tests:https://k6.io/docs/testing-guides/running-large-tests/]]
--Simple tests will use ~1-5MB per VU. (1000VUs = 1-5GB)

-ネット上の情報
--26000人~29000人分のアクセスを再現するあたりで64GBのメモリを使い切り動かなくなった
--1000人オーダーであれば8~16GBのメモリのマシンであっても耐えられそう
--メモリに余裕のない環境ではマシンスペックの限界を超えたときにGoのランタイムエラーが出力される

*インストール [#bf38c2a3]
-[[Installation:https://k6.io/docs/getting-started/installation/]]

**InfluxDB [#rda7e981]
-[[InfluxDB + Grafana:https://k6.io/docs/results-visualization/influxdb-+-grafana/]]
-[[K6の負荷テスト結果をGrafana+InfluxDBで可視化する:https://yuya-hirooka.hatenablog.com/entry/2020/12/18/121808]]

**Redis [#h8ab97c0]
-[[xk6-redis:https://github.com/grafana/xk6-redis]]
--[[Go Toolchain:https://go101.org/article/go-toolchain.html]] をインストール
--git をインストール
---[[Windows版:https://gitforwindows.org/]]
**Redisとの連携 [#tece7dcb]
-[[Goをインストール:https://golang.org/doc/install]]
-git をインストール
--[[Windows版:https://gitforwindows.org/]]
-[[xk6:https://github.com/grafana/xk6]] をインストール
-[[xk6-redis:https://github.com/grafana/xk6-redis]] に従い、ビルド


*SSL [#j4927b5b]
-[[SSL/TLS - k6:https://k6.io/docs/using-k6/protocols/ssl-tls/]]
-[[Disable SSL certificate verification:https://community.k6.io/t/disable-ssl-certificate-verification/672]]


トップ   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS