Hello,
As per our use case we very frequently switch traffic between 2 DC,
I’m trying to curl /admin/delgator.json to fetch me list of ips linkerd is routing the traffic to,
After we flip dtabs to other DC - curl output is still returning me the old list of ips.
When I restart Linkerd service, it gets me correct IPs.
Am I missing anything here, Any suggesations ?
Could you say more about your setup, environment, config, and linkerd version? IPs found in the delegator api are the same ones used by linkerd to route traffic, so old ips returned by the api mean that linkerd hasn’t observed the changes you’re making.
I can see the actual traffic is routed to correct IPs after we Flip consul to other DC.
but the delegator.json doest not return correct IPs . I use admin/delegator.json only for validation to check correct set of IPs are returned, as I understand it is only read only output. ??
Below is the my Linkerd Config, running this on VMs
(1:35)$ curl http://localhost:4180/api/1/bind/abc?path=/svc
{“type”:“leaf”,“bound”:{“addr”:{“type”:“bound”,“addrs”:[{“ip”:"< Correct Green Point IPs>",“port”:8005,“meta”:{}},{“ip”:"< Correct Green Point IPs >",“port”:8005,“meta”:{}}],“meta”:{}},“id”:"/#/io.l5d.consul/ttce-stage/green-abc",“path”:"/"}}
Yep you are correct delegator.json output is read only. Nice to see that namerd is picking up the correct IPs.
If traffic is being correctly routed through linkerd to the green ips, and it’s only the delegator that’s not working, it sounds like an admin ui/delegator bug. Does the namerd delegator endpoint reflect the changes?