Memoize GitLab logger to reduce open file descriptors
We see that in gitlab-org/gitlab-ee#3664 that if we log a lot of
data in Sidekiq workers, the number of open file descriptors
reaches over 1000. To avoid this, we can memoize the logger per
thread via RequestStore.
Closes gitlab-org/gitlab-ee#3664
Showing
changelogs/unreleased/sh-memoize-logger.yml
0 → 100644
spec/lib/gitlab/app_logger_spec.rb
0 → 100644
Please
register
or
sign in
to comment