Add independent environment reload
in the case that the prewarming pool is depleting (see PrewarmingPoolThreshold) and is still depleting after a timeout (PrewarmingPoolReloadTimeout).
This commit is contained in:

committed by
Sebastian Serth

parent
c46a09eeae
commit
543939e5cb
@ -39,7 +39,7 @@ func (s *MainTestSuite) TestHealth() {
|
||||
IdleRunners: 1,
|
||||
},
|
||||
})
|
||||
config.Config.Server.PrewarmingPoolAlertThreshold = 0.5
|
||||
config.Config.Server.Alert.PrewarmingPoolThreshold = 0.5
|
||||
|
||||
Health(manager).ServeHTTP(recorder, request)
|
||||
s.Equal(http.StatusServiceUnavailable, recorder.Code)
|
||||
|
Reference in New Issue
Block a user