Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: client side load balancing for user transformations #5375

Merged
merged 8 commits into from
Jan 6, 2025
Merged
Prev Previous commit
Next Next commit
use common transport configurations
  • Loading branch information
lvrach committed Dec 16, 2024
commit bd7ad7d815ea27721b93c4350ffe2a98fff1b23a
9 changes: 9 additions & 0 deletions processor/transformer/transformer.go
Original file line number Diff line number Diff line change
@@ -246,6 +246,15 @@ func NewTransformer(conf *config.Config, log logger.Logger, stat stats.Stats, op
}, config.GetDuration("Transformer.Client.ttl", 120, time.Second))
case "bufbuild":
trans.httpClient = httplb.NewClient(
httplb.WithTransport("http",
httplb.NewTransport(
&http.Transport{
DisableKeepAlives: trans.config.disableKeepAlives,
MaxConnsPerHost: trans.config.maxHTTPConnections,
MaxIdleConnsPerHost: trans.config.maxHTTPIdleConnections,
IdleConnTimeout: trans.config.maxIdleConnDuration,
},
),
httplb.WithResolver(
resolver.NewDNSResolver(
net.DefaultResolver,