Trying out the discovery service
With all of the details in place, we are ready to try out Netflix Eureka:
- First, build the Docker images with the following commands:
cd $BOOK_HOME/Chapter09
./gradlew build && docker-compose build
- Next, start the system landscape and run the usual tests with the following command:
./test-em-all.bash start
Expect output similar to what we have seen in previous chapters:
With the system landscape up and running, we can start by testing how to scale up the number of instances for one of the microservices.
Scaling up
Run the following commands to try out scaling up a service:
- Launch two extra
review
microservice instances:
docker-compose up -d --scale review=3
With the preceding command, we ask Docker Compose to run three instances of the
review
service. Since one instance is already running, two new instances will be started up.
- Once the new instances are up and running, browse to
http://localhost...