Skip to content

Commit

Permalink
refactor(defaulting): modify the default startup period seconds: 5s -…
Browse files Browse the repository at this point in the history
…> 1s to speed up the startup
  • Loading branch information
zyy17 committed Dec 3, 2024
1 parent 3b0b025 commit 80b79e1
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions apis/v1alpha1/defaulting.go
Original file line number Diff line number Diff line change
Expand Up @@ -398,11 +398,13 @@ func defaultStartupProbe() *corev1.Probe {
Port: intstr.FromInt32(DefaultHTTPPort),
},
},
PeriodSeconds: 5,

// The StartupProbe can try up to 60 * 5 = 300 seconds to start the container.
// For some scenarios, the datanode may take a long time to start, so we set the failure threshold to 60.
FailureThreshold: 60,
// Check for the health endpoint every second to speed up the startup.
PeriodSeconds: 1,

// The StartupProbe can try up to 300 * 1 = 300 seconds(5 minutes) to start the container.
// For some scenarios, the datanode may take a long time to start, so we set the failure threshold to 300.
FailureThreshold: 300,
}
}

Expand Down

0 comments on commit 80b79e1

Please sign in to comment.