You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 31, 2023. It is now read-only.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Filecoin存储管理,存储i/o性能分析,网络分析
1. 存储路径操作
1.1 更改默认存储路径
export LOTUS_MINER_PATH="/path/to/.lotusminer"
~/.lotusminer
,可通过指定LOTUS_MINER_PATH
环境变量来更改;$LOTUS_MINER_PATH
目录下的storage.json
文件,用来定义Miner挂载的所有存储路径,例如:/home/ubuntu/disk_md0/lotusminer
为Miner本地Worker的存储路径;/home/ubuntu/sectors/storage0
和/home/ubuntu/sectors/storage1
都是新增的用来存储密封结果的路径。sectorstore.json
配置文件,用来配置该存储路径的用途。Weight
: 该存储路径的权重,权重越大的路径会优先存数据;CanSeal
: 是否可以用来存储密封过程中生成的临时文件;CanStore
: 是否可以用来存储密封好的数据,Miner本地Worker的CanStore
要设置为false
,Seal Worker的CanStore
默认就是false
;1.2 增加存储路径
以上两个命令都是在启动了 Miner 之后才可以执行,是一种动态添加存储路径的方式,非常灵活。 当然还可以在命令中添加权重
--weight=10
,默认权重是 10。 执行该命令后,可通过以下命令查看存储列表:lotus-miner storage list
1.3 多个存储路径管理
当Miner挂载多个存储路径时,需要对多个存储路径进行管理时,可以手动对每个存储路径下的
sectorstore.json
配置文件进行修改权重的配比和存储路径的用途管理。当多个存储路径配置不同的权重时,Miner会根据各个存储路径的权重配比进行存储。若某一存储路径快满时,可以设置该路径下的sectorstore.json
中"CanSeal": false
、"CanStore": false
,这样Miner就不会往该路径下存储任何数据了。2. 存储i/o性能分析
Filecoin挖矿的过程中存储性能至关重要,当存储性能无法满足要求时,会出现封装期间不断掉算力的窘境。
2.1 存储性能测试
对存储性能进行测试可直接对Miner机器上的存储挂载路径使用fio进行测试。
sudo apt-get install fio
3. 网络性能分析
Filecoin挖矿过程中网络架构的设计会对整个集群的封装效率和WindPost产生影响,服务器间的网络性能可以通过iperf3进行测试。
sudo apt-get install iperf3
iperf3 -s
iperf3 -c 192.168.1.2 -t 10 #该ip为Server服务器内网ip
可以根据网络测试结果来对封装期间写入存储的数据量进行调整,防止出现因为封装数据写入存储机过大占满Miner和存储机之间的网络传输带宽,此时若进行WindPost则可能会导致Miner机与存储之间无足够的带宽进行数据读取验证,读取超时丢失算力。
Beta Was this translation helpful? Give feedback.
All reactions