Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion gitindex/index.go
Original file line number Diff line number Diff line change
Expand Up @@ -619,7 +619,11 @@ func indexGitRepo(opts Options, config gitIndexConfig) (bool, error) {
// for the main repo so we can stream them via git cat-file --batch.
// ZOEKT_DISABLE_CATFILE_BATCH=true falls back to the go-git path for
// all files, useful as a kill switch if the cat-file path causes issues.
catfileBatchDisabled := cmp.Or(os.Getenv("ZOEKT_DISABLE_CATFILE_BATCH"), "false")
//
// 2026-04-02(keegan) we are regularly seeing git growing to over 9GB in
// memory usage in our production cluster. Disabling by default until the
// issue is resolved.
catfileBatchDisabled := cmp.Or(os.Getenv("ZOEKT_DISABLE_CATFILE_BATCH"), "true")
useCatfileBatch := true
if disabled, _ := strconv.ParseBool(catfileBatchDisabled); disabled {
useCatfileBatch = false
Expand Down
Loading