WebPagetest Forums
Private Instance on Amazon EC2 - 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 on Amazon EC2 (/showthread.php?tid=505)



Private Instance on Amazon EC2 - assortmentofsorts - 01-23-2011 06:15 PM

Hello All,

I have setup 2 instances (1 m1.small: "IE8 - ami-8a6c9de3 : webpagetest-us-east/ie8-20110113.manifest.xml" and another running on ubuntu which has the webserver setup).

While creating the windows instance from the image I added the wpt_server userdata string and modified locations.ini:

[locations]
1=EC2_Virginia
default=EC2_Virginia

[EC2_Virginia]
1=ec2-us-east-IE8
label="Amazon EC2 East ( Virginia )"

[ec2-us-east-IE8]
browser=IE 8
latency=4
label="Amazon EC2 East ( Virginia )"
localDir=/var/www/work/jobs/ec2-us-east-IE8

It doesn't seem to work though. I get an error while trying out on the private webserver : "Error sending url to test machine. Please try back later " Is there anything else that I might have missed out on? How do I access the windows instance? Sorry but I have no experience with hosted windows instances. Should I point the URL in urlblast.ini to the IP of my webserver?

Thanks!


RE: Private Instance on Amazon EC2 - assortmentofsorts - 01-24-2011 01:10 AM

I got it working Smile Did a custom install and placed everything(client + webserver) on the Windows instance. Took me 2 hours but I got through. Thanks for this awesome software.


RE: Private Instance on Amazon EC2 - pmeenan - 01-24-2011 01:25 AM

Glad you got it working. FWIW, the error you got is usually a problem writing to the localDir location. More often than not it's a permissions issue where apache is running as a different user than the user account that was used to set up the directory and the apache user doesn't have write permissions.


RE: Private Instance on Amazon EC2 - assortmentofsorts - 01-24-2011 01:42 PM

(01-24-2011 01:25 AM)pmeenan Wrote:  Glad you got it working. FWIW, the error you got is usually a problem writing to the localDir location. More often than not it's a permissions issue where apache is running as a different user than the user account that was used to set up the directory and the apache user doesn't have write permissions.

True. Also, should I have the Remote desktop open all the time? I'm not able to test if I shut it down Sad


RE: Private Instance on Amazon EC2 - pmeenan - 01-24-2011 09:36 PM

No, set the desktop to automatically login (run "control userpasswords2" and uncheck the "password required") and then reboot after each time you RDP into it.

You'll also want to change your RDP sessions to use the /admin flag when connecting (mstsc /admin) so that you connect to the existing desktop session instead of starting a new one.


RE: Private Instance on Amazon EC2 - assortmentofsorts - 01-25-2011 06:59 PM

(01-24-2011 09:36 PM)pmeenan Wrote:  No, set the desktop to automatically login (run "control userpasswords2" and uncheck the "password required") and then reboot after each time you RDP into it.

You'll also want to change your RDP sessions to use the /admin flag when connecting (mstsc /admin) so that you connect to the existing desktop session instead of starting a new one.

Awesome! Thanks a lot Smile Works perfectly fine. Also, is it possible to retrieve JSON(for raw data) rather than CSV/XML while using the HTTP api?


RE: Private Instance on Amazon EC2 - pmeenan - 01-25-2011 10:23 PM

Some of the API methods support json (just not officially since it hasn't been completely tested). Which methods in particular are you interested in (and do you need JSON or JSONP)?

Thanks,

-Pat


RE: Private Instance on Amazon EC2 - assortmentofsorts - 01-26-2011 12:29 AM

(01-25-2011 10:23 PM)pmeenan Wrote:  Some of the API methods support json (just not officially since it hasn't been completely tested). Which methods in particular are you interested in (and do you need JSON or JSONP)?

Thanks,

-Pat
I would love if the detail result API could support JSON. I'm also facing another issue. Does the callback option work? I have never used php before(only the likes of ruby,python, js etc). Only thing I could figure out from runtest.php file is that there is a mention of callback parameter, but no implementation of it. How best do I implement it? Where in the file(or probably some other file...) should I add the code that POST's to my webserver? I'm using the latest ver of WebPageTest (v2.0)

Thanks Smile


RE: Private Instance on Amazon EC2 - pmeenan - 01-27-2011 01:40 AM

Hmm, yeah, the results don't support JSON yet Sad

It looks like the callback support isn't in the 2.0 release. I'll be packaging up a new release this weekend that will include it (along with all of the other changes since the 2.0 release).