Skip to content

Commit

Permalink
fix(hatchery/openstack): 10min max spawn time worker (#4526)
Browse files Browse the repository at this point in the history
Signed-off-by: Yvonnick Esnault <[email protected]>
  • Loading branch information
yesnault authored and richardlt committed Aug 12, 2019
1 parent 3b329d5 commit 1c03b1b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions engine/hatchery/openstack/openstack.go
Original file line number Diff line number Diff line change
Expand Up @@ -272,10 +272,10 @@ func (h *HatcheryOpenstack) killAwolServers() {
}

// Delete workers, if not identified by CDS API
// Wait for 6 minutes, to avoid killing worker babies
// Wait for 10 minutes, to avoid killing worker babies
log.Debug("killAwolServers> server %s status: %s last update: %s toDeleteKilled:%t inWorkersList:%t", s.Name, s.Status, time.Since(s.Updated), toDeleteKilled, inWorkersList)
if isWorker && (workerHatcheryName == "" || workerHatcheryName == h.Service().Name) &&
(s.Status == "SHUTOFF" || toDeleteKilled || (!inWorkersList && time.Since(s.Updated) > 6*time.Minute)) {
(s.Status == "SHUTOFF" || toDeleteKilled || (!inWorkersList && time.Since(s.Updated) > 10*time.Minute)) {

// if it's was a worker model for registration
// check if we need to create a new openstack image from it
Expand Down

0 comments on commit 1c03b1b

Please sign in to comment.