Skip to content

Commit

Permalink
[Tests][BWC][CI] update performance analzyer location (opensearch-pro…
Browse files Browse the repository at this point in the history
…ject#1474)

Performance analyzer was moved. It was causing a silent failure
which prevented the disable security plugin from being set.
Thus BWC tests were timing out with security disabled.

So I also moved to the security plugin config setup to the top
of the function to ensure this gets executed.

Source:
opensearch-project/performance-analyzer@81d019a
opensearch-project/opensearch-build@6183df2

Issue:
n/a

Signed-off-by: Kawika Avilla <kavilla414@gmail.com>
  • Loading branch information
kavilla authored Apr 19, 2022
1 parent 68a4d9d commit 73d5167
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scripts/bwc/opensearch_service.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,17 @@ set -e

function setup_opensearch() {
cd "$OPENSEARCH_DIR"
echo "network.host: 0.0.0.0" >> config/opensearch.yml
echo "discovery.type: single-node" >> config/opensearch.yml
[ $SECURITY_ENABLED == "false" ] && [ -d "plugins/opensearch-security" ] && echo "plugins.security.disabled: true" >> config/opensearch.yml
# Required for IM
[ -d "plugins/opensearch-index-management" ] && echo "path.repo: [/tmp]" >> config/opensearch.yml
# Required for Alerting
[ -d "plugins/opensearch-alerting" ] && echo "plugins.destination.host.deny_list: [\"10.0.0.0/8\", \"127.0.0.1\"]" >> config/opensearch.yml
# Required for SQL
[ -d "plugins/opensearch-sql" ] && echo "script.context.field.max_compilations_rate: 1000/1m" >> config/opensearch.yml
# Required for PA
[ -d "plugins/opensearch-performance-analyzer" ] && echo "webservice-bind-host = 0.0.0.0" >> plugins/opensearch-performance-analyzer/pa_config/performance-analyzer.properties
echo "network.host: 0.0.0.0" >> config/opensearch.yml
echo "discovery.type: single-node" >> config/opensearch.yml
[ $SECURITY_ENABLED == "false" ] && [ -d "plugins/opensearch-security" ] && echo "plugins.security.disabled: true" >> config/opensearch.yml
[ -d "plugins/opensearch-performance-analyzer" ] && echo "webservice-bind-host = 0.0.0.0" >> config/opensearch-performance-analyzer/performance-analyzer.properties
}

# Starts OpenSearch, if verifying a distribution it will install the certs then start.
Expand Down

0 comments on commit 73d5167

Please sign in to comment.