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

Define separate config.json URLs for RPC, archival, and validator nodes #12070

Open
4 of 5 tasks
Tracked by #77
tayfunelmas opened this issue Sep 10, 2024 · 0 comments
Open
4 of 5 tasks
Tracked by #77
Assignees

Comments

@tayfunelmas
Copy link
Contributor

tayfunelmas commented Sep 10, 2024

  • Create different config files from existing ones specific to RPC/archival/validator roles.
  • Define new URLs for each config file and upload new config files to the URLs
  • Modify neard init --download-config to specify the node type to download the right config.
  • Update validator documentation to refer to the new command arguments and reduce references to the explicit URLs.
  • Update indexer docs [link1] [link2].

For more context, see this Zulip thread

@tayfunelmas tayfunelmas self-assigned this Sep 10, 2024
github-merge-queue bot pushed a commit that referenced this issue Sep 11, 2024
We change the `--download-config` parameter to take a string.
- `neard init --download-config validator` downloads the `config.json`
file for validators (tracking single shard, loading memtries).
- `neard init --download-config rpc` downloads the `config.json` file
for non-validator RPC nodes (tracking all shards, NOT loading memtries).
- `neard init --download-config archival` downloads the `config.json`
file for non-validator archival nodes (tracking all shards, NOT loading
memtries, archive field set to true).
- `neard init --download-config` (with no value) defaults to `validator`
config (for backwards compatibility).

We map the flag to a specific URL containing the config type. 
The new config files per config type can be found at
https://github.com/tayfunelmas/near-configs.
The new config files are already uploaded to AWS S3 with the new URLs.

NOTE: For indexer and chainsync-loadtest params, we use `rpc` config
type.

Next: We will update the Near validator documentation to use the new
flag value.

Tracking issue: #12070
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

No branches or pull requests

1 participant