From 2502c5905ffa6aed59be42d58f7a088611c3f6dd Mon Sep 17 00:00:00 2001 From: Donal Hurley Date: Wed, 25 Jun 2025 14:16:40 +0100 Subject: [PATCH 1/2] Update batch processor defaults --- internal/config/defaults.go | 6 +++--- .../collector/test-opentelemetry-collector-agent.yaml | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/internal/config/defaults.go b/internal/config/defaults.go index cc1212edc..534e89318 100644 --- a/internal/config/defaults.go +++ b/internal/config/defaults.go @@ -62,9 +62,9 @@ const ( DefCollectorTLSCAPath = "/var/lib/nginx-agent/ca.pem" DefCollectorTLSSANNames = "127.0.0.1,::1,localhost" - DefCollectorBatchProcessorSendBatchSize = 8192 - DefCollectorBatchProcessorSendBatchMaxSize = 0 - DefCollectorBatchProcessorTimeout = 200 * time.Millisecond + DefCollectorBatchProcessorSendBatchSize = 1000 + DefCollectorBatchProcessorSendBatchMaxSize = 1000 + DefCollectorBatchProcessorTimeout = 30 * time.Second DefCollectorExtensionsHealthServerHost = "localhost" DefCollectorExtensionsHealthServerPort = 13133 diff --git a/test/config/collector/test-opentelemetry-collector-agent.yaml b/test/config/collector/test-opentelemetry-collector-agent.yaml index fb9e09d70..9a17adc3f 100644 --- a/test/config/collector/test-opentelemetry-collector-agent.yaml +++ b/test/config/collector/test-opentelemetry-collector-agent.yaml @@ -51,9 +51,9 @@ processors: action: add value: 12345 batch: - send_batch_size: 8192 - timeout: 200ms - send_batch_max_size: 0 + send_batch_size: 1000 + timeout: 30s + send_batch_max_size: 1000 exporters: otlp/0: From 6d6d04ed9d68c6528652814e5332d3b651e92450 Mon Sep 17 00:00:00 2001 From: Donal Hurley Date: Wed, 25 Jun 2025 15:22:36 +0100 Subject: [PATCH 2/2] Fix load tests --- test/config/agent/nginx-agent-otel-load.conf | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/config/agent/nginx-agent-otel-load.conf b/test/config/agent/nginx-agent-otel-load.conf index 72c7315c6..2ee5e8651 100644 --- a/test/config/agent/nginx-agent-otel-load.conf +++ b/test/config/agent/nginx-agent-otel-load.conf @@ -24,7 +24,10 @@ collector: host: "127.0.0.1" port: 4317 processors: - batch: {} + batch: + send_batch_size: 8192 + timeout: 200ms + send_batch_max_size: 0 exporters: otlp: - server: