|
1 | 1 | # Edinburgh Workshop Day 2 Recap |
2 | 2 |
|
| 3 | +The goal is answer the question of: |
| 4 | +How much does it cost to run a Leios node at different TPS/ throughput levels? |
| 5 | + |
3 | 6 | > [!Note] |
4 | 7 | > The following cost calculation is preliminary and is subject to possibly frequent/ drastic change. |
| 8 | +
|
| 9 | +## Cost Items |
| 10 | + |
| 11 | +| Cost Item | Unit | Description | |
| 12 | +|-----------|------|-------------| |
| 13 | +| Compute (vCPU) | $/vCPU/h | Cost per virtual CPU per hour | |
| 14 | +| Compute (RAM) | $/GB/h | Cost per gigabyte of RAM per hour | |
| 15 | +| Storage (SSD) | $/GiB/mo | Cost per gibibyte of SSD storage per month | |
| 16 | +| Egress | $/GiB | Cost per gibibyte of data transferred out | |
| 17 | +| IOPS | $/IOPS | Cost per input/output operation per second for storage operations | |
| 18 | + |
| 19 | +> [!Note] |
| 20 | +> Storage and data transfer use binary prefixes (GiB = 2³⁰ bytes), while RAM uses decimal prefixes (GB = 10⁹ bytes), following industry standards for cloud computing. |
| 21 | +
|
| 22 | +## Resource Usage by TPS Level |
| 23 | + |
| 24 | +| TPS Level | IBs/Stage | Egress (GiB/month) | Storage (GiB/month) | Compute (% of Core) | |
| 25 | +|-----------|-----------|-------------------|-------------------|-------------------| |
| 26 | +| 10 TPS | Praos | 58 | 11 | 0.1 | |
| 27 | +| 10 TPS | 1IB/stage | 105 (x1.8) | 12 (x1.09) | 0.6 (x6) | |
| 28 | +| 100 TPS | 10IB/stage | 514 (x8.86) | 121 (x11) | 1.0 (x10) | |
| 29 | +| 1K TPS | 100IB/stage | 4,602 (x79.34) | 1,250 (x113.63) | 5.3 (x53) | |
| 30 | + |
| 31 | +> [!Note] |
| 32 | +> The Compute column shows CPU usage as a percentage of a single core. For example, 100% means one full core is utilized, while 200% would indicate usage across two cores. This metric helps in determining the number of CPU cores needed for different TPS levels. |
| 33 | +
|
| 34 | +### Key Findings |
| 35 | + |
| 36 | +The analysis reveals important characteristics about Leios's performance at different throughput levels: |
| 37 | + |
| 38 | +- **Low TPS Overhead**: At low TPS (10 TPS), the protocol shows significant overhead compared to Praos, with resource usage increasing by 6x for compute and 1.8x for egress. This indicates a substantial baseline cost for running Leios at low throughput and points to more research. |
| 39 | + |
| 40 | +- **Scaling Efficiency**: As TPS increases, Leios's relative overhead decreases. At 1K TPS, while absolute resource usage is higher, the protocol becomes more efficient relative to the throughput achieved. |
| 41 | + |
| 42 | +- **Breakeven Point**: There exists a TPS threshold (yet to be precisely defined) where Leios's performance characteristics become more favorable compared to lower TPS levels. This suggests that Leios is particularly well-suited for high-throughput scenarios. |
| 43 | + |
| 44 | +These findings suggest that Leios may be most economically viable in high-throughput environments, where its resource utilization becomes more efficient relative to the achieved transaction throughput. |
| 45 | + |
| 46 | +## Next steps |
| 47 | + |
| 48 | +- calculate each cost item for different scenarios |
| 49 | + - one complete table with all cost items broken up |
| 50 | + - detailed example calculations for each cost item |
| 51 | +- add pricing to it |
| 52 | +- calculate possible revenue from tx fees |
| 53 | +- possibly build tool for it |
| 54 | +- incentives? |
0 commit comments