I have nomad(v.0.3.2) deploying 5 tomcat containers than span across 2 client nomad nodes. The services get started and registered properly in consul(0.6.4) but for reasons I don't understand, a DNS SRV query only shows 3 of the 5 SRV records in the 'answer' section. Although the round-robin load-balancing seems shuffle through the services as expected, it seems no matter how many services get started/registered, only 3 show up in the answer section of a 'dig' command. The 'additional' section shows 5 A records corresponding to to the 5 services.
Has anyone else seen this behavior? Perhaps this is expected??
$ dig @10.190.212.4 -p 8600 tomcat.service.consul SRV
; <<>> DiG 9.10.2-P4 <<>> @10.190.212.4 -p 8600 tomcat.service.consul SRV
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 30190
;; flags: qr aa rd; QUERY: 1, ANSWER: 3, AUTHORITY: 0, ADDITIONAL: 5
;; WARNING: recursion requested but not available
;; QUESTION SECTION:
;tomcat.service.consul. IN SRV
;; ANSWER SECTION:
tomcat.service.consul. 0 IN SRV 1 1 23331 nomad4.node.rackspace-dfw.consul.
tomcat.service.consul. 0 IN SRV 1 1 33373 nomad4.node.rackspace-dfw.consul.
tomcat.service.consul. 0 IN SRV 1 1 59651 nomad4.node.rackspace-dfw.consul.
;; ADDITIONAL SECTION:
nomad4.node.rackspace-dfw.consul. 0 IN A 10.190.212.9
nomad4.node.rackspace-dfw.consul. 0 IN A 10.190.212.9
nomad4.node.rackspace-dfw.consul. 0 IN A 10.190.212.9
nomad5.node.rackspace-dfw.consul. 0 IN A 10.190.212.7
nomad5.node.rackspace-dfw.consul. 0 IN A 10.190.212.7
;; Query time: 38 msec
;; SERVER: 10.190.212.4#8600(10.190.212.4)
;; WHEN: Fri Apr 29 14:25:33 Mountain Daylight Time 2016
;; MSG SIZE rcvd: 498