ipfs-inactive / dev-team-enablement

[ARCHIVED] Dev Team Enablement Working Group
3 stars 1 forks source link

Website builds should hit preload servers #147

Closed lidel closed 5 years ago

lidel commented 5 years ago

Which Project is this about?

All websites built via website() script from ipfs/jenkins-libs

Improvement

Right now websites are only pinned on jenkins master, which makes initial seeding suboptimal. I know there is work is in progress to have it pinned on the pinbot cluster, however until that happens we could just manually connect to preload nodes and add a simple preload step around website.groovy#L116 and #L144 to improve the number of initial seeds:

$ curl -s https://node{0|1}.preload.ipfs.io/api/v0/refs?r=true&arg={websiteHash}

cc @VictorBjelkholm

victorb commented 5 years ago

Agree! Something that would help and be quick to implement until we have ipfs-cluster pinning.

We should only run the preload command from the master to not take up more linux workers, and the example you gave there seems perfect!

PRs welcome! :)

lidel commented 5 years ago

PR it is: https://github.com/ipfs/jenkins-libs/pull/37 :)

cc @olizilla