HOW TO KEEP YOUR SHINY SERVER RUNNING ?

If your facing problem in keep running shiny server for long time , I have a solution . 

The Problem: 

  • Shiny server need server restart
  • Shiny server not responding after sometime

    The Solution:  

Increase the RAM size
Ping server at regular interval
Increase app_idle_timeout in Shiny Server Conf
Use systemd to automatically restart shiny server

How to automatically ping your server at regular interval 

Your can add a cronjob to curl the index page of your application

Edit the crontask using crontab -e  . Schedule to run every minute 
* * * * * curl url_to_your_shiny_application


How to increase app_idle_timeout 
On unix system, your can find the configuration file for shiny server at /etc/shiny-server directory

In case of any problem, please ask in comment and solution will be updated 


Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.