Skip to content
This repository has been archived by the owner on Dec 5, 2018. It is now read-only.

Commit

Permalink
More logging when we decide to time out a slave.
Browse files Browse the repository at this point in the history
Summary:
They're timing out much more often than I'd expect -- even when we're
doing back-to-back deploys they are timing out.  Not sure why.  I am
hoping this logging will shed some light.

Test Plan: Fingers crossed.

Reviewers: chris

Reviewed By: chris

Differential Revision: http://phabricator.khanacademy.org/D11464
  • Loading branch information
csilvers committed Jul 23, 2014
1 parent d236a8c commit 0058d0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/hudson/plugins/ec2/EC2RetentionStrategy.java
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public synchronized long check(EC2Computer c) {
// TODO: really think about the right strategy here
final long idleMilliseconds = System.currentTimeMillis() - c.getIdleStartMilliseconds();
if (idleMilliseconds > TimeUnit2.MINUTES.toMillis(idleTerminationMinutes)) {
LOGGER.info("Idle timeout: "+c.getName());
LOGGER.info("Idle timeout: " + c.getName() + " after " + idleTerminationMinutes + " minutes (idle since time_t " + (int)(c.getIdleStartMilliseconds() / 1000) + ")");
c.getNode().idleTimeout();
}
}
Expand Down

0 comments on commit 0058d0e

Please sign in to comment.