1- ---
2- title : Pay Per Task Model
3- description :
4- Pricing model and task categories for iExec protocol, including computing and
5- deal time limits.
6- ---
71
8- # Pay per task model
2+ # Task size (Pay-Per-Task)
93
10- We are introducing a new method for pricing and we have defined several task
11- categories that describe the execution boundaries. We'll setup a test
12- infrastructure so that application developers can evaluate the category of their
13- submissions. Conversely, worker pools will be able to benchmark their
14- infrastructures against the reference machine.
4+ Pay-per-task categories, time limits, and claim rules.
155
16- In the future, we'll redefine the categories, and provide more advanced tools
17- for helping developers to maximize the usage of the infrastructure
6+
7+ ## Pay-per-task model
8+
9+ The pay-per-task model is based on task size categories. Each category defines
10+ two limits:
11+
12+ - Maximum Computing Time (C): per-task execution time on the worker. If the task
13+ exceeds C, the task is stopped and failed.
14+ - Maximum Deal Time (D): overall time window for a task in the deal. If the task
15+ isn’t completed within D, the requester can claim (i.e., recover according to
16+ protocol rules). On claim, the requester recovers the RLC escrowed for that
17+ task, no payout is made to the worker and workerpool.
1818
1919** Categories Description:**
2020
@@ -23,12 +23,23 @@ for helping developers to maximize the usage of the infrastructure
2323| 0 – XS | 5 min | 50 min |
2424| 1 – S | 20 min | 200 min (3h20m) |
2525| 2 – M | 1 hour | 10h |
26- | 3 – L | 3 hour | 30h (1d6h) |
27- | 4 – XL | 10 hour | 100h (4d4h) |
28-
29- - Each worker will allocate ** C** minutes to compute the application. If the
30- computation is not completed within this ** Maximum Computing Time** , the
31- running application will be stopped.
32- - From a buyer perspective, a requester will be able to claim a task of a deal
33- after ** D** minutes if the task is not completed within the ** Maximum Deal
34- Time** .
26+ | 3 – L | 3 hours | 30h (1d6h) |
27+ | 4 – XL | 10 hours | 100h (4d4h) |
28+
29+ - Workers allocate up to C per task. Beyond C, the app is stopped.
30+ - Requesters can claim after D if the task isn’t completed.
31+
32+ ## How to pick a category (quick guide)
33+
34+ Use this decision table to choose a safe category for your workload.
35+
36+ | ** Typical workload** | ** Suggested category** |
37+ | ------------------------------------- | ---------------------- |
38+ | Short scripts / small data processing | Cat 0–1 |
39+ | Medium data processing (10-15min) | Cat 2 |
40+ | Heavy ML inference / long simulations | Cat 3–4 |
41+
42+ Use the iExec SDK (CLI/API) to ** set the category** in app, request, or
43+ workerpool orders.
44+ For commands and examples, see the
45+ [ iExec SDK GitHub repository] ( https://github.com/iExecBlockchainComputing/iexec-sdk/blob/master/docs/README.md ) .
0 commit comments