Skip to content

Commit 925de72

Browse files
authored
fix: limits to ethereum-listener genesis catchup (#349)
1 parent a1f95d8 commit 925de72

File tree

21 files changed

+444
-159
lines changed

21 files changed

+444
-159
lines changed

k8s/local/aztec-listener/sp_testnet/deployment.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ spec:
2525
name: postgres-config-global
2626
- configMapRef:
2727
name: postgres-config-aztec-listener-sp-testnet
28+
env:
29+
- name: TOTAL_DB_RESET
30+
value: "false"
2831
containers:
2932
- image: aztec-listener:latest
3033
resources:

k8s/local/ethereum-listener/remote_devnet/deployment.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ spec:
2020
- image: ethereum-listener:latest
2121
resources:
2222
limits:
23-
memory: 150Mi
23+
memory: 300Mi
2424
cpu: 500m
2525
name: ethereum-listener
2626
env:

k8s/local/ethereum-listener/sandbox/deployment.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ spec:
3232
- image: ethereum-listener:latest
3333
resources:
3434
limits:
35-
memory: 150Mi
35+
memory: 300Mi
3636
cpu: 500m
3737
name: ethereum-listener
3838
envFrom:

k8s/local/ethereum-listener/sp_testnet/deployment.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ spec:
3232
- image: ethereum-listener:latest
3333
resources:
3434
limits:
35-
memory: 150Mi
35+
memory: 300Mi
3636
cpu: 500m
3737
name: ethereum-listener
3838
envFrom:

k8s/local/grafana/dashboards/sandbox_overview.yaml

+98-37
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,40 @@ data:
3737
"fieldConfig": {
3838
"defaults": {
3939
"color": {
40-
"mode": "thresholds"
40+
"mode": "palette-classic"
41+
},
42+
"custom": {
43+
"axisBorderShow": false,
44+
"axisCenteredZero": false,
45+
"axisColorMode": "text",
46+
"axisLabel": "",
47+
"axisPlacement": "auto",
48+
"barAlignment": 0,
49+
"barWidthFactor": 0.6,
50+
"drawStyle": "line",
51+
"fillOpacity": 0,
52+
"gradientMode": "none",
53+
"hideFrom": {
54+
"legend": false,
55+
"tooltip": false,
56+
"viz": false
57+
},
58+
"insertNulls": false,
59+
"lineInterpolation": "linear",
60+
"lineWidth": 1,
61+
"pointSize": 5,
62+
"scaleDistribution": {
63+
"type": "linear"
64+
},
65+
"showPoints": "auto",
66+
"spanNulls": false,
67+
"stacking": {
68+
"group": "A",
69+
"mode": "none"
70+
},
71+
"thresholdsStyle": {
72+
"mode": "off"
73+
}
4174
},
4275
"mappings": [],
4376
"thresholds": {
@@ -46,18 +79,6 @@ data:
4679
{
4780
"color": "green",
4881
"value": null
49-
},
50-
{
51-
"color": "yellow",
52-
"value": 30
53-
},
54-
{
55-
"color": "orange",
56-
"value": 70
57-
},
58-
{
59-
"color": "red",
60-
"value": 90
6182
}
6283
]
6384
}
@@ -70,23 +91,18 @@ data:
7091
"x": 0,
7192
"y": 0
7293
},
73-
"id": 3,
94+
"id": 5,
7495
"options": {
75-
"colorMode": "value",
76-
"graphMode": "area",
77-
"justifyMode": "auto",
78-
"orientation": "auto",
79-
"percentChangeColorMode": "standard",
80-
"reduceOptions": {
81-
"calcs": [
82-
"lastNotNull"
83-
],
84-
"fields": "",
85-
"values": false
96+
"legend": {
97+
"calcs": [],
98+
"displayMode": "list",
99+
"placement": "bottom",
100+
"showLegend": true
86101
},
87-
"showPercentChange": false,
88-
"textMode": "auto",
89-
"wideLayout": true
102+
"tooltip": {
103+
"mode": "multi",
104+
"sort": "none"
105+
}
90106
},
91107
"pluginVersion": "11.3.0-pre",
92108
"targets": [
@@ -463,7 +479,7 @@ data:
463479
}
464480
],
465481
"title": "L2-block finalization status",
466-
"type": "stat"
482+
"type": "timeseries"
467483
},
468484
{
469485
"datasource": {
@@ -712,20 +728,67 @@ data:
712728
},
713729
"editorMode": "builder",
714730
"format": "time_series",
715-
"rawSql": "SELECT \"l1BlockNumber\", \"l2BlockNumber\", \"l1BlockTimestamp\" AS \"time\" FROM \"l1L2BlockProposed\" ORDER BY \"l1BlockTimestamp\" DESC LIMIT 50 ",
731+
"rawSql": "SELECT \"l2BlockNumber\" AS \"L2 block number proposed on L1\", \"l1BlockTimestamp\" AS \"time\" FROM \"l1L2BlockProposed\" ORDER BY \"l1BlockTimestamp\" DESC LIMIT 50 ",
716732
"refId": "A",
717733
"sql": {
718734
"columns": [
719735
{
736+
"alias": "\"L2 block number proposed on L1\"",
720737
"parameters": [
721738
{
722-
"name": "\"l1BlockNumber\"",
739+
"name": "\"l2BlockNumber\"",
723740
"type": "functionParameter"
724741
}
725742
],
726743
"type": "function"
727744
},
728745
{
746+
"alias": "\"time\"",
747+
"parameters": [
748+
{
749+
"name": "\"l1BlockTimestamp\"",
750+
"type": "functionParameter"
751+
}
752+
],
753+
"type": "function"
754+
}
755+
],
756+
"groupBy": [
757+
{
758+
"property": {
759+
"type": "string"
760+
},
761+
"type": "groupBy"
762+
}
763+
],
764+
"limit": 50,
765+
"orderBy": {
766+
"property": {
767+
"name": [
768+
"\"l1BlockTimestamp\""
769+
],
770+
"type": "string"
771+
},
772+
"type": "property"
773+
},
774+
"orderByDirection": "DESC"
775+
},
776+
"table": "\"l1L2BlockProposed\""
777+
},
778+
{
779+
"datasource": {
780+
"type": "grafana-postgresql-datasource",
781+
"uid": "aaaaaaaaaaaaaa"
782+
},
783+
"editorMode": "builder",
784+
"format": "time_series",
785+
"hide": false,
786+
"rawSql": "SELECT \"l2BlockNumber\" AS \"L2 block number proven on L1\", \"l1BlockTimestamp\" AS \"time\" FROM \"l1L2ProofVerified\" ORDER BY \"l1BlockTimestamp\" DESC LIMIT 50 ",
787+
"refId": "B",
788+
"sql": {
789+
"columns": [
790+
{
791+
"alias": "\"L2 block number proven on L1\"",
729792
"parameters": [
730793
{
731794
"name": "\"l2BlockNumber\"",
@@ -756,19 +819,17 @@ data:
756819
"limit": 50,
757820
"orderBy": {
758821
"property": {
759-
"name": [
760-
"\"l1BlockTimestamp\""
761-
],
822+
"name": "\"l1BlockTimestamp\"",
762823
"type": "string"
763824
},
764825
"type": "property"
765826
},
766827
"orderByDirection": "DESC"
767828
},
768-
"table": "\"l1L2BlockProposed\""
829+
"table": "\"l1L2ProofVerified\""
769830
}
770831
],
771-
"title": "Panel Title",
832+
"title": "L2 seen from L1",
772833
"type": "timeseries"
773834
},
774835
{
@@ -913,7 +974,7 @@ data:
913974
"list": []
914975
},
915976
"time": {
916-
"from": "now-5m",
977+
"from": "now-30m",
917978
"to": "now"
918979
},
919980
"timepicker": {},

k8s/production/ethereum-listener/devnet/deployment.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ spec:
2323
name: ethereum-listener
2424
resources:
2525
limits:
26-
memory: 150Mi
26+
memory: 300Mi
2727
cpu: 500m
2828
env:
2929
- name: NODE_ENV

k8s/production/ethereum-listener/sp_testnet/deployment.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ spec:
2323
name: ethereum-listener
2424
resources:
2525
limits:
26-
memory: 150Mi
26+
memory: 300Mi
2727
cpu: 500m
2828
env:
2929
- name: NODE_ENV

0 commit comments

Comments
 (0)