Commit 2f8ae888 by Spencer Gibb

use appGroupName as cluster rather than asgName

parent fe1cadfc
...@@ -61,7 +61,7 @@ ...@@ -61,7 +61,7 @@
## Netflix Turbine ## Netflix Turbine
`spring-platform-netflix-turbine$ java -jar target/spring-platform-netflix-turbine-1.0.0.BUILD-SNAPSHOT.war --InstanceDiscovery.impl=io.spring.platform.netflix.turbine.EurekaInstanceDiscovery --turbine.appConfig=samplefrontendservice --turbine.aggregator.clusterConfig=sampleApps --turbine.instanceUrlSuffix=/hystrix.stream --turbine.instanceInsertPort=true` `spring-platform-netflix-turbine$ java -jar target/spring-platform-netflix-turbine-1.0.0.BUILD-SNAPSHOT.war --InstanceDiscovery.impl=io.spring.platform.netflix.turbine.EurekaInstanceDiscovery --turbine.appConfig=samplefrontendservice --turbine.aggregator.clusterConfig=SAMPLEAPPS --turbine.instanceUrlSuffix=/hystrix.stream --turbine.instanceInsertPort=true`
## Sandbox Sample Backend ## Sandbox Sample Backend
......
...@@ -162,8 +162,9 @@ public class EurekaInstanceDiscovery implements InstanceDiscovery { ...@@ -162,8 +162,9 @@ public class EurekaInstanceDiscovery implements InstanceDiscovery {
* @return * @return
*/ */
protected String getClusterName(InstanceInfo iInfo) { protected String getClusterName(InstanceInfo iInfo) {
return iInfo.getASGName(); //TODO: make ASG configurable return iInfo.getASGName();
//TODO: why did this break things? return iInfo.getAppGroupName(); //AppGroupName is UPPERCASE from eureka
return iInfo.getAppGroupName();
} }
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment