I have launched a pretty large flexdashboard + shiny app on to shinyapps.io and am running into some deal breaking issues.
My app only works when on a sleeping instance. If anyone connects to an instance that is already running, the app does not run and gives this error in the Devtools Console:
"DevTools failed to load SourceMap: Could not load content for https://landonwall.shinyapps.io/horizon_dashboard_final/coloraxis.js.map: HTTP error: status code 503, net::ERR_HTTP_RESPONSE_CODE_FAILURE"
My solution was to force every new user to their own instance. I turned on 5 instances, but as soon as one person starts the app, all 5 instances start running, and as mentioned before, if an instance is running the error happens.
Also, if you refresh the page you get the same error.
So basically my app only works if you're the first person to activate the app. If you are second, you are out of luck.
Any ideas? This is killing me.
My settings are:
Size: XXXL
Max Worker Processes: 1
Max Connections: 5
Worker load factor: 3
Connection timout: 900
Read Timeout: 3600
Startup timeout: 300
Idle timeout: 60
Instance Load Factor: 2
Start Count: 1