Skip to content
This repository has been archived by the owner on Feb 1, 2021. It is now read-only.

Commit

Permalink
Make sure to catch connection errors properly when checking engine he…
Browse files Browse the repository at this point in the history
…alth
  • Loading branch information
Wayne Song committed Nov 23, 2016
1 parent 8657215 commit 0a4b09d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cluster/engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,8 @@ func (e *Engine) CheckConnectionErr(err error) {
if err == dockerclient.ErrConnectionRefused ||
err == engineapi.ErrConnectionFailed ||
strings.Contains(err.Error(), "onnection refused") ||
strings.Contains(err.Error(), "annot connect to the docker engine endpoint") {
strings.Contains(err.Error(), "annot connect to the docker engine endpoint") ||
strings.Contains(err.Error(), "annot connect to the Docker daemon") {
// each connection refused instance may increase failure count so
// engine can fail fast. Short engine freeze or network failure may result
// in engine marked as unhealthy. If this causes unnecessary failure, engine
Expand Down

0 comments on commit 0a4b09d

Please sign in to comment.