Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doc: add spark doc #536

Merged
merged 2 commits into from
Aug 1, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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`。
Loading