mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-04-11 07:56:28 +00:00
Updated passenger worker size based on this recommendation: https://blog.phusion.nl/2015/11/10/heroku-and-passenger-focus-on-the-app-performance/
This commit is contained in:
4
Procfile
4
Procfile
@@ -1,4 +1,4 @@
|
|||||||
worker: bundle exec bin/delayed_job -n 1 run
|
worker: bundle exec bin/delayed_job -n 1 run
|
||||||
#worker: bundle exec rake jobs:work
|
#worker: bundle exec rake jobs:work
|
||||||
web: bundle exec puma -w 3 -t 5:5 -p ${PORT:-3000} -e ${RACK_ENV:-development}
|
#web: bundle exec puma -w 3 -t 5:5 -p ${PORT:-3000} -e ${RACK_ENV:-development}
|
||||||
#web: bundle exec passenger start -p $PORT --max-pool-size 3
|
web: bundle exec passenger start -p $PORT --max-pool-size 2 --min-instances 2
|
||||||
|
|||||||
@@ -51,8 +51,9 @@ EXPOSE 443
|
|||||||
# Tini solves the zombie PID problem
|
# Tini solves the zombie PID problem
|
||||||
ENTRYPOINT ["/tini", "--"]
|
ENTRYPOINT ["/tini", "--"]
|
||||||
|
|
||||||
CMD bundle exec passenger start --max-pool-size 3 --min-instances 3 --environment production -p 80
|
CMD bundle exec passenger start --max-pool-size 2 --min-instances 2 --environment production -p 80
|
||||||
# Higher max pool uses more ram
|
# Higher max pool uses more ram
|
||||||
|
# Followed recommendation from: https://blog.phusion.nl/2015/11/10/heroku-and-passenger-focus-on-the-app-performance/
|
||||||
|
|
||||||
#CMD bundle exec puma -w 3 -t 5:5 -b 'tcp://0.0.0.0:80' -e production
|
#CMD bundle exec puma -w 3 -t 5:5 -b 'tcp://0.0.0.0:80' -e production
|
||||||
#CMD bundle exec puma -w 3 -t 5:5 -b 'ssl://0.0.0.0:443?key=/ssl/server.key&verify_mode=none&cert=/ssl/server.crt' -e production
|
#CMD bundle exec puma -w 3 -t 5:5 -b 'ssl://0.0.0.0:443?key=/ssl/server.key&verify_mode=none&cert=/ssl/server.crt' -e production
|
||||||
|
|||||||
Reference in New Issue
Block a user