mirror of
https://github.com/kennethreitz/heroku-buildpack-python.git
synced 2026-06-05 23:10:16 +00:00
python webconcurrency script
This commit is contained in:
+21
@@ -0,0 +1,21 @@
|
||||
case $(ulimit -u) in
|
||||
|
||||
# 1X DYNO
|
||||
256)
|
||||
export DYNO_RAM=512
|
||||
export WEB_CONCURRENCY=${WEB_CONCURRENCY:-2}
|
||||
;;
|
||||
|
||||
# 2X DYNO
|
||||
512)
|
||||
export DYNO_RAM=1024
|
||||
export WEB_CONCURRENCY=${WEB_CONCURRENCY:-4}
|
||||
;;
|
||||
|
||||
# PX DYNO
|
||||
32768)
|
||||
export DYNO_RAM=8192
|
||||
export WEB_CONCURRENCY=${WEB_CONCURRENCY:-8}
|
||||
;;
|
||||
|
||||
esac
|
||||
Reference in New Issue
Block a user