Skip to content

indexserver: delete tmp dir on startup#646

Merged
stefanhengl merged 3 commits into
mainfrom
sh/delete-tmp-on-startup
Sep 15, 2023
Merged

indexserver: delete tmp dir on startup#646
stefanhengl merged 3 commits into
mainfrom
sh/delete-tmp-on-startup

Conversation

@stefanhengl

Copy link
Copy Markdown
Member

This probably caused our tmp dir in /data/index/.indexserver.tmp/ to run full. In production we saw data from years ago using significant space.

Comment thread cmd/zoekt-sourcegraph-indexserver/main.go
Comment thread cmd/zoekt-sourcegraph-indexserver/main.go
@daxmc99

daxmc99 commented Sep 14, 2023

Copy link
Copy Markdown
Contributor

We looked at this during the incident
https://sourcegraph.sourcegraph.com/github.com/sourcegraph/zoekt/-/blob/cmd/zoekt-sourcegraph-indexserver/meta.go?L63-64
I assume we determined this is unrelated?

@stefanhengl

Copy link
Copy Markdown
Member Author

We looked at this during the incident
https://sourcegraph.sourcegraph.com/github.com/sourcegraph/zoekt/-/blob/cmd/zoekt-sourcegraph-indexserver/meta.go?L63-64
I assume we determined this is unrelated?

Yes, that is unrelated.

stefanhengl and others added 2 commits September 15, 2023 08:46
This probably caused our tmp-dirs to run full. In production we saw data
from years ago taking up disk space.

Co-authored-by: Petri-Johan Last <petri.last@sourcegraph.com>
Co-authored-by: Keegan Carruthers-Smith <keegan.csmith@gmail.com>
@stefanhengl stefanhengl force-pushed the sh/delete-tmp-on-startup branch from 47e93b0 to 40f37cb Compare September 15, 2023 06:47
@stefanhengl

Copy link
Copy Markdown
Member Author

rebased on main

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants