java - Spring Cloud Eureka: changing heartbeat and discovery path -


i unable conjure property change heartbeat , discovery context eureka server configbeans located in github: https://github.com/spring-cloud/spring-cloud-netflix/tree/master/spring-cloud-netflix-core/src/main/java/org/springframework/cloud/netflix/eureka

seems i'm able set context path within client, not server. example, client configured as:

eureka:   instance:     statuspageurlpath: /admin/info     healthcheckurlpath: /admin/health     homepageurlpath: /admin/dashboard   client:     registerwitheureka: false     fetchregistry: false     eurekaserverurlcontext: /admin     serviceurl:       defaultzone: http://localhost:8761/admin/eureka/   server:     waittimeinmswhensyncempty: 0   dashboard:      path: /admin/dashboard  

there seems nothing in eurekaserverconfigbean me modify on server change context /admin. when run clients, get:

2015-07-23 12:18:32.069 error 18894 --- [pool-7-thread-1] com.netflix.discovery.discoveryclient    : can't response http://localhost:8761/admin/eureka/apps/ can't contact eureka nodes - possibly security group issue? 

so @spencergibb clued me test required following config within eureka server application.yml:

server.contextpath: /admin 

and did it. overthinking eureka.server setting.


Comments

Popular posts from this blog

javascript - Karma not able to start PhantomJS on Windows - Error: spawn UNKNOWN -

Nuget pack csproj using nuspec -

c# - Display ASPX Popup control in RowDeleteing Event (ASPX Gridview) -