Open prettymuchbryce opened 6 years ago
Yup, actually, it is currently being designed! Status widget will be initially introduced in IPFS Desktop, but will eventually also land in WebUI (when we get back to refreshing it).
See initial mockup of such "stats gauge" at: https://github.com/ipfs-shipyard/pm-ipfs-gui/issues/12#issuecomment-361733414 (last one). FYI there are even more mockups for various parts of new UI Kit at https://github.com/ipfs-shipyard/pm-ipfs-gui/issues/7#issuecomment-364497449 (note this is not final, just work in progress :))
It'd be great to show the repo stats.
A good solution for this will need to take into account that the StorageMax
value is a guide that indicates when ipfs should run GC on the repo to try and free some space. StorageMax
is not a hard limit and if GC isn't enabled, it's entirely possible the reported RepoSize
could exceed the StorageMax
value, so we should visualise it in a way that shows that clearly with StorageMax
as a threshold rather than a max value.
StorageMax
A soft upper limit for the size of the ipfs repository's datastore. With StorageGCWatermark, is used to calculate whether to trigger a gc run (only if --enable-gc flag is set).
Comment from @lidel in https://github.com/ipfs-shipyard/ipfs-webui/issues/887#issuecomment-440330288
Here's an idea: replace CountryChart with a "StorageChart" – a pie chart composed from various sources:
RepoSize
vs StorageMax
from ipfs stats repo --size-only
CumulativeSize('/')
from ipfs files stat / --size
(and maybe lazy-loaded ipfs files stat / --size --with-local
which is expensive)How is this useful?
cursor: help
) and open docs explaining IPFS concepts (opportunity to improve docs, as we don't have "ipfs repository" on the concepts page yet)StorageMax
&RepoSize
) and if RepoSize
is bigger, use it as 100% and display the chunk over StorageMax
in red. Clicking on it or hovering could display information about GC (how it works, how to enable it).I would like to hear your thoughts on this.
@olizilla I agree, your suggestion would be more practical than the one we have now on the Status page.
I'm a newbie to IPFS, so I don't know if the following stats are available in IPFS or even possible to get, but I think it would be great to show these somewhere (probably on the Files page):
Related: https://github.com/ipfs/ipfs-gui/issues/39 -- adding controls for node start/stop, bandwidth/size management.
Is there any interest in some UI which displays how much space is remaining in the repo? I currently don't see this information available from anywhere within the UI.
We could use the
/api/v0/stats/repo
API to display some sort of bar forRepoSize
/StorageMax
.