How many requests can be processed simultaneously by R OpenCPU

≯℡__Kan透↙ 提交于 2020-01-14 14:27:47

问题


I am new to OpenCPU, I look at the documents at https://www.opencpu.org/, It looks that OpenCPU can process http requests concurrently? I ask so because R itself only has single-thread mode, and how many requests can it process concurrently?

Thanks.


回答1:


If you run the Apache based opencpu-server there is no limit to the number of concurrent requests. You can tweak the number of workers in the prefork settings.

The local single-user server in R on the other hand only uses a single R process. You can still make concurrent requests, but they will automatically be queued and processed one after the other.

One way or another, you shouldn't worry about it in the client.



来源:https://stackoverflow.com/questions/44688149/how-many-requests-can-be-processed-simultaneously-by-r-opencpu

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