diff --git a/.gitignore b/.gitignore index c83d0a0..1d3f87f 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ .idea *.iml target/ +*.jsonl diff --git a/docker-compose.yaml b/docker-compose.yaml new file mode 100644 index 0000000..9469df3 --- /dev/null +++ b/docker-compose.yaml @@ -0,0 +1,20 @@ +services: + + opensearch: + image: opensearchproject/opensearch:2.18.0 + container_name: opensearch + environment: + discovery.type: single-node + node.name: opensearch + plugins.security.disabled: "true" + logger.level: info + OPENSEARCH_INITIAL_ADMIN_PASSWORD: SuperSecretPassword_123 + ports: + - 9200:9200 + - 9600:9600 + networks: + - opensearch + +networks: + opensearch: + driver: bridge diff --git a/run-and-index.sh b/run-and-index.sh new file mode 100755 index 0000000..fa3c4e5 --- /dev/null +++ b/run-and-index.sh @@ -0,0 +1,5 @@ +#!/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 + +cat tests.jsonl | jq -c '. | {"index": {"_index": "phileas_benchmarks"}}, .' | curl -H "Content-Type: application/json" -XPOST localhost:9200/_bulk --data-binary @-