Notice for App being in use
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?
@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.
@msbt Good idea!
@nebulon Also a good idea!!
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.
A Former User last edited by
@girish I like this a lot as something you can configure. Naming could be on-demand vs always-on?
@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.
robi last edited by
@fbartels We can always have a simple runner page preload indicating the rehydration of the app and how to avoid it.
Gamify it a bit..