Skip to content

Commit

Permalink
fix: Continue healthcheck loop on request failures for Synchronizer
Browse files Browse the repository at this point in the history
  • Loading branch information
achetronic committed Sep 27, 2024
1 parent 46adced commit 8afef06
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/hashrouter/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ type: application
description: >-
A Helm chart for hashrouter, a A zero-dependencies HTTP proxy
that truly routes requests hash-consistently
version: &chartVersionSpec 0.10.4 # chart version
version: &chartVersionSpec 0.10.5 # chart version
appVersion: *chartVersionSpec # application version
kubeVersion: ">=1.22.0-0" # kubernetes version
home: https://github.com/achetronic/hashrouter
Expand Down
2 changes: 1 addition & 1 deletion internal/cmd/version/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@ func NewCommand() *cobra.Command {
}

func RunCommand(cmd *cobra.Command, args []string) {
fmt.Print("version: 0.10.2\n")
fmt.Print("version: 0.10.5\n")
}
1 change: 1 addition & 0 deletions internal/proxy/synchronizer.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ func (p *ProxyT) Synchronizer(syncTime time.Duration) {

if err != nil {
p.Logger.Errorf("unable to perform healthcheck on host '%s': %s", backend.Host, err.Error())
continue
}

p.Logger.Errorf("healthcheck failed for host '%s' with status '%s'", backend.Host, resp.Status)
Expand Down

0 comments on commit 8afef06

Please sign in to comment.