You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 4703764
Browse filesBrowse the repository at this point in the historyBrowse files
Made a few changes to vastly increase the speed of the exporter.
- Increased each channel buffer up to 100 from 0.
- 5x ed the worker count from 600 to 3000
- Added a fast object list GCS library (mostly copied over from
vulnfeeds), and split up the initial object listing loop at various
places.
- This is mostly guesswork at the moment, ideally we should do a review
of where to roughly evenly split the work every now and then. But good
enough for now.
- This does mean the exporter will slow down near the end.
- Refactored message receiving to use the `for` syntax. This should be a
slight behavior change where we won't cancel based on the context, but
only when the channel is closed. (Or when the context is cancelled on
the sending side, just never on the receiving side)
- Fixed README typos
- Use logger.ErrorContext instead of logger.Error
-
outBucketName:=flag.String("bucket", "osv-test-vulnerabilities", "Output bucket or directory name. If -local is true, this is a local path; otherwise, it's a GCS bucket name.")
34
38
vulnBucketName:=flag.String("osv-vulns-bucket", os.Getenv("OSV_VULNERABILITIES_BUCKET"), "GCS bucket to read vulnerability protobufs from. Can also be set with the OSV_VULNERABILITIES_BUCKET environment variable.")
35
39
uploadToGCS:=flag.Bool("upload-to-gcs", false, "If false, writes the output to a local directory specified by -bucket instead of a GCS bucket.")
36
-
numWorkers:=flag.Int("workers", 200, "The total number of concurrent workers to use for downloading from GCS and writing the output.")
40
+
numWorkers:=flag.Int("workers", 1000, "The total number of concurrent workers to use for downloading from GCS and writing the output.")
41
+
breakdownPrefixesStr:=flag.String("breakdown-prefixes", "", "Comma-separated list of prefix breakdowns for parallel GCS object listing. Defaults to A-Z if empty.")
0 commit comments