WebPagetest Forums
How to use the ec2.ini file to autoscale webpagetest. - Printable Version

+- WebPagetest Forums (https://www.webpagetest.org/forums)
+-- Forum: WebPagetest (/forumdisplay.php?fid=7)
+--- Forum: Private Instances (/forumdisplay.php?fid=12)
+--- Thread: How to use the ec2.ini file to autoscale webpagetest. (/showthread.php?tid=13645)



How to use the ec2.ini file to autoscale webpagetest. - station_eros - 04-01-2015 06:41 PM

Hi,

I have a webpagetest server and AMI agent setup out of singapore that I needed to autoscale..

Here is my locations.ini.

; This is a sample locations.ini that includes all of the EC2 locations, AMI's
; and user data strings necessary to spin up testing using EC2 test agents

; IMPORTANT: Make sure to change the wpt_server to point to your private WPT instance
; and replace SecretKey with a unique secret string (alphanumeric, no whitespace)

[locations]
1=AP_SE
default=AP_SE

[AP_SE]
1=Singapore_IE11_wptdriver
label="Asia (Singapore)"
default=Singapore_IE11

[Singapore_IE11_wptdriver]
browser=IE 11,Chrome,Firefox,Safari
latency=0
label="Asia (Singapore)"
key=SecretKey

I have filled up the ec2.ini as follows.

[AP_SE]
; Minimum number of instances
min=0
; Maximum number of instances
max=50
; Number of tests per instance before spinning up new ones
ratio=2
; AWS API Keys
key=xxxxxx
secret=xxxxx
; Maximum price for spot instances
price=0.13
; AMI ID to use
ami=ami-7a2e0e28
; Instance size
size=m1.small
; Region
region=ap-southeast-1
; User data to pass to instance
;user_data="wpt_server=ec2-52-74-134-210.ap-southeast-1.compute.amazonaws.com wpt_location=Singapore_IE11 wpt_key=SecretKey wpt_reboot_interval=0"
user_data="wpt_server=ec2-52-74-134-210.ap-southeast-1.compute.amazonaws.com wpt_location=Singapore_IE11 wpt_key=SecretKey wpt_reboot_interval=0"

But when I try to give 7 tests to WPT, I does not trigger the autoscale . I have tried rebooting the server but didn't help much.

Does this require any more changes in somewhere to make this work, or is there a documentation I can read to make tis work