8000 Refactor(chart, sequencer): restructure sequencer chart, adjust configs by quasystaty1 · Pull Request #1193 · astriaorg/astria · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Refactor(chart, sequencer): restructure sequencer chart, adjust configs #1193

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

Merged
merged 55 commits into from
Jun 27, 2024

Conversation

quasystaty1
Copy link
Contributor

Summary

This pull request aims to enhance the consistency of our Helm chart and improve the definition of values and their associated services.
The primary changes include:

  • Renamed values and keys to follow a consistent naming pattern.
  • Ensured all resource names, labels, and annotations adhere to a uniform format.
  • Improved the organization and clarity of values.yaml.

Background

The helm charts used for deploying the Astria stack lack clarity for value.yaml definition and structure

Changes

  • Update default cometbft configs
  • Split sequencer, cometbft and genesis structure in values.yaml distinguishing between their values.
  • Renamed values and keys in values.yaml to follow a consistent naming pattern. Example: cometBFT -> cometbft
  • adjust dev values to match changes above

Testing

Tested locally both with a single sequencer node and multi-nodes

@quasystaty1 quasystaty1 requested a review from a team as a code owner June 18, 2024 13:53
@quasystaty1 quasystaty1 requested a review from aajimal June 18, 2024 13:53
@github-actions github-actions bot added the cd label Jun 18, 2024
@quasystaty1 quasystaty1 requested a review from joroshiba June 18, 2024 13:54
Copy link
Member
@joroshiba joroshiba left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we should have the configuration of file locations, might actually break with the data dir the way this is configured as the priv_validator_state won't be correctly copied to the right directory without a script update.


##### additional base config options #####

# Path to the JSON file containing the initial validator set and other meta data
genesis_file = "config/genesis.json"
genesis_file = "{{ .Values.cometbft.config.genesisFile}}"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This one maybe doesn't need to be a value

@@ -87,7 +87,7 @@ filter_peers = false
[rpc]

# TCP or UNIX socket address for the RPC server to listen on
laddr = "tcp://0.0.0.0:{{ .Values.ports.cometBFTRPC }}"
laddr = "tcp://0.0.0.0:{{ .Values.ports.cometbftRpc }}"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Potentially could allow this to be 127.0.0.1 if we allow rpc to be disabled?


# Comma separated list of peer IDs to keep private (will not be gossiped to other peers)
private_peer_ids = "{{ join "," .Values.config.cometBFT.p2p.privatePeers }}"
private_peer_ids = "{{ join "," .Values.cometbft.config.p2p.privatePeers }}"

# Toggle to disable guard against peers connecting from the same ip.
allow_duplicate_ip = false
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Again should this be configurable?

@@ -486,4 +486,4 @@ prometheus_listen_addr = ":26660"
max_open_connections = 3

# Instrumentation namespace
namespace = "cometbft"
namespace = "astria_cometbft"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

potentially allow configuration?

ASTRIA_SEQUENCER_GRPC_ADDR: "0.0.0.0:{{ .Values.ports.sequencerGRPC }}"
ASTRIA_SEQUENCER_NO_METRICS: "{{ not .Values.config.sequencer.metrics.enabled }}"
# Socket address for GRPC server
ASTRIA_SEQUENCER_GRPC_ADDR: "0.0.0.0:{{ .Values.ports.sequencerGRpc }}"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: I think sequencerGRPC is technically correct here as the protocol is officially gRPC.

I also know that we do Rpc instead of RPC given that I think I prefer sequencerGrpc over serquencerGRpc which just feels off somehow lol.

@quasystaty1 quasystaty1 requested a review from joroshiba June 21, 2024 09:49
@quasystaty1 quasystaty1 requested review from a team, SuperFluffy and noot as code owners June 24, 2024 16:50
@github-actions github-actions bot added sequencer pertaining to the astria-sequencer crate composer pertaining to composer labels Jun 24, 2024
@joroshiba joroshiba dismissed their stale review June 27, 2024 19:38

major changes

Copy link
Member
@joroshiba joroshiba left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just make sure to update the image tag, otherwise good.

quasystaty1 and others added 3 commits June 27, 2024 23:04
Co-authored-by: Jordan Oroshiba <jordan@astria.org>
Co-authored-by: Jordan Oroshiba <jordan@astria.org>
@quasystaty1 quasystaty1 added this pull request to the merge queue Jun 27, 2024
Merged via the queue into main with commit 811c95d Jun 27, 2024
38 checks passed
@quasystaty1 quasystaty1 deleted the quasystaty1/updated-chart-params branch June 27, 2024 20:16
steezeburger added a commit that referenced this pull request Jul 11, 2024
* main: (27 commits)
  refactor(sequencer): fix prepare proposal metrics (#1211)
  refactor(bridge-withdrawer): move generated contract bindings to crate (#1237)
  fix(sequencer) fix wrong metric and remove unused metric (#1240)
  feat(sequencer): implement transaction fee query (#1196)
  chore(cli)!: remove unmaintained rollup subcommand (#1235)
  release(sequencer): 0.14.1 patch release (#1233)
  feat(sequencer-utils): generate example genesis state (#1224)
  feat(sequencer): implement abci query for bridge account info (#1189)
  feat(charts): bridge-withdrawer, smoke test, various chart improvements (#1141)
  chore(charts): update for new geth update (#1226)
  chore(chart)!: dusk-8 chart version updates (#1223)
  release(conductor): fix conductor release version (#1222)
  release: dusk-8 versions (#1219)
  fix(core): revert `From` ed25519_consensus types for crypto mod (#1220)
  Refactor(chart, sequencer): restructure sequencer chart, adjust configs (#1193)
  refactor(withdrawer): read from block subscription stream and get events on each block (#1207)
  feat(core): implement with verification key for address builder and crypto improvements (#1218)
  feat(proto, sequencer)!: use full IBC ICS20 denoms instead of IDs (#1209)
  chore(chart): update evm chart for new prefix field (#1214)
  chore: bump penumbra deps (#1216)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cd composer pertaining to composer sequencer pertaining to the astria-sequencer crate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0