Skip to content

feat: add a cometbft config check CLI command #2829

Open

Description

@andynog

Feature Request

Summary

Add a new command to CometBFT to validate and check the configuration file, and output warnings and messages in case there are misconfigurations

Problem Definition

CometBFT has several parameters that can be configured in the configuration file by operators. Some of these parameters are related to one another in different ways, for example, parameters related to the mempool such as max_txs_bytes and max_tx_bytes.

Currently there is not way to enforce or check if some of these values make sense (too large or too small in relation to another). Or if the value set would cause any issues.

Proposal

We should implement a cometbft config check command that parses a configuration file and output warnings and messages for misconfigured parameters. It could also output messages such as when a parameter is not configured, then the command shows the default value that will be used that is hard-coded in CometBFT.

This command might be very helpful for operators and it could help streamline configuration across the network. Not that they would agree but it could reduces big outliers in configuration that could cause issues. See this discussion.

Now that we also have a config documentation, we could point the operators to see more information online for a particular parameter.

Activity

  1. added
    enhancement
    on Apr 16, 2024
  2. self-assigned this
    on Apr 16, 2024
  3. melekes commented on Sep 3, 2024

    @melekes
    Collaborator

    Since there's cometbft config sub-cmd now, the command should be cometbft config check.

  4. changed the title [-]feat: add a `config-check` CLI command[/-] [+]feat: add a `cometbft config check` CLI command[/+] on Sep 12, 2024
  5. removed their assignment
    on Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    cliconfigenhancement

    Type

    No type

    Projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions