Skip to content

Commit

Permalink
Merge pull request #536 from ipfs-force-community/doc/spark
Browse files Browse the repository at this point in the history
doc: add spark doc
  • Loading branch information
LinZexiao authored Aug 1, 2024
2 parents deec963 + dd640fa commit 8885c77
Showing 1 changed file with 56 additions and 0 deletions.
56 changes: 56 additions & 0 deletions docs/zh/spark.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
## Spark

### 开启

打开 `droplet` 配置文件 `config.toml`,在 `[CommonProvider]` 下面增加下面的配置,`PublicHostname` 是公网 IP 地址。

```
[CommonProvider.IndexProvider]
Enable = true
EntriesCacheCapacity = 1024
EntriesChunkSize = 16384
TopicName = ""
PurgeCacheOnStart = false
WebHost = "cid.contact"
DataTransferPublisher = true
[CommonProvider.IndexProvider.Announce]
AnnounceOverHttp = true
DirectAnnounceURLs = ["https://cid.contact/ingest/announce"]
[CommonProvider.IndexProvider.HttpPublisher]
Enabled = true
PublicHostname = "127.0.0.1"
Port = 41263
WithLibp2p = false
```

### 命令行命令

1. 发布单个矿工所有的订单到 ipni

```bash
./droplet index announce-all --miner t01001
```

2. 发布单个订单到 ipni

```bash
./droplet index announce-deal <deal uuid>
or
./droplet index announce-deal <proposal cid>
```

3. 从 ipni 移除订单

```bash
./droplet index announce-remove-deal <deal uuid>
or
./droplet index announce-remove-deal <proposal cid>
```

### 检查

通过 https://cid.contact/ 输入订单的 `piece cid`,查看订单是否已经发布到 ipni。

### 注意

`droplet` 版本要不低于 `v2.12.0``venus` 版本要不低于 `v1.16.0`

0 comments on commit 8885c77

Please sign in to comment.