Uploaded image for project: 'OpenShift Logging'
  1. OpenShift Logging
  2. LOG-8606

infrastructure.tuning..rateLimitPerContainer isn't take effect

XMLWordPrintable

    • Incidents & Support
    • False
    • Hide

      None

      Show
      None
    • False
    • NEW
    • NEW
    • Release Note Not Required
    • Logging - Sprint 283
    • Moderate
    • Low (0%-49%) - [It is unlikely this will become an issue]

      Description of problem:

      The new parameter infrastructure.tuning..rateLimitPerContainer are not enabled in vector.toml

      - infrastructure:

            sources:
            - container
            - node
            tuning:
              container:
                maxMessageSize: 15Ki
                rateLimitPerContainer:
                  maxRecordsPerSecond: 10

      How reproducible:

      Always

      Steps to Reproduce:

      1.   set infrastructure.tuning..rateLimitPerContainer in CLF
      apiVersion: observability.openshift.io/v1
      kind: ClusterLogForwarder
      metadata:
        name: collector
      spec:
        inputs:
        - application:
            tuning:
              maxMessageSize: 10Ki
              rateLimitPerContainer:
                maxRecordsPerSecond: 10
          name: myapp
          type: application
        - infrastructure:
            sources:
            - container
            - node
            tuning:
              container:
                maxMessageSize: 15Ki
                rateLimitPerContainer:
                  maxRecordsPerSecond: 10
          name: myinfra
          type: infrastructure
        managementState: Managed
        outputs:
        - lokiStack:
            authentication:
              token:
                from: serviceAccount
            dataModel: Viaq
            target:
              name: logging-loki
              namespace: openshift-logging
          name: my-lokistack
          tls:
            ca:
              configMapName: openshift-service-ca.crt
              key: service-ca.crt
          type: lokiStack
        pipelines:
        - inputRefs:
          - myapp
          - myinfra
          name: pipe1
          outputRefs:
          - my-lokistack
        serviceAccount:
          name: logcollector
      1.  Check the vector.toml

      Actual results:

      There isn't  transforms.input_myinfra_container_throttle. only 

      [transforms.input_myapp_container_throttle]

      type = "throttle"
      inputs = ["input_myapp_container_meta"]
      window_secs = 1
      threshold = 10
      key_field = "{{ file }}"

      Expected results:

      transforms.input_myinfra_container_throttle is enabled in vector.toml

      [transforms.input_infra_container_throttle]

      type = "throttle"
      inputs = ["input_infra_container_meta"]
      window_secs = 1
      threshold = 10
      key_field = "{{ file }}"

      Additional info:

              vparfono Vitalii Parfonov
              rhn-support-anli Anping Li
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: