vintrojan
vintrojan

Reputation: 1547

How to launch multiple AWS EC2 machines on Jenkins?

I am using the EC2 plugin in Jenkins (https://wiki.jenkins-ci.org/display/JENKINS/Amazon+EC2+Plugin) for using AWS services.

As of now, a job which uses this cloud label spins up a single EC2 instance. Whereas, I need to spin multiple instances for this job.

A single EC2 instance will never be overloaded and hence the plugin will not spin any new EC2 instances; but the job needs multiple instances to distribute the tasks. There are ~100 tasks to be assigned to 20 machines one at a time (hence 5 per machine). A single instance can complete one task at a time.

How can I spin multiple EC2 instances (fixed number say 20) for a single job in Jenkins?

Thanks.

Upvotes: 4

Views: 1529

Answers (1)

NHol
NHol

Reputation: 2125

You can try the spot fleet plugin instead which has more scaling options

https://wiki.jenkins-ci.org/display/JENKINS/Amazon+EC2+Fleet+Plugin

Upvotes: 2

Related Questions