Adds cluster benchmark support for benchmark-on-label#3338
Conversation
Signed-off-by: Roshan Khatri <rvkhatri@amazon.com>
Signed-off-by: Roshan Khatri <rvkhatri@amazon.com>
|
Thanks for the change. I have some questions -
|
zuiderkwast
left a comment
There was a problem hiding this comment.
Nice, LGTM.
With this workflow, will it be possible to add both labels to a PR to have cluster-mode and standalone-mode benchmark running at the same time?
| if: github.event.label.name == 'run-cluster-benchmark' | ||
| run: | | ||
| CONFIG_FILE="../valkey/.github/benchmark_configs/benchmark-config-arm.json" | ||
| sed -i 's/"cluster_mode": false/"cluster_mode": true/g' "$CONFIG_FILE" |
There was a problem hiding this comment.
Clever idea! Just hack the config in-place with sed. 😎
|
@zuiderkwast it's |
Yeah, I realized. I cancelled the run. |
|
@roshkhatri can the action get expired if multiple runs are queued on the same instance? I think benchmark takes some time. |
I don't know. Let's find out? I'll just merge it. |
|
I like the yolo style not gonna lie :D |
|
I started it on #2790. I can see it uses the command
I.e. it's not running with |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## unstable #3338 +/- ##
============================================
- Coverage 75.05% 74.87% -0.18%
============================================
Files 129 129
Lines 71553 71632 +79
============================================
- Hits 53705 53636 -69
- Misses 17848 17996 +148 🚀 New features to boost your workflow:
|
Now we will be able to add a `run-cluster-benchmark` label to run a benchmark with cluster-mode enabled valkey-server It will use the config https://github.com/valkey-io/valkey/blob/unstable/.github/benchmark_configs/benchmark-config-arm.json modified for for cluster mode with a single clustermode enabled instance of valkey. It uses the same single instance for the benchmark as for run-benchmark. If both labels are used, they are sequential in the same concurrency group `group: ec2-al-2023-pr-benchmarking-arm64`. --------- Signed-off-by: Roshan Khatri <rvkhatri@amazon.com>
Now we will be able to add a
run-cluster-benchmarklabel to run a benchmark with cluster-mode enabled valkey-serverAnswering some questions from the comments:
Will use this benchmark-config-arm.json config for cluster mode with a single clustermode enabled instance of valkey
Yes it uses the same single instance for the benchmark
Yes they are sequential in the same concurrency group
group: ec2-al-2023-pr-benchmarking-arm64I have not changes that.