Skip to content

Commit

Permalink
Merge pull request #781 from input-output-hk/PLT-3623
Browse files Browse the repository at this point in the history
PLT-3623 Re-measured Runtime resource requirements.
  • Loading branch information
bwbush authored Dec 18, 2023
2 parents 4af64f3 + 4f2f6ea commit 9fd4d87
Showing 1 changed file with 15 additions and 13 deletions.
28 changes: 15 additions & 13 deletions marlowe-runtime/doc/resources.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,17 @@ The table below provides guidance on the memory and CPU resources required for M
2. Running 500 Marlowe contracts in parallel at the maximum possible transaction-building and -submission rate.
3. Querying the history of all Marlowe contracts at the maximum rate.

| Service | Memory | CPU (cores) |
|-------------------------|--------:|------------:|
| `marlowe-chain-indexer` | 4000 MB | 100 % |
| `marlowe-chain-sync` | 2500 MB | 25 % |
| `marlowe-indexer` | 2000 MB | 100 % |
| `marlowe-sync` | 50 MB | 25 % |
| `marlowe-contract` | 25 MB | 50 % |
| `marlowe-tx` | 1000 MB | 100 % |
| `marlowe-proxy` | 100 MB | 50 % |
| `marlowe-web-server` | 50 MB | 10 % |
| Total | 9000 MB | 500 % |
| Service | Memory | CPU (cores) |
|-------------------------|---------:|------------:|
| `marlowe-chain-indexer` | 11000 MB | 100 % |
| `marlowe-chain-sync` | 1000 MB | 25 % |
| `marlowe-indexer` | 1000 MB | 150 % |
| `marlowe-sync` | 200 MB | 25 % |
| `marlowe-contract` | 50 MB | 50 % |
| `marlowe-tx` | 750 MB | 100 % |
| `marlowe-proxy` | 200 MB | 50 % |
| `marlowe-web-server` | 50 MB | 10 % |
| Total | 12000 MB | 400 % |


## Sync times
Expand All @@ -35,15 +35,17 @@ On a 32-core Intel i9 with 4000 MHz dual-channel DDRS memory and 7000 MB/s SSDs,
| `marlowe-chain-indexer` | 510 min | 7 min | 16 min |
| `marlowe-indexer` | 3 min | 1 min | 2 min |

However, sync types vary strongly with hardware ressources: for example, an AWS EC2 `c4.4xlarge` instance takes 38 hours to sync `mainnet`.


## PostgreSQL

The table below lists the maximum size of the Marlowe Runtime database schemas for the three public networks, as of March 2023. Because the public blockchains grow in size over time, disk resources will increase correspondingly.

| Schema | `mainnet` | `preprod` | `preview` |
|-----------|----------:|----------:|----------:|
| `chain` | 200 GB | 10 GB | 2 GB |
| `marlowe` | 2 MB | 5 MB | 300 MB |
| `chain` | 300 GB | 11 GB | 3 GB |
| `marlowe` | 8 MB | 6 MB | 400 MB |
| `sqitch` | 200 kB | 200 kB | 200 kB |
| Total | 200 GB | 10 GB | 3 GB |

Expand Down

0 comments on commit 9fd4d87

Please sign in to comment.