-
Notifications
You must be signed in to change notification settings - Fork 271
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This test: - updates the aztec network deployment, allowing validators to use each other as boot nodes - applies the "network-requirements" network shaping - permanently disables the boot node - runs 3 epochs during which it: - kills 25% of the validators - asserts that we miss less than 50% of slots Other work in this branch includes: - add `ignoreDroppedReceiptsFor` TX wait options - this allows sending a TX to one node, and awaiting it on another since we need time for p2p propagation - we need this since we have shifted the PXE to point at the top-level validator service, which load balances across individuals - this may help with #9613 - scalable loki deployment for prod - more visible logging for core sequencer operations - better error handling during the setup of l2 contracts - better error handling in the pxe - rename the network shaping charts to "aztec-chaos-scenarios"
- Loading branch information
1 parent
f566503
commit 8efe7ea
Showing
50 changed files
with
786 additions
and
242 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
apiVersion: v2 | ||
name: aztec-chaos-scenarios | ||
description: Chaos scenarios for spartan using chaos-mesh | ||
type: application | ||
version: 0.1.0 | ||
appVersion: "1.0.0" |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
spartan/aztec-chaos-scenarios/templates/boot-node-failure.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{{- if .Values.bootNodeFailure.enabled }} | ||
--- | ||
apiVersion: chaos-mesh.org/v1alpha1 | ||
kind: PodChaos | ||
metadata: | ||
name: {{ .Values.global.targetNamespace }}-boot-node-failure | ||
namespace: {{ .Values.global.chaosMeshNamespace }} | ||
labels: | ||
{{- include "aztec-chaos-scenarios.labels" . | nindent 4 }} | ||
annotations: | ||
"helm.sh/resource-policy": keep | ||
spec: | ||
action: pod-failure | ||
mode: all | ||
selector: | ||
namespaces: | ||
- {{ .Values.global.targetNamespace }} | ||
labelSelectors: | ||
app: boot-node | ||
duration: {{ .Values.bootNodeFailure.duration }} | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
spartan/aztec-chaos-scenarios/templates/prover-failure.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{{- if .Values.proverFailure.enabled }} | ||
--- | ||
apiVersion: chaos-mesh.org/v1alpha1 | ||
kind: PodChaos | ||
metadata: | ||
name: {{ .Values.global.targetNamespace }}-prover-failure | ||
namespace: {{ .Values.global.chaosMeshNamespace }} | ||
labels: | ||
{{- include "aztec-chaos-scenarios.labels" . | nindent 4 }} | ||
annotations: | ||
"helm.sh/resource-policy": keep | ||
spec: | ||
action: pod-failure | ||
mode: all | ||
selector: | ||
namespaces: | ||
- {{ .Values.global.targetNamespace }} | ||
labelSelectors: | ||
app: prover-node | ||
duration: {{ .Values.proverFailure.duration }} | ||
{{- end }} |
21 changes: 21 additions & 0 deletions
21
spartan/aztec-chaos-scenarios/templates/validator-kill.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{{- if .Values.validatorKill.enabled }} | ||
--- | ||
apiVersion: chaos-mesh.org/v1alpha1 | ||
kind: PodChaos | ||
metadata: | ||
name: {{ .Values.global.targetNamespace }}-validator-kill | ||
namespace: {{ .Values.global.chaosMeshNamespace }} | ||
labels: | ||
{{- include "aztec-chaos-scenarios.labels" . | nindent 4 }} | ||
annotations: | ||
"helm.sh/resource-policy": keep | ||
spec: | ||
action: pod-kill | ||
mode: fixed-percent | ||
value: {{ .Values.validatorKill.percent | quote }} | ||
selector: | ||
namespaces: | ||
- {{ .Values.global.targetNamespace }} | ||
labelSelectors: | ||
app: validator | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
global: | ||
namespace: "smoke" | ||
|
||
bootNodeFailure: | ||
enabled: true | ||
duration: 60m |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,4 +22,4 @@ networkShaping: | |
packetLoss: | ||
enabled: true | ||
loss: "0.5" | ||
correlation: "60" | ||
correlation: "60" |
23 changes: 23 additions & 0 deletions
23
spartan/aztec-chaos-scenarios/values/network-requirements.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Imposes the network conditions that are stated as requirements for node operators | ||
global: | ||
namespace: "smoke" | ||
|
||
networkShaping: | ||
enabled: true | ||
conditions: | ||
latency: | ||
enabled: true | ||
delay: | ||
# Regional network latency (e.g., cross-country) | ||
latency: 100ms | ||
jitter: 20ms | ||
correlation: "75" | ||
bandwidth: | ||
enabled: true | ||
rate: 250mbps | ||
limit: 125000000 | ||
buffer: 25000 | ||
packetLoss: | ||
enabled: true | ||
loss: "0.5" | ||
correlation: "60" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
global: | ||
namespace: "smoke" | ||
|
||
proverFailure: | ||
enabled: true | ||
duration: 13m |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
global: | ||
namespace: "smoke" | ||
|
||
validatorKill: | ||
enabled: true | ||
percent: 25 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.