Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2018-02-01 13:48:32 +0300
committerLin Jen-Shin <godfat@godfat.org>2018-02-07 17:45:02 +0300
commitd4d564c8e7d2cbc3e6742475a793ba0f630167e3 (patch)
tree4c4b7cf558f37dc8d987dd3533010436a805a858 /config.ru
parent0b9825ca461670941a098a664e997fca04d2d9f9 (diff)
Try not to hold env and release the controller
after the request. This way, we could release the project referred from the controller, which potentially referred a repository which potentially allocated a lot of memories. Before this change, we could hold the last request data and cannot release the memory. After this change, the largest request data should be able to be collected from GC. This might not impact the instances having heavy load, as the last request should be changing all the time, and GC won't kick in for each request anyway. However it could still potentially allow us to free more memories for each GC runs, because now we could free one more request anyway.
Diffstat (limited to 'config.ru')
-rw-r--r--config.ru1
1 files changed, 1 insertions, 0 deletions
diff --git a/config.ru b/config.ru
index de0400f4f67..c4bef72308e 100644
--- a/config.ru
+++ b/config.ru
@@ -23,5 +23,6 @@ warmup do |app|
end
map ENV['RAILS_RELATIVE_URL_ROOT'] || "/" do
+ use Gitlab::ReleaseController
run Gitlab::Application
end