This quick reference provides a summary of the available options.
To help explain, we’ll use this imaginary application:
- The Service is in the following hierarchy:
outergroup > Group:
subgroup > Service Name:
- Port Name:
- Load Balanced
- Running on a Virtual Network
- Running on the Marathon framework (if unsure, it’s probably this one)
- If you are running another framework, then replace any instance of
marathon with the name of your framework.
Service Discovery Options
Use one of these options to find the DNS name for your task.
You should choose the first option that satisfies your requirements:
- This is only available when the service is load balanced.
:555 is not a part of the DNS address, but is there to show that this address and port is load balanced as a pair rather than individually.
- This is always available and should be used when the service is not running on a virtual network.
- This is always available and should be used to address an application that is transitioning on or off a virtual network.
- This is always available, and is equivalent for the most part to the
agentip. However it is less specific and less performant than the
agentip and thus use is discouraged.
Other discovery option(s):
- This is not a DNS A record but rather a DNS SRV record. This is only available when the port has a name. SRV records are a mapping from a
name to an “Address + Port” pair.