Configure Delivery Service Steering

  1. Create two target delivery services in Traffic Ops. They must both be HTTP delivery services that are part of the same CDN.
../../_images/steering01.png
  1. Create a delivery service with type STEERING in Traffic Ops.
../../_images/steering02.png
  1. Click the ‘Manage Steering Assignments’ button on the delivery service screen to assign targets.
../../_images/steering03.png
  1. Create a user with the role of Steering.
../../_images/steering04.png
  1. As the steering user, assign weights or orders to target delivery services. Assignments must either have a value for weight or order, but not both. The value of weight must be a positive integer, while the value of order can be any integer. This will require logging in to Traffic Ops first via http://to.kabletown.net/api/1.2/user/login and storing the mojolicious cookie.

    Sample cURL: curl -H "Cookie: mojolicious=xxxyyy" -XPUT "https://to.kabletown.net/internal/api/1.2/steering/steering-ds" -d @/tmp/steering.json

    Sample JSON body:

{
 "targets": [
  {
    "weight": "1000",
    "deliveryService": "target-deliveryservice-1"
  },
  {
    "weight": "9000",
    "deliveryService": "target-deliveryservice-2"
  }
  {
    "order": -1,
    "deliveryService": "target-deliveryservice-3"
  }
  {
    "order": 3,
    "deliveryService": "target-deliveryservice-4"
  }
 ]
}
  1. If desired, the steering user can create filters for the target delivery services.

    Sample cURL: curl -H "Cookie: mojolicious=xxxyyy" -XPUT "https://to.kabletown.net/internal/api/1.2/steering/steering-ds" -d @/tmp/steering.json

    Sample JSON body:

{
 "filters": [
  {
    "pattern": ".*\\gototarget1\\..*",
    "deliveryService": "target-deliveryservice-1"
  }
 ],
 "targets": [
  {
    "weight": "1000",
    "deliveryService": "target-deliveryservice-1"
  },
  {
    "weight": "9000",
    "deliveryService": "target-deliveryservice-2"
  }
  {
    "order": -1,
    "deliveryService": "target-deliveryservice-3"
  }
  {
    "order": 3,
    "deliveryService": "target-deliveryservice-4"
  }
 ]
}
  1. Any requests to Traffic Router for the steering delivery service should now be routed to target delivery services based on configured weight or order. Example: curl -Lvs http://foo.steering-ds.cdn.kabletown.net/bar