You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| data_file | Name of the documents file to use | None |
132
+
| dict_file | Name of dictionary file to use | None |
133
+
| finish_time | Shape Finish Time in'%Y-%m-%d %H:%M:%S' format | None |
134
+
| force_init_index | Force deleting and re-initializing the OpenSearch index | False |
135
+
| format | Message format | (truncated for brevity) |
136
+
| http_upload_timeout | Timeout in seconds when uploading data | 10 |
137
+
| id_type | Type of 'id' to use for the docs, int or uuid4 | None |
138
+
| index_name | Name of the index to store your messages |test|
139
+
| index_type | Index type| test_type |
140
+
| number_of_replicas | Number of replicas for OpenSearch index | 1 |
141
+
| number_of_shards | Number of shards for OpenSearch index | 1 |
142
+
| search_db_url | URL of your DB | http://localhost:9200 |
143
+
| out_file | Write test data to out_file as well | False |
144
+
| password | Password for OpenSearch | None |
145
+
| random_seed | Random seed number for Faker | None |
146
+
| set_refresh | Set refresh rate to -1 before starting the upload | False |
147
+
| start_time | Shape Start Time in'%Y-%m-%d %H:%M:%S' format | None |
148
+
| username | Username for OpenSearch | None |
149
+
| validate_cert | SSL validate_cert for requests. Use falsefor self-signed certificates | True |
150
+
151
+
152
+
`python search-test.py --help` also gives you the full set of command line
153
+
ptions, here are more description about the most important ones:
154
+
155
+
- `action`: [generate_data, query_all, custom_query, delete_index, all] choose one
156
+
- generate_data: upload the data generated through `format` to the OpenSearch database.
157
+
- query_all: request all values of the specified index within the range using `start_time` and `finish_time`.
158
+
- custom_query: You can specify the values forthe body usedin the request through a JSON file. this option require `json_path`. For more [read docs](https://opensearch.org/docs/latest/api-reference/search/)
159
+
- delete_index: All data at the specified index will be deleted. (Please use with caution.)
160
+
- all: I will conduct whole process test.(generate_data -> query_all -> delete_index)
161
+
- The values that need to be set according to the server's security settings are as follows:
162
+
- `validate_cert`
163
+
- `client_cert`
164
+
- `client_key`
165
+
- `username`
166
+
- `password`
167
+
- `--search_db_url=http://localhost:9200` the base URL of your search DB node, don't include the index name
102
168
- `--count=###` number of documents to generate and upload
103
169
- `--index_name=test_data` the name of the index to upload the data to.
104
170
If it doesn't exist it'll be created with these options
105
171
- `--num_of_shards=2` the number of shards for the index
106
172
- `--num_of_replicas=0` the number of replicas for the index
107
-
- `--batch_size=###` we use bulk upload to send the docs to ES, this option
108
-
controls how many we send at a time
173
+
- `--batch_size=###` we use bulk upload to send the docs to DB, this option controls how many we send at a time
109
174
- `--force_init_index=False`if`True` it will delete and re-create the index
110
175
- `--dict_file=filename.dic`if provided the `dict` data type will use words
111
176
from the dictionary file, format is one word per line. The entire file is
@@ -151,11 +216,14 @@ Currently supported field types are:
151
216
can be either a single number, or pair of numbers separated by `-` (i.e. 3-7),
152
217
defining range of lengths from with random length will be picked for each array
153
218
(Example `int_array:arr:1-5:int:1:250`)
154
-
219
+
- `log_version` a random version `str` looks like v1.1.1
0 commit comments