1. Thanks for the great article and clear explanation. In addition, the default zones are hard-coded. In a matured microservice architecture, where this would be mentioned assuming auto scaling could happen on naming servers as well.

  2. I’m the ten who star your project. And I think that it will be more better if you can get some hint or suggestion when do the practice such as which version of spring boot should we used, and how to modify the host file (it is read only be default, so if modify it with notepad, it will saved as a .txt file, but will be ignored easily)

    1. Author

      Thanks for the feedback! I will try to explain better the part about adding hosts and the versioning.

  3. really help full for me, thx alot. the most important about
    If you’re getting your Eureka instance as an ‘unavailable replica’, it might be due to one of these reasons:

    You didn’t use the same application name in both instances (pay attention to the EUREKA-CLUSTER in the screenshot, what do you see?).
    You didn’t use the context /eureka in your defaultZone URLs.
    You are using the same hostname for both instances (e.g. localhost). Remember that they must be different.
    The hostnames can’t be mapped by your computer (did you include them in your hosts file?).

  4. 2018-05-08 20:15:24.551 INFO 1748 --- [ main] o.apache.catalina.core.StandardService : Stopping service [Tomcat]
    2018-05-08 20:15:25.450 INFO 1748 --- [ main] utoConfigurationReportLoggingInitializer :
    Error starting ApplicationContext. To display the auto-configuration report re-run your application with 'debug' enabled.
    2018-05-08 20:15:25.459 ERROR 1748 --- [ main] o.s.b.d.LoggingFailureAnalysisReporter :
    The Tomcat connector configured to listen on port 8080 failed to start. The port may already be in use or the connector may be misconfigured.
    Verify the connector's configuration, identify and stop any process that's listening on port 8080, or configure this application to listen on another port.

    I am getting above error .i have made changes as per given.it picks default 8080 port unfortunately. need your help

    1. Author

      I’ve sent you an email with the possible solution. I think you’re not running the app passing the profile (peer1 or peer2), thus Spring Boot is taking the default port.


This site uses Akismet to reduce spam. Learn how your comment data is processed.