r - How much data can be loaded in a shiny app without causing stability issues? -
right i'm loading 100mb of data in global.r
file of shiny app. while app runs fine locally, shiny server regularly crashes. culprit following error (after waiting 30 seconds app load):
an error has occurred application failed start. application took long respond.
i've tried every possible setting app_init_timeout
, including setting -1 , still no luck.
i'm wondering if there upper bound amount of data can loaded in shiny server session.
here's shiny server config file looks like:
# instruct shiny server run applications user "shiny" run_as shiny; # define server listens on port 3838 server { listen 3838; # define location @ base url location / { # host directory of shiny apps stored in directory site_dir /vagrant/sites/; # log shiny output files in directory log_dir /var/log/shiny-server; # when user visits base url rather particular application, # index of applications available in directory shown. directory_index on; } }
you might want adjust shiny server app_init_timeout
parameter application:
each shiny application has 2 timeouts associated it:
app_init_timeout -- describes amount of time (in seconds) wait application start. after many seconds if r process still has not become responsive, deemed unsuccessful startup , connection closed.
you don't kind of infrastructure running on, if ec2, might want bigger instance.
Comments
Post a Comment