I am running an IPFS instance using the latest Docker (0.4.13) and it’s connected to 826 peers. When I add a file to my IPFS, it usually takes some time to become available through the gateway https://ipfs.io/ipfs/ - usually about an hour.
Is there anything that I could be doing to make certain the file is available sooner?
DHT lookups shouldn’t take that long; they’ve been nearly instantaneous for me through the gateway when I’ve tested in the past. Even if it’s not directly related to your issue, I’d second updating to 0.4.14.
Do you get any errors from the daemon in docker when trying and failing to retrieve the file through the gateway?
You could also consider setting up a pinning service via ipfs-cluster. What I did for a 40GB dataset: I used rsync to get the files to the cluster bootstrapping node, which is in a datacenter with a 1GB NIC. Once there, I ipfs added them…
There is a number of factors that play into this. First and most important is your connection to the gateways themselves. Make sure you’re connected to peers Qmbut9Ywz9YEDrz8ySBSgWyJk41Uvm2QJPhwDJzJyGFsD6 and QmZMxNdpMkewiVZLMRxaNxUeZpDUb34pWjZ1kZvsd16Zic which are the current gateways (chappy and scrappy). A direct connection to those peers will hopefully help. But sometimes it doesn’t, and it could be because the gateways are already sending a lot of traffic, or they have a hard time downloading from you.
This will do nothing for general performance, it’s only a flag for activating publish/subscribe with pubsub for IPNS.