ethereum / sourcify

Decentralized Solidity contract source code verification service
https://sourcify.dev
MIT License
782 stars 395 forks source link

Stop temporarily running IPFS nodes and pin externally #1149

Closed kuzdogan closed 1 year ago

kuzdogan commented 1 year ago

As we are facing resource overload, we need to turn off the IPFS node for some time. For that we'll temporarily outsource the pinning externally. The downside will be, we won't be able to update the IPNS for a while with newly verified contracts, but we will pin the newly verified contracts separately.

Preliminary

Do these before starting the rest:

1. Persist the data

2. Check performance increase

Server

Migrating the pinning

Migrating the IPNS

Changing how we pin in the server

Finally

Gateway

View in Huly HI-447

marcocastignoli commented 1 year ago

After stopping both IPFS nodes, now the server has at 60-80% of the full CPU capacity. Before it was always at > than 100%.

kuzdogan commented 1 year ago

Pinned an up-to-date version of the repository on a local node and published under the IPNS https://ipfs.io/ipns/repo.sourcify.dev/

It wasn't possible to directly import a CID to pin in Infura, and their ipfs-copy didn't work well. For web3.storage, waiting for approval to use the bulk pinning API.

Closing it for now as local pinning seems to be sufficient for now. Will check back next week.