fork of https://github.com/sourcegraph/zoekt
0

Configure Feed

Select the types of activity you want to include in your feed.

gitindex: disable git cat-file optimization by default (#1038)

In our production sourcegraph.com cluster we are regularly seeing git
grow to over 9GB in size leading to OOMs. Once we disabled this flag the
OOMs went away. For now lets default this feature to off until it is
resolved.

+5 -1
+5 -1
gitindex/index.go
··· 619 619 // for the main repo so we can stream them via git cat-file --batch. 620 620 // ZOEKT_DISABLE_CATFILE_BATCH=true falls back to the go-git path for 621 621 // all files, useful as a kill switch if the cat-file path causes issues. 622 - catfileBatchDisabled := cmp.Or(os.Getenv("ZOEKT_DISABLE_CATFILE_BATCH"), "false") 622 + // 623 + // 2026-04-02(keegan) we are regularly seeing git growing to over 9GB in 624 + // memory usage in our production cluster. Disabling by default until the 625 + // issue is resolved. 626 + catfileBatchDisabled := cmp.Or(os.Getenv("ZOEKT_DISABLE_CATFILE_BATCH"), "true") 623 627 useCatfileBatch := true 624 628 if disabled, _ := strconv.ParseBool(catfileBatchDisabled); disabled { 625 629 useCatfileBatch = false