apache / trafficcontrol

Apache Traffic Control is an Open Source implementation of a Content Delivery Network
https://trafficcontrol.apache.org/
Apache License 2.0
1.09k stars 344 forks source link

Change how Traffic Router gets its connectivity to TrafficOps #2578

Open jhg03a opened 6 years ago

jhg03a commented 6 years ago

Currently we store credentials in the traffic router's traffic_ops.properties file. I'd like to see us add a new parameter to traffic_ops.properties for the TO API base URL similar to the rest of the TC components store that relationship.

Today, Traffic Router knows where to find TO by reading a field in the CRConfig generated by the url a user was using when performing a snapshot. That CRConfig is handed off to Traffic Router by way of Traffic Monitor. By storing the URL in the TR configs directly: you prevent connectivity issues derived from firewalls/dns-name differences at the client/TO relationship, reduce reliance on TM, and appear more consistent with the rest of Traffic Control.

elsloo commented 6 years ago

+1, and ideally this could be alternatively influenced via environment variables for use with things like Docker.