Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Backport 2.x] Refactors changes related to demo configuration #534

Open
wants to merge 1 commit into
base: 2.x
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,10 @@ This package uses the [Gradle](https://docs.gradle.org/current/userguide/usergui
### Setup

Currently, for the alpha development-only source code release, we support installing and running the RCA framework only on OpenSearch Docker containers.

**NOTE:** If planning to use this framework with security plugin, the demo configuration requires an initial admin password to be set. You can set this by creating a .env file next to the docker compose and add following line to it:
`OPENSEARCH_INITIAL_ADMIN_PASSWORD=<your-password>`
There is a password validation in place, which requires a strong password.

You can use the packaged Dockerfile and docker-compose.yml files [here](./docker) to spin up a cluster with RCA framework installed.

Expand Down
2 changes: 2 additions & 0 deletions docker/docker-compose.cluster.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,12 @@ services:
- cluster.initial_cluster_manager_nodes=opensearch1
- bootstrap.memory_lock=true
- "OPENSEARCH_JAVA_OPTS=-Xms512m -Xmx512m"
- "OPENSEARCH_INITIAL_ADMIN_PASSWORD=${OPENSEARCH_INITIAL_ADMIN_PASSWORD}"
opensearch2:
environment:
- node.name=opensearch2
- discovery.seed_hosts=opensearch1
- cluster.initial_cluster_manager_nodes=opensearch1
- bootstrap.memory_lock=true
- "OPENSEARCH_JAVA_OPTS=-Xms512m -Xmx512m"
- "OPENSEARCH_INITIAL_ADMIN_PASSWORD=${OPENSEARCH_INITIAL_ADMIN_PASSWORD}"
2 changes: 1 addition & 1 deletion docker/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ fi
if [[ -d "/usr/share/opensearch/plugins/opensearch_security" ]]; then
# Install Demo certificates for Security Plugin and update the opensearch.yml
# file to use those certificates.
/usr/share/opensearch/plugins/opensearch_security/tools/install_demo_configuration.sh -y -i -s
/usr/share/opensearch/plugins/opensearch_security/tools/install_demo_configuration.sh -y -i -s || exit 1
fi

if [[ -d "/usr/share/opensearch/plugins/opensearch-performance-analyzer" ]]; then
Expand Down
Loading