Kev*_*vin 1 linux ubuntu shiny shiny-server
我有一个downloadHandler
内置的闪亮应用程序,它适用于较小的数据集,但是当文件变大 (330 MB) 时,它会超时并出现错误。
我发现这个 SO 问题(闪亮的 downloadHandler timeout)似乎解决了答案,尽管我不知道如何更新配置文件以考虑http_keepalive_timeout
。
下面是我的配置文件:
# 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;
# 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;
}
}
Run Code Online (Sandbox Code Playgroud)
使用此 SO answer 修复它用户会话在大约之后被中断。45 秒
我把这个http_keepalive_timeout
函数放在了错误的地方。请参阅下面的正确shiny-server.conf
更新:
# Instruct Shiny Server to run applications as the user "shiny"
run_as shiny;
http_keepalive_timeout 180;
# 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;
# 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;
}
}
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
2244 次 |
最近记录: |