This is example shows how we use Hazelcast Eureka Discovery when Hazelcast is embedded in a web application and we share one Eureka client between web and Hazelcast.
In this example we use https://github.com/hazelcast/hazelcast-eureka fork: https://github.com/ebjwc/eurekast-one/tree/gh-1a.
To start this example:
cd eureka
mvn spring-boot:run
cd hazelcast-node
mvn spring-boot:run -Dserver.port=8181
cd hazelcast-node
mvn spring-boot:run -Dserver.port=8282
Eureka registry: http://localhost:8761/eureka/apps (see metadata map)
Node 1 health: http://localhost:8181/health (see hazelcast.nodesCount)
Node 2 health: http://localhost:8282/health