From 6cc7274018207caa29aeec59f82abff3fc1f06d8 Mon Sep 17 00:00:00 2001 From: Brian W Bush Date: Sun, 24 Sep 2023 07:05:33 -0600 Subject: [PATCH 1/2] PLT-7654 Re-benchmarked Runtime resources and syncing. --- marlowe-runtime/doc/resources.md | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/marlowe-runtime/doc/resources.md b/marlowe-runtime/doc/resources.md index 526f87be5e..b708ae5655 100644 --- a/marlowe-runtime/doc/resources.md +++ b/marlowe-runtime/doc/resources.md @@ -15,16 +15,25 @@ The table below provides guidance on the memory and CPU resources required for M | Service | Memory | CPU (cores) | |-------------------------|--------:|------------:| -| `marlowe-chain-indexer` | 4000 MB | 150 % | -| `marlowe-chain-sync` | 150 MB | 25 % | -| `marlowe-indexer` | 100 MB | 125 % | +| `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 | 5 % | +| `marlowe-contract` | 25 MB | 10 % | | `marlowe-tx` | 1000 MB | 100 % | | `marlowe-proxy` | 100 MB | 50 % | -| `marlowe-web-server` | 50 MB | 5 % | -| `otel-collector` | 100 MB | 50 % | -| Total | 6000 MB | 500 % | +| `marlowe-web-server` | 50 MB | 10 % | +| Total | 9000 MB | 500 % | + + +## Sync times + +On a 32-core Intel i9 with 4000 MHz dual-channel DDRS memory and 7000 MB/s SSDs, the following times for syncing the Marlowe schemas from genesis were observed. + +| Service | Mainnet | Preprod | Preview | +|-------------------------|--------:|--------:|--------:| +| `marlowe-chain-indexer` | 510 min | 7 min | 16 min | +| `marlowe-indexer` | 3 min | 1 min | 2 min | ## PostgreSQL From 1291ab0a5a91cf32f33eab34da90e182f82cd730 Mon Sep 17 00:00:00 2001 From: Brian W Bush Date: Wed, 27 Sep 2023 06:26:39 -0600 Subject: [PATCH 2/2] PLT-7654 Revised contract cpu usage, per reviewer comment. --- marlowe-runtime/doc/resources.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/marlowe-runtime/doc/resources.md b/marlowe-runtime/doc/resources.md index b708ae5655..14390a56cc 100644 --- a/marlowe-runtime/doc/resources.md +++ b/marlowe-runtime/doc/resources.md @@ -19,7 +19,7 @@ The table below provides guidance on the memory and CPU resources required for M | `marlowe-chain-sync` | 2500 MB | 25 % | | `marlowe-indexer` | 2000 MB | 100 % | | `marlowe-sync` | 50 MB | 25 % | -| `marlowe-contract` | 25 MB | 10 % | +| `marlowe-contract` | 25 MB | 50 % | | `marlowe-tx` | 1000 MB | 100 % | | `marlowe-proxy` | 100 MB | 50 % | | `marlowe-web-server` | 50 MB | 10 % |