WebPagetest Forums
Private Instance Woes - Printable Version

+- WebPagetest Forums (https://www.webpagetest.org/forums)
+-- Forum: WebPagetest (/forumdisplay.php?fid=7)
+--- Forum: Private Instances (/forumdisplay.php?fid=12)
+--- Thread: Private Instance Woes (/showthread.php?tid=782)



Private Instance Woes - smishkind - 05-27-2011 01:39 AM

Hello,

I am trying to get pagetest running on a private instance. I have created a webserver using a base CentOS image and have installed necessary software (apache, php5.2.16, gd, etc.).

For the test agents, I have utilized the Amazon AMI Image, using the following userdata strings when spun up:

wpt_server=wpt.domain.com wpt_location=Test_loc wpt_browser="IE 8"

Here is a copy of my locations.ini file on the webserver:


[locations]
1=Test_loc
default=Test_loc

[Test_loc]
1=Test
default=Test
label=Test Location

[Test]
browser=IE 8
;browserExe=pagetest.exe
latency=0
label="Test Location"
;key=TestKey123


Here is a copy of the urlblast.ini file on the test agent server:


[Configuration]

Test Type=4
Startup Delay=10
Log File=c:\pagetest\log
Thread Count=1
Timeout=60
Reboot Interval=720
Clear Cache Interval=0
browser=IE 8
debug=1
localDir=/wpt.domain.com/work/

; we're running in EC2 so get the config dynamically from user data
ec2=1


Here is what I get from the urlblast log:

2011/05/26 15:35:24 -1 8 1 20 0 Debug Work request response was empty
2011/05/26 15:35:35 -1 8 1 20 0 Debug Requesting work from wpt.domain.com/work/getwork.phpvideo=1&location=Test_loc&k
ey=&ec2=i-ff9f4591&pc=PAGETEST-IE8
2011/05/26 15:35:35 -1 8 1 20 0 Debug Job of t
ype 'text/plain; charset=UTF-8' received
2011/05/26 15:35:35 -1 8 1 20 0 Debug Work request response was empty

Any help would be greatly appreciated!

Thanks,
Scott


RE: Private Instance Woes - pmeenan - 05-27-2011 01:45 AM

You actually don't need to modify the urlblast.ini on the agent, the settings will be pulled from the user data.

The problem is with the location you are specifying to the agent. You should use "Test" instead of "Test_loc". Test_loc is a higher-level that can include multiple different configurations (different browsers, etc). The actual location for a given agent is the leaf location (Test in this case).

Thanks,

-Pat


RE: Private Instance Woes - smishkind - 05-27-2011 02:04 AM

(05-27-2011 01:45 AM)pmeenan Wrote:  You actually don't need to modify the urlblast.ini on the agent, the settings will be pulled from the user data.

The problem is with the location you are specifying to the agent. You should use "Test" instead of "Test_loc". Test_loc is a higher-level that can include multiple different configurations (different browsers, etc). The actual location for a given agent is the leaf location (Test in this case).

Thanks,

-Pat

Thank you, but excuse my ignorance....what exactly do I need to change in the locations.ini file? :-)

Scott


RE: Private Instance Woes - pmeenan - 05-27-2011 05:46 AM

You need to change your user data string to be:

wpt_server=wpt.domain.com wpt_location=Test wpt_reboot_interval=0

(reboot interval because the AMI's seem to be more stable if you don't reboot them but it's unrelated). Or, if you prefer to keep the same agent instance running you can change the locations.ini to look like this:

[locations]
1=Test_location
default=Test_location

[Test_location]
1=Test_loc
default=Test_loc
label=Test Location

[Test_loc]
browser=IE 8
;browserExe=pagetest.exe
latency=0
label="Test Location"
;key=TestKey123


RE: Private Instance Woes - smishkind - 05-27-2011 05:49 AM

Thank you. I have gotten it working (I just spun up a new image with the change to userdata). I'll play with the config file a bit later, I'm now working on getting the video to go! :-)

Thank you!

Scott