shinyapps.io settings · Issue #2 · LieberInstitute/spatialLIBD (original) (raw)
Hi,
Based on the fact that the app loads about 2.5 GB of data into RAM to start off, plus looking at the metrics it seems like the app easily reaches 3GB sometimes even 4GB of RAM per user. I still haven't figured out the best set of settings to use for https://jhubiostatistics.shinyapps.io/spatialLIBD/ based on the documentation at https://docs.rstudio.com/shinyapps.io/applications.html#ApplicationPerformanceTuning and what I see in practice.
pryr::object_size(sce) 2.08 GB pryr::object_size(sce_layer) 34 MB pryr::object_size(modeling_results) 20.3 MB pryr::object_size(sig_genes) 340 MB
Total
pryr::object_size(sce, sce_layer, modeling_results, sig_genes) 2.47 GB
We can run up to 10 instances, each of which can have XX number of R workers, with each R worker powering YY number of connections. Earlier I had XX = 1, YY = 1; however we easily ran into "503 resource unavailable" errors. So I now changed it to XX = 1, YY = 2 and added information on the landing page about how you can run the app locally with spatialLIBD::run_app()
. Earlier today with a single instance, I could easily crash sessions (connections) if I opened 2-3 of them. And that's using xxxlarge, 8192 MB
instances (the largest ones).
Anyway, if you have ideas of the best set of settings to use, please let me know.
Thanks!
Leo