Skip to content

Commit

Permalink
Change frontend drain time
Browse files Browse the repository at this point in the history
  • Loading branch information
yux0 authored and yycptt committed Oct 25, 2021
1 parent 76653c1 commit 2c3a8f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions service/frontend/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -307,8 +307,8 @@ func (s *Service) Stop() {
// 4. Wait for a second
// 5. Stop everything forcefully and return

requestDrainTime := common.MinDuration(time.Second, s.config.ShutdownDrainDuration())
failureDetectionTime := common.MaxDuration(0, s.config.ShutdownDrainDuration()-requestDrainTime)
requestDrainTime := common.MaxDuration(time.Second, s.config.ShutdownDrainDuration())
failureDetectionTime := 10 * time.Second

s.GetLogger().Info("ShutdownHandler: Updating rpc health status to ShuttingDown")
s.handler.UpdateHealthStatus(HealthStatusShuttingDown)
Expand Down

0 comments on commit 2c3a8f3

Please sign in to comment.