Notice for App being in use
-
Hi!
I maintain my Cloudron and have several sites (mostly Wordpress) hosted on it for clients. They are located in all kinds of time zones.
This morning (for me) I saw that there is the 6.0.1 upgrade available, which requires a restart I imagine. But before I do so, I wondered if any of my clients are on their sites doing something. I've tried before to send a quick message, but they don't always see it in the timeframe I'm hoping for.Soooo, if there a way for me to see if an app is "in use" from my Cloudron dashboard? Could there be a way for this sort of activity to be viewable, either a feature added by the Cloudron team, or a WP plugin that I could install and thus monitor the sites that way?
Thank you.
-
@scooke if you check the event log, you can see at least when someone logged in, like
just now ldap - yourwordpress.com user logged in
This only shows new logins, so if they didn't log out and use an older session, you won't be seeing that.
-
I can see that feature being useful, but I guess one would need quite some understanding of the app to distinguish public visitors, logged-in users, then see if they are active or idling (ie just a browser tab open).
I guess what you could do is to add like matomo analytics to those sites, afterall this is what analytics are for and matomo has some realtime update feed.
-
To go a bit on a tangent, I like the idea in Heroku where an app automatically shuts down when it's not in use for a while. And automatically starts up when a request comes in (I think even sandstorm had such a feature). I don't know how easy it would be to implement this though. This way apps that are not in use automatically go into "dormant" mode.
-
@girish that can be done with "socket activation", this is explained quite nicely in https://blog.developer.atlassian.com/docker-systemd-socket-activation/
But i guess it also depends on the app in question if it can startup fast enough to not have the user give up on the first request.