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

Do we have a Thundering Herd Problem with our Services? #141

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
33 changes: 23 additions & 10 deletions quickstart.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,25 @@ do
shift
done


# Function check_prerequisites makes sure that you have curl, jq, docker-compose, and zip installed. See helpers.sh for details.
check_prerequisites

services="blacklight solr1 solr2 solr3 keycloak smui"
early_services="keycloak"
services="solr1 solr2 solr3"
late_services="blacklight"

if $observability; then
services="${services} grafana solr-exporter jaeger"
services="${services} solr-exporter jaeger"
late_services="${late_services} grafana"
fi

if $offline_lab; then
services="${services} quepid rre"
late_services="${late_services} quepid rre"
fi

if $active_search_management; then
late_services="${late_services} smui"
fi

if ! $local_deploy; then
Expand All @@ -71,22 +80,26 @@ if $shutdown; then
exit
fi

docker-compose up -d --build ${early_services}

if $local_deploy; then
./keycloak/check-for-host-configuration.sh
fi

log_minor "waiting for Keycloak to be available"
./keycloak/wait-for-keycloak.sh

docker-compose up -d --build ${services}

log_major "Waiting for Solr cluster to start up and all three nodes to be online."
./solr/wait-for-solr-cluster.sh # Wait for all three Solr nodes to be online

docker-compose up -d --build ${late_services}

log_major "Setting up security in solr"
log_minor "copying security.json into image"
docker cp ./solr/security.json solr1:/security.json

if $local_deploy; then
./keycloak/check-for-host-configuration.sh
fi

log_minor "waiting for Keycloak to be available"
./keycloak/wait-for-keycloak.sh

log_minor "uploading security.json to zookeeper"
docker exec solr1 solr zk cp /security.json zk:security.json -z zoo1:2181

Expand Down