Skip to content
This repository has been archived by the owner on Mar 25, 2022. It is now read-only.

Gateway files very slow to load #467

Closed
eefahy opened this issue Dec 22, 2018 · 7 comments
Closed

Gateway files very slow to load #467

eefahy opened this issue Dec 22, 2018 · 7 comments
Labels
firefighting IPFS P0 Critical: Tackled by core team ASAP

Comments

@eefahy
Copy link
Contributor

eefahy commented Dec 22, 2018

Files, large and small, have been loading very slowly on the gateway. Webserver metrics show an occasional correlation between slow loads and high outbound bandwidth. CPU, memory, and load stats are stable during long wait times. The issue appears to be at the IPFS level.

In response, the gateway has been rolled back to v0.4.15 which noticeably lessened CPU load and average wait times. We will be monitoring and analyzing performance over the next few days.

We apologize if this slow down have effected your use of the gateway and welcome your comments.

@eefahy eefahy added P0 Critical: Tackled by core team ASAP firefighting IPFS labels Dec 22, 2018
@eefahy eefahy self-assigned this Dec 22, 2018
@eefahy eefahy added the status/in-progress In progress label Jan 15, 2019
@scout
Copy link
Contributor

scout commented Feb 13, 2019

Update: The gateway is now running a binary that contains

libp2p/go-libp2p-kad-dht#237 (DHT: adaptive dial queue for staging dials) + follow-up refinements
libp2p/go-libp2p-swarm#102

At the moment there is not an authoritative branch that represents all the changes due to the time it would take to resolve all gx required changes for such a thing.

We are seeing better load times however the issue is not yet resolved. Work continues....

@x5engine
Copy link

please in plain English what' does this mean? why some files are not loading? even from my node?

@mkg20001
Copy link

mkg20001 commented Jun 8, 2019

@x5engine I'm guessing there are a few bugs in IPFS that make the DHT and other parts of libp2p function only very slowly, the fixes for those have been implemented in the version of IPFS that the gateway runs, yet it was too much effort to publicly ship them at that time. Now they're merged and most likely shipped so just upgrading to the latest IPFS version should fix some of those issues that impact loading times.
But there are no guarantees and I'm guessing it's still a bit slow.

@askender
Copy link

askender commented Jan 5, 2022

@jbenet If I open ipfs companion chrome extension and local ipfs node, and it will never load the gateway url https://bafy**.ipfs.infura-ipfs.io/ (got context deadline exceeded after a long time) (never loaded unless I pinned the resource myself maybe). Other gateway are the same situation.
If I close this chrome extention, this url will be loaded soon.
extension options will not fix this.

If I use Brave browser, this url can be open quickly. And there is a open with ipfs button in address bar, and ipfs://bafy*** will not be openned ever. The setting doesn't fix this.
(I know I can import/pin this url to ipfs node by right click in the page, or I run ipfs add myself)

That's to say, if we choose to load ipfs resource from local, it will never timeout and auto retry the gateway.

@askender
Copy link

askender commented Jan 5, 2022

@jbenet If I open ipfs companion chrome extension and local ipfs node, and it takes very long time to load the gateway url https://bafy**.ipfs.infura-ipfs.io/ (never loaded unless I pinned the resource myself). Other gateway are the same situation. If I close this chrome extention, this url will be loaded soon. extension options will not fix this.

If I use Brave browser, this url can be open quickly. And there is a open with ipfs button in address bar, and ipfs://bafy*** will not be openned ever. The setting doesn't fix this. (I know I can import/pin this url to ipfs node by right click in the page, or I run ipfs add myself)

That's to say, if we choose to load ipfs resource from local, it will never timeout and auto retry the gateway.

Maybe someone want to retry this case, here is a url you can try yourself: https://bafybeiae5c2ip2xxd5vvbnteu2sxntnmvgqqyt3we2s3hzbbcfifdsz3ya.ipfs.infura-ipfs.io/
A real case of our ipfs&filecoin related open-source & open-data project. https://ccnft-test.dweb-lab.com/ We are building a open content community dapp.

@askender
Copy link

askender commented Jan 6, 2022

By the way, it seems it's a dead repo that havn't got any commit since 27 Apr 2020?
Sounds a lot like we don't use this repo anymore (and it should be archived). Does it true?
@gmas Thanks.
I will re-ask the question in other and right repo. ipfs/ipfs-companion#1042

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
firefighting IPFS P0 Critical: Tackled by core team ASAP
Projects
None yet
Development

No branches or pull requests

7 participants