New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Provide a "System metrics" entry in the status page, to show disk space, RAM usage, and database size #5858
Comments
I'm creating this issue here after @cellear's request, and looking for feedback around its potential usefulness and whether it is core-worthy, or something best placed in contrib. PR with a sandbox that will allow people to play with this and view the code coming up soon... |
I'm @cellear, and I approve this message. Seriously, I think built-in metrics like this would be super useful. Hosting providers use tools like Sumo Logic and Drutiny to pull out information like this, but if we could give people a bit of that just by looking at the status report...how cool is that! |
PR and sandbox available here: backdrop/backdrop#4254 Some thoughts/observations:
|
...OK, I'm gonna stop here for now, and wait for feedback/thoughts. In the meantime, I'll spin up a Windows installation when I get a chance, and try things there. ...see if we can pull the same kind of metrics reliably on Windows. |
...more thoughts:
|
As this is growing (and it's really nice to have!), should it perhaps be a separate report at admin/reports/system-metrics? The nature of the Status Report seems to be stuff that takes up only a line or so, and most "more" links only expand by another line or few. This listing is as long as, for example, the Telemetry separate report (admin/reports/telemetry). |
If this went into core, I'd like to have a way to turn it off. And ideally it would be off by default. Background to this: on shared hosting most of this is irrelevant info. One usually chooses a hosting plan and the available space is predefined (by quota). Even if the disk space per se were bigger (given that the site has access to that info, given that the main disk were relevant, given that...) - we already know how much we can have. Available RAM ... that's the hoster's job, not the job of a CMS. PHP memory usage changes with every request. CPU load is also something that changes. The only info that might be relevant is the DB size, possibly public and private files ... but hardly ever needed. Still I vote for this to be in contrib. |
I'd also vote for contrib. This seems to be needed only in very limited situations
Question though, does the info reflect the current instance of backdrop, or the entire server? The sandbox site says:
Surely one barebones Backdrop site doesnt consume 9.2GB of RAM? |
Thanks for the feedback everyone 🙏🏼
Yeah 🤔
FTR, I also feel that this should most likely be in contrib... Having said that, when choosing a hosting plan in certain popular providers, the various available options include info about CPU/disk/RAM. For example:
Anyway, when it comes to deciding on a plan, I personally often go with one of the smallest/cheapest plans, thinking that if the site is not performing well, then I can always upgrade to a bigger plan. Perhaps others have other ways to be deciding, but the drive for this feature was the discussion in Zulip around what specs are needed in order to run Backdrop. I was hoping that this would be an indicator that would help with that.
Yeah, I thought that too, but that system RAM is not about the RAM that Backdrop needs, rather than what is being consumed by the server that runs it (or your computer if the site is local) ...which makes me question whether that's useful, since different OS and different configurations may mean different consumption/needs ...on the other hand, reporting only on the currently-used PHP RAM might be misleading 🤔 |
...I'm thinking that perhaps we can only display some of these metrics, in existing sections where possible:
Anyway, I may file a separate PR with that, but the point is that the above metrics can be retrieved using php-native functions or code - the rest of the metrics (such as system RAM/disk and CPU) cannot be reliably retrieved in a OS-agnostic way or in a way that would make them useful, so perhaps leave these for contrib(?) 🤔 |
Or even less frequently. |
I vote for those three metrics to be added in core. The other metrics should be in a contributed module. |
@klonos do you prefer to work on the two newly created issues and close this one here? Or is this issue still relevant? If so, what's its purpose? |
Hey @indigoxela ...sorry for the late reply. The other two issues was an attempt to de-scope and split this issue to more manageable tasks, the only thing left that should be done as part of this issue here is to determine if there are any non-db and non-php related metrics worth to be shown in the site status page. From previous comments here, I believe that the only helpful thing remaining which we could reliably grab info for is the size of the files directory. Since this thread here has many comments now, I think I'll file a 3rd separate issue for this (also incorporating comments/concerns that @indigoxela has expressed in the PR), and I will then close the issue here. |
This feature request was inspired by this discussion in Zulip around "Minimal Backdrop", which touched on topics around what would be the very minimum system specs where Backdrop core would run, and how well it would perform.
Something like this might be helpful to allow determining requirements when:
The text was updated successfully, but these errors were encountered: