Skip to content
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

WebUI hammers my daemon #882

Open
hsanjuan opened this issue Nov 6, 2018 · 5 comments
Open

WebUI hammers my daemon #882

hsanjuan opened this issue Nov 6, 2018 · 5 comments
Labels
kind/discussion Topical discussion; usually not changes to codebase

Comments

@hsanjuan
Copy link
Contributor

hsanjuan commented Nov 6, 2018

When I open the webUI (maybe after clicking Files) it starts triggering hundreds http://127.0.0.1:5001/api/v0/object/get requests to the IPFS daemon and everything stops working well (my browser, my daemon, my computer). I feel things shouldn't be like this?

@olizilla
Copy link
Member

olizilla commented Nov 7, 2018

Yes. We feel the same feels. There is a runaway cpu load issue caused by using the ipfs-geoip db ipfs/kubo#5613

We've dialled it down, but it could do less. In the short term I will have move the geolocation logic to just the peers page. It will still hammer the daemon, but only when you go looking at your peers list / map. There is #848 to track that.

Longer term we need to calm ipfs down. It should be possible to look up all the ipfs-geoip blocks for 800 ipv4 addresses, without causing the fans to spin.

@olizilla
Copy link
Member

olizilla commented Jan 2, 2019

@hsanjuan web ui no longer tries to do the geolocation unless you are looking at the peers tab. Please take another look; https://webui.ipfs.io has the latest, or when go-ipfs v0.4.19 is released.

@olizilla
Copy link
Member

olizilla commented Jan 2, 2019

Alas, we've updated deps and broken geolocation completely. #918

@hsanjuan
Copy link
Contributor Author

hsanjuan commented Jan 3, 2019

How many object/get is this going to trigger at once (even if only in the peers tab)? I feel it's still not optimal that my daemon explodes when visiting a tab. Automatic parallel DHT lookups for b-tree objects for 500 peers might not be the best approach here?

I really like the idea of making B-trees storing the geo-ip information on ipfs though. It's very nice.

@olizilla
Copy link
Member

olizilla commented Jan 7, 2019

I've dialled it right down, so we queue the requests and excute them one by one rather than in parallel. I plan to redesign the peers page this quarter so that it focuses on highlighting peers near you, and lets you connect to peers manually, rather than just "geolocate them all", to reduce the issue further.

@olizilla olizilla added the kind/discussion Topical discussion; usually not changes to codebase label Jan 7, 2019
@SgtPooki SgtPooki moved this to To do in IPFS-GUI (PL EngRes) Jul 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/discussion Topical discussion; usually not changes to codebase
Projects
No open projects
Status: Needs Grooming
Development

No branches or pull requests

2 participants