How can I tell if a user is idle on a Ubuntu AWS EC2 instance? [closed]
We are supporting users on individual AWS instances. It can be expensive to maintain these in a running state if the users are idle. The users are mostly running JupyterHub and/or RStudio
I've written a script that checks for user processes and sums up the amount of CPU they are using. This would be run periodically, We could also check files being updated in the users home directory. But we are worried that interactive activities such as writing code or interacting with JupyterHub and RStudio won't either change any files or generate enough CPU activity to be caught by our monitoring (which is in effect just sampling the data). We are trying to avoid having our users lose any work when the machines go to the stopped state. I did a search through previous questions, and I didn't see any answers for my specific question. Has anyone dealt with this problem or a related problem successfully? Any advice/suggestions would be appreciated. Also, if there is another of the Stack Exchange sites that makes more sense for this question, I'd be happy to repost there.
aws idle
closed as off-topic by mikewhatever, karel, Charles Green, Eric Carvalho, Soren A Jan 31 at 14:16
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "This is not about Ubuntu. Questions about other Linux distributions can be asked on Unix & Linux, those about Windows on Super User, those about Apple products on Ask Different and generic programming questions on Stack Overflow." – mikewhatever, karel, Charles Green, Eric Carvalho, Soren A
If this question can be reworded to fit the rules in the help center, please edit the question.
add a comment |
We are supporting users on individual AWS instances. It can be expensive to maintain these in a running state if the users are idle. The users are mostly running JupyterHub and/or RStudio
I've written a script that checks for user processes and sums up the amount of CPU they are using. This would be run periodically, We could also check files being updated in the users home directory. But we are worried that interactive activities such as writing code or interacting with JupyterHub and RStudio won't either change any files or generate enough CPU activity to be caught by our monitoring (which is in effect just sampling the data). We are trying to avoid having our users lose any work when the machines go to the stopped state. I did a search through previous questions, and I didn't see any answers for my specific question. Has anyone dealt with this problem or a related problem successfully? Any advice/suggestions would be appreciated. Also, if there is another of the Stack Exchange sites that makes more sense for this question, I'd be happy to repost there.
aws idle
closed as off-topic by mikewhatever, karel, Charles Green, Eric Carvalho, Soren A Jan 31 at 14:16
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "This is not about Ubuntu. Questions about other Linux distributions can be asked on Unix & Linux, those about Windows on Super User, those about Apple products on Ask Different and generic programming questions on Stack Overflow." – mikewhatever, karel, Charles Green, Eric Carvalho, Soren A
If this question can be reworded to fit the rules in the help center, please edit the question.
1
You could also make clear written instructions for the users to follow. Oh and one thing: why are these users working on the instance itself? I myself work on my own system and sync once every so often with the instance.
– Rinzwind
Jan 18 at 20:49
add a comment |
We are supporting users on individual AWS instances. It can be expensive to maintain these in a running state if the users are idle. The users are mostly running JupyterHub and/or RStudio
I've written a script that checks for user processes and sums up the amount of CPU they are using. This would be run periodically, We could also check files being updated in the users home directory. But we are worried that interactive activities such as writing code or interacting with JupyterHub and RStudio won't either change any files or generate enough CPU activity to be caught by our monitoring (which is in effect just sampling the data). We are trying to avoid having our users lose any work when the machines go to the stopped state. I did a search through previous questions, and I didn't see any answers for my specific question. Has anyone dealt with this problem or a related problem successfully? Any advice/suggestions would be appreciated. Also, if there is another of the Stack Exchange sites that makes more sense for this question, I'd be happy to repost there.
aws idle
We are supporting users on individual AWS instances. It can be expensive to maintain these in a running state if the users are idle. The users are mostly running JupyterHub and/or RStudio
I've written a script that checks for user processes and sums up the amount of CPU they are using. This would be run periodically, We could also check files being updated in the users home directory. But we are worried that interactive activities such as writing code or interacting with JupyterHub and RStudio won't either change any files or generate enough CPU activity to be caught by our monitoring (which is in effect just sampling the data). We are trying to avoid having our users lose any work when the machines go to the stopped state. I did a search through previous questions, and I didn't see any answers for my specific question. Has anyone dealt with this problem or a related problem successfully? Any advice/suggestions would be appreciated. Also, if there is another of the Stack Exchange sites that makes more sense for this question, I'd be happy to repost there.
aws idle
aws idle
asked Jan 18 at 19:23
HowardLanderHowardLander
61
61
closed as off-topic by mikewhatever, karel, Charles Green, Eric Carvalho, Soren A Jan 31 at 14:16
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "This is not about Ubuntu. Questions about other Linux distributions can be asked on Unix & Linux, those about Windows on Super User, those about Apple products on Ask Different and generic programming questions on Stack Overflow." – mikewhatever, karel, Charles Green, Eric Carvalho, Soren A
If this question can be reworded to fit the rules in the help center, please edit the question.
closed as off-topic by mikewhatever, karel, Charles Green, Eric Carvalho, Soren A Jan 31 at 14:16
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "This is not about Ubuntu. Questions about other Linux distributions can be asked on Unix & Linux, those about Windows on Super User, those about Apple products on Ask Different and generic programming questions on Stack Overflow." – mikewhatever, karel, Charles Green, Eric Carvalho, Soren A
If this question can be reworded to fit the rules in the help center, please edit the question.
1
You could also make clear written instructions for the users to follow. Oh and one thing: why are these users working on the instance itself? I myself work on my own system and sync once every so often with the instance.
– Rinzwind
Jan 18 at 20:49
add a comment |
1
You could also make clear written instructions for the users to follow. Oh and one thing: why are these users working on the instance itself? I myself work on my own system and sync once every so often with the instance.
– Rinzwind
Jan 18 at 20:49
1
1
You could also make clear written instructions for the users to follow. Oh and one thing: why are these users working on the instance itself? I myself work on my own system and sync once every so often with the instance.
– Rinzwind
Jan 18 at 20:49
You could also make clear written instructions for the users to follow. Oh and one thing: why are these users working on the instance itself? I myself work on my own system and sync once every so often with the instance.
– Rinzwind
Jan 18 at 20:49
add a comment |
0
active
oldest
votes
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
1
You could also make clear written instructions for the users to follow. Oh and one thing: why are these users working on the instance itself? I myself work on my own system and sync once every so often with the instance.
– Rinzwind
Jan 18 at 20:49