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
e12a8625
Commit
e12a8625
authored
Feb 17, 2015
by
Hunter Loftis
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #197 from heroku/document-web-concurrency
document WEB_CONCURRENCY
parents
f3cbf81b
4637d2d5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
README.md
README.md
+16
-0
No files found.
README.md
View file @
e12a8625
...
...
@@ -139,6 +139,22 @@ just include an `.npmrc` file in the root of your project:
registry = 'https://custom-registry.com/'
```
### Reasonable defaults for concurrency
This buildpack adds two environment variables:
`WEB_MEMORY`
and
`WEB_CONCURRENCY`
.
You can set either of them, but if unset the buildpack will fill them with reasonable defaults.
-
`WEB_MEMORY`
: expected memory use by each node process (in MB, default: 512)
-
`WEB_CONCURRENCY`
: recommended number of processes to Cluster based on the current environment
Clustering is not done automatically; concurrency should be part of the app,
usually via a library like
[
throng
](
https://github.com/hunterloftis/throng
)
.
Apps without any clustering mechanism will remain unaffected by these variables.
This behavior allows your app to automatically take advantage of larger containers.
The default settings will cluster
1 process on a 1X dyno, 2 processes on a 2X dyno, and 12 processes on a PX dyno.
### Chain Node with multiple buildpacks
This buildpack automatically exports node, npm, and any node_modules binaries
...
...
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