Skip to content

Commit e6f1c73

Browse files
Add Regional Deployment (USA) (#130)
* add artifacts * fix dashboards * test new recover * readme nit * use 75 * update to v0.0.56
1 parent bf9ab52 commit e6f1c73

4 files changed

Lines changed: 154 additions & 44 deletions

File tree

Cargo.lock

Lines changed: 24 additions & 24 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,18 @@ resolver = "2"
1010
[workspace.dependencies]
1111
alto-client = { version = "0.0.11", path = "client" }
1212
alto-types = { version = "0.0.11", path = "types" }
13-
commonware-broadcast = { version = "0.0.55" }
14-
commonware-codec = { version = "0.0.55" }
15-
commonware-consensus = { version = "0.0.55" }
16-
commonware-cryptography = { version = "0.0.55" }
17-
commonware-deployer = { version = "0.0.55", default-features = false }
18-
commonware-macros = { version = "0.0.55" }
19-
commonware-p2p = { version = "0.0.55" }
20-
commonware-resolver = { version = "0.0.55" }
21-
commonware-runtime = { version = "0.0.55" }
22-
commonware-storage = { version = "0.0.55" }
23-
commonware-stream = { version = "0.0.55" }
24-
commonware-utils = { version = "0.0.55" }
13+
commonware-broadcast = { version = "0.0.56" }
14+
commonware-codec = { version = "0.0.56" }
15+
commonware-consensus = { version = "0.0.56" }
16+
commonware-cryptography = { version = "0.0.56" }
17+
commonware-deployer = { version = "0.0.56", default-features = false }
18+
commonware-macros = { version = "0.0.56" }
19+
commonware-p2p = { version = "0.0.56" }
20+
commonware-resolver = { version = "0.0.56" }
21+
commonware-runtime = { version = "0.0.56" }
22+
commonware-storage = { version = "0.0.56" }
23+
commonware-stream = { version = "0.0.56" }
24+
commonware-utils = { version = "0.0.56" }
2525
thiserror = "2.0.12"
2626
bytes = "1.7.1"
2727
rand = "0.8.5"

chain/README.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,22 @@ cargo install commonware-deployer
7979

8080
#### Create Artifacts
8181

82+
##### Global
83+
8284
```bash
83-
cargo run --bin setup -- generate --peers 50 --bootstrappers 5 --worker-threads 2 --log-level info --message-backlog 16384 --mailbox-size 16384 --deque-size 10 --output assets remote --regions us-west-1,us-east-1,eu-west-1,ap-northeast-1,eu-north-1,ap-south-1,sa-east-1,eu-central-1,ap-northeast-2,ap-southeast-2 --monitoring-instance-type c7g.4xlarge --monitoring-storage-size 100 --instance-type c7g.large --storage-size 40 --dashboard dashboard.json
85+
cargo run --bin setup -- generate --peers 50 --bootstrappers 5 --worker-threads 2 --log-level info --message-backlog 16384 --mailbox-size 16384 --deque-size 10 --output assets remote --regions us-west-1,us-east-1,eu-west-1,ap-northeast-1,eu-north-1,ap-south-1,sa-east-1,eu-central-1,ap-northeast-2,ap-southeast-2 --monitoring-instance-type c7g.4xlarge --monitoring-storage-size 100 --instance-type c7g.large --storage-size 25 --dashboard dashboard.json
8486
```
8587

88+
_This configuration consumes ~10MB of disk space per hour per validator (~5 views per second). With 25GB of storage allocated, validators will exhaust available storage in ~3 months._
89+
90+
##### USA
91+
92+
```bash
93+
cargo run --bin setup -- generate --peers 50 --bootstrappers 5 --worker-threads 2 --log-level info --message-backlog 16384 --mailbox-size 16384 --deque-size 10 --output assets remote --regions us-east-1,us-east-2,us-west-1,us-west-2 --monitoring-instance-type c7g.4xlarge --monitoring-storage-size 100 --instance-type c7g.large --storage-size 75 --dashboard dashboard.json
94+
```
95+
96+
_This configuration consumes ~30MB of disk space per hour per validator (~13 views per second). With 75GB of storage allocated, validators will exhaust available storage in ~3 months._
97+
8698
#### [Optional] Configure Indexer Upload
8799

88100
```bash

chain/dashboard.json

Lines changed: 105 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2750,7 +2750,7 @@
27502750
},
27512751
"gridPos": {
27522752
"h": 9,
2753-
"w": 8,
2753+
"w": 6,
27542754
"x": 0,
27552755
"y": 64
27562756
},
@@ -2777,7 +2777,7 @@
27772777
},
27782778
"disableTextWrap": false,
27792779
"editorMode": "builder",
2780-
"expr": "engine_syncer_block_archive_freezer_resizes_total{deployer_name=~\"$Validator\", deployer_region=~\"$Region\"}",
2780+
"expr": "engine_syncer_blocks_freezer_resizes_total{deployer_name=~\"$Validator\", deployer_region=~\"$Region\"}",
27812781
"fullMetaSearch": false,
27822782
"includeNullMetadata": true,
27832783
"legendFormat": "Blocks: {{deployer_name}} ({{deployer_ip}})",
@@ -2792,7 +2792,7 @@
27922792
},
27932793
"disableTextWrap": false,
27942794
"editorMode": "builder",
2795-
"expr": "engine_syncer_finalized_archive_freezer_resizes_total{deployer_name=~\"$Validator\", deployer_region=~\"$Region\"}",
2795+
"expr": "engine_syncer_finalized_freezer_resizes_total{deployer_name=~\"$Validator\", deployer_region=~\"$Region\"}",
27962796
"fullMetaSearch": false,
27972797
"hide": false,
27982798
"includeNullMetadata": true,
@@ -2867,8 +2867,8 @@
28672867
},
28682868
"gridPos": {
28692869
"h": 9,
2870-
"w": 8,
2871-
"x": 8,
2870+
"w": 6,
2871+
"x": 6,
28722872
"y": 64
28732873
},
28742874
"id": 39,
@@ -2965,8 +2965,8 @@
29652965
},
29662966
"gridPos": {
29672967
"h": 9,
2968-
"w": 8,
2969-
"x": 16,
2968+
"w": 6,
2969+
"x": 12,
29702970
"y": 64
29712971
},
29722972
"id": 40,
@@ -3001,6 +3001,104 @@
30013001
"title": "Disk Writes per Second",
30023002
"type": "timeseries"
30033003
},
3004+
{
3005+
"datasource": {
3006+
"type": "prometheus",
3007+
"uid": "PBFA97CFB590B2093"
3008+
},
3009+
"fieldConfig": {
3010+
"defaults": {
3011+
"color": {
3012+
"mode": "palette-classic"
3013+
},
3014+
"custom": {
3015+
"axisBorderShow": false,
3016+
"axisCenteredZero": false,
3017+
"axisColorMode": "text",
3018+
"axisLabel": "",
3019+
"axisPlacement": "auto",
3020+
"barAlignment": 0,
3021+
"barWidthFactor": 0.6,
3022+
"drawStyle": "line",
3023+
"fillOpacity": 0,
3024+
"gradientMode": "none",
3025+
"hideFrom": {
3026+
"legend": false,
3027+
"tooltip": false,
3028+
"viz": false
3029+
},
3030+
"insertNulls": false,
3031+
"lineInterpolation": "linear",
3032+
"lineWidth": 1,
3033+
"pointSize": 5,
3034+
"scaleDistribution": {
3035+
"type": "linear"
3036+
},
3037+
"showPoints": "auto",
3038+
"spanNulls": false,
3039+
"stacking": {
3040+
"group": "A",
3041+
"mode": "none"
3042+
},
3043+
"thresholdsStyle": {
3044+
"mode": "off"
3045+
}
3046+
},
3047+
"mappings": [],
3048+
"thresholds": {
3049+
"mode": "absolute",
3050+
"steps": [
3051+
{
3052+
"color": "green",
3053+
"value": null
3054+
},
3055+
{
3056+
"color": "red",
3057+
"value": 80
3058+
}
3059+
]
3060+
},
3061+
"unit": "bytes"
3062+
},
3063+
"overrides": []
3064+
},
3065+
"gridPos": {
3066+
"h": 9,
3067+
"w": 6,
3068+
"x": 18,
3069+
"y": 64
3070+
},
3071+
"id": 41,
3072+
"options": {
3073+
"legend": {
3074+
"calcs": [],
3075+
"displayMode": "list",
3076+
"placement": "bottom",
3077+
"showLegend": false
3078+
},
3079+
"tooltip": {
3080+
"hideZeros": false,
3081+
"mode": "single",
3082+
"sort": "none"
3083+
}
3084+
},
3085+
"pluginVersion": "11.5.2",
3086+
"targets": [
3087+
{
3088+
"disableTextWrap": false,
3089+
"editorMode": "code",
3090+
"expr": "node_memory_Cached_bytes{deployer_name=~\"$Validator\", deployer_region=~\"$Region\"}",
3091+
"fullMetaSearch": false,
3092+
"includeNullMetadata": true,
3093+
"legendFormat": "{{deployer_name}} ({{deployer_ip}})",
3094+
"range": true,
3095+
"refId": "A",
3096+
"useBackend": false
3097+
}
3098+
],
3099+
"title": "Cached Bytes",
3100+
"type": "timeseries"
3101+
},
30043102
{
30053103
"datasource": {
30063104
"type": "prometheus",

0 commit comments

Comments
 (0)