Skip to content

Commit

Permalink
Add additional instructions in example README to set demo server configs
Browse files Browse the repository at this point in the history
  • Loading branch information
qiangdavidliu committed May 27, 2016
1 parent 8fc233f commit 890d1b3
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion eureka-examples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,13 @@ The eureka example requires 3 participants:
<pre><code>
cp ./eureka-server/build/libs/eureka-server-XXX-SNAPSHOT.war $TOMCAT_HOME/webapps/eureka.war
</pre></code>
5. 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.
5. Create (or add to) a setenv.sh in tomcat/bin/ with the following java opts (these are for the demo server to start up fast, see EurekaServerConfig.java for their documentation):
<pre>
JAVA_OPTS=" \
-Deureka.waitTimeInMsWhenSyncEmpty=0 \
-Deureka.numberRegistrySyncRetries=0"
</pre>
6. 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.

### Running the examples directly
1. Start up a local eureka server
Expand Down

0 comments on commit 890d1b3

Please sign in to comment.