lotus v0.4.0 testnet 远程矿工
1,miner矿工运行
--max-parallel
并行sector
数量,128GB内存运行1个
nohup lotus-storage-miner run >> /storage/miner.log 2>&1 &
nohup lotus-storage-miner run --max-parallel 1 >> /storage/miner.log 2>&1 &
1.1 修改miner配置
vim lotusstorage/config.toml
[API]
# ListenAddress = "/ip4/127.0.0.1/tcp/2345/http"
ListenAddress = "/ip4/192.168.1.11/tcp/2345/http"
# RemoteListenAddress = "127.0.0.1:2345"
RemoteListenAddress = "192.168.1.11:2345"
[Storage]
AllowPreCommit1 = false
AllowPreCommit2 = false
AllowCommit = false
AllowUnseal = true
mkdir attachstorage
lotus-storage-miner storage attach --init=true --store=true /storage/lotuswork/attachstorage
# lotus-storage-miner storage list
a73:
[|||
Unsealed: 0; Sealed: 0; Caches: 0
Weight: 10; Use: Store
Local: /storage/lotuswork/attachstorage
2,运行worker
远程矿工计算
seal_pre_commit_phase1
、
seal_pre_commit_phase2
、
seal_commit_phase1
、
seal_commit_phase2
worker回传给miner
74MB + 32GB
export LOTUS_PATH=/storage/lotuswork/lotus
export LOTUS_STORAGE_PATH=/storage/lotuswork/lotusstorage
export WORKER_PATH=/storage/lotuswork/lotusworker
export TMPDIR=/storage/lotuswork/tmpdir
export FIL_PROOFS_PARAMETER_CACHE=/storage/filecoin-proof-parameters-v27
export IPFS_GATEWAY="https://proof-parameters.s3.cn-south-1.jdcloud-oss.com/ipfs/"
export RUST_BACKTRACE=full
export RUST_LOG=debug
export FIL_PROOFS_USE_GPU_COLUMN_BUILDER=1
export FIL_PROOFS_USE_GPU_TREE_BUILDER=1
export FIL_PROOFS_MAXIMIZE_CACHING=1
export STORAGE_API_INFO="eyJh...:/ip4/192.168.1.11/tcp/2345/http"
nohup lotus-seal-worker run --address 192.168.1.12:2345 >> /storage/worker.log 2>&1 &
lotus-storage-miner workers list
lotus-storage-miner storage list
3,运行日志
4,CPU,内存使用
4.1,miner节点
4.2,worker节点