-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathdelete_sequential_count.yaml
More file actions
43 lines (35 loc) · 981 Bytes
/
delete_sequential_count.yaml
File metadata and controls
43 lines (35 loc) · 981 Bytes
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
36
37
38
39
40
41
42
43
# Run this file with the test-server, then specify the PORT as a parameter to this try or run script.
# This file will delete sequentially until we get 50 (createdId.end) calls
vars:
port: "${PORT}"
ingestName: 'test:loadtest-'
maxEmptySearch: 20
load_pattern:
- linear:
from: 100%
to: 100%
over: 60m # Doesn't really matter since once createdId runs out it will exit.
config:
client:
headers:
TestTime: '${epoch("ms")}'
Accept: application/json
providers:
createdId:
range:
start: 1
end: 50 # How many to delete. total time should be this / peak_load
loggers:
test:
to: stdout
endpoints:
- method: DELETE
url: 'http://localhost:${port}?id=${ingestName}${start_pad(createdId, 6, "0")}?include-children=true'
tags:
status: ${response.status}
peak_load: 10hps
logs:
test:
select:
ts: epoch("ms")
id: '`${ingestName}${start_pad(createdId, 6, "0")}`'