Multiple rsessions for a single user

rstudio

#1

we are running open source rstudio 1.1 and users often get locked with their session and we do a cleanup of user Rtmp** and rstudio session clean up and kill ps -fe | grep rsession of user process. is there any fix for this?

user-id 110214 1 0 Aug31 ? 00:00:10 /usr/lib/rstudio-server/bin/rsession -u user-id --launcher-token 6856211
user-id 110216 1 0 Aug31 ? 00:00:10 /usr/lib/rstudio-server/bin/rsession -u user-id --launcher-token 6856211
user-id 110218 1 0 Aug31 ? 00:00:12 /usr/lib/rstudio-server/bin/rsession -u user-id --launcher-token 6856211
user-id 110220 1 0 Aug31 ? 00:00:13 /usr/lib/rstudio-server/bin/rsession -u user-id --launcher-token 6856211
user-id 110222 1 0 Aug31 ? 00:00:09 /usr/lib/rstudio-server/bin/rsession -u user-id --launcher-token 6856211
user-id 110224 1 0 Aug31 ? 00:00:09 /usr/lib/rstudio-server/bin/rsession -u user-id --launcher-token 6856211
user-id 110226 1 0 Aug31 ? 00:00:11 /usr/lib/rstudio-server/bin/rsession -u user-id --launcher-token 6856211
user-id 110228 1 0 Aug31 ? 00:00:09 /usr/lib/rstudio-server/bin/rsession -u user-id --launcher-token 6856211
user-id 110230 1 0 Aug31 ? 00:00:07 /usr/lib/rstudio-server/bin/rsession -u user-id --launcher-token 6856211
user-id 110232 1 0 Aug31 ? 00:00:09 /usr/lib/rstudio-server/bin/rsession -u user-id --launcher-token 6856211
user-id 110234 1 0 Aug31 ? 00:00:09 /usr/lib/rstudio-server/bin/rsession -u user-id --launcher-token 6856211


#2

HI @mksf

What do you mean by locked ?

Your question title mentioned multiple session. Know that the open source product Rstudio Server doesn't have the feature for multiple RSession. It is a pro feature. So each user can have only one session open. in a browser, as soon as another tab is opened for a new session, the first one is disconnect. It is the same if the same user is used elsewhere.

With all this in mind, please can you give us more information on what is going on and what you are expecting ? thanks!


#3

thanks @cderv for your quick reply. we run open source rstudio in a docker container with R 3.3.1 version. we have close to fifty-sixty users using on daily basis. we get users request saying that their session is hung and cant load or do anything with rstudio. those cases we generally clear their /tmp/Rtmp* of the users and kill rsession of user.what we expect is it a known issue or we have workaround.thanks


#4

I don't know if this is a common setup but it looks definitely not usual to me ! :blush: That is a lot of users for such a setup!! I assume it is one docker container by user ?

In my company, we began by a Rstudio server open source in a docker container for a small team (5) and when it was proven to be useful for other we switched rapidly to 1 Rstudio pro server then 2 servers, that allowed us to offer better services to the 50 and more users. Just to let you know that it cost sure, but it could ease the administration and be better for users. :wink:

On you issue, unfortunately, I am not sure I can help more. I don't believe it is an issue with the product, maybe more with the setup and the number of user. I think You'll have to wait to see if someone else have done the same and have experience or from someone of Rstudio that may have experience too.

Thanks for the precision by the way! :smile: