Skip to content

Commit be16e37

Browse files
feat(polygon): update to erigon 3 (#1390)
1 parent b079dba commit be16e37

File tree

7 files changed

+31
-14
lines changed

7 files changed

+31
-14
lines changed

polygon/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ erigon.labels | object | | Adds helmfile labels to this release |
119119
erigon.mergeValues | boolean | true | Merges passed values with namespace's defaults if true, overrides if false |
120120
erigon.resourceLabels | object | | Adds labels to resources on this release |
121121
erigon.values | (object *or* list of objects) | | Pass values to the release helm chart |
122-
features | list of strings | [proxyd, erigon] | *enum of:  (proxyd \| erigon \| heimdall)* |
122+
features | list of strings | [proxyd, erigon, heimdall, heimdall-ha-svc] | *enum of:  (proxyd \| erigon \| heimdall \| heimdall-ha-svc)* |
123123
flavor | string | | |
124124
heimdall | object | | |
125125
heimdall.annotations | object | | Add annotations to resources on this release |

polygon/values/_common/erigon.yaml.gotmpl

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@ statefulNode:
1515
# -- The storage class to use when provisioning a persistent volume for Erigon
1616
storageClassName: openebs-rawfile-localpv # change me if desired
1717

18-
restoreSnapshot:
19-
enabled: false
20-
2118
affinityPresets:
2219
antiAffinityByHostname: false
2320
affinity:
@@ -142,7 +139,7 @@ statefulNode:
142139
{{- if (hasKey .Values.scaling "p2pStartPort") }}
143140
p2pNodePort:
144141
enabled: true
145-
port: {{ add (mul (sub $scalingIndex 1) 2) .Values.scaling.p2pStartPort }}
142+
port: {{ add (mul (sub $scalingIndex 1) 3) .Values.scaling.p2pStartPort }}
146143
{{- end }}
147144

148145
rpcdaemon:

polygon/values/_common/heimdall.yaml.gotmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ heimdall:
115115
{{- if (hasKey .Values.scaling "p2pStartPort") }}
116116
p2pNodePort:
117117
enabled: true
118-
port: {{ add (mul (sub $scalingIndex 1) 2) .Values.scaling.p2pStartPort 1 }}
118+
port: {{ add (mul (sub $scalingIndex 1) 3) .Values.scaling.p2pStartPort 2 }}
119119
{{- end }}
120120

121121
prometheus:

polygon/values/amoy/erigon.yaml.gotmpl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,10 @@ statefulNode:
88
- --http.corsdomain=*
99
- --torrent.download.rate=100mb # Download snapshot files faster
1010
- --torrent.download.slots=6 # 3 is default
11-
- --db.read.concurrency=16 # Does limit amount of parallel db reads. Default: equal to GOMAXPROCS (or number of CPU) (default: 10)
11+
- --db.read.concurrency=9000
1212
- --rpc.batch.concurrency=16
1313
- --ws # enable ws
1414
- --trace.maxtraces=10000
15-
- --snapshots=true
1615
- --bootnodes=enode://0ef8758cafc0063405f3f31fe22f2a3b566aa871bd7cd405e35954ec8aa7237c21e1ccc1f65f1b6099ab36db029362bc2fecf001a771b3d9803bbf1968508cef@35.197.249.21:30303,enode://c9c8c18cde48b41d46ced0c564496aef721a9b58f8724025a0b1f3f26f1b826f31786f890f8f8781e18b16dbb3c7bff805c7304d1273ac11630ed25a3f0dc41c@34.89.39.114:30303,enode://5b8d436677fb545b1c3fd1ae84553d478d9d21ad3b06a908b9d34d2df367ead5bb8823d84a370e26bdde8896ba8a870e21ba3a6dce19c0ded086296df5f04f15@35.242.167.175:30303,enode://5bd810da4f021a974e80cf2be48975d58cafbcfdd971d568ab98250f8568a9457bdc1b7a6d16b5aebfcb9deb0c1ec612f0664d5366c74f5266906a2774dd70f0@34.89.15.223:30303,enode://a2ec3671e553ba3e711639033912be55fe1e7fa4b61a93f6a1ac0cd3cea34f9d7eec1d718e04049531cf5dd7efc1ac677df1cf0e1f24f5e677706d7bcb3917de@34.105.128.110:30303,enode://9e15bc58779c32119140d54a8384940b57a10a001506ce173cc4cdb10876b14a2ac9ae91f9389caf9fd385c3b72825f8bbbe937e7e57b1f032561703e900da59@34.89.21.99:30303,enode://42203e9b423aba24e1e9386f94d0d0397a42770427e8e9e22f9e2a9523f66abb13b1f5a6addee68ad5986f94a8f6de626f5829492599a2f9484f98e86e26149d@34.89.101.16:30303,enode://83c235bb4305ecdd5addcbfd09478d2df7cddca9b7eed3ef11b2426fad04ccfe7335279e2371a85696e461dcbe78de6912d07043a912dbd85cb0bb944d78b8d9@34.89.11.233:30303
1716

1817
volumeClaimSpec:

polygon/values/amoy/heimdall.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
heimdall:
22
config:
33
network: amoy
4+
volumeClaimSpec:
5+
resources:
6+
requests:
7+
storage: 500Gi

polygon/values/mainnet/erigon.yaml.gotmpl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,12 @@ statefulNode:
88
- --http.corsdomain=*
99
- --torrent.download.rate=100mb # Download snapshot files faster
1010
- --torrent.download.slots=6 # 3 is default
11-
- --db.read.concurrency=16 # Does limit amount of parallel db reads. Default: equal to GOMAXPROCS (or number of CPU) (default: 10)
11+
- --db.read.concurrency=9000
1212
- --db.pagesize=16KB
1313
- --db.size.limit=16TB
1414
- --rpc.batch.concurrency=16
1515
- --ws # enable ws
1616
- --trace.maxtraces=10000
17-
- --snapshots=true
1817
- --bootnodes=enode://e4fb013061eba9a2c6fb0a41bbd4149f4808f0fb7e88ec55d7163f19a6f02d64d0ce5ecc81528b769ba552a7068057432d44ab5e9e42842aff5b4709aa2c3f3b@34.89.75.187:30303,enode://a49da6300403cf9b31e30502eb22c142ba4f77c9dda44990bccce9f2121c3152487ee95ee55c6b92d4cdce77845e40f59fd927da70ea91cf935b23e262236d75@34.142.43.249:30303,enode://0e50fdcc2106b0c4e4d9ffbd7798ceda9432e680723dc7b7b4627e384078850c1c4a3e67f17ef2c484201ae6ee7c491cbf5e189b8ffee3948252e9bef59fc54e@35.234.148.172:30303,enode://a0bc4dd2b59370d5a375a7ef9ac06cf531571005ae8b2ead2e9aaeb8205168919b169451fb0ef7061e0d80592e6ed0720f559bd1be1c4efb6e6c4381f1bdb986@35.246.99.203:30303,enode://f2b0d50e0b843d38ddcab59614f93065e2c82130100032f86ae193eb874505de12fcaf12502dfd88e339b817c0b374fa4b4f7c4d5a4d1aa04f29c503d95e0228@35.197.233.240:30303,enode://72c3176693f7100dfedc8a37909120fea16971260a5d95ceff49affbc0e23968c35655fee75734736f0b038147645e8ceeee59af68859b3f5bf91fe249be6259@35.246.95.65:30303,enode://f0e44769385aea31de930d3f4796e3e348962221063bb9f681106d832d13f70e5543d652d30e819812104f1b1ffdd7585977b46bf802ed5a52cf731de8c48dbd@34.105.180.11:30303,enode://fc7624241515f9d5e599a396362c29de92b13a048ad361c90dd72286aa4cca835ba65e140a46ace70cc4dcb18472a476963750b3b69d958c5f546d48675880a8@34.147.169.102:30303,enode://198896e373735ba38a0313d073137a413787ece791fbc0d0be0f9f6b9d9dd00ee0841f46519904d666d7f1cdfce5532b093e3a1574b34eb64224f57b9b7fce7b@34.89.55.74:30303
1918

2019
volumeClaimSpec:

schema.json

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5069,7 +5069,7 @@
50695069
}
50705070
},
50715071
"feature": {
5072-
"$ref": "#/components/schemas/namespaces.polygon.features.heimdall"
5072+
"$ref": "#/components/schemas/namespaces.polygon.features.heimdall_ha_svc"
50735073
}
50745074
}
50755075
},
@@ -5213,11 +5213,19 @@
52135213
},
52145214
{
52155215
"$ref": "#/components/schemas/namespaces.polygon.features.erigon"
5216+
},
5217+
{
5218+
"$ref": "#/components/schemas/namespaces.polygon.features.heimdall"
5219+
},
5220+
{
5221+
"$ref": "#/components/schemas/namespaces.polygon.features.heimdall_ha_svc"
52165222
}
52175223
],
52185224
"default": [
52195225
"proxyd",
5220-
"erigon"
5226+
"erigon",
5227+
"heimdall",
5228+
"heimdall-ha-svc"
52215229
]
52225230
},
52235231
"scaling": {
@@ -5252,7 +5260,8 @@
52525260
"enum": [
52535261
"proxyd",
52545262
"erigon",
5255-
"heimdall"
5263+
"heimdall",
5264+
"heimdall-ha-svc"
52565265
]
52575266
},
52585267
"namespaces.polygon.features.erigon": {
@@ -5269,6 +5278,13 @@
52695278
"heimdall"
52705279
]
52715280
},
5281+
"namespaces.polygon.features.heimdall_ha_svc": {
5282+
"description": "Provide an heimdall front SVC for HA",
5283+
"type": "string",
5284+
"enum": [
5285+
"heimdall-ha-svc"
5286+
]
5287+
},
52725288
"namespaces.polygon.features.proxyd": {
52735289
"description": "Deploy proxyd",
52745290
"type": "string",
@@ -5391,7 +5407,9 @@
53915407
},
53925408
"default": [
53935409
"proxyd",
5394-
"erigon"
5410+
"erigon",
5411+
"heimdall",
5412+
"heimdall-ha-svc"
53955413
]
53965414
},
53975415
"scaling": {

0 commit comments

Comments
 (0)