Uploaded image for project: 'Clair'
  1. Clair
  2. CLAIRDEV-66

Vulnerability updates via streaming

XMLWordPrintable

    • Icon: Epic Epic
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • None
    • updater
    • Streaming DB API
    • False
    • Hide

      None

      Show
      None
    • False
    • To Do
    • 0% To Do, 50% In Progress, 50% Done

      Problem
      The existing DB APIs for vulnerability updates require updater-defined batches of vulnerabilities, forcing clients to allocate a large number of vulnerabilities in memory. This update operation may require more than 3GiB for some updaters (e.g., RH OVAL unpatched). But, except for delta updates, the pre-allocation of vuln in memory is unnecessary as the update steps don't require processing the data other than iterating over it to write to the DB transaction. For such APIs, accepting a mechanism to stream the data would significantly reduce the required memory to perform updates and open the door to make the memory load constant.

      Outcome
      Support a mechanism to stream vulnerability data in the DB APIs, that is backward compatible with non-streaming clients. Preferably the API should support rangefunc semantics.

            Unassigned Unassigned
            jvmartin@redhat.com J. Victor Martins
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: