-
Notifications
You must be signed in to change notification settings - Fork 5
/
run-test-suite-eureka.sh
38 lines (30 loc) · 1.7 KB
/
run-test-suite-eureka.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
38
# To be run in cygwin
# Build demo (discoveryServiceEureka already default profile)
mvn clean package -P discoveryServiceEureka
# eureka server
mintty --title=eureka/8761 java -jar netflix-eureka-server/target/netflix-eureka-server-0.0.1-SNAPSHOT.jar &
sleep 10s
# microservice-one: 2 instances
mintty --title=microservice-one/9011 java -Dserver.port=9011 -jar microservice-one/target/microservice-one-0.0.1-SNAPSHOT.jar &
sleep 20s
mintty --title=microservice-one/9012 java -Dserver.port=9012 -jar microservice-one/target/microservice-one-0.0.1-SNAPSHOT.jar &
sleep 20s
# microservice-two: 4 instances
mintty --title=microservice-two/9021 java -Dserver.port=9021 -jar microservice-two/target/microservice-two-0.0.1-SNAPSHOT.jar &
sleep 20s
mintty --title=microservice-two/9022 java -Dserver.port=9022 -jar microservice-two/target/microservice-two-0.0.1-SNAPSHOT.jar &
sleep 20s
mintty --title=microservice-two/9023 java -Dserver.port=9023 -jar microservice-two/target/microservice-two-0.0.1-SNAPSHOT.jar &
sleep 25s
# zuul server
mintty --title=zuul/8080 java -jar netflix-zuul-server/target/netflix-zuul-server-0.0.1-SNAPSHOT.jar &
sleep 30s
# Turbine service
mintty --title=turbine/9200 java -jar netflix-hystrix-turbine/target/netflix-hystrix-turbine-0.0.1-SNAPSHOT.jar &
sleep 30s
# Hystrix Dashboard service
mintty --title=Hystrix-Dashboard/9100 java -jar netflix-hystrix-dashboard/target/netflix-hystrix-dashboard-0.0.1-SNAPSHOT.jar &
sleep 30s
cygstart http://localhost:8761
cygstart http://localhost:9100/hystrix/monitor?stream=http%3A%2F%2Flocalhost%3A9200%2Fturbine.stream%3Fcluster%3DMYCLUSTER%20
cygstart http://localhost:9100/hystrix/monitor?stream=http%3A%2F%2Flocalhost%3A9200%2Fturbine.stream%3Fcluster%3DMYCLUSTER%20