Skip to content

Optimization: Enable Prefetch on Server #308

Description

@ric-evans

As first attempted in #304 (before that turned into a CI-focussed PR), the scanner server would benefit from using prefetch for incoming pixel recos (fewer http calls to mq broker, more messages per call).

Prefetching would likely not decrease the runtime of most scans, but it would speed up the initial ~80% (hand-wavy estimate) of the scan. Toward the end of every scan, the server is idle (waiting for messages) more often than it is actively fetching -- AKA there is a long tail.

See b250d43

Will need testing in the dev-production environment.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestprod concerna problem with running at scale

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions