-
Notifications
You must be signed in to change notification settings - Fork 6
/
services.sh
37 lines (31 loc) · 1.41 KB
/
services.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/bin/bash -e
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")"; pwd -P)"
DEFAULT=0
if [ "$1" = "--default" ]; then
shift
DEFAULT=1
fi
if [ $DEFAULT == 0 ] && [ -f $DIR/services.override ]; then
source $DIR/services.override
if [ "$COSCALE_SERVICES" == "" ]; then
echo "Error in services: if services.override exists, it should set COSCALE_SERVICES."
exit 1
fi
else
CASSANDRA='cassandra'
if [ "$USE_EXTERNAL_CASSANDRA" == true ] ; then
CASSANDRA=''
fi
export DATA_SERVICES="rabbitmq $CASSANDRA memcached postgresql elasticsearch"
export LB_SERVICE="haproxy"
export COSCALE_SERVICES="alerter api app cron datastore mailer pageminer reporter anomalymatcher triggermatcher rum rumdatareceiver collector rumaggregator"
export DEPRECATED_SERVICES=""
if [ "$COSCALE_STREAMING_ENABLED" == true ] ; then
DATA_SERVICES="$DATA_SERVICES zookeeper kafka"
COSCALE_SERVICES="$COSCALE_SERVICES streamingtriggermatcher streamingroller streamingrollerwriteback anomalydetector anomalyaggregator"
DEPRECATED_SERVICES="$DEPRECATED_SERVICES roller analysismanager anomalydetectorservice"
else
COSCALE_SERVICES="$COSCALE_SERVICES roller analysismanager anomalydetectorservice"
DEPRECATED_SERVICES="$DEPRECATED_SERVICES kafka zookeeper streamingtriggermatcher streamingroller streamingrollerwriteback anomalydetector anomalyaggregator"
fi
fi