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

Modify max_read_bytes for Vector not releasing deleted file handles

XMLWordPrintable

    • False
    • None
    • False
    • NEW
    • NEW
    • Hide
      Before this change, the collector relied upon the default config setting when reading container log lines. This resulted in the collector not efficiently reading rotated files an high volume clusters and holding onto deleted file handles for a long time. This change increases the number of bytes read allowing the collector to more efficiently process rotated files.
      Show
      Before this change, the collector relied upon the default config setting when reading container log lines. This resulted in the collector not efficiently reading rotated files an high volume clusters and holding onto deleted file handles for a long time. This change increases the number of bytes read allowing the collector to more efficiently process rotated files.
    • Bug Fix
    • Proposed
    • Critical

      Description of problem:

      Modify the max_read_bytes of vector to allow it to more efficiently read rotated files to mitigate LOG-3949.

      Disk usage was consistently filling up, following one application pod around the environment. du did not show the disk usage, but lsof showed a large number of deleted files were still being locked by Vector:

      vector 3430171 root 163r REG 8,4 105040954 1040189142 /var/log/pods/example-dev_example-cmd-linux-2_a9a87c45-ecad-49af-bdb7-3877273e5b95/example-cmd-linux-pod/0.log.20230403-205041 (deleted)
      

      Deleting the collector pod (or killing the vector process) releases the files and they fully delete, clearing the space.

      Version-Release number of selected component (if applicable):

      cluster-logging.5.5.4

      How reproducible:

      So far failed to reproduce. At this time the application which caused the issue is no longer running so not currently able to gather data from original cluster as the issue is active.

      Expected results:

      Vector should release deleted files.

      Additional info:

        1. vector_openfiles_5.7.6.png
          vector_openfiles_5.7.6.png
          46 kB
        2. vector_open_files_record1.png
          vector_open_files_record1.png
          63 kB
        3. Logging5.7.5Metrics.png
          Logging5.7.5Metrics.png
          60 kB
        4. file-handle comparison.png
          file-handle comparison.png
          34 kB
        5. 5.7.5_5_crest.png
          5.7.5_5_crest.png
          84 kB

              jcantril@redhat.com Jeffrey Cantrill
              rhn-support-stwalter Steven Walter
              Kabir Bharti Kabir Bharti
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: