You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@trafficcontrol.apache.org by Sridhar Ananthakrishnan <sr...@infynect.com> on 2018/10/27 12:10:12 UTC

Need help for configuring - Traffic Control CDN

Hi, We have plan to use Apache Traffic Control for our CDN. But we are struggling in configuring traffic control. Currently we are using Traffic Control version 3.xx. 1) We need a detailed information about Traffic Router module. In your docs its telling CR as DNS Auth, here we are confusing whether T-Route has its own DNS server as in-built or we have to configure the one like BIND ? 2) In Traffic Ops, postinstall script asking for cdn domain name, so we have configured like "cdn.mydomain.com" for traffic router and provided it to Traffic Ops. Is it the correct way of doing this ? 3) trafficops.properties in T-Route its just asking for user name and password for traffic ops user, we configured it even-though T-Router log was shows us like  "No traffic ops hostname yet!". Traffic Router Log ============== [root@cdn ~]# tail -f /opt/traffic_router/var/log/traffic_router.log ERROR 2018-10-27T17:10:43.805 [pool-2-thread-1] com.comcast.cdn.traffic_control.traffic_router.core.secure.CertificatesClient - No traffic ops hostname yet! ERROR 2018-10-27T17:10:48.805 [pool-2-thread-1] com.comcast.cdn.traffic_control.traffic_router.core.secure.CertificatesClient - No traffic ops hostname yet! INFO  2018-10-27T17:10:49.688 [pool-3-thread-1] com.comcast.cdn.traffic_control.traffic_router.core.monitor.TrafficMonitorWatcher - Loading properties from /opt/traffic_router/conf/traffic_monitor.properties ERROR 2018-10-27T17:10:53.805 [pool-2-thread-1] com.comcast.cdn.traffic_control.traffic_router.core.secure.CertificatesClient - No traffic ops hostname yet! ERROR 2018-10-27T17:10:58.806 [pool-2-thread-1] com.comcast.cdn.traffic_control.traffic_router.core.secure.CertificatesClient - No traffic ops hostname yet! ERROR 2018-10-27T17:11:03.806 [pool-2-thread-1] com.comcast.cdn.traffic_control.traffic_router.core.secure.CertificatesClient - No traffic ops hostname yet! ERROR 2018-10-27T17:11:08.806 [pool-2-thread-1] com.comcast.cdn.traffic_control.traffic_router.core.secure.CertificatesClient - No traffic ops hostname yet! ERROR 2018-10-27T17:11:13.806 [pool-2-thread-1] com.comcast.cdn.traffic_control.traffic_router.core.secure.CertificatesClient - No traffic ops hostname yet! ERROR 2018-10-27T17:11:18.806 [pool-2-thread-1] com.comcast.cdn.traffic_control.traffic_router.core.secure.CertificatesClient - No traffic ops hostname yet! ERROR 2018-10-27T17:11:23.807 [pool-2-thread-1] com.comcast.cdn.traffic_control.traffic_router.core.secure.CertificatesClient - No traffic ops hostname yet! ERROR 2018-10-27T17:11:28.807 [pool-2-thread-1] com.comcast.cdn.traffic_control.traffic_router.core.secure.CertificatesClient - No traffic ops hostname yet! ERROR 2018-10-27T17:11:33.808 [pool-2-thread-1] com.comcast.cdn.traffic_control.traffic_router.core.secure.CertificatesClient - No traffic ops hostname yet! 4) CRconfig.json is a auto generated one by traffic ops or we have to configure it manually ? Kindly help us in the process of configuring traffic control. Thanks & Regards, Sridhar Ananthakrishnan

Re: Need help for configuring - Traffic Control CDN

Posted by Hank Beatty <hb...@apache.org>.
Hello,

If you are still working on this... The "peers.polling.interval" must be 
configured in Traffic Portal under parameters.

Name: peers.polling.interval
Config File: rascal-config.txt
Value: 5000
Secure: false

-Hank

