Extremely slow EC2-launched Windows slave

11 views
Skip to first unread message

James Green

unread,
Jun 13, 2018, 5:29:26 AM6/13/18
to Jenkins
We can launch pre-configured Windows 2016 AMI instances via the EC2 plugin but individual pipeline steps take orders of magnitude longer to complete than expected.

To perform an httpRequest step takes 3-4 minutes. I can download the same file on the agent mid-build in less than one second.

Restoring a stashed file takes a minute and a half. No way that should be the case.

I have already gone through the Task Scheduler and disabled a bunch of processes that might slow the instance down on first boot. I have also launched the instance well in advance of need it as an agent, with no improvement.

Any ideas on what's left to try?

Thanks,

James

Steven Foster

unread,
Jun 13, 2018, 6:32:28 AM6/13/18
to Jenkins Users
I've found the EC2 plugin with windows agents is basically unusable without heavy modification unfortunately. I think configuring the AMI with a cygwin based SSHD and using the Unix launcher in the plugin could get you somewhere.

James Green

unread,
Jun 19, 2018, 12:08:33 PM6/19/18
to Jenkins
So the initial build of a project appears to be roughly 20x slower than subsequent builds.

Presume data from steps gets cached. Initial loading occurs over a transport that is sub-optimal!

We're also seeing problems using a certificate from disk. Some agents error (an internal error occurred) and some succeed. Seems random.

On 13 June 2018 at 11:32, Steven Foster <steven...@gmail.com> wrote:
I've found the EC2 plugin with windows agents is basically unusable without heavy modification unfortunately. I think configuring the AMI with a cygwin based SSHD and using the Unix launcher in the plugin could get you somewhere.

--
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-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/53826a40-4466-4f7b-8d48-acc99fa2b30b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages