s-u / Rserve

Fast, flexible and powerful server providing access to R from many languages and systems
http://RForge.net/Rserve
Other
282 stars 65 forks source link

Rserve memory exhaustion - no mechanism to prevent out of memory #112

Closed jacoblovatt1987 closed 5 years ago

jacoblovatt1987 commented 6 years ago

Rserve doesn't seem to implement any kind of throttling/limiting of currency to prevent forking when this would exhaust memory.

Is this by design, and if so does this imply throttling/limiting concurrency needs to be implemented outside of Rserve?

dselivanov commented 6 years ago

duplicate #91 - use HAproxy or nginx if needed

s-u commented 6 years ago

Correct, Rserve doesn't provide any kind throttling (it only provides optional memory limits per session). Other than in control command mode the server keeps no track of spawned connections. It is recommended to use nginx or similar which have virtually no overhead and are very flexible in the way of configuration. Given the very dynamic nature of R, is it not clear how a practically reliable approach could be implemented beyond just connection count limits.