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/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: 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: