Skip to content

Commit

Permalink
Update cmd/zoekt-webserver/main.go
Browse files Browse the repository at this point in the history
Co-authored-by: Thorsten Ball <[email protected]>
  • Loading branch information
keegancsmith and mrnugget authored Sep 15, 2023
1 parent 7748a03 commit f3ebff3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmd/zoekt-webserver/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -466,8 +466,10 @@ func watchdog(dt time.Duration, maxErrCount int, addr string) {
metricWatchdogErrorsTotal.Inc()
if errCount >= maxErrCount {
log.Printf(`watchdog health check has consecutively failed %d times indicating is likely an unrecoverable error affecting zoekt. As such this process will exit with code 3.
Final error: %v
Possible Remediations:
Possible remediations:
- If this rarely happens, ignore and let your process manager restart zoekt.
- Possibly under provisioned. Try increasing CPU or disk IO.
- A bug. Reach out with logs and screenshots of metrics when this occurs.`, errCount, err)
Expand Down

0 comments on commit f3ebff3

Please sign in to comment.