Update: I believe that I have fixed the problem within the "amazon-ecs-plugin". The short story is that it's possible to tell Jenkins that the automatically-created nodes, once they start a job, will never run another job again, causing Jenkins to spin up more nodes to handle the remaining items in the queue. The responsiveness is reasonably good, and it totally meets my needs at work.The pull request is here; it has not been merged in yet (as of 2017-07-09): https://github.com/jenkinsci/amazon-ecs-plugin/pull/48
On Thursday, June 8, 2017 at 2:57:20 PM UTC-4, Douglas Manley wrote:As far as I can tell, it's not actually the plugin that's the problem. Rather, Jenkins only asks the "cloud" provider (in this case, ECS) to create a new node when there are zero nodes available. Thus, as long as there is one job running, Jenkins sees it as a valid node and will politely wait until it finishes to run the next job. Instead, the node kills itself and only then does Jenkins ask the cloud provider to create another node.It seems like there just needs to be some kind of plugin that can read the queue and talk to the cloud providers based on the number of tasks outstanding.
On Monday, May 1, 2017 at 4:52:02 PM UTC-4, Joshua Noble wrote:This plugin has an unfortunate known flaw - it will only spin up one executor/node per label. If you have two jobs waiting to build with the same label, it will build the first one, then kill after it's done, and then start the next one. (Instead of creating two containers/tasks in parallel) I've tried all the hacks (single build slave plugin, etc) and they no longer work.For this reason I've decided not to use it. You're much better off using the EC2 plugin (which is very well supported), registering those nodes as build agents, and then using Jenkins' native Docker workflow with pipelines. (In essence, this means Jenkins will run docker containers on the EC2 machine)
On Monday, July 18, 2016 at 12:46:41 AM UTC-4, Tez Macca wrote:Hi,I have configured the "Amazon EC2 Container Service Plugin" with a single statically associated EC2 instance. My expectation is that multiple slaves/containers would be started when there are multiple jobs scheduled.However, I get the following message when the second job runs:Waiting for next available executor on aws-slaves-c50dc930a5d94Where 'aws-slaves-c50dc930a5d94' is the node instance started by the first job. The jobs start and execute perfectly though.To get multiple executors do I need to change something with:1. how I have configured the AWS plugin,2. OR the ECS cluster in AWS,3. OR my Jenkinsfile needs something like concurrency set in the stage?This also means that I am unable to run multiple parallel steps.
--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/1292e400-6e91-4550-b080-b1311d1cab9d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.