Skip to content

indexserver: delete tmp dir on startup#646

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

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

Conversation

@stefanhengl
Copy link
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.

@daxmc99
Copy link
Contributor

daxmc99 commented Sep 14, 2023

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
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
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