mirror of
https://github.com/kennethreitz/heroku-buildpack-python.git
synced 2026-06-05 23:10:16 +00:00
84f2fb5396
* update python.gunicorn.sh to WEB_CONCURRENCY.sh * don't remove WEB_CONCURRENCY for prefixed 0s * split gunicorn functionality into its own file * cleanup comments * fix var ordering * add retry to curl * use proper url for buildpack stdlib
29 lines
513 B
Bash
Executable File
29 lines
513 B
Bash
Executable File
case $(ulimit -u) in
|
|
|
|
# Automatic configuration for Gunicorn's Workers setting.
|
|
|
|
# Standard-1X (+Free, +Hobby) Dyno
|
|
256)
|
|
export DYNO_RAM=512
|
|
export WEB_CONCURRENCY=${WEB_CONCURRENCY:-02}
|
|
;;
|
|
|
|
# Standard-2X Dyno
|
|
512)
|
|
export DYNO_RAM=1024
|
|
export WEB_CONCURRENCY=${WEB_CONCURRENCY:-04}
|
|
;;
|
|
|
|
# Performance-M Dyno
|
|
16384)
|
|
export DYNO_RAM=2560
|
|
export WEB_CONCURRENCY=${WEB_CONCURRENCY:-08}
|
|
;;
|
|
|
|
# Performance-L Dyno
|
|
32768)
|
|
export DYNO_RAM=6656
|
|
export WEB_CONCURRENCY=${WEB_CONCURRENCY:-011}
|
|
;;
|
|
|
|
esac |