-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: prevent the goroutine leak from lb health checks
We had a leak of goroutines where the `lb.Start()` failed due to a port conflict. The health check goroutines were never terminated, were waiting on the context. This caused a leak of goroutines over a long time (as every failure on `.Start()` caused an exponential backoff) and increased CPU usage. Fix this by calling `lb.Close()` even if starting the load balancer has failed. Additionally, add the following features: - allow running an optional pprof server - allow specifying disallowed host port ranges to not be attempted to be proxied Also rekres & bump deps. Signed-off-by: Utku Ozdemir <[email protected]>
- Loading branch information
1 parent
f582988
commit a09759e
Showing
19 changed files
with
348 additions
and
139 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
|
||
# THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT. | ||
# | ||
# Generated on 2024-07-25T21:33:47Z by kres faf91e3. | ||
# Generated on 2024-08-14T09:22:15Z by kres 7be2a05. | ||
|
||
ARG TOOLCHAIN | ||
|
||
|
@@ -11,7 +11,7 @@ FROM ghcr.io/siderolabs/ca-certificates:v1.7.0 AS image-ca-certificates | |
FROM ghcr.io/siderolabs/fhs:v1.7.0 AS image-fhs | ||
|
||
# runs markdownlint | ||
FROM docker.io/oven/bun:1.1.20-alpine AS lint-markdown | ||
FROM docker.io/oven/bun:1.1.22-alpine AS lint-markdown | ||
WORKDIR /src | ||
RUN bun i [email protected] [email protected] | ||
COPY .markdownlint.json . | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.