dry-airport-73849
10/23/2023, 11:05 PMrudder-transformer is frequently being restarted in our k8s self-hosted instances with no error logs. I see this happening specially when the events volume increases, but the usage of the resources are pretty lowmillions-activity-52391
10/23/2023, 11:05 PMdry-airport-73849
10/23/2023, 11:06 PMā former:9090/v0/destinations/kafka Error: Post "http://rudderstack-transformer:9090/v0/destinations/kafka": read tcp x.x.x.x:x->x.x.x.x:x: read: connection reset by peer after 1 tries ā
Rudder transformer log:
> rudder-transformer@1.41.1 start ā
ā > node ./dist/src/index.js ā
ā ā
ā created statsd client ā
ā Stack Depth set: 64 ā
ā Interval Bytes set: 524288 ā
ā Transformer: Swagger route loading ā
ā Transformer: Swagger route loaded ā
ā Using new routes ā
ā Master (pid: 18) has started ā
ā Worker (pid: 25) is online ā
ā created statsd client ā
ā Stack Depth set: 64 ā
ā Interval Bytes set: 524288 ā
ā Transformer: Swagger route loading ā
ā Transformer: Swagger route loaded ā
ā Using new routes ā
ā Worker (pid: 25) has started ā
ā App started. Listening on port: 9090dry-airport-73849
10/23/2023, 11:07 PMdry-airport-73849
10/23/2023, 11:08 PMmaxProcess: 12
gwDBRetention: 0h
routerDBRetention: 0h
enableProcessor: true
enableRouter: true
enableStats: true
statsTagsFormat: influxdb
Http:
ReadTimeout: 0s
ReadHeaderTimeout: 0s
WriteTimeout: 10s
IdleTimeout: 720s
MaxHeaderBytes: 524288
RateLimit:
eventLimit: 1000
rateLimitWindow: 60m
noOfBucketsInWindow: 12
Gateway:
webPort: 8080
maxUserWebRequestWorkerProcess: 64
maxDBWriterProcess: 256
CustomVal: GW
maxUserRequestBatchSize: 2000
maxDBBatchSize: 128
userWebRequestBatchTimeout: 15ms
dbBatchWriteTimeout: 5ms
maxReqSizeInKB: 10000
enableRateLimit: false
enableSuppressUserFeature: true
allowPartialWriteWithErrors: true
allowReqsWithoutUserIDAndAnonymousID: false
webhook:
batchTimeout: 20ms
maxBatchSize: 32
maxTransformerProcess: 64
maxRetry: 5
maxRetryTime: 10s
sourceListForParsingParams:
- shopify
EventSchemas:
enableEventSchemasFeature: false
syncInterval: 240s
noOfWorkers: 128
Debugger:
maxBatchSize: 32
maxESQueueSize: 1024
maxRetry: 3
batchTimeout: 2s
retrySleep: 100ms
SourceDebugger:
disableEventUploads: false
DestinationDebugger:
disableEventDeliveryStatusUploads: false
TransformationDebugger:
disableTransformationStatusUploads: false
Archiver:
backupRowsBatchSize: 100
JobsDB:
jobDoneMigrateThres: 0.8
jobStatusMigrateThres: 5
maxDSSize: 100000
maxMigrateOnce: 10
maxMigrateDSProbe: 10
maxTableSizeInMB: 300
migrateDSLoopSleepDuration: 30s
addNewDSLoopSleepDuration: 5s
refreshDSListLoopSleepDuration: 5s
backupCheckSleepDuration: 5s
backupRowsBatchSize: 1000
archivalTimeInDays: 10
archiverTickerTime: 1440m
backup:
enabled: false
gw:
enabled: true
pathPrefix: ""
rt:
enabled: true
failedOnly: true
batch_rt:
enabled: false
failedOnly: false
Router:
jobQueryBatchSize: 10000
updateStatusBatchSize: 1000
readSleep: 1000ms
fixedLoopSleep: 0ms
noOfJobsPerChannel: 1000
noOfJobsToBatchInAWorker: 20
jobsBatchTimeout: 5s
maxSleep: 60s
minSleep: 0s
maxStatusUpdateWait: 5s
useTestSink: false
guaranteeUserEventOrder: true
kafkaWriteTimeout: 2s
kafkaDialTimeout: 10s
minRetryBackoff: 10s
maxRetryBackoff: 300s
noOfWorkers: 64
allowAbortedUserJobsCountForProcessing: 1
maxFailedCountForJob: 3
retryTimeWindow: 180m
failedKeysEnabled: false
saveDestinationResponseOverride: false
responseTransform: false
MARKETO:
noOfWorkers: 4
throttler:
MARKETO:
limit: 45
timeWindow: 20s
BRAZE:
forceHTTP1: true
httpTimeout: 120s
httpMaxIdleConnsPerHost: 32
BatchRouter:
mainLoopSleep: 2s
jobQueryBatchSize: 100000
uploadFreq: 30s
warehouseServiceMaxRetryTime: 3h
noOfWorkers: 8
maxFailedCountForJob: 128
retryTimeWindow: 180m
Warehouse:
mode: embedded
webPort: 8082
uploadFreq: 1800s
noOfWorkers: 8
noOfSlaveWorkerRoutines: 4
mainLoopSleep: 5s
minRetryAttempts: 3
retryTimeWindow: 180m
minUploadBackoff: 60s
maxUploadBackoff: 1800s
warehouseSyncPreFetchCount: 10
warehouseSyncFreqIgnore: false
stagingFilesBatchSize: 960
enableIDResolution: false
populateHistoricIdentities: false
redshift:
maxParallelLoads: 0
setVarCharMax: false
snowflake:
maxParallelLoads: 0
bigquery:
maxParallelLoads: 0
postgres:
maxParallelLoads: 3
mssql:
maxParallelLoads: 0
azure_synapse:
maxParallelLoads: 0
clickhouse:
maxParallelLoads: 0
queryDebugLogs: false
blockSize: 1000
poolSize: 10
disableNullable: false
enableArraySupport: false
Processor:
webPort: 8086
loopSleep: 10ms
maxLoopSleep: 5000ms
fixedLoopSleep: 0ms
maxLoopProcessEvents: 10000
transformBatchSize: 200
userTransformBatchSize: 200
maxConcurrency: 200
maxHTTPConnections: 100
maxHTTPIdleConnections: 50
maxRetry: 30
retrySleep: 100ms
timeoutDuration: 30s
errReadLoopSleep: 30s
errDBReadBatchSize: 1000
noOfErrStashWorkers: 2
maxFailedCountForErrJob: 3
Stats:
captureEventName: false
Dedup:
enableDedup: false
dedupWindow: 3600s
BackendConfig:
configFromFile: true
configJSONPath: /etc/rudderstack/workspaceConfig.json
pollInterval: 5s
regulationsPollInterval: 300s
maxRegulationsPerRequest: 1000
recovery:
enabled: true
errorStorePath: /tmp/error_store.json
storagePath: /tmp/recovery_data.json
normal:
crashThreshold: 5
duration: 300s
Logger:
enableConsole: true
enableFile: false
consoleJsonFormat: false
fileJsonFormat: false
logFileLocation: /tmp/rudder_log.log
logFileSize: 100
enableTimestamp: true
enableFileNameInLog: true
enableStackTrace: false
Diagnostics:
enableDiagnostics: true
gatewayTimePeriod: 60s
routerTimePeriod: 60s
batchRouterTimePeriod: 6l
enableServerStartMetric: true
enableConfigIdentifyMetric: true
enableServerStartedMetric: true
enableConfigProcessedMetric: true
enableGatewayMetric: true
enableRouterMetric: true
enableBatchRouterMetric: true
enableDestinationFailuresMetric: true
RuntimeStats:
enabled: true
statsCollectionInterval: 10
enableCPUStats: true
enableMemStats: true
enableGCStats: true
PgNotifier:
retriggerInterval: 2s
retriggerCount: 500
trackBatchInterval: 2s
maxAttempt: 3
I've increase the volume for the HTTP requests and batch, because we're using a kafka streams service pushing the events to the rudderstack in batchdry-airport-73849
10/23/2023, 11:09 PMmost-ocean-90575
10/25/2023, 4:19 AMmillions-activity-52391
10/25/2023, 11:28 AMdry-airport-73849
10/25/2023, 4:53 PMmost-ocean-90575
10/26/2023, 2:18 AMmillions-activity-52391
10/27/2023, 2:28 PMmillions-activity-52391
11/01/2023, 11:37 AMdry-airport-73849
11/03/2023, 4:23 PMmillions-activity-52391
11/06/2023, 11:18 AMProcessor:
transformBatchSize: 200 <-- no of events sent to transformer
userTransformBatchSize: 200 <-- no of events sent to transformer
maxConcurrency: 200 <-- no of processor threads talking to transformerdry-airport-73849
11/06/2023, 4:16 PMmillions-activity-52391
11/07/2023, 8:08 AMmillions-activity-52391
11/09/2023, 8:22 AM