Closed danielmotaleite closed 6 years ago
Sorry about the noise, this is actually a problem with consul dns resolver, it needs this option:
"dns_config": [ {"enable_truncate": true} ],
So it returns more than 3 IPs. After adding the new config and restart consul, varnish now detects all the IPs for that dns
as of 256b1f01677793f4363318830d7e61ff4de2c0fc, with getdns support, you can now specify TCP transport with
<resolver_object>.add_transport(TCP);
<resolver_object>.set_transports();
I have a setup where i have multiple backends (10) and use consul to manage the available backend list. Today i noticed that only a few backends (usually 3) are used, but they are always changing, on every minute, as i set
TTL= 60s
A normal udp query return 3 entries:
but using TCP query, we get the list of 10 IPs:
So looks like the module is using UDP for the query... i think if there is support for TCP queries, it maybe would return the 10 IP list and use all the available backends