Incident #7122
closedRprototypingLab: the rstudio istance is not the expected one
100%
Description
For testing, I'm trying to use rstudio on RPrototypingLab. I've notice that the portlet redirect me to the wrong rstudio instance (rstudio.d4science.org) although the resource defined on the related service endpoint is the correct one (rstudio1-proto.d4science.org).
Is it possible we have introduced a bug in the last upgrade?
In attachment the portal log.
Files
Updated by Massimiliano Assante about 8 years ago
yes the problem is that now the RStudio instance you access first in any VRE is maintained undependelty of the scope. We'll fix this on Monday, if urgent, since the ICES Course is ended we can restore the previous RStudio Wrapper portlet which does not maintain information
Updated by Massimiliano Assante about 8 years ago
- Status changed from New to In Progress
Updated by Massimiliano Assante about 8 years ago
- Status changed from In Progress to Closed
- % Done changed from 0 to 100
The problem is fixed in production, I just hot deployed the RStudio Wrapper portlet containing the fix.
Now the RStudio instance allocation:
- takes into account the number of instances available in the given context and assign the RStudio instance balancing the load.
- keep the assignee instance for that context until this instance exists in the context. If a problem occurs with that instance a new instance is assigned by looking at the one available.
- If no instances are available the default instance (rstudio.d4science.org) is assigned.
- maintains retro-compatibility with the previous version (that did not take into account the scope), meaning that if user foo had rstudio2 instance set on scope X, then in scope X foo is still assigned to rstudio2 (if valid)