远程矿工 Testnet Phase 2 lotus

1,lotus-seal-worker版本

  • lotus-seal-worker 版本
# lotus-seal-worker --version
2020-05-18T14:55:04.937+0800	INFO	main	lotus-seal-worker/main.go:41	Starting lotus worker
lotus-seal-worker version 0.3.0'+git9a0d0511'

2,miner节点

  • 设置 token
lotus-storage-miner auth create-token --perm admin
  • lotusstorage/config.toml API配置
[API]
#  ListenAddress = "/ip4/192.168.6.161/tcp/2345/http"
   ListenAddress = "/ip4/192.168.6.161/tcp/2345/http"
#  RemoteListenAddress = "127.0.0.1:2345"
   RemoteListenAddress = "192.168.6.162:2345"

  • lotus-storage-mine 重启,使配置生效

3,远程矿工节点

  • 从miner节点拷贝复制证明文件和lotus-seal-worker
  • vim .bashrc
  • 设置环境变量 JWT_TOKEN
    TORAGE_API_INFO=token:api
export STORAGE_API_INFO="eyTM7o:/ip4/192.168.6.161/tcp/2345/http"
# source .bashrc
lotus-seal-worker run --address 192.168.6.162:2345
  • miner节点查看远程矿工
# lotus-storage-miner workers list
Worker 0, host test-PowerEdge-R720xd
	CPU:  [                                                                ] 0 core(s) in use
	RAM:  [|                                                               ] 3% 3.93 GiB/126 GiB
	VMEM: [|                                                               ] 3% 3.93 GiB/128 GiB
	GPU: GeForce RTX 2060, not used
Worker 1, host test-PowerEdge-R720xd
	CPU:  [                                                                ] 0 core(s) in use
	RAM:  [|                                                               ] 1% 2.39 GiB/126 GiB
	VMEM: [|                                                               ] 1% 2.39 GiB/128 GiB
	GPU: GeForce RTX 2060, not used

参考:

  1. 官方文档
  2. lotus-seal-worker

猜你喜欢

转载自blog.csdn.net/u010953692/article/details/106193003