SeleniumGridScaler icon indicating copy to clipboard operation
SeleniumGridScaler copied to clipboard

AWS ec2 instances to be charged by seconds from Oct 2nd

Open ambirag opened this issue 7 years ago • 9 comments

This means the current logic of cost optimized termination has to be changed to immediately terminate nodes ( say 5mins idle time - or make it configurable) Source: https://aws.amazon.com/blogs/aws/new-per-second-billing-for-ec2-instances-and-ebs-volumes/

ambirag avatar Sep 19 '17 10:09 ambirag

@ambirag I did see this announcement. I'm not sure what the best way is going to be, as we're going to want to balance cost vs time to spin up new resources.

mhardin avatar Oct 02 '17 20:10 mhardin

@mhardin also this is applicable only to AWS linux boxes (not other flavours)

ambirag avatar Oct 18 '17 12:10 ambirag

@ambirag @mhardin I was thinking about a 5 minute idle time, if no new tests are coming in during that time the instance will terminated. Also the possibility of setting this idle time via the property file would be nice. What do you guys think?

lenny1806 avatar Oct 18 '17 19:10 lenny1806

@lenny1806 a 5 minute / configurable amount would be fine. Only problem is this is likely going to require a large refactor to accomplish this logic.

mhardin avatar Oct 20 '17 21:10 mhardin

@mhardin Has this issues been given any more thought? I'm currently reviewing the project to possibly tie it into my test framework. Thanks

bloomm09 avatar Jan 24 '18 19:01 bloomm09

@bloomm09 unfortunately no update on my end

mhardin avatar Jan 30 '18 18:01 mhardin

I have local changes which terminates nodes based on seconds, if you pass -D property name otherwise it will retain old behaviour

ambirag avatar Mar 20 '18 09:03 ambirag

actually you dont need this feature, once your automation execution is completed, you can simply call curl -X "DELETE" http://HUBIP:4444/grid/admin/AutomationTestRunServlet and it will simply terminate all the nodes @bloomm09

ambirag avatar Mar 21 '18 18:03 ambirag

@ambirag calling the delete endpoint only works if you have at most one test run against a hub. If you have multiple test runs against a single hub, I don't think this will work well.

mhardin avatar Mar 21 '18 18:03 mhardin