On 10/27/2018 10:42 AM, Sridhar Ananthakrishnan wrote:
> 
> 
> 
> ---- On Sat, 27 Oct 2018 17:53:19 +0530 *Eric Friedrich (efriedri) 
> <ef...@cisco.com>* wrote ----
> 
> 
> 
>         On Oct 27, 2018, at 8:10 AM, Sridhar Ananthakrishnan
>         <sridhar.ananthakrishnan@infynect.com
>         <ma...@infynect.com>> wrote:
> 
> 
>         Hi,
> 
>         We have plan to use Apache Traffic Control for our CDN. But we
>         are struggling in configuring traffic control.
> 
>         Currently we are using Traffic Control version 3.xx.
> 
>         1) We need a detailed information about Traffic Router module.
>         In your docs its telling CR as DNS Auth, here we are confusing
>         whether T-Route has its own DNS server as in-built or we have to
>         configure the one like BIND ?
> 
>     EF> Traffic Router contains an DNS Server. You should configure your
>     existing DNS servers to delegate (with at minimum an NS record) the
>     CDN domain name (cdn.mydomain.com <http://cdn.mydomain.com>) to the
>     Traffic Router.
> 
> 
>         2) In Traffic Ops, postinstall script asking for cdn domain
>         name, so we have configured like "cdn.mydomain.com
>         <http://cdn.mydomain.com>" for traffic router and provided it to
>         Traffic Ops. Is it the correct way of doing this ?
> 
>     EF> Yes, all delivery services will be located under that CDN domain
>     name -tr.live.cdn.mydomain.com <http://tr.live.cdn.mydomain.com> for
>     example
> 
> 
>         3) trafficops.properties in T-Route its just asking for user
>         name and password for traffic ops user, we configured it
>         even-though T-Router log was shows us like  "No traffic ops
>         hostname yet!”.
> 
>     EF> Can you confirm that your Traffic Monitor has the CRConfig file?
>     TR gets the traffic ops hostname by looking at the IP/hostname in a
>     copy of the CRConfig.json file it retrieves from Traffic Monitor.
>     Also, you have hopefully set traffic_monitor.bootstrap.hosts in
>     traffic_monitor.properties to the IP address/hostname of at least
>     one of your Traffic Monitors?
> 
> 
> *      SA> No it don't have CRconfig**
> *
> *
> *
> *      Traffic Monitor Log**
> *
> *       ===============**
> *
> ***[root@mon ~]# tail -f /opt/traffic_monitor/var/log/traffic_monitor.log **
> *
> *ERROR: asm_amd64.s:2337: 2018-10-27T20:08:46.556801472+05:30: monitor 
> config error getting polling intervals, can't poll: Traffic Ops Monitor 
> config missing 'peers.polling.interval', not setting config changes.**
> *
> *ERROR: asm_amd64.s:2337: 2018-10-27T20:08:51.557046703+05:30: monitor 
> config error getting polling intervals, can't poll: Traffic Ops Monitor 
> config missing 'peers.polling.interval', not setting config changes.**
> *
> *ERROR: asm_amd64.s:2337: 2018-10-27T20:08:56.564114667+05:30: monitor 
> config error getting polling intervals, can't poll: Traffic Ops Monitor 
> config missing 'peers.polling.interval', not setting config changes.**
> *
> *ERROR: asm_amd64.s:2337: 2018-10-27T20:09:01.553953419+05:30: monitor 
> config error getting polling intervals, can't poll: Traffic Ops Monitor 
> config missing 'peers.polling.interval', not setting config changes.**
> *
> *ERROR: asm_amd64.s:2337: 2018-10-27T20:09:06.563824014+05:30: monitor 
> config error getting polling intervals, can't poll: Traffic Ops Monitor 
> config missing 'peers.polling.interval', not setting config changes.*
> 
> 
> 
> 
> 
>         Traffic Router Log
>         ==============
>         [root@cdn ~]# tail -f /opt/traffic_router/var/log/traffic_router.log
>         ERROR 2018-10-27T17:10:43.805 [pool-2-thread-1]
>         com.comcast.cdn.traffic_control.traffic_router.core.secure.CertificatesClient
>         - No traffic ops hostname yet!
>         ERROR 2018-10-27T17:10:48.805 [pool-2-thread-1]
>         com.comcast.cdn.traffic_control.traffic_router.core.secure.CertificatesClient
>         - No traffic ops hostname yet!
>         INFO  2018-10-27T17:10:49.688 [pool-3-thread-1]
>         com.comcast.cdn.traffic_control.traffic_router.core.monitor.TrafficMonitorWatcher
>         - Loading properties from
>         /opt/traffic_router/conf/traffic_monitor.properties
>         ERROR 2018-10-27T17:10:53.805 [pool-2-thread-1]
>         com.comcast.cdn.traffic_control.traffic_router.core.secure.CertificatesClient
>         - No traffic ops hostname yet!
>         ERROR 2018-10-27T17:10:58.806 [pool-2-thread-1]
>         com.comcast.cdn.traffic_control.traffic_router.core.secure.CertificatesClient
>         - No traffic ops hostname yet!
>         ERROR 2018-10-27T17:11:03.806 [pool-2-thread-1]
>         com.comcast.cdn.traffic_control.traffic_router.core.secure.CertificatesClient
>         - No traffic ops hostname yet!
>         ERROR 2018-10-27T17:11:08.806 [pool-2-thread-1]
>         com.comcast.cdn.traffic_control.traffic_router.core.secure.CertificatesClient
>         - No traffic ops hostname yet!
>         ERROR 2018-10-27T17:11:13.806 [pool-2-thread-1]
>         com.comcast.cdn.traffic_control.traffic_router.core.secure.CertificatesClient
>         - No traffic ops hostname yet!
>         ERROR 2018-10-27T17:11:18.806 [pool-2-thread-1]
>         com.comcast.cdn.traffic_control.traffic_router.core.secure.CertificatesClient
>         - No traffic ops hostname yet!
>         ERROR 2018-10-27T17:11:23.807 [pool-2-thread-1]
>         com.comcast.cdn.traffic_control.traffic_router.core.secure.CertificatesClient
>         - No traffic ops hostname yet!
>         ERROR 2018-10-27T17:11:28.807 [pool-2-thread-1]
>         com.comcast.cdn.traffic_control.traffic_router.core.secure.CertificatesClient
>         - No traffic ops hostname yet!
>         ERROR 2018-10-27T17:11:33.808 [pool-2-thread-1]
>         com.comcast.cdn.traffic_control.traffic_router.core.secure.CertificatesClient
>         - No traffic ops hostname yet!
> 
>         4) CRconfig.json is a auto generated one by traffic ops or we
>         have to configure it manually ?
> 
>     EF> You must manually click the “Snapshot CRConfig” button in
>     Traffic Portal to generate the CRConfig. You must also run a
>     snapshot every time you make a change to the configuration that must
>     be pushed to the TMs/TRs. When you are just getting started with
>     Traffic Control, I would recommend snapshotting as part of
>     activating any change.
> 
> 
> 
>         Kindly help us in the process of configuring traffic control.
> 
>     Welcome to the community! We’re excited to see you get this up and
>     running.
> 
>     —Eric
> 
> 
> 
>         Thanks & Regards,
>         Sridhar Ananthakrishnan
> 
> 
> 

