[JIRA] (JENKINS-56443) EC2 plugin doesn't take into account 'shutdown mode' of Jenkins

2 views
Skip to first unread message

prewriter@marlukki.eu (JIRA)

unread,
Mar 6, 2019, 10:25:02 AM3/6/19
to jenkinsc...@googlegroups.com
prewriter updated an issue
 
Jenkins / Bug JENKINS-56443
EC2 plugin doesn't take into account 'shutdown mode' of Jenkins
Change By: prewriter
EC2 plugin didn't noticed that Jenkins is in _Shutdown mode_ and continued started instances (because jobs were in queue) and stopping instances (because jobs weren't started again) and starting, and stopping them again, and on, and on...

 

This caused $500 bill in Amazon over ~18 hours, because the instances were Windows
(m5.xlarge) , you pay for full hour and the timeout of inactive instances was set to 1 minute.

 

Implementation suggestion: If Jenkins is in shutdown mode, don't start new instances.
Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

prewriter@marlukki.eu (JIRA)

unread,
Mar 6, 2019, 10:25:02 AM3/6/19
to jenkinsc...@googlegroups.com
prewriter created an issue
Issue Type: Bug Bug
Assignee: FABRIZIO MANFREDI
Components: ec2-plugin
Created: 2019-03-06 15:24
Environment: Jenkins 2.150.2
Labels: ec2-plugin
Priority: Minor Minor
Reporter: prewriter

EC2 plugin didn't noticed that Jenkins is in Shutdown mode and continued started instances (because jobs were in queue) and stopping instances (because jobs weren't started again) and starting, and stopping them again, and on, and on...

 

This caused $500 bill in Amazon over ~18 hours, because the instances were Windows, you pay for full hour and the timeout of inactive instances was set to 1 minute.

 

Implementation suggestion: If Jenkins is in shutdown mode, don't start new instances.

perrin@opencloud.com (JIRA)

unread,
Apr 1, 2019, 11:36:03 PM4/1/19
to jenkinsc...@googlegroups.com
Perrin Morrow commented on Bug JENKINS-56443
 
Re: EC2 plugin doesn't take into account 'shutdown mode' of Jenkins

We've been bitten by this a few times too. I'm currently running a patched version of the plugin that doesn't start instances when in quiet down mode.

It's working fine but I also have other experimental changes on the branch I'm using and I don't have time to test this change in isolation. I am happy to create a branch/PR with just this change on it if someone else can test it.

perrin@opencloud.com (JIRA)

unread,
Apr 10, 2019, 5:42:02 AM4/10/19
to jenkinsc...@googlegroups.com

fabrizio.manfredi@gmail.com (JIRA)

unread,
May 2, 2019, 9:21:05 AM5/2/19
to jenkinsc...@googlegroups.com
FABRIZIO MANFREDI started work on Bug JENKINS-56443
 
Change By: FABRIZIO MANFREDI
Status: Open In Progress

fabrizio.manfredi@gmail.com (JIRA)

unread,
May 2, 2019, 9:22:03 AM5/2/19
to jenkinsc...@googlegroups.com

fabrizio.manfredi@gmail.com (JIRA)

unread,
May 17, 2019, 5:20:02 AM5/17/19
to jenkinsc...@googlegroups.com
FABRIZIO MANFREDI closed an issue as Fixed
Change By: FABRIZIO MANFREDI
Status: In Progress Closed
Resolution: Fixed
Reply all
Reply to author
Forward
0 new messages