ATC telemetry

Launch it

  • Some functions can be put in .bashrc.

    1
    2
    3
    
    alias enroll-curl="docker-compose exec enroller curl -L http://video.demo1.mycdn.ciab.test"
    alias monitor-crstates="docker-compose exec trafficmonitor curl -L http://trafficmonitor.infra.ciab.test/publish/CrStates | jq"
    alias build-ciab="make very-clean; make -j6; docker-compose build"
    
  • All of them should be run at infrastructure/cdn-in-a-box

    • Build: build-ciab
    • Start: docker-compose up -d
    • Stop: docker-compose down -v

Apache Traffic Server (ATS)

  • Dockerfile: cache/Dockerfile

  • Image name: cdn-in-a-box_mid, cdn-in-a-box_edge

  • Logs:

    1
    2
    3
    
    /var/log/ort.log
    /var/log/trafficserver/traffic.out
    /var/log/trafficserver/diags.log
    

Traffic Router

  • Dockerfile: traffic_router/Dockerfile

  • Image name: cdn-in-a-box_trafficrouter

  • Logs:

    1
    2
    3
    
    /opt/tomcat/logs/catalina.*
    /opt/traffic_router/var/log/access.log
    /opt/traffic_router/var/log/traffic_router.log
    

DNS (Bind9)

  • Dockerfile: dns/Dockerfile
  • Image name: cdn-in-a-box_dns
  • Logs: docker stdout

Traffic Monitor

  • Dockerfile: traffic_monitor/Dockerfile

  • Image name: trafficmonitor

  • Logs:

    1
    
    /opt/traffic_monitor/var/log/traffic_monitor.log
    

Traffic Ops - Perl

  • Dockerfile: traffic_ops/Dockerfile

  • Image name: trafficops-perl

  • Logs:

    1
    
    /var/log/traffic_ops/perl_access.log
    

Traffic Ops - Go

  • Dockerfile: traffic_ops/Dockerfile-go
  • Image name: trafficops-go
  • Logs: docker stdout

Traffic Stats building

  • Environment

    1
    2
    3
    
    add-apt-repository ppa:gophers/archive
    apt-get update
    apt-get install golang-1.11-go
    

export GOPATH="/root/trafficcontrol/traffic_stats:/root/trafficcontrol/traffic_stats/vendor" export GOPATH="/root/go:/root/go/vendor:/root/go/traffic_stats_vendor"

GOPATH=/root/go:/root/go/vendor:/root/go/traffic_stats_vendor PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/lib/go-1.11/bin:/root/go/bin

comments powered by Disqus