Re: Need help for configuring - Traffic Control CDN

Posted by Sridhar Ananthakrishnan <sr...@infynect.com>.
---- On Sat, 27 Oct 2018 17:53:19 +0530 Eric Friedrich (efriedri) <ef...@cisco.com> wrote ---- On Oct 27, 2018, at 8:10 AM, Sridhar Ananthakrishnan <sr...@infynect.com> wrote: Hi, We have plan to use Apache Traffic Control for our CDN. But we are struggling in configuring traffic control. Currently we are using Traffic Control version 3.xx. 1) We need a detailed information about Traffic Router module. In your docs its telling CR as DNS Auth, here we are confusing whether T-Route has its own DNS server as in-built or we have to configure the one like BIND ? EF> Traffic Router contains an DNS Server. You should configure your existing DNS servers to delegate (with at minimum an NS record) the CDN domain name (cdn.mydomain.com) to the Traffic Router.  2) In Traffic Ops, postinstall script asking for cdn domain name, so we have configured like "cdn.mydomain.com" for traffic router and provided it to Traffic Ops. Is it the correct way of doing this ? EF> Yes, all delivery services will be located under that CDN domain name - tr.live.cdn.mydomain.com for example 3) trafficops.properties in T-Route its just asking for user name and password for traffic ops user, we configured it even-though T-Router log was shows us like  "No traffic ops hostname yet!”. EF> Can you confirm that your Traffic Monitor has the CRConfig file? TR gets the traffic ops hostname by looking at the IP/hostname in a copy of the CRConfig.json file it retrieves from Traffic Monitor. Also, you have hopefully set traffic_monitor.bootstrap.hosts in traffic_monitor.properties to the IP address/hostname of at least one of your Traffic Monitors?              SA> No it don't have CRconfig       Traffic Monitor Log        ===============       [root@mon ~]# tail -f /opt/traffic_monitor/var/log/traffic_monitor.log ERROR: asm_amd64.s:2337: 2018-10-27T20:08:46.556801472+05:30: monitor config error getting polling intervals, can't poll: Traffic Ops Monitor config missing 'peers.polling.interval', not setting config changes. ERROR: asm_amd64.s:2337: 2018-10-27T20:08:51.557046703+05:30: monitor config error getting polling intervals, can't poll: Traffic Ops Monitor config missing 'peers.polling.interval', not setting config changes. ERROR: asm_amd64.s:2337: 2018-10-27T20:08:56.564114667+05:30: monitor config error getting polling intervals, can't poll: Traffic Ops Monitor config missing 'peers.polling.interval', not setting config changes. ERROR: asm_amd64.s:2337: 2018-10-27T20:09:01.553953419+05:30: monitor config error getting polling intervals, can't poll: Traffic Ops Monitor config missing 'peers.polling.interval', not setting config changes. ERROR: asm_amd64.s:2337: 2018-10-27T20:09:06.563824014+05:30: monitor config error getting polling intervals, can't poll: Traffic Ops Monitor config missing 'peers.polling.interval', not setting config changes. Traffic Router Log ============== [root@cdn ~]# tail -f /opt/traffic_router/var/log/traffic_router.log ERROR 2018-10-27T17:10:43.805 [pool-2-thread-1] com.comcast.cdn.traffic_control.traffic_router.core.secure.CertificatesClient - No traffic ops hostname yet! ERROR 2018-10-27T17:10:48.805 [pool-2-thread-1] com.comcast.cdn.traffic_control.traffic_router.core.secure.CertificatesClient - No traffic ops hostname yet! INFO  2018-10-27T17:10:49.688 [pool-3-thread-1] com.comcast.cdn.traffic_control.traffic_router.core.monitor.TrafficMonitorWatcher - Loading properties from /opt/traffic_router/conf/traffic_monitor.properties ERROR 2018-10-27T17:10:53.805 [pool-2-thread-1] com.comcast.cdn.traffic_control.traffic_router.core.secure.CertificatesClient - No traffic ops hostname yet! ERROR 2018-10-27T17:10:58.806 [pool-2-thread-1] com.comcast.cdn.traffic_control.traffic_router.core.secure.CertificatesClient - No traffic ops hostname yet! ERROR 2018-10-27T17:11:03.806 [pool-2-thread-1] com.comcast.cdn.traffic_control.traffic_router.core.secure.CertificatesClient - No traffic ops hostname yet! ERROR 2018-10-27T17:11:08.806 [pool-2-thread-1] com.comcast.cdn.traffic_control.traffic_router.core.secure.CertificatesClient - No traffic ops hostname yet! ERROR 2018-10-27T17:11:13.806 [pool-2-thread-1] com.comcast.cdn.traffic_control.traffic_router.core.secure.CertificatesClient - No traffic ops hostname yet! ERROR 2018-10-27T17:11:18.806 [pool-2-thread-1] com.comcast.cdn.traffic_control.traffic_router.core.secure.CertificatesClient - No traffic ops hostname yet! ERROR 2018-10-27T17:11:23.807 [pool-2-thread-1] com.comcast.cdn.traffic_control.traffic_router.core.secure.CertificatesClient - No traffic ops hostname yet! ERROR 2018-10-27T17:11:28.807 [pool-2-thread-1] com.comcast.cdn.traffic_control.traffic_router.core.secure.CertificatesClient - No traffic ops hostname yet! ERROR 2018-10-27T17:11:33.808 [pool-2-thread-1] com.comcast.cdn.traffic_control.traffic_router.core.secure.CertificatesClient - No traffic ops hostname yet! 4) CRconfig.json is a auto generated one by traffic ops or we have to configure it manually ? EF> You must manually click the “Snapshot CRConfig” button in Traffic Portal to generate the CRConfig. You must also run a snapshot every time you make a change to the configuration that must be pushed to the TMs/TRs. When you are just getting started with Traffic Control, I would recommend snapshotting as part of activating any change. Kindly help us in the process of configuring traffic control. Welcome to the community! We’re excited to see you get this up and running.  —Eric Thanks & Regards, Sridhar Ananthakrishnan

