-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Running the Demo Application
The demo application comes packaged with the ability to configure,build and run all the components needed for running Eureka
- Eureka Server
- Application Service
- Application Client
For more details on understanding the configurations, visit this page.
The demo will help you set up a Eureka Server listening in a port of your choice. It will also help you setup an Application service that would serve requests and an Application Client that will send requests to the service.
The Application Service registers with the Eureka Server and the Application client can find and then send the request to the Application Service. The client and server exit gracefully after trading messages.
The demo server is configured to be easy to set up for the demo use case, and is NOT configured for proper production usage. The server configurations to understand how to properly configure the eureka servers.
-
Navigate to eureka-server/conf/ and edit the eureka-client.properties and eureka-client-test.properties if needed. (You do not have to edit the eureka-server.properties for the demo unless you are setting up advanced server configurations)
-
Build the application.
-
The above build also sets up all the libraries needed for running the demo service and the demo client.
-
Copy the WAR artifact to your tomcat deployment directory under _$TOMCAT_HOME/webapps/
cp ./eureka-server/build/libs/eureka-server-XXX-SNAPSHOT.war $TOMCAT_HOME/webapps/eureka.war
-
Start your tomcat server. Access http://localhost:8080/eureka to verify the information there. Your server's eureka client should register itself in 30 seconds and you should see that information there.
- Navigate to eureka-examples/conf and edit the sample-eureka-service.properties if needed.
- Navigate to eureka-examples/conf and edit the sample-eureka-client.properties if needed.
See the examples readme https://github.com/Netflix/eureka/tree/master/eureka-examples
- Eureka at a glance
- Configuring Eureka
- Building Eureka Client and Server
- Running the Demo Application
- Deploying-Eureka-Servers-in-EC2
- Understanding Eureka Client/Server Communication
- Server Self Preservation Mode
- Eureka REST operations
- Understanding Eureka Peer to Peer communication
- Overriding Default Configurations
- FAQ