[JIRA] (JENKINS-6691) EC2 plugin will launch more instances than cap allows if enough jobs are queued up while no instances are active

2013-03-12 Thread kpflem...@bloomberg.net (JIRA)














































Kevin Fleming
 commented on  JENKINS-6691


EC2 plugin will launch more instances than cap allows if enough jobs are queued up while no instances are active















Ahh... oops. I'm wrong 

This is fixed in a branch of mine that is queued for the 1.19 release of the plugin; there is a build currently being tested to be the 1.18 release. Once that is pushed out Francis plans to merge my template-instance-cap-fix branch, which corrects this issue among others, but requires Jenkins 1.503 or later. If you'd like to help test my branch, it's at github.com/kpfleming/jenkins-ec2-plugin, called template-instance-cap-fix.



























This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira







-- 
You received this message because you are subscribed to the Google Groups Jenkins Issues group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[JIRA] (JENKINS-6691) EC2 plugin will launch more instances than cap allows if enough jobs are queued up while no instances are active

2013-03-11 Thread kpflem...@bloomberg.net (JIRA)














































Kevin Fleming
 commented on  JENKINS-6691


EC2 plugin will launch more instances than cap allows if enough jobs are queued up while no instances are active















This has already been addressed in the master branch of the plugin, and will be included in the next release. Thanks!



























This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira







-- 
You received this message because you are subscribed to the Google Groups Jenkins Issues group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[JIRA] (JENKINS-6691) EC2 plugin will launch more instances than cap allows if enough jobs are queued up while no instances are active

2013-03-11 Thread s...@emilsit.net (JIRA)














































Emil Sit
 commented on  JENKINS-6691


EC2 plugin will launch more instances than cap allows if enough jobs are queued up while no instances are active















Cool; which commit fixes this? Thanks!



























This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira







-- 
You received this message because you are subscribed to the Google Groups Jenkins Issues group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[JIRA] (JENKINS-6691) EC2 plugin will launch more instances than cap allows if enough jobs are queued up while no instances are active

2013-03-10 Thread s...@emilsit.net (JIRA)














































Emil Sit
 commented on  JENKINS-6691


EC2 plugin will launch more instances than cap allows if enough jobs are queued up while no instances are active















A related issue is that the nodes launched do not take into account the number of executors that will be provided by the new slave. Something like the below might address that.


diff --git a/src/main/java/hudson/plugins/ec2/EC2Cloud.java b/src/main/java/hudson/plugins/ec2/EC2Cloud.java
index 895..06e22b9 100644
--- a/src/main/java/hudson/plugins/ec2/EC2Cloud.java
+++ b/src/main/java/hudson/plugins/ec2/EC2Cloud.java
@@ -319,7 +319,7 @@ public abstract class EC2Cloud extends Cloud {
 final SlaveTemplate t = getTemplate(label);
 int amiCap = t.getInstanceCap();
 
-for( ; excessWorkload0; excessWorkload-- ) {
+while (excessWorkload0) {
 
 if (!addProvisionedSlave(t.ami, amiCap)) {
 break;
@@ -350,6 +350,9 @@ public abstract class EC2Cloud extends Cloud {
 }
 })
 ,t.getNumExecutors()));
+
+excessWorkload -= t.getNumExecutors();
+
 }
 return r;
 } catch (AmazonClientException e) {





























This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira







-- 
You received this message because you are subscribed to the Google Groups Jenkins Issues group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[JIRA] (JENKINS-6691) EC2 plugin will launch more instances than cap allows if enough jobs are queued up while no instances are active

2013-02-11 Thread kpflem...@bloomberg.net (JIRA)














































Kevin Fleming
 commented on  JENKINS-6691


EC2 plugin will launch more instances than cap allows if enough jobs are queued up while no instances are active















I have another patch coming for this shortly that (in my testing) completely resolves the problem of excess instances being launched when there is work queued, when the underlying reason for the excess launches is that the new instances take a non-zero amount of time to come online and accept work. My fix involves a small change to the Jenkins core API (in the Cloud class) so that will have to be addressed first. Stay tuned.



























This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira







-- 
You received this message because you are subscribed to the Google Groups Jenkins Issues group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[JIRA] (JENKINS-6691) EC2 plugin will launch more instances than cap allows if enough jobs are queued up while no instances are active

2013-02-07 Thread scm_issue_l...@java.net (JIRA)














































SCM/JIRA link daemon
 commented on  JENKINS-6691


EC2 plugin will launch more instances than cap allows if enough jobs are queued up while no instances are active















Code changed in jenkins
User: Mike Bayer
Path:
 src/main/java/hudson/plugins/ec2/EC2Cloud.java
http://jenkins-ci.org/commit/ec2-plugin/8d0a9fa1d53d148601e33cb68d50b47b5ff97276
Log:

	add a new mechanism to help count the total number of EC2 instances for a particular AMI.  As an EC2Slave
is being provisioned, a temporary count is placed in a HashMap, which is used in addition to the
count reported by Amazon itself for a particular ami.   This is so that the count of total
nodes provisioned takes into account those which Amazon doesn't report yet.  The count returned
may be too high, if amazon reports it in addition to the "provision" count, but better to err on the
side of not spawning a node too soon; it will get spawned on the next go-around.
Tries to fix JENKINS-6691.































This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira







-- 
You received this message because you are subscribed to the Google Groups Jenkins Issues group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[JIRA] (JENKINS-6691) EC2 plugin will launch more instances than cap allows if enough jobs are queued up while no instances are active

2012-10-09 Thread mike...@zzzcomputing.com (JIRA)














































mike bayer
 commented on  JENKINS-6691


EC2 plugin will launch more instances than cap allows if enough jobs are queued up while no instances are active















pull request at https://github.com/jenkinsci/ec2-plugin/pull/25, seems to be working for me.



























This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira






[JIRA] (JENKINS-6691) EC2 plugin will launch more instances than cap allows if enough jobs are queued up while no instances are active

2012-10-03 Thread mike...@zzzcomputing.com (JIRA)














































mike bayer
 commented on  JENKINS-6691


EC2 plugin will launch more instances than cap allows if enough jobs are queued up while no instances are active















this is a major issue that is costing me real cash.   over at http://jenkins.sqlalchemy.org/ , a new build will add about ten jobs simultaneously, and despite my instance limit of two, I immediately get five or more instances starting up, which I then have to go and kill manually or pay the price, literally.   It seems a lot like the EC2 plugin is spawning based on the number of EC2 instances that amazon reports that are running, without taking into account the number of instances the plugin is already starting to spawn but won't yet be reported by amazon.



























This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira