Current time: 11-19-2019, 08:32 PM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to use the ec2.ini file to autoscale webpagetest.
04-01-2015, 06:41 PM
Post: #1
How to use the ec2.ini file to autoscale webpagetest.
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
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


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