|
1 | 1 | def create_run_arguments(parser):
|
2 | 2 | parser.add_argument(
|
3 |
| - "--benchmark-config-file", |
| 3 | + "--tool", |
4 | 4 | type=str,
|
5 | 5 | required=True,
|
6 |
| - help="benchmark config file to read instructions from. can be a local file or a remote link", |
| 6 | + help="benchmark tool to use", |
7 | 7 | )
|
8 | 8 | parser.add_argument(
|
9 |
| - "--workers", |
10 |
| - type=str, |
11 |
| - default=0, |
12 |
| - help="number of workers to use during the benchark. If set to 0 it will auto adjust based on the machine number of VCPUs", |
13 |
| - ) |
14 |
| - parser.add_argument( |
15 |
| - "--run-only-steps", |
16 |
| - type=str, |
17 |
| - default="", |
18 |
| - help="Comma separated list of use-case steps to run. By default it will run all specified steps.", |
19 |
| - ) |
20 |
| - parser.add_argument( |
21 |
| - "--repetitions", type=int, default=1, help="number of repetitions to run" |
22 |
| - ) |
23 |
| - parser.add_argument( |
24 |
| - "--benchmark-requests", |
25 |
| - type=int, |
26 |
| - default=0, |
27 |
| - help="Number of total requests to issue (0 = all of the present in input file)", |
28 |
| - ) |
29 |
| - parser.add_argument( |
30 |
| - "--s3-bucket-name", |
31 |
| - type=str, |
32 |
| - default="benchmarks.redislabs", |
33 |
| - help="S3 bucket name.", |
34 |
| - ) |
35 |
| - parser.add_argument( |
36 |
| - "--upload-results-s3", |
37 |
| - default=False, |
38 |
| - action="store_true", |
39 |
| - help="uploads the result files and configuration file to public benchmarks.redislabs bucket. Proper credentials are required", |
40 |
| - ) |
41 |
| - parser.add_argument( |
42 |
| - "--redis-url", |
43 |
| - type=str, |
44 |
| - default="redis://localhost:6379", |
45 |
| - help="The url for Redis connection", |
46 |
| - ) |
47 |
| - parser.add_argument( |
48 |
| - "--deployment-type", |
49 |
| - type=str, |
50 |
| - default="docker-oss", |
51 |
| - help="one of docker-oss,docker-oss-cluster,docker-enterprise,oss,oss-cluster,enterprise", |
52 |
| - ) |
53 |
| - parser.add_argument( |
54 |
| - "--deployment-shards", |
55 |
| - type=int, |
56 |
| - default=1, |
57 |
| - help="number of database shards used in the deployment", |
58 |
| - ) |
59 |
| - parser.add_argument( |
60 |
| - "--pipeline", type=int, default=1, help="pipeline requests to Redis" |
61 |
| - ) |
62 |
| - parser.add_argument( |
63 |
| - "--skip-teardown-commands", |
64 |
| - default=False, |
65 |
| - action="store_true", |
66 |
| - help="If enabled will skip any teardown commands.", |
67 |
| - ) |
68 |
| - parser.add_argument( |
69 |
| - "--skip-setup-commands", |
70 |
| - default=False, |
71 |
| - action="store_true", |
72 |
| - help="If enabled will skip any setup commands.", |
73 |
| - ) |
74 |
| - parser.add_argument( |
75 |
| - "--continue-on-error", |
| 9 | + "--remote", |
76 | 10 | default=False,
|
77 | 11 | action="store_true",
|
78 |
| - help="If enabled will continue on Redis ERR replies and only print the message.", |
79 |
| - ) |
80 |
| - parser.add_argument( |
81 |
| - "--cluster-mode", |
82 |
| - default=False, |
83 |
| - action="store_true", |
84 |
| - help="Run client in cluster mode", |
85 |
| - ) |
86 |
| - parser.add_argument( |
87 |
| - "--max-rps", |
88 |
| - type=int, |
89 |
| - default=0, |
90 |
| - help="enable limiting the rate of queries per second, 0 = no limit. " |
91 |
| - + "By default no limit is specified and the binaries will stress the DB up to the maximum.", |
| 12 | + help="run the benchmark in remote mode", |
92 | 13 | )
|
93 | 14 | parser.add_argument(
|
94 | 15 | "--output-file-prefix",
|
95 | 16 | type=str,
|
96 | 17 | default="",
|
97 | 18 | help="prefix to quickly tag some files",
|
98 | 19 | )
|
99 |
| - parser.add_argument( |
100 |
| - "--requests", |
101 |
| - type=int, |
102 |
| - default=0, |
103 |
| - help="Number of total requests to issue (0 = all of the present in input file).", |
104 |
| - ) |
105 | 20 | return parser
|
0 commit comments