You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: documentation/en/snap-deals.md
+39-26Lines changed: 39 additions & 26 deletions
Original file line number
Diff line number
Diff line change
@@ -30,36 +30,23 @@ To enable the snap deals pipeline in a Curio cluster, user needs to enable the s
30
30
Data can be ingested using either the Snap Deals pipeline or the PoRep pipeline at any given time, but not both simultaneously.
31
31
{% endhint %}
32
32
33
-
### Enable snap tasks
34
-
35
-
1. Add the `upgrade` layer already shipped with Curio to the `/etc/curio.env` file on the Curio nodes where GPU resources are available.\
36
-
 
33
+
### Configuration
37
34
38
-
```
39
-
CURIO_LAYERS=gui,seal,post,upgrade <----- Add the "upgrade" layer
40
-
CURIO_ALL_REMAINING_FIELDS_ARE_OPTIONAL=true
41
-
CURIO_DB_HOST=yugabyte1,yugabyte2,yugabyte3
42
-
CURIO_DB_USER=yugabyte
43
-
CURIO_DB_PASSWORD=yugabyte
44
-
CURIO_DB_PORT=5433
45
-
CURIO_DB_NAME=yugabyte
46
-
CURIO_REPO_PATH=~/.curio
47
-
CURIO_NODE_NAME=ChangeMe
48
-
FIL_PROOFS_USE_MULTICORE_SDR=1
49
-
```
50
-
51
-
\
52
-
53
-
2. Restart the Curio services on the node.\
54
-
 
35
+
{% hint style="warning" %}
36
+
When switching between Snap and PoRep deal pipeline, you must ensure that no sectors are being sealed or snapped. All pipelines must be empty before making a switch.
37
+
{% endhint %}
55
38
56
-
```
57
-
systemctl restart curio
58
-
```
39
+
#### Curio Market
59
40
41
+
1. Enable snap deals on base layer
42
+
2. Save the layer and exit. [Enable snap tasks](snap-deals.md#enable-snap-tasks) and restart all the nodes.
60
43
44
+
```
45
+
[Ingest]
46
+
DoSnap = true
47
+
```
61
48
62
-
### Update the Curio market adapter
49
+
#### Boost Adapter (Deprecated)
63
50
64
51
1. Create or update the market layer ([if one is already created](enabling-market.md#enable-market-adapter-in-curio)) for the minerID where you wish to use snap deals pipeline.\
65
52
@@ -108,4 +95,30 @@ Data can be ingested using either the Snap Deals pipeline or the PoRep pipeline
108
95
109
96
 
110
97
2. Add the new market configuration layer to the appropriate nodes based on the [best practices](best-practices.md).
111
-
3. Restart the Curio service.
98
+
99
+
### Enable snap tasks
100
+
101
+
1. Add the `upgrade` layer already shipped with Curio to the `/etc/curio.env` file on the Curio nodes where GPU resources are available.\
102
+
 
103
+
104
+
```
105
+
CURIO_LAYERS=gui,seal,post,upgrade <----- Add the "upgrade" layer
Copy file name to clipboardExpand all lines: documentation/en/supraseal.md
+8-10Lines changed: 8 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,9 @@ description: This page explains how to setup supraseal batch sealer in Curio
5
5
# Batch Sealing with SupraSeal
6
6
7
7
{% hint style="danger" %}
8
-
**Disclaimer:** SupraSeal batch sealing is currently in **BETA**. Use with caution and expect potential issues or changes in future versions. Currently some additional manual system configuration is required.
8
+
**Disclaimer:** SupraSeal batch sealing is currently in **BETA**. Use with caution and expect potential issues or changes in future versions. Currently some additional manual system configuration is required.\
9
+
\
10
+
Batch Sealing only supports "CC" sectors as of now. Please make sure that "SnapDeals" are enabled in the cluster if you wish to onboard data with SupraSeal enabled. If SnapDeals are not enabled, deals will be routed to SupraSeal pipeline which will discard the actual data and seal empty sectors.
9
11
{% endhint %}
10
12
11
13
SupraSeal is an optimized batch sealing implementation for Filecoin that allows sealing multiple sectors in parallel. It can significantly improve sealing throughput compared to sealing sectors individually.
@@ -43,12 +45,10 @@ You need 2 sets of NVMe drives:
43
45
* Fast with sufficient capacity (\~70G x batchSize x pipelines)
44
46
* Can be remote storage if fast enough (\~500MiB/s/GPU)
45
47
46
-
The following table shows the number of NVMe drives required for different batch sizes. The drive count column indicates `N + M` where `N` is the number of drives for layer data (SPDK) and `M` is the number of drives for P2 output (filesystem).
47
-
The iops/drive column shows the minimum iops **per drive** required for the batch size.
48
-
Batch size indicated with `2x` means dual-pipeline drive setup. IOPS requirements are calculated simply by dividing total target 10M IOPS by the number of drives. In reality, depending on CPU core speed this may be too low or higher than neccesary. When ordering a system with barely enough IOPS plan to have free drive slots in case you need to add more drives later.
48
+
The following table shows the number of NVMe drives required for different batch sizes. The drive count column indicates `N + M` where `N` is the number of drives for layer data (SPDK) and `M` is the number of drives for P2 output (filesystem). The iops/drive column shows the minimum iops **per drive** required for the batch size. Batch size indicated with `2x` means dual-pipeline drive setup. IOPS requirements are calculated simply by dividing total target 10M IOPS by the number of drives. In reality, depending on CPU core speed this may be too low or higher than neccesary. When ordering a system with barely enough IOPS plan to have free drive slots in case you need to add more drives later.
Please make sure to benchmark the raw NVME IOPS before proceeding with further configuration to verify that IOPS requirements are fulfilled. 
164
+
Please make sure to benchmark the raw NVME IOPS before proceeding with further configuration to verify that IOPS requirements are fulfilled.
167
165
168
166
```bash
169
167
cd extern/supraseal/deps/spdk-v24.05/
@@ -194,7 +192,6 @@ Total : 8006785.90 31276.51 71.91 1
194
192
195
193
With ideally >10M IOPS total for all devices.
196
194
197
-
198
195
### PC2 output storage
199
196
200
197
Attach scratch space storage for PC2 output (batch sealer needs \~70GB per sector in batch - 32GiB for the sealed sector, and 36GiB for the cache directory with TreeC/TreeR and aux files)
@@ -432,6 +429,7 @@ cd extern/supraseal/deps/spdk-v24.05/
432
429
```
433
430
434
431
Go through the menus like this
432
+
435
433
```
436
434
NVMe Management Options
437
435
[1: list controllers]
@@ -481,10 +479,10 @@ y
481
479
```
482
480
483
481
Then you might see a difference in performance like this:
482
+
484
483
```
485
484
Latency(us)
486
485
Device Information : IOPS MiB/s Average min max
487
486
PCIE (0000:c1:00.0) NSID 1 from core 0: 721383.71 2817.91 88.68 11.20 591.51 ## before
488
487
PCIE (0000:86:00.0) NSID 1 from core 0: 1205271.62 4708.09 53.07 11.87 446.84 ## after
0 commit comments