- Newest
- Most votes
- Most comments
You have two collector gateways for OpenTelemetry (OTEL) data, but traffic isn't splitting evenly (50/50) despite your load balancer settings. This is because OTEL data can "stick" to one gateway, causing an imbalance.
So,
-
Use the Load Balancing Exporter: This built-in feature in the OTEL Collector helps distribute data across your gateways. You can choose how to distribute data (by trace or service) to maintain accuracy. See the official docs for details: https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/exporter/loadbalancingexporter/README.md
-
Consider a Different Load Balancer: Network Load Balancers (NLBs) might not be ideal due to their "sticky sessions" feature. Explore options like:
a. AWS Application Load Balancer (ALB): https://aws.amazon.com/elasticloadbalancing/application-load-balancer/ (offers configurable session stickiness)
b. HAProxy: https://www.haproxy.com/ (open-source load balancer with various distribution algorithms)
To minimize data loss during gateway outages, consider:
=> Enabling receiver buffers: These act as temporary storage within the collector. => Implementing retries: Configure retries for failed deliveries to the backend.
Relevant content
- asked a year ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 7 months ago
- AWS OFFICIALUpdated 6 months ago
- AWS OFFICIALUpdated 8 months ago
Thanks for the suggestions. Will the load balancer exporter work with OTLP/HTTP? Or only work with OTLP/gRPC