|
| 1 | +#!/usr/bin/env bash |
| 2 | + |
| 3 | +# Licensed to Elasticsearch B.V. under one or more contributor |
| 4 | +# license agreements. See the NOTICE file distributed with |
| 5 | +# this work for additional information regarding copyright |
| 6 | +# ownership. Elasticsearch B.V. licenses this file to you under |
| 7 | +# the Apache License, Version 2.0 (the "License"); you may |
| 8 | +# not use this file except in compliance with the License. |
| 9 | +# You may obtain a copy of the License at |
| 10 | +# |
| 11 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 12 | +# |
| 13 | +# Unless required by applicable law or agreed to in writing, |
| 14 | +# software distributed under the License is distributed on an |
| 15 | +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| 16 | +# KIND, either express or implied. See the License for the |
| 17 | +# specific language governing permissions and limitations |
| 18 | +# under the License. |
| 19 | + |
| 20 | +# fail this script immediately if any command fails with a non-zero exit code |
| 21 | +set -e |
| 22 | +# Treat unset env variables as an error |
| 23 | +set -u |
| 24 | +# fail on pipeline errors, e.g. when grepping |
| 25 | +set -o pipefail |
| 26 | + |
| 27 | +readonly ES_VERSION=${ES_VERSION:-7.3.0} |
| 28 | +# intentionally not tested (at the moment) because these challenges require running a different challenge first against the same cluster: |
| 29 | +# |
| 30 | +# * frozen-querying (depends on frozen-data-generation) |
| 31 | +# * combined-indexing-and-querying (depends on any challenge that has already created elasticlogs-q* indices) |
| 32 | +# * elasticlogs-querying (depends on any challenge that has already created elasticlogs-q* indices) |
| 33 | + |
| 34 | +readonly CHALLENGES=(elasticlogs-continuous-index-and-query document_id_evaluation bulk-update shard-sizing frozen-data-generation index-logs-fixed-daily-volume refresh-interval max-indexing-querying index-and-query-logs-fixed-daily-volume shard-size-on-disk bulk-size-evaluation bulk-size-evaluation-mini bulk-size-concurrency-evaluation generate-historic-data large-shard-sizing large-shard-id-type-evaluation elasticlogs-1bn-load) |
| 35 | + |
| 36 | +esrally list tracks --track-repository=eventdata |
| 37 | + |
| 38 | +for challenge in "${CHALLENGES[@]}" |
| 39 | +do |
| 40 | + esrally --test-mode --distribution-version=$ES_VERSION --track-repository=eventdata --track=eventdata --track-params="bulk_indexing_clients:1,number_of_replicas:0,daily_logging_volume:1MB" --challenge="${challenge}" --on-error=abort |
| 41 | +done |
| 42 | + |
| 43 | + |
| 44 | + |
0 commit comments