Tom
Tom

Reputation: 6342

How many requests can be processed simultaneously by R OpenCPU

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.

Upvotes: 3

Views: 429

Answers (1)

Jeroen Ooms
Jeroen Ooms

Reputation: 32988

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.

Upvotes: 2

Related Questions