Ripple online deletion
https://xrpl.org/configure-online-deletion.html
在您rippled的配置文件中,编辑节的online_delete字段[node_db]。
[node_db]
# Other settings unchanged ...
online_delete=2000
advisory_delete=0
设置online_delete为运行在线删除后要保留的最小分类帐版本数。如果使用自动删除(默认设置),
则服务器通常会在累积了这么多分类账版本两倍左右时运行删除。
complete_ledgers使用server_info方法定期检查服务器的范围,以确认要删除分类帐。
运行在线删除后,该complete_ledgers范围反映出较旧的分类帐不再可用。
随着服务器累积历史记录,可用的分类帐总数应缓慢增加到online_delete您配置的值的两倍,然后在运行在线删除时减少。
We have an instance with 500G storage.
We have explicitly configured the instance to prune transactions per this configuration:
[ledger_history]
324000[node_db]
type=NuDB
path=/var/nvm/ripple-db/nudb
online_delete=324000
advisory_delete=0
In the first few month when we actively monitor the instance, we saw storage at one month is lower than the previous month:
2019/7/28:
$ df -h
FilesystemSizeUsed Avail Use% Mounted on
/dev/nvme0n1436G209G206G51% /var/nvm/ripple-db
2019/8/15:
2019/8/15:
$ df -h
FilesystemSizeUsed Avail Use% Mounted on
/dev/nvme0n1436G168G246G41% /var/nvm/ripple-db
But 4 months later, on 2019/12/5, rippled has now eaten all the storage:
But 4 months later, on 2019/12/5, rippled has now eaten all the storage:
$ df -h
FilesystemSizeUsed Avail Use% Mounted on
/dev/nvme0n1436G413G506M 100% /var/nvm/ripple-db
【Ripple online deletion】参考:https://github.com/ripple/rippled/issues/3177
推荐阅读
- 推动NFT走出监管困境,BSN推出支持NFT基础设施网络
- 腾讯|SaaS的收入模型有哪些(终于有人讲明白了)
- 就业方向上什么才是最重要的(--- 来自程序猿的迷茫。(C++?Java?or算法?))
- 区块链中加密货币的含义
- 波场万倍潜力币HYL23号21:09分 正式上线JustSwap
- 《瀚兰房地产开发区块链应用及案例分享》BSN培训精华回顾
- 对联盟链而言,跨链协议为什么重要()
- 区块链能够应用在哪些行业
- BSN区块链服务网络中密钥托管模式和公钥上传模式有啥区别()
- 币圈人物传|币圈大佬今何在 唯有一诺正当时