Skip to content
GitLab
Next
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • gitaly gitaly
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 561
    • Issues 561
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 56
    • Merge requests 56
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GitLab.orgGitLab.org
  • gitalygitaly
  • Issues
  • #3719
Closed
Open
Issue created Jul 28, 2021 by Sami Hiltunen@samihiltunenMaintainer

Crawl disks of Gitaly nodes in the cluster to clean up left over repositories

Gitalys may contain stale repositories as a result of failing RPCs. For example, Gitaly may create a repository as part of an RPC. If the call fails, this stale repository may be left on the disk. Likewise, failed rename operations would have also left orphaned repositories on the disk.

We should have a crawler in Praefect that periodically compares the contents of the Gitalys to what it expects to be present and removes everything that should not be there. This cleans up stale repositories left over from various failed operations and frees up disk space on the Gitalys.

cc @zj-gitlab @mjwood

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking