-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Erigon Snapshot Help, Q&A #82
Comments
erigon version 1.1.9-dev 有报错: |
从创世区块同步还是从快照同步 |
从快照同步, 又重新下载了https://snapshots.48.club/erigon.torrent.20230830.tar.zst,解压后放入datadir下面的snapshots文件夹,但是没有按照预期的跳过1/15 启动参数:erigon --config ./config.yaml --snapshots datadir : '/home/ec2-user/erigon' maxpeers: 200 |
请提供日志 |
5分钟前我做了如下操作 [INFO] [10-08|15:30:36.731] [1/15 Snapshots] Fetching torrent files metadata 从日志输出来看,好像是开始追高度了,不知道我理解的是否正确。 |
正确操作 |
嗯嗯,非常感谢。 其实就像这个issue描述的一样。 再次感谢你的解答和时间 |
请问下7/15 的速度会很慢么,平均2个blocks / sec [INFO] [10-09|01:31:58.604] [7/15 Execution] Executed blocks number=31359927 blk/s=4.0 tx/s=504.5 Mgas/s=51.0 gasState=0.21 batch=252.7MB alloc=4.9GB sys=10.4GB 感觉追上高度要一周了 |
Mgas/s=40.2 受限于你的磁盘和CPU性能,这个速度很难追上 |
请问erigon的fastnode 快照包什么时候能再打一个? 5/15,6/15动辄都要4h+了 |
正在从创世区块重新同步,可能还需要一周左右 |
请教一个场景; 我下载了上一个版本的归档快照,然后开始同步;过了一段时间后,发现咱们有新的快照可以下载了,我想下载最新的归档快照,这样是不是只会追加最近一段时间的区块数据;还是说,又是完整的下载一份快照数据? |
又一份完整数据,我们暂时不提供增量数据下载支持 |
好的,感谢解答 |
Data verification. 数据校验
It's advisable to verify the SHA256 checksum of the files before deploying them in a production environment. When using a snapshot for the first time or after re-downloading a snapshot, it's recommended to add the
--downloader.verify
flag during the initial synchronization to ensure data integrity.建议在投入生产环境之前,校验文件 sha256 特征码,第一次使用快照或者重新下载快照之后建议第一次同步增加 flags
--downloader.verify
Synchronization optimization. 同步优化
Regarding synchronization efficiency issues, after extensive testing by our team, we recommend modifying the following flags. They can address the majority of problems encountered during Erigon synchronization.
关于同步效率问题,经过团队的长期测试,我们建议修改以下 flags,它可以解决 Erigon 同步遇到的绝大部分问题
File Structure. 文件结构
The above is the directory structure of a typical Erigon node. After extracting the provided snapshot, your directory should look like the following.
以上是一个正常的 Erigon 节点的目录结构,解压完成我们提供的快照后你得到的目录应该是下面这样的
If you encounter the following log during the synchronization process, it means your node is missing the torrent file.
如果你在同步过程中发现以下日志则说明您的节点缺失 torrent 文件
It is evident that the torrent file is missing from
/root/.local/share/erigon/snapshots
.We have observed that for both the Erigon fast node and Erigon archive node, the torrent data remains unchanged regardless of the synchronization method.
As a result, we have separately provided all torrent files within the
snapshots
folder. After downloading the compressed archive, you will need to manually move the extracted files to align with the complete directory structure.If you find this step too challenging, you can also skip it, as Erigon will automatically fix the missing files for you.
明显可以发现
/root/.local/share/erigon/snapshots
缺失了 torrent 文件我们发现 Erigon fast node 和 Erigon archive node 他们不会因为同步方式而改变 torrent 数据
因此我们将
snapshots
文件夹内的所有 torrent 文件单独发布,你下载压缩包后需要手动移动解压后的文件,使其和完整结构保持一致如果此步骤对于你过于困难,你也可以跳过此步骤,Erigon 将自动修复缺失的这部分文件
Update database. 更新数据库
Because we've separated the upload of Torrent files, this approach also saves approximately 1200GB of additional data transfer when updating your node. All you need to do is download the snapshot, overwrite it during extraction, and there's no need to delete the previously downloaded and extracted Torrent files or download the Torrent file archive again. Erigon, when started, will detect the small portion of missing files and automatically repair them. In most cases, this process will be completed quickly.
因为我们拆分开了 Torrent 文件的上传,这样在更新节点时也会节约 1200G 的额外流量,你要做的事就是下载快照覆盖解压,不需要删除上一次下载解压的 Torrent 文件,也不需要重新下载 Torrent 文件压缩包,Erigon 启动后它会检测到缺失的一小部分,它将自动修复这些文件,一般情况下这将很快完成
The text was updated successfully, but these errors were encountered: