Current time: 12-06-2019, 06:47 PM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
EC2 via AMI - Can't get more than one EC2 instance to spawn
09-02-2016, 06:02 AM (This post was last modified: 09-03-2016 12:27 AM by joseph.)
Post: #1
EC2 via AMI - Can't get more than one EC2 instance to spawn
Edit: False alarm! I was looking for other logs and found /var/www/webpagetest/www/ec2/log/. It looks like it was starting a new instance but it just didn't show up in the AWS EC2 Dashboard or instance list.

Code:
20:15:09 - Launching m3.medium ami ami-678afe07 in us-west-1 for us-west-1,us-west-1_IE11 with user data: wpt_server=54.162.99.86 wpt_loc=us-west-1,us-west-1_IE11 wpt_key=X
20:15:10 - Instance i-00da3389bf58c0c8d started: m3.medium ami ami-678afe07 in us-west-1 for us-west-1,us-west-1_IE11 with user data: wpt_server=54.162.99.86 wpt_loc=us-west-1,us-west-1_IE11 wpt_key=X
22:10:09 - Terminated instance i-00da3389bf58c0c8d in us-west-1


First of all, thank you for making Webpagetest available via EC2 AMI!

Everything seems to be working as expected for the default us-east-1 location. It spins up a new us-east-1 EC2 instance when I start a new test for US East (N. Virginia).

However, when I run a test for us-west-1 or us-west-2 it does not spin up a new EC2 instance. Furthermore, I was able to run tests simultaneously on us-east-1, us-west-1, and us-west-2, so I don't think it is running them my EC2 instance (or it would be queued, no?).

Is it using the webpagetest.org test agents for us-west-1 and us-west-2?

I have not modified ec2_locations.ini and am using the default EC2 instance values in settings.ini:
Code:
ec2_locations=1
ec2=1
ec2_initialized=1

I tried using the instance values below from settings.ini.sample but this seemed to break my available locations (the dropdowns were empty).

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

; Default location when using EC2 auto-scaling - this setting is required for 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).
; Don't forget to also set the EC2.default region to enable auto-scaling.
EC2.us-east-1.min=0
EC2.us-east-1.max=2

EC2.us-west-1.min=0
EC2.us-west-1.max=2

EC2.us-west-2.min=0
EC2.us-west-2.max=2
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


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