Re: Need help for configuring - Traffic Control CDN

Posted by "Eric Friedrich (efriedri)" <ef...@cisco.com>.

On Oct 27, 2018, at 8:10 AM, Sridhar Ananthakrishnan <sr...@infynect.com>> wrote:


Hi,

We have plan to use Apache Traffic Control for our CDN. But we are struggling in configuring traffic control.

Currently we are using Traffic Control version 3.xx.

1) We need a detailed information about Traffic Router module. In your docs its telling CR as DNS Auth, here we are confusing whether T-Route has its own DNS server as in-built or we have to configure the one like BIND ?
EF> Traffic Router contains an DNS Server. You should configure your existing DNS servers to delegate (with at minimum an NS record) the CDN domain name (cdn.mydomain.com<http://cdn.mydomain.com>) to the Traffic Router.

2) In Traffic Ops, postinstall script asking for cdn domain name, so we have configured like "cdn.mydomain.com<http://cdn.mydomain.com>" for traffic router and provided it to Traffic Ops. Is it the correct way of doing this ?
EF> Yes, all delivery services will be located under that CDN domain name - tr.live.cdn.mydomain.com<http://tr.live.cdn.mydomain.com> for example


3) trafficops.properties in T-Route its just asking for user name and password for traffic ops user, we configured it even-though T-Router log was shows us like  "No traffic ops hostname yet!”.
EF> Can you confirm that your Traffic Monitor has the CRConfig file? TR gets the traffic ops hostname by looking at the IP/hostname in a copy of the CRConfig.json file it retrieves from Traffic Monitor. Also, you have hopefully set traffic_monitor.bootstrap.hosts in traffic_monitor.properties to the IP address/hostname of at least one of your Traffic Monitors?




Traffic Router Log
==============
[root@cdn ~]# tail -f /opt/traffic_router/var/log/traffic_router.log
ERROR 2018-10-27T17:10:43.805 [pool-2-thread-1] com.comcast.cdn.traffic_control.traffic_router.core.secure.CertificatesClient - No traffic ops hostname yet!
ERROR 2018-10-27T17:10:48.805 [pool-2-thread-1] com.comcast.cdn.traffic_control.traffic_router.core.secure.CertificatesClient - No traffic ops hostname yet!
INFO  2018-10-27T17:10:49.688 [pool-3-thread-1] com.comcast.cdn.traffic_control.traffic_router.core.monitor.TrafficMonitorWatcher - Loading properties from /opt/traffic_router/conf/traffic_monitor.properties
ERROR 2018-10-27T17:10:53.805 [pool-2-thread-1] com.comcast.cdn.traffic_control.traffic_router.core.secure.CertificatesClient - No traffic ops hostname yet!
ERROR 2018-10-27T17:10:58.806 [pool-2-thread-1] com.comcast.cdn.traffic_control.traffic_router.core.secure.CertificatesClient - No traffic ops hostname yet!
ERROR 2018-10-27T17:11:03.806 [pool-2-thread-1] com.comcast.cdn.traffic_control.traffic_router.core.secure.CertificatesClient - No traffic ops hostname yet!
ERROR 2018-10-27T17:11:08.806 [pool-2-thread-1] com.comcast.cdn.traffic_control.traffic_router.core.secure.CertificatesClient - No traffic ops hostname yet!
ERROR 2018-10-27T17:11:13.806 [pool-2-thread-1] com.comcast.cdn.traffic_control.traffic_router.core.secure.CertificatesClient - No traffic ops hostname yet!
ERROR 2018-10-27T17:11:18.806 [pool-2-thread-1] com.comcast.cdn.traffic_control.traffic_router.core.secure.CertificatesClient - No traffic ops hostname yet!
ERROR 2018-10-27T17:11:23.807 [pool-2-thread-1] com.comcast.cdn.traffic_control.traffic_router.core.secure.CertificatesClient - No traffic ops hostname yet!
ERROR 2018-10-27T17:11:28.807 [pool-2-thread-1] com.comcast.cdn.traffic_control.traffic_router.core.secure.CertificatesClient - No traffic ops hostname yet!
ERROR 2018-10-27T17:11:33.808 [pool-2-thread-1] com.comcast.cdn.traffic_control.traffic_router.core.secure.CertificatesClient - No traffic ops hostname yet!

4) CRconfig.json is a auto generated one by traffic ops or we have to configure it manually ?
EF> You must manually click the “Snapshot CRConfig” button in Traffic Portal to generate the CRConfig. You must also run a snapshot every time you make a change to the configuration that must be pushed to the TMs/TRs. When you are just getting started with Traffic Control, I would recommend snapshotting as part of activating any change.



Kindly help us in the process of configuring traffic control.
Welcome to the community! We’re excited to see you get this up and running.

—Eric



Thanks & Regards,
Sridhar Ananthakrishnan