ipfs / kubo

An IPFS implementation in Go
https://docs.ipfs.tech/how-to/command-line-quick-start/
Other
16.17k stars 3.02k forks source link

Disable metrics database layer with IPFS_LOW_MEM #2946

Open whyrusleeping opened 8 years ago

whyrusleeping commented 8 years ago

Currently, one of the largest consumers of memory is the metrics datastore layers 'hdr histogram'. It consumes between 20 and 30MB of memory. It would be nice if when IPFS_LOW_MEM is set that this layer doesnt get added in, or gets slimmed down in some way.

Kubuxu commented 8 years ago

I am reworking metrics, plan is to have it in interface patter, then on IPFS_LOW_MEM we can just not inject any impl and leave it as NOOP.

Stebalien commented 6 years ago

We can now just disable metrics. Maybe we should be using a profile?