3.4. Hyperfoil ベンチマークの実行
Hyperfoil を使用してベンチマークテストを実行し、Data Grid クラスターのパフォーマンスデータを収集します。
前提条件
- Hyperfoil Operator サブスクリプションを作成します。
- Red Hat OpenShift で Hyperfoil Controller をインスタンス化します。
手順
ベンチマークテストを作成します。
$ cat > hyperfoil-benchmark.yaml<<EOF name: hotrod-benchmark hotrod: # Replace <USERNAME>:<PASSWORD> with your Data Grid credentials. # Replace <SERVICE_HOSTNAME>:<PORT> with the host name and port for Data Grid. - uri: hotrod://<USERNAME>:<PASSWORD>@<SERVICE_HOSTNAME>:<PORT> caches: # Replace <CACHE-NAME> with the name of your Data Grid cache. - <CACHE-NAME> agents: agent-1: agent-2: agent-3: agent-4: agent-5: phases: - rampupPut: increasingRate: duration: 10s initialUsersPerSec: 100 targetUsersPerSec: 200 maxSessions: 300 scenario: &put - putData: - randomInt: cacheKey <- 1 .. 40000 - randomUUID: cacheValue - hotrodRequest: # Replace <CACHE-NAME> with the name of your Data Grid cache. put: <CACHE-NAME> key: key-${cacheKey} value: value-${cacheValue} - rampupGet: increasingRate: duration: 10s initialUsersPerSec: 100 targetUsersPerSec: 200 maxSessions: 300 scenario: &get - getData: - randomInt: cacheKey <- 1 .. 40000 - hotrodRequest: # Replace <CACHE-NAME> with the name of your Data Grid cache. get: <CACHE-NAME> key: key-${cacheKey} - doPut: constantRate: startAfter: rampupPut duration: 5m usersPerSec: 10000 maxSessions: 11000 scenario: *put - doGet: constantRate: startAfter: rampupGet duration: 5m usersPerSec: 40000 maxSessions: 41000 scenario: *get EOF
- 任意のブラウザーでルートを開き、Hyperfoil CLI にアクセスします。
ベンチマークテストをアップロードします。
upload
コマンドを実行します。[hyperfoil]$ upload
- Select benchmark file をクリックしてから、ファイルシステムのベンチマークテストに移動してアップロードします。
ベンチマークテストを実行します。
[hyperfoil]$ run hotrod-benchmark
ベンチマークテストの結果を取得します。
[hyperfoil]$ stats