Puma App Instances on Heroku

回眸只為那壹抹淺笑 提交于 2019-12-11 10:07:25

问题


I'm using New Relic for server analytics of a Heroku app. The app uses the Puma web server and MAX_THREADS is set to 1.

Why does New Relic says that I've got 4 app instances on each Heroku dyno rather than just 1?

web.1
4 app instances

web.2
4 app instances

worker.1
1 app instance

I'm thinking that an "app instance" on New Relic is the same as a thread. Or does it refer to something else?


回答1:


App instance means worker. this worker is different with heroku worker. it is process that is forked.

If you set 1 max thread, there are 4 processes(workers) and each process has 1 thread.

Check your puma's thread and worker configuration



来源:https://stackoverflow.com/questions/34468059/puma-app-instances-on-heroku

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!