diff options
author | Stan Hu <stanhu@gmail.com> | 2018-03-30 01:20:32 -0700 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2018-03-30 01:23:57 -0700 |
commit | cc82abbde0c8994a64183f4d7250966b3d462b66 (patch) | |
tree | 319715a1a85d582e1130d44f8db40b94678cbe6f /changelogs | |
parent | 9b76d8512a5491202e5a953950cc815be9536648 (diff) | |
download | gitlab-ce-cc82abbde0c8994a64183f4d7250966b3d462b66.tar.gz |
Free open file descriptors and libgit2 buffers in UpdatePagesServicesh-cleanup-pages-worker
In UpdatePagesService, we were seeing a large number of open pack files in
production. Calling Project#cleanup removes a reference to Rugged::Repository
and forces libgit2 to close file descriptors and free its internal memory
cache.
Relates to https://gitlab.com/gitlab-com/infrastructure/issues/3965#note_65837525
Diffstat (limited to 'changelogs')
-rw-r--r-- | changelogs/unreleased/sh-cleanup-pages-worker.yml | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/changelogs/unreleased/sh-cleanup-pages-worker.yml b/changelogs/unreleased/sh-cleanup-pages-worker.yml new file mode 100644 index 00000000000..c26e1342dd2 --- /dev/null +++ b/changelogs/unreleased/sh-cleanup-pages-worker.yml @@ -0,0 +1,5 @@ +--- +title: Free open file descriptors and libgit2 buffers in UpdatePagesService +merge_request: +author: +type: performance |