Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
H
heroku-buildpack-nodejs
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Python-Dev
heroku-buildpack-nodejs
Commits
283c52a3
Commit
283c52a3
authored
Aug 17, 2015
by
Hunter Loftis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test and implementation for new 14GB Performance-L dynos
parent
b4921004
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
9 deletions
+9
-9
nodejs.sh
profile/nodejs.sh
+4
-4
run
test/run
+5
-5
No files found.
profile/nodejs.sh
View file @
283c52a3
...
...
@@ -20,10 +20,10 @@ detect_memory() {
local
limit
=
$(
ulimit
-u
)
case
$limit
in
256
)
echo
"512"
;;
# Standard-1X
512
)
echo
"1024"
;;
# Standard-2X
16384
)
echo
"2560"
;;
# Performance-M
32768
)
echo
"
6144
"
;;
# Performance-L
256
)
echo
"512"
;;
# Standard-1X
512
)
echo
"1024"
;;
# Standard-2X
16384
)
echo
"2560"
;;
# Performance-M
32768
)
echo
"
14336
"
;;
# Performance-L
*
)
echo
"
$default
"
;;
esac
}
...
...
test/run
View file @
283c52a3
...
...
@@ -39,11 +39,11 @@ testConcurrencyPerformanceM() {
assertCapturedSuccess
}
testConcurrencyP
X
()
{
LOG_CONCURRENCY
=
true
MEMORY_AVAILABLE
=
6144
capture
$(
pwd
)
/profile/nodejs.sh
assertCaptured
"Detected 6144
MB available memory, 512 MB limit per process (WEB_MEMORY)"
assertCaptured
"Recommending WEB_CONCURRENCY=12
"
assertCapturedSuccess
testConcurrencyP
erformanceL
()
{
LOG_CONCURRENCY
=
true
MEMORY_AVAILABLE
=
14336
capture
$(
pwd
)
/profile/nodejs.sh
assertCaptured
"Detected 14336
MB available memory, 512 MB limit per process (WEB_MEMORY)"
assertCaptured
"Recommending WEB_CONCURRENCY=28
"
assertCapturedSuccess
}
testConcurrencyCustomLimit
()
{
...
...
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