interface icon indicating copy to clipboard operation
interface copied to clipboard

build: wait an hour for IPFS release

Open zzmp opened this issue 3 years ago • 1 comments

  • Increases the wait time for IPFS to be available during release to an hour. The current setup is functional, but eg https://github.com/Uniswap/interface/runs/7298181685?check_suite_focus=true#step:12:69 took 27 (of 31) tries, so the number of retries needs to be increased.
  • Documents IPFS initial request delays. As part of this PR, the proxy read timeout should be extended to 8m on cloudflare.

Essentially, IPFS content only propagates to a new node when it is requested by a client, so a cloudflare data center's first load will always have some delay. Anecdotally, that delay is about 5 minutes.

We seem to be able to mitigate that delay for US nodes by pre-requesting the asset through cloudflare's public gateway (although we have no guarantees about this). However, this does not mitigate the delay for international nodes.

I think this leaves us with 3 choices:

  1. Increase the proxy read timeout so that initial requests to IPFS do not time out.
  2. Maintain our own internationally placed IPFS cluster to intentionally propagate and make the content more available.
  3. Abandon IPFS as our primary hosting service.

This PR documents (1) an increased proxy read timeout to 8 minutes, which will need to be made separately using cloudflare's API.

zzmp avatar Jul 12 '22 11:07 zzmp

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
interface ✅ Ready (Inspect) Visit Preview Jul 12, 2022 at 11:25AM (UTC)

vercel[bot] avatar Jul 12 '22 11:07 vercel[bot]

I think this is close-able now?

vm avatar Oct 18 '22 16:10 vm

don't think we need this anymore

cmcewen avatar Oct 19 '22 16:10 cmcewen