shinyapps.io one dedicated worker for each user

On shinyapps.io "settings" tab, how can I select the right values of Max Worker Processes, Max Connections, Worker Load Factor, etc. so that I ensure that each new connection is assigned its own dedicated worker?

Why do I need that? I have a very expensive computation that blocks the other users that have been assigned to the same worker. I know that the best solution would be to use futures and promises, but the expensive computation is done at the very beginning of my server and I have many reactive expressions and plots (including non-standard like scatterD3 etc.) that depend on it - so translating the code to asynchronous is far from trivial.

It seems like setting Max Connections=1 does it, regardless of the value of the other parameters. The info here is also very useful to understand what each parameter does: https://shiny.rstudio.com/articles/scaling-and-tuning.html

3 Likes

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.