Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
diaspora
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Milan
diaspora
Commits
335172c4
Commit
335172c4
authored
Jan 24, 2012
by
Maxwell Salzberg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
move unicorn killer to initializer so thin still works, also a fix for newrelic not sending data
parent
8aafd564
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
+8
-3
config.ru
config.ru
+1
-3
config/initializers/unicorn_setup.rb
config/initializers/unicorn_setup.rb
+7
-0
No files found.
config.ru
View file @
335172c4
# Copyright (c) 2010-2011, Diaspora Inc. This file is
# Copyright (c) 2010-2011, Diaspora Inc. This file is
# licensed under the Affero General Public License version 3 or later. See
# the COPYRIGHT file.
...
...
@@ -8,8 +8,6 @@ require ::File.expand_path('../config/environment', __FILE__)
require
::
File
.
expand_path
(
'../lib/unicorn_killer'
,
__FILE__
)
require
::
File
.
expand_path
(
'../lib/rack/chrome_frame'
,
__FILE__
)
# use UnicornKiller::MaxRequests, 1000
use
UnicornKiller
::
Oom
,
400
*
1024
#kill a unicorn that has gone over 400mB
use
Rack
::
ChromeFrame
,
:minimum
=>
8
run
Diaspora
::
Application
config/initializers/unicorn_setup.rb
0 → 100644
View file @
335172c4
# Copyright (c) 2010-2011, Diaspora Inc. This file is
# licensed under the Affero General Public License version 3 or later. See
# the COPYRIGHT file.
if
defined?
Unicorn
Rails
.
application
.
middleware
.
insert
(
0
,
UnicornKiller
::
Oom
,
400
*
1024
)
#kill a unicorn that has gone over 400mB
NewRelic
::
Agent
.
after_fork
(
:force_reconnect
=>
true
)
if
defined?
(
NewRelic
)
end
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment