HomePhabricator
Diffusion Scap 38289c69e15a

Clean up the deployment host

Description

Clean up the deployment host

Tags: Release-Engineering-Team

Maniphest Tasks: T112509

Summary:
I've been watching beta since we've started committing to git for every
deployment, and it seems that the git directory gets out-of-hand pretty
quickly. Leaving loose objects laying around when we flatten the
/srv/mediawiki directory makes for a large /srv/mediawiki/.git
directory.

The flattening of the mediawiki directory has been running for a week on
beta. The size of /srv/mediawiki/.git yesterday was 829 MB, after a
git gc it was 334 MB.

This commit runs git gc --auto for every deployment on
/srv/mediawiki. It also handles clean up of tags for all scap3 repos,
since there are a lot hanging around.

Should fix T112509

Reviewers: dduvall, Release-Engineering-Team, mmodell, demon, hashar

Reviewed By: Release-Engineering-Team, mmodell

Differential Revision: https://phabricator.wikimedia.org/D503

Details

Provenance
thciprianiAuthored on Jan 9 2017, 8:07 PM
Reviewer
Release-Engineering-Team
Differential Revision
D503: Clean up the deployment host
Parents
rMSCA914c452f3d8b: Don't output extra blank lines when creating a progress reporter
Branches
Unknown
Tags
Unknown
ChangeId
None