Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(spartan): 192 node 1 tps - additional validator service #12238

Merged
merged 6 commits into from
Feb 26, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion spartan/aztec-network/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ http://{{ include "aztec-network.fullname" . }}-boot-node-0.{{ include "aztec-ne
{{- end -}}

{{- define "aztec-network.validatorUrl" -}}
http://{{ include "aztec-network.fullname" . }}-validator.{{ .Release.Namespace }}.svc.cluster.local:{{ .Values.validator.service.nodePort }}
http://{{ include "aztec-network.fullname" . }}-validator-lb.{{ .Release.Namespace }}.svc.cluster.local:{{ .Values.validator.service.nodePort }}
{{- end -}}

{{- define "aztec-network.blobSinkUrl" -}}
Expand Down
4 changes: 3 additions & 1 deletion spartan/aztec-network/templates/pxe.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ spec:
serviceAccountName: {{ include "aztec-network.fullname" . }}-node
hostNetwork: true
dnsPolicy: ClusterFirstWithHostNet
{{- else }}
dnsPolicy: ClusterFirst
{{- end }}
volumes:
- name: config
Expand Down Expand Up @@ -183,4 +185,4 @@ spec:
{{- end }}
---
{{ end }}
{{ end }}
{{ end }}
3 changes: 3 additions & 0 deletions spartan/aztec-network/templates/transaction-bot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ spec:
{{- if .Values.network.public }}
serviceAccountName: {{ include "aztec-network.fullname" . }}-node
hostNetwork: true
dnsPolicy: ClusterFirstWithHostNet
{{- else }}
dnsPolicy: ClusterFirst
{{- end }}
volumes:
- name: config
Expand Down
17 changes: 17 additions & 0 deletions spartan/aztec-network/templates/validator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -295,4 +295,21 @@ spec:
- port: {{ .Values.validator.service.nodePort }}
name: node
protocol: TCP
---
# If we want to send traffic to any validator, then we need a LoadBalancer service on top of a headless service
apiVersion: v1
kind: Service
metadata:
name: {{ include "aztec-network.fullname" . }}-validator-lb
labels:
{{- include "aztec-network.labels" . | nindent 4 }}
app: validator
spec:
selector:
{{- include "aztec-network.selectorLabels" . | nindent 4 }}
app: validator
ports:
- port: {{ .Values.validator.service.nodePort }}
name: node
protocol: TCP
{{ end }}
2 changes: 0 additions & 2 deletions spartan/aztec-network/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -262,8 +262,6 @@ ethereum:
resources:
requests:
memory: "4Gi"
limits:
memory: "4Gi"
storageSize: "80Gi"
validator:
resources:
Expand Down
97 changes: 97 additions & 0 deletions spartan/aztec-network/values/192-val-1-tps.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
## 192 validators - large transactions (192kb) - 1 tps
network:
public: false

storage:
localSsd: true

aztec:
realProofs: false

telemetry:
enabled: true

images:
aztec:
pullPolicy: Always

validator:
storageSize: "300Gi"
replicas: 192
resources:
requests:
memory: "5Gi"
cpu: "1.5"
ephemeral-storage: "275Gi"
maxOldSpaceSize: "4608"
validator:
disabled: false
sequencer:
maxTxsPerBlock: 40
enforceTimeTable: true

bootNode:
peerIdPrivateKey: 080212200ba8451c6d62b03c4441f0a466c0bce7a3a595f2cf50a055ded3305c77aa3af0
storageSize: "100Gi"
validator:
disabled: true
resources:
requests:
memory: "5Gi"
cpu: "1.5"
ephemeral-storage: "275Gi"
maxOldSpaceSize: "4608"

proverAgent:
replicas: 8
resources:
requests:
memory: "5Gi"
cpu: "1.5"
maxOldSpaceSize: "4608"

proverBroker:
resources:
requests:
memory: "5Gi"
cpu: "1.5"
ephemeral-storage: "275Gi"
maxOldSpaceSize: "4608"

proverNode:
resources:
requests:
memory: "5Gi"
cpu: "1.5"
ephemeral-storage: "275Gi"
maxOldSpaceSize: "4608"

bot:
replicas: 10
followChain: "NONE"
enabled: true
txIntervalSeconds: 1

jobs:
deployL1Verifier:
enable: false

ethereum:
execution:
resources:
requests:
memory: "5Gi"
cpu: "1.5"
storageSize: "80Gi"
beacon:
resources:
requests:
memory: "5Gi"
cpu: "1.5"
storageSize: "80Gi"
validator:
resources:
requests:
memory: "5Gi"
cpu: "1.5"
storageSize: "80Gi"
Loading