Testing Http Origin Fetch - Juniper MEDIA FLOW CONTROLLER 2.0.4 - ADMINISTRATOR S GUIDE AND CLI Administrator's Manual

Administrator’s guide and cli command reference
Table of Contents

Advertisement

Media Flow Controller Administrator's Guide

Testing HTTP Origin Fetch

This test is illustrated in
Client and origin (172.16.254.1 / sv05)
UNIX machine with wget
Files (text.txt) in testresults/maria directory
1
wget http://172.16.254.1/testresults/maria/text.txt
Client request for local content, content retrieved
wget http://172.16.254.2/testresults/maria/text.txt
2
Client request via MFD for origin content
wget http://172.16.254.2/testresults/maria/text.txt
3
Client request via MFD for same content
wget http://172.16.254.2/testresults/maria/text.txt
4
Client request via MFD for same content
Figure 69
wget Test for Media Flow Controller HTTP Delivery and Cache
Prepare for the test by doing the following, then follow the given steps as illustrated above.
Login to the client/origin UNIX machine and go to a test directory; for example,
testresults/joe; create a simple text file, test.txt, and add some content to give the file
some weight.
Login to the Media Flow Controller and configure a namespace, testHttp; specify a uri-
prefix with a domain, delivery protocol, and origin server, and make the namespace
active. Example:
test-vos (config) # namespace testHttp
test-vos (config namespace testHttp) # delivery protocol http
test-vos (config namespace testHttp) # domain any
test-vos (config namespace testHttp) # match uri /testresults/joe
test-vos (config namespace testHttp) # origin-server http sv05
test-vos (config namespace testHttp) # status active
test-vos (config namespace testHttp) # exit
1. From the client/origin machine, use wget to fetch the file locally (verify Wget). Example:
[joe@sv05 joe]$ wget http://172.16.254.1/testresults/joe/test.txt
--13:12:58--
Connecting to 172.16.254.1:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 165 [text/plain]
Saving to: `test.txt.2'
100%[=======================================>] 165
13:12:58 (15.7 MB/s) - `test.txt.2' saved [165/165]
2. Now use wget to fetch the file via Media Flow Controller. When Media Flow Controller
receives the first request for that namespace, it begins logging it. Media Flow Controller
receives the request, matches the uri-prefix to the namespace, and uses that
Figure
69.
UNIX machine
with wget
switch, preconfigured
http://172.16.254.1/testresults/joe/test.txt
Testing Media Flow Controller Delivery Functions
Media Flow Controller Troubleshooting
MFD (172.16.254.2 / test-vos)
Namespace:
Media
name: testHttp
Flow
delivery protocol: http
Controller
domain: any
match URL: /testresults/maria
origin-server: http sv05
status: active
show counters
2
Content retrieved from Origin
Cached in MFD RAM
show counters
3
Content retrieved from MFD RAM
Force content from RAM to disk:
service restart mod-delivery
show counters
4
Content retrieved from MFD disk
--.-K/s
in 0s
277

Advertisement

Table of Contents
loading

This manual is also suitable for:

Media flow controller 2.0.4

Table of Contents