shiny server pro: default timeouts?

683 views
Skip to first unread message

Dean Attali

unread,
Jun 19, 2015, 5:40:17 AM6/19/15
to shiny-...@googlegroups.com
In the docs for shiny server it says that app_idle_timeout and app_session_timeout have no default. Does this mean that an app and a session will never time out? Or is the default just not shown?  

Suhas Xavier

unread,
Nov 22, 2015, 6:01:28 PM11/22/15
to Shiny - Web Framework for R


On Friday, 19 June 2015 02:40:17 UTC-7, Dean Attali wrote:
In the docs for shiny server it says that app_idle_timeout and app_session_timeout have no default. Does this mean that an app and a session will never time out? Or is the default just not shown?  


I have the exact same question. By the current looks of it, the app never times out! Dean, have you been able to find a solution to this? It would be really helpful if you'd share any insights on this. Thanks

Dean Attali

unread,
Nov 22, 2015, 7:27:48 PM11/22/15
to Suhas Xavier, Shiny - Web Framework for R
Haven't looked into it since posing the question, sorry.

--
You received this message because you are subscribed to a topic in the Google Groups "Shiny - Web Framework for R" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/shiny-discuss/A_XjbvX0SEQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to shiny-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/shiny-discuss/75e1f533-8b21-4d06-b699-c3f79c855c66%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Joe Cheng

unread,
Nov 24, 2015, 2:58:24 PM11/24/15
to Dean Attali, Suhas Xavier, Shiny - Web Framework for R
The default timeouts appear to be 60 seconds for app_init_timeout, and 5 seconds for app_idle_timeout. Really strange that they are not documented properly.

You received this message because you are subscribed to the Google Groups "Shiny - Web Framework for R" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shiny-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/shiny-discuss/CA%2Bj8Z%2Bm%3Dt21n2fv_fJjDPOg9x0ZH__5j4HbBMguF5-tfWdvMeg%40mail.gmail.com.

Suhas Xavier

unread,
Nov 24, 2015, 3:02:10 PM11/24/15
to Joe Cheng, Shiny - Web Framework for R, Dean Attali

Joe,

These default timeouts are only applicable for Shiny Server PRO not for the regular shiny server.

Regards
Suhas Xavier

Joe Cheng

unread,
Nov 24, 2015, 3:03:21 PM11/24/15
to Suhas Xavier, Shiny - Web Framework for R, Dean Attali

Suhas Xavier

unread,
Nov 24, 2015, 3:13:45 PM11/24/15
to Joe Cheng, Shiny - Web Framework for R, Dean Attali
I have an app hosted on the open source shiny server with the below shiny-server.conf file.

# Instruct Shiny Server to run applications as the user "shiny"
run_as shiny;

# Define a server that listens on port 3838
server {
  listen 3838;
 
  # Define a location at the base URL
  location / {

    # Host the directory of Shiny Apps stored in this directory
    site_dir /srv/shiny-server;

    # Log all Shiny output to files in this directory
    log_dir /var/log/shiny-server;
    app_idle_timeout 10;
    # When a user visits the base URL rather than a particular application,
    # an index of the applications available in this directory will be shown.
    directory_index on;

  }
}
~                 

Irrespective of the fact that the timeout is set to 10 seconds, it simply does not time out!  I even raised a question on the r studio community and they acknowledged the same. 

Joe Cheng

unread,
Nov 24, 2015, 3:23:38 PM11/24/15
to Suhas Xavier, Shiny - Web Framework for R, Dean Attali
The idle timeout is for when all users have left an app--after that number of seconds of no visitors being connected, the R process for that app will terminate.

Suhas Xavier

unread,
Nov 24, 2015, 3:26:21 PM11/24/15
to Joe Cheng, Shiny - Web Framework for R, Dean Attali
Got it. So there's no way of timing out a session without going PRO.
Thanks for your time.
Reply all
Reply to author
Forward
0 new messages