-
Notifications
You must be signed in to change notification settings - Fork 0
/
run-and-index.sh
executable file
·95 lines (91 loc) · 2.25 KB
/
run-and-index.sh
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
#!/bin/bash -e
java -server -Xmx512M -XX:+AlwaysPreTouch -XX:PerBytecodeRecompilationCutoff=10000 -XX:PerMethodRecompilationCutoff=10000 -jar target/phileas-benchmark-cmd.jar all mask_all 1 100 json > tests.jsonl
curl -X DELETE http://localhost:9200/phileas_benchmarks
curl -X PUT http://localhost:9200/phileas_benchmarks -H "Content-Type: application/json" -d'{
"mappings": {
"properties": {
"calls_per_sec": {
"properties": {
"0": {
"type": "long"
},
"1": {
"type": "long"
},
"1024": {
"type": "long"
},
"128": {
"type": "long"
},
"1280": {
"type": "long"
},
"1536": {
"type": "long"
},
"16": {
"type": "long"
},
"1792": {
"type": "long"
},
"2": {
"type": "long"
},
"2048": {
"type": "long"
},
"256": {
"type": "long"
},
"3072": {
"type": "long"
},
"32": {
"type": "long"
},
"4": {
"type": "long"
},
"4096": {
"type": "long"
},
"512": {
"type": "long"
},
"64": {
"type": "long"
},
"768": {
"type": "long"
},
"8": {
"type": "long"
}
}
},
"run_id": {
"type": "keyword"
},
"document": {
"type": "keyword"
},
"phileas_version": {
"type": "keyword"
},
"redactor": {
"type": "keyword"
},
"timestamp": {
"type" : "date",
"format" : "epoch_millis"
},
"workload_millis": {
"type": "long"
}
}
}
}
}'
cat tests.jsonl | jq -c '. | {"index": {"_index": "phileas_benchmarks"}}, .' | curl -H "Content-Type: application/json" -XPOST localhost:9200/_bulk --data-binary @-