getServiceUrlsFromDNS
public static List<String> getServiceUrlsFromDNS(EmbeddedServer embeddedServer,
ApplicationConfiguration.InstanceConfiguration instanceConfiguration,
DiscoveryClientConfiguration discoveryClientConfiguration)
Get the list of all eureka service urls from DNS for the eureka client to
talk to. The client picks up the service url from its zone and then fails over to
other zones randomly. If there are multiple servers in the same zone, the client once
again picks one randomly. This way the traffic will be distributed in the case of failures.
- Parameters:
embeddedServer
- the embedded server
instanceConfiguration
- The instance configuration
discoveryClientConfiguration
- The discovery client configuration
- Returns:
- The list of all eureka service urls for the eureka client to talk to.