R OpenCPU可以同时处理多少个请求 [英] How many requests can be processed simultaneously by R OpenCPU

查看:92
本文介绍了R OpenCPU可以同时处理多少个请求的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是OpenCPU的新手,请查看 https://www.opencpu.org/,看来OpenCPU可以同时处理http请求?我之所以这么问,是因为R本身仅具有单线程模式,并且它可以并发处理多少个请求?

谢谢.

解决方案

如果运行基于Apacheopencpu-server,则并发请求数没有限制.您可以在 prefork 设置中调整工作人员的数量. >

另一方面,R中的本地单用户服务器仅使用单个R进程.您仍然可以发出并发请求,但是它们会自动排在一个队列中并一个接一个地处理.

一种或另一种方式,您不必在客户端中担心它.

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.

解决方案

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.

这篇关于R OpenCPU可以同时处理多少个请求的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