Hi all, The `rudder-transformer` is frequently bei...
# support
d
Hi all, The
rudder-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 low
m
Hey There! šŸ‘‹ Your message has been received by the RudderStack team. Our standard customer support hours are 9-6 PM EST, but we will forward this request to your Technical Account Manager, and they will get back to you shortly. Please use the thread for any additional comments.
d
Rudder server log:
Copy code
│ 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:
Copy code
> 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: 9090
Tried to increase the resources of the transformer with no success
this is the config I'm using:
Copy code
maxProcess: 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 batch
1. Any ideas? 2. How can I see/show the logs for the rudder transformer? Thanks in advance!
m
What is the resource consumption for your transformer pods? both in terms of CPU and memory?
m
Will ask the team on this.
d
As this is in a staging environment, I have only one 1 pod (1 transformer and 2 server). During a high volume traffic (300k-600k/s): CPU: ~1000m Memory: ~1GB Far from the limits: CPU: 4000m Memory: ~8GB I have no transformation, so this is just doing the basic stuff
m
Can you check for your network usage.
m
Hi Joao, I have posted to the team and am waiting their update.
Hi Joao, are you still facing this transformer issue. I have not received an update from the team.
d
Hi, @shy-kite-21035. Yeah, still facing it
m
Hi Joao, this is what the team mentioned 600K/s is a very big number. For 2 servers, that is a very high number. You can try with increasing transformer count. As you are using 1 transformer for 2 servers and since the traffic is high, the transformer appears to be getting OOM killed. If you run `kubectl describe pod`⁣, it will show the reason why the container was killed. You can also tune the following configs and reduce it from 200 to 50 or even lower to stabilize the POD
Copy code
Processor:
      transformBatchSize: 200 <-- no of events sent to transformer
      userTransformBatchSize: 200 <-- no of events sent to transformer
      maxConcurrency: 200 <-- no of processor threads talking to transformer
d
Thank you for the return, @shy-kite-21035. It's strange that the transformer doesn't get the available resources in the POD. I've tried to increase the CPU and Memory, but the transformer doesn't get even 30% available and crash. I was thinking of some property that was limiting the service/job of getting the available resources
m
Shared with the team, I am following up on this.
The team asked me to tell you to remove the limits for the pods. Set only requests. Removing limits and setting up autoscaling for the transformer service should help resolve the issue.
šŸ‘ 1