Browse Source

Change restart delay for Windows service to 15s

Previously we waited for 60 seconds after the service faults to restart
it. However, there isn't much benefit to waiting this long. We expect
15 seconds to be a more reasonable delay.

Co-Authored-by: Kevin Parsons <kevpar@microsoft.com>
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
(cherry picked from commit 624daf8d9e4bd164eb7cf5ce6640098277fad712)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Sebastiaan van Stijn 2 năm trước cách đây
mục cha
commit
671bf589e2
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      cmd/dockerd/service_windows.go

+ 2 - 2
cmd/dockerd/service_windows.go

@@ -188,8 +188,8 @@ func registerService() error {
 
 
 	err = s.SetRecoveryActions(
 	err = s.SetRecoveryActions(
 		[]mgr.RecoveryAction{
 		[]mgr.RecoveryAction{
-			{Type: mgr.ServiceRestart, Delay: 60 * time.Second},
-			{Type: mgr.ServiceRestart, Delay: 60 * time.Second},
+			{Type: mgr.ServiceRestart, Delay: 15 * time.Second},
+			{Type: mgr.ServiceRestart, Delay: 15 * time.Second},
 			{Type: mgr.NoAction},
 			{Type: mgr.NoAction},
 		},
 		},
 		uint32(24*time.Hour/time.Second),
 		uint32(24*time.Hour/time.Second),