-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding opensearch dashboards and index mapping.
- Loading branch information
1 parent
f28cbb7
commit 7d4eae4
Showing
3 changed files
with
111 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,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 15000 json > tests.jsonl | ||
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 @- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters