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: persistent storage edit for anvil node #9089

Merged
merged 2 commits into from
Oct 8, 2024

Conversation

stevenplatt
Copy link
Collaborator

@stevenplatt stevenplatt commented Oct 8, 2024

This PR includes the following changes:

Migrated Aztec Grafana Dashboard

After the Grafana stack was split out into a separate helm chart ( #9037 ), a new Grafana instance has been installed to the Spartan kubernetes cluster. This installation is inside a new metrics namespace and is not tied to any single deployment.

To allow using the existing dashboard from grafana.aztec.network, the uid of the datasource used for each of the dashboard panels has been updated to use the new Grafana instance name.

"uid": "aztec-node-metrics" >> "uid": "spartan-metrics-prometheus"

The dashboard has since been imported to the new grafana instance (available at spartan.grafana.aztec.network). The DNS name is expected to change in the future, once production networks run from kubernetes and the current grafana.aztec.network instance is retired.

Persistent Grafana Stack Storage

This PR adds persistent storage for the portions of the Grafana stack that don't include it by default (specifically the Grafana dashboard itself).

Additionally, a load balancer configuration is added to expose Grafana publicly, as well as additional annotations that allow it to support https for the CNAME spartan.grafana.aztec.network using an AWS issued certificate (pending final AWS approval).

Anvil Persistent Storage

By default, Anvil stores its activity in memory (ref). This PR mounts a persistent volume and uses the --load-state and --dump-state flags to export the current network state at fixed intervals.

In testing, Anvil does not allow mounting a persistent volume to either the / or /home/foundry directories. This method compensates for that. It should be noted that an L1 gap is still possible if Anvil dies before the most recent state is exported.

@stevenplatt stevenplatt self-assigned this Oct 8, 2024
@stevenplatt stevenplatt marked this pull request as ready for review October 8, 2024 18:04
@stevenplatt stevenplatt enabled auto-merge (squash) October 8, 2024 18:04
@stevenplatt stevenplatt merged commit 9b72a69 into master Oct 8, 2024
89 of 90 checks passed
@stevenplatt stevenplatt deleted the srp/anvil-persistent-storage branch October 8, 2024 20:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants