Commit 8d7cb2d
committed
Add support for pubsub-sub-bench tool to client runner
Core Implementation:
- Added prepare_pubsub_sub_bench_parameters() function with auto-filled connection parameters
- Auto-fills: -host, -port, -a (auth), -user (ACL), -json-out-file, -resp, -test-time
- Handles cluster mode with -oss-cluster-api-distribute-subscribers flag
- Supports both single clientconfig and multiple clientconfigs formats
- Updated main runner logic to detect and handle pubsub-sub-bench tool
- Updated run_multiple_clients() to support pubsub-sub-bench in multi-client scenarios
Features Supported:
- Basic connection parameters (host, port, authentication)
- RESP protocol version selection (2 or 3)
- Cluster mode support
- Test time override
- JSON output file generation
- User-defined arguments from YAML configuration
- Unix socket fallback (logs warning, uses host/port)
- TLS placeholder (logs warning for future implementation)
Testing:
- Added 5 comprehensive test cases for pubsub-sub-bench functionality
- Tests cover: basic parameters, authentication (password + ACL), cluster mode, unix socket handling
- Tests verify proper argument parsing and command generation
- All existing tests continue to pass (24/24 passing)
Example Configurations:
- Single tool: pubsub-sub-bench-subscribe-1K-channels-128B-multiple-subscribers.yml
- Mixed workload: pubsub-mixed-workload-memtier-publish-pubsub-subscribe.yml
(memtier doing PUBLISH + pubsub-sub-bench doing SUBSCRIBE simultaneously)
This enables realistic pub/sub testing scenarios with dedicated subscriber tools
while maintaining full compatibility with existing memtier-based workflows.1 parent 5579e33 commit 8d7cb2d
File tree
5 files changed
+960
-44
lines changed- redis_benchmarks_specification
- __runner__
- test-suites
- utils
- tests
5 files changed
+960
-44
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
158 | 158 | | |
159 | 159 | | |
160 | 160 | | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
161 | 184 | | |
162 | 185 | | |
163 | 186 | | |
| |||
175 | 198 | | |
176 | 199 | | |
177 | 200 | | |
178 | | - | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
179 | 204 | | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | | - | |
| 205 | + | |
184 | 206 | | |
185 | 207 | | |
186 | 208 | | |
| |||
206 | 228 | | |
207 | 229 | | |
208 | 230 | | |
209 | | - | |
210 | | - | |
211 | | - | |
212 | | - | |
213 | | - | |
214 | | - | |
215 | | - | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
216 | 240 | | |
217 | 241 | | |
218 | 242 | | |
219 | | - | |
220 | | - | |
221 | | - | |
222 | | - | |
223 | | - | |
224 | | - | |
225 | | - | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
226 | 252 | | |
227 | 253 | | |
228 | | - | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
229 | 257 | | |
230 | | - | |
231 | | - | |
| 258 | + | |
232 | 259 | | |
233 | 260 | | |
234 | 261 | | |
| |||
511 | 538 | | |
512 | 539 | | |
513 | 540 | | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
514 | 615 | | |
515 | 616 | | |
516 | 617 | | |
| |||
895 | 996 | | |
896 | 997 | | |
897 | 998 | | |
898 | | - | |
899 | | - | |
| 999 | + | |
900 | 1000 | | |
901 | | - | |
| 1001 | + | |
902 | 1002 | | |
903 | | - | |
904 | | - | |
| 1003 | + | |
| 1004 | + | |
| 1005 | + | |
905 | 1006 | | |
906 | 1007 | | |
907 | 1008 | | |
| 1009 | + | |
908 | 1010 | | |
909 | | - | |
910 | | - | |
911 | | - | |
| 1011 | + | |
| 1012 | + | |
| 1013 | + | |
| 1014 | + | |
| 1015 | + | |
| 1016 | + | |
| 1017 | + | |
| 1018 | + | |
| 1019 | + | |
| 1020 | + | |
912 | 1021 | | |
913 | | - | |
| 1022 | + | |
914 | 1023 | | |
915 | 1024 | | |
916 | 1025 | | |
917 | 1026 | | |
918 | | - | |
| 1027 | + | |
919 | 1028 | | |
920 | 1029 | | |
921 | 1030 | | |
| |||
930 | 1039 | | |
931 | 1040 | | |
932 | 1041 | | |
933 | | - | |
934 | 1042 | | |
| 1043 | + | |
| 1044 | + | |
| 1045 | + | |
| 1046 | + | |
| 1047 | + | |
| 1048 | + | |
| 1049 | + | |
| 1050 | + | |
| 1051 | + | |
| 1052 | + | |
| 1053 | + | |
| 1054 | + | |
| 1055 | + | |
| 1056 | + | |
| 1057 | + | |
| 1058 | + | |
935 | 1059 | | |
936 | 1060 | | |
937 | 1061 | | |
| |||
954 | 1078 | | |
955 | 1079 | | |
956 | 1080 | | |
957 | | - | |
| 1081 | + | |
| 1082 | + | |
| 1083 | + | |
958 | 1084 | | |
959 | 1085 | | |
960 | 1086 | | |
| |||
983 | 1109 | | |
984 | 1110 | | |
985 | 1111 | | |
986 | | - | |
| 1112 | + | |
| 1113 | + | |
| 1114 | + | |
987 | 1115 | | |
988 | 1116 | | |
989 | 1117 | | |
| |||
1006 | 1134 | | |
1007 | 1135 | | |
1008 | 1136 | | |
1009 | | - | |
| 1137 | + | |
| 1138 | + | |
| 1139 | + | |
1010 | 1140 | | |
1011 | 1141 | | |
1012 | 1142 | | |
| |||
Lines changed: 35 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
Lines changed: 27 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
218 | 218 | | |
219 | 219 | | |
220 | 220 | | |
221 | | - | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
222 | 224 | | |
223 | 225 | | |
224 | | - | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
225 | 229 | | |
226 | 230 | | |
227 | 231 | | |
| |||
0 commit comments