-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #536 from ipfs-force-community/doc/spark
doc: add spark doc
- Loading branch information
Showing
1 changed file
with
56 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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`。 |