Skip to Content
Mastering Spring Cloud
book

Mastering Spring Cloud

by Piotr Mińkowski
April 2018
Intermediate to advanced content levelIntermediate to advanced
432 pages
10h 38m
English
Packt Publishing
Content preview from Mastering Spring Cloud

Launching microservices

I have changed a configuration for all the microservices in application.yml. Now, there are two different profiles, the first used for assigning an application to zone1 and the second for zone2. You may check out the version from the feign_with_discovery branch (https://github.com/piomin/shown here-spring-cloud-comm/tree/feign_with_discovery). Then, build the whole project using the mvn clean install command. The application should be launched with the java -jar --spring.profiles.active=zone[n] command, where [n] is the number of the zone. Because you have to start many instances to perform that test, it is worth considering a limit on heap size by setting the -Xmx parameter, for example, -Xmx128m. Here are the current ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Microservices with Spring Boot and Spring Cloud - Second Edition

Microservices with Spring Boot and Spring Cloud - Second Edition

Magnus Larsson

Publisher Resources

ISBN: 9781788475433Supplemental Content