Skip to content

Commit

Permalink
ci: enable debug logging for validators
Browse files Browse the repository at this point in the history
On Testnet 62 Iapetus, we experienced a chain halt at block height
279655. We recently removed debug logging from the testnet nodes,
which caused problems for figuring out what went wrong. Full debug
output generates a lot of text, which raises hosting costs. Here, we
selectively re-enable debug just on the validator nodes, where it's most
useful.
  • Loading branch information
conorsch committed Oct 30, 2023
1 parent 675123a commit a60bd9a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions deployments/charts/penumbra-network/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ spec:
- "0.0.0.0:9000"
- --home
- "/penumbra-config/{{ $val_name }}/node{{ $i }}/pd"
env:
{{- toYaml $.Values.containerEnv | nindent 12 }}
ports:
- name: pd-grpc
containerPort: 8080
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ spec:
allowPrivilegeEscalation: true
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
env:
{{- toYaml $.Values.containerEnv | nindent 12 }}
command:
- sh
- -c
Expand Down
5 changes: 5 additions & 0 deletions deployments/charts/penumbra-network/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,11 @@ containerArgs:
# store state in emptyDir for now
- /penumbra-config/testnet_data/node0/pd

# Environment variables for pd containers.
containerEnv:
- name: RUST_LOG
value: info,pd=debug,penumbra=debug

imagePullSecrets: []
nameOverride: ""
fullnameOverride: ""
Expand Down

0 comments on commit a60bd9a

Please sign in to comment.