Current time: 11-22-2019, 10:07 PM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Private Instance No Test Results
03-03-2015, 07:44 AM
Post: #1
Private Instance No Test Results
I've got a private instance running and have set up a EC2 test agent using ami-561cb13e. It's a windows 64 bit test agent. Everything is working but it's taking 10 mins to load and then it's saying that the test completed but there were no successful results.

So I added connectivity=LAN to the location like the documentation says and it doesn't help. Then I saw that on the Performance Calendar site Patrick said that it could take 10 mins if the EC2 instance isn't staying up so I added to the settings.ini:

; Use if the server will be auto-starting/stopping EC2 test agents
;ec2_key=<access key>
;ec2_secret=<secret>

; Should we automatically delete any EBS volumes marked as "available"?
; This can be used to prevent orphaned volumes but only if the account
; doesn't expect to keep offline EBS volumes.
;ec2_prune_volumes=1

; Start an EC2 instance for every X tests in the queue (up to the location max)
EC2.ScaleFactor=100

; Default location when using EC2 auto-scaling
EC2.default=us-east-1

; Per-location minimum and maximum EC2 instance counts.
; By default the minimum will be 0 and the maximum will be 1.
; This needs to be specified for every location where you want
; different settings (EC2.<location>.min/max).
EC2.us-east-1.min=0
EC2.us-east-1.max=1
ec2_locations=0




Here's the location file:

[locations]
1=us-east-1-group

[us-east-1-group]
1=us-east-1_wptdriver
label="US East (N. Virginia)"
lat=38.954980
lng=-77.447956
default=us-east-1_wptdriver

[us-east-1_wptdriver]
browser=Chrome,Firefox,Safari,IE 11
label="US East (N. Virginia)"
ami=ami-561cb13e
connectivity=LAN

I even tried a windows 32 bit system ami-c262d9ab and added this to the location file:

[locations]
1=us-east-1-group
2=virginia-group

[virginia-group]
1=virginia_wptdriver
label="Virginia"
lat=38.954980
lng=-77.447956
default=virginia_wptdriver

[virginia_wptdriver]
browser=Chrome,Firefox,Safari
label="Virginia"
ami=ami-c262d9ab

Here's what the test logs are saying:

2015/02/28 05:48:57 - Test Created
2015/02/28 05:48:58 - Starting test (initiated by tester i-8623567c)
2015/02/28 05:59:58 - Test has been running for 11 minutes and it has been 100 since the last update, forcing the full test to finish.


Am I missing anything or is there any other advice anyone can give me on setting this up? Thanks for taking the time to look through it all!
Find all posts by this user
Quote this message in a reply
03-04-2015, 01:21 AM
Post: #2
RE: Private Instance No Test Results
What does wptdriver.ini look like?

Andy

Using WebPageTest - http://usingwpt.com/
Visit this user's website Find all posts by this user
Quote this message in a reply
03-04-2015, 03:41 AM
Post: #3
RE: Private Instance No Test Results
Since I used an EC2 test agent I figured it would be already set up. I haven't looked at it though. Would it need to be configured?
Find all posts by this user
Quote this message in a reply
03-05-2015, 03:30 AM
Post: #4
RE: Private Instance No Test Results
Does the EC2 machine need to have wptdriver.ini configured before it works or will it work out of the box?
Find all posts by this user
Quote this message in a reply
03-09-2015, 01:57 AM
Post: #5
RE: Private Instance No Test Results
(03-05-2015 03:30 AM)mattshull Wrote:  Does the EC2 machine need to have wptdriver.ini configured before it works or will it work out of the box?

To me the issue sounds like the test agent isn't polling the server for work

If you check /install it should tell you if the agent is polling - you can also check the webserver logs for calls to getwork.php

As part of the launch configuration you'll need to set some User Data for the AMI that are used to configure wptdriver.ini

Code:
wpt_server - the web server where WebPagetest is running (required)
wpt_loc - The location name to use for wptdriver (optional - if not specified it will fall back to wpt_location or be built from the region - ec2-us-east for example)
wpt_location - The location name to use for URLBlast (optional - if not specified it will be built from the region and browser - ec2-us-east-IE8 for example).  wptdriver will append _wptdriver to this location ID if wpt_loc is not set.
wpt_key - secret key for the specified location (optional)
wpt_timeout - timeout setting for each test in seconds (optional, defaults to 60)

See bottom of here for more - https://sites.google.com/a/webpagetest.o...-instances

Andy

Using WebPageTest - http://usingwpt.com/
Visit this user's website Find all posts by this user
Quote this message in a reply
03-11-2015, 02:35 PM
Post: #6
RE: Private Instance No Test Results
/install showing that the agent is fine. The agents are updated. I have the private instance hosted on a Godaddy shared hosting if that makes a difference. How would I go about checking the webserver logs. I've tried to look at error logs but I'm not seeing any where they should be found.

(03-09-2015 01:57 AM)andydavies Wrote:  
(03-05-2015 03:30 AM)mattshull Wrote:  Does the EC2 machine need to have wptdriver.ini configured before it works or will it work out of the box?

To me the issue sounds like the test agent isn't polling the server for work

If you check /install it should tell you if the agent is polling - you can also check the webserver logs for calls to getwork.php

As part of the launch configuration you'll need to set some User Data for the AMI that are used to configure wptdriver.ini

Code:
wpt_server - the web server where WebPagetest is running (required)
wpt_loc - The location name to use for wptdriver (optional - if not specified it will fall back to wpt_location or be built from the region - ec2-us-east for example)
wpt_location - The location name to use for URLBlast (optional - if not specified it will be built from the region and browser - ec2-us-east-IE8 for example).  wptdriver will append _wptdriver to this location ID if wpt_loc is not set.
wpt_key - secret key for the specified location (optional)
wpt_timeout - timeout setting for each test in seconds (optional, defaults to 60)

See bottom of here for more - https://sites.google.com/a/webpagetest.o...-instances
Find all posts by this user
Quote this message in a reply
03-13-2015, 07:27 AM
Post: #7
RE: Private Instance No Test Results
It the web server logs you should see calls to getwork.php something like this

GET /work/getwork.php?shards=1&reboot=1&location=Local-WPTDriver&software=wpt&version$…

Also can you RDP into the agent while it's running and watch what happens when wptdriver tries to test a page (don't forget to restart instead of logging out otherwise you'll get blank screenshots)

Andy

Using WebPageTest - http://usingwpt.com/
Visit this user's website Find all posts by this user
Quote this message in a reply
03-13-2015, 07:38 AM
Post: #8
RE: Private Instance No Test Results
I'll definitely give it a try. Any trick to getting into these EC2's? What have you guys found is the best way to get in and look around?
Find all posts by this user
Quote this message in a reply
03-17-2015, 11:38 PM
Post: #9
RE: Private Instance No Test Results
I just SSH into the server

Andy

Using WebPageTest - http://usingwpt.com/
Visit this user's website Find all posts by this user
Quote this message in a reply
03-19-2015, 06:18 PM
Post: #10
RE: Private Instance No Test Results
I am trying to setup an EC2 instance and getting the empty location issue. I do see a single one when I use ?hidden=1 at the root of the web app. I used user_data to send in my IAM user and password as well as an API_KEY that I'm setting on all the us-east-1 servers in location.ini. I copied location.ini-EC2 and only have the us-east servers enabled. I'm trying to make a very small test server just to experiment.
The behavior I see is:
  • no locations, except for using hidden flag.
  • /install shows me several servers that display: No Agents Connected
  • http://cl.ly/image/3x0u2r3U1F1c two examples of a test run on the same url. The older one is from command line using node.js. For example, webservertest -s my.ip.xxx -k my-api-key test https://url and the second being one I ran through the web interface with ?hidden=1.
I'd love some assistance and can be reached on freenode as dmarr if anyone has time to help there.

Cheers!
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)