ministryofjustice / analytics-platform

Parent repository for the MOJ Analytics Platform
MIT License
14 stars 1 forks source link

Shiny apps greying out after 5 mins + #71

Closed RobinL closed 1 year ago

RobinL commented 6 years ago

The change to NLB has made a big improvements to Shiny app 'greying out' problems.

However, we're still seeing these issues. They no longer happen immediately (within the first 30 seconds of running the app), but they can happen over longer time horizons (after roughly 5 mins +).

I've observed this behaviour using R Shiny within R Studio, and we've also had reports from deployed app customers

davidread commented 5 years ago

Here's a screenshot, for reference: image 4

davidread commented 5 years ago

It's suggested that networks like Quantum are not conducive to keeping websockets etc open. This might well be a smart firewall closing things after a time. 🤷‍♂️

We're experimenting with adding a line to the Shiny app's Dockerfile that tells it not to use various transport protocols. We need to cut it down to what works, but as a starting point it's: RUN echo "disable_protocols websocket xdr-streaming xhr-streaming iframe-eventsource iframe-htmlfile xdr-polling xhr-polling iframe-xhr-polling;" >> /etc/shiny-server/shiny-server.conf