Skip to content

Commit

Permalink
Merge pull request #8 from qiangdavidliu/master
Browse files Browse the repository at this point in the history
Set eureka registration heartbeat property name to new form in DP2
  • Loading branch information
benjchristensen committed Nov 20, 2014
2 parents 99a3216 + ca18308 commit 6363646
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public static void main(String[] args) throws Exception {
/* configure read/write Eureka server */
System.setProperty("eureka2.eviction.allowedPercentage", "100"); // turn off eviction protection so during demos we don't hold on to hosts
System.setProperty("eureka2.eviction.timeoutMillis", "4000"); // set far lower than normal for demo/playground purposes
System.setProperty("eureka2.heartbeat.intervalMillis", "3000"); // set lower for demo/playground purposes
System.setProperty("eureka2.registration.heartbeat.intervalMillis", "3000"); // set lower for demo/playground purposes
WriteServerConfig.WriteServerConfigBuilder builder = new WriteServerConfig.WriteServerConfigBuilder();
builder.withReadServerPort(EUREKA_SERVER_READ_PORT).withWriteServerPort(EUREKA_SERVER_WRITE_PORT)
.withWriteClusterAddresses(new String[] { EUREKA_SERVER_HOST })
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public static void main(String... args) {
System.setProperty("reactivelab.eureka.server.host", StartEurekaServer.EUREKA_SERVER_HOST);
System.setProperty("reactivelab.eureka.server.read.port", String.valueOf(StartEurekaServer.EUREKA_SERVER_READ_PORT));
System.setProperty("reactivelab.eureka.server.write.port", String.valueOf(StartEurekaServer.EUREKA_SERVER_WRITE_PORT));
System.setProperty("eureka2.heartbeat.intervalMillis", "3000"); // set lower for demo/playground purposes
System.setProperty("eureka2.registration.heartbeat.intervalMillis", "3000"); // set lower for demo/playground purposes

/* Create a EurekaClient to be used by the services for registering for discovery */
ServerResolver.Server discoveryServer = new ServerResolver.Server(StartEurekaServer.EUREKA_SERVER_HOST, StartEurekaServer.EUREKA_SERVER_READ_PORT);
Expand Down

0 comments on commit 6363646

Please sign in to comment.