We're still on Tyk 1.9 for now
I'm aware that Tyk 1.9 has service discovery support, and we'll probably move to using that shortly. However, just wanted to confirm my suspicions about an issue we had recently with our current setup.
At the moment we're just setting the "Target URL" to be a consul-provided DNS address, and behind that consul address is actually two servers.
We're seeing that only one server is receiving the traffic that is sent through Tyk.
My current theories are:
a) Tyk is caching the results of the DNS entry - so it's not reresolving the DNS for each request. If this is the case, what circumstances cause the DNS to be reresolved?
b) the DNS address is always giving the same list in the same order meaning Tyk always forwards to the same node (I'm less convinced by this one, if I do ping $CONSUL_ADDRESS then it alternates between the two nodes as I'd expect.)