ipfs / ipfs-webui

A frontend for an IPFS Kubo and IPFS Desktop
https://webui.ipfs.io
MIT License
1.55k stars 482 forks source link

Display info on repo usage/space remaining #629

Open prettymuchbryce opened 6 years ago

prettymuchbryce commented 6 years ago

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 for RepoSize / StorageMax.

lidel commented 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 :))

olizilla commented 5 years ago

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).

https://github.com/ipfs/go-ipfs/blob/1e0d53fe3cb32be903d768495fd0526002a03c63/docs/config.md#datastore

olizilla commented 5 years ago

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:

How is this useful?

I would like to hear your thoughts on this.

andrasfuchs commented 5 years ago

@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):

jessicaschilling commented 4 years ago

Related: https://github.com/ipfs/ipfs-gui/issues/39 -- adding controls for node start/stop, bandwidth/size management.