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-07-31 13:47:15 +0300
committerLin Jen-Shin <godfat@godfat.org>2018-07-31 14:02:59 +0300
commite315dca6ceb5528a9b2c0f6d76261281a61a65b9 (patch)
treeed6f4887ce8aff22aefeca9cdf2b6593eab77617 /config/unicorn.rb.example
parenteb8597a1b9eb575121f09b8b9904c0ad7cd489cc (diff)
Copy important changes from unicorn.rb.example to
unicorn.rb.example.development. Also remove unneeded configurations and update the comment accordingly. I think REE was long dead.
Diffstat (limited to 'config/unicorn.rb.example')
-rw-r--r--config/unicorn.rb.example8
1 files changed, 4 insertions, 4 deletions
diff --git a/config/unicorn.rb.example b/config/unicorn.rb.example
index 8f2d842e5b6..020e9a00d87 100644
--- a/config/unicorn.rb.example
+++ b/config/unicorn.rb.example
@@ -67,11 +67,11 @@ pid "/home/git/gitlab/tmp/pids/unicorn.pid"
stderr_path "/home/git/gitlab/log/unicorn.stderr.log"
stdout_path "/home/git/gitlab/log/unicorn.stdout.log"
-# combine Ruby 2.0.0dev or REE with "preload_app true" for memory savings
-# http://rubyenterpriseedition.com/faq.html#adapt_apps_for_cow
+# Save memory by sharing the application code among multiple Unicorn workers
+# with "preload_app true". See:
+# https://www.rubydoc.info/gems/unicorn/5.1.0/Unicorn%2FConfigurator:preload_app
+# https://brandur.org/ruby-memory#copy-on-write
preload_app true
-GC.respond_to?(:copy_on_write_friendly=) and
- GC.copy_on_write_friendly = true
# Enable this flag to have unicorn test client connections by writing the
# beginning of the HTTP headers before calling the application. This