Configure Broker Properties

When you install Redpanda, a redpanda.yaml file is installed on each broker in /etc/redpanda. This file contains broker configuration properties. A broker property is one that can be set differently from broker to broker, such as data_directory or node_id (when specified). See Broker Configuration Properties for a list of broker properties, their descriptions, and their default values.

The default redpanda.yaml file groups broker properties into categories:

  • pandaproxy - Properties for the Redpanda HTTP Proxy

  • redpanda - Runtime configuration properties, such as the cluster member IP addresses and the data directory

  • rpk - Properties that determine how rpk starts Redpanda

  • schema registry - Properties related to storage, retrieval, and compatibility of the schemas

To view a sample template that includes all broker properties as they appear in the default redpanda.yaml file, see Broker Configuration Template. This template is annotated with descriptions of each property.

Set broker configuration properties

The redpanda.yaml file rarely needs to be edited after the system is installed, but you can choose to change broker configuration property values.

The broker configuration property node_id is immutable. To ensure safe operations, omit the node_id field from redpanda.yaml and allow Redpanda to assign it automatically. For more information, see Do not configure broker IDs.

To change a broker property setting:

  1. Open a terminal window and navigate to the broker where you want to change a property setting.

  2. Go to the /etc/redpanda directory.

  3. Open the redpanda.yaml file.

  4. Change values for properties as needed.

  5. Save the file and close the editor.

  6. Restart the broker to apply the changes.

When Redpanda starts up and reads the redpanda.yaml file, it checks that each property setting has a valid value. If the file contains an invalid property setting, Redpanda logs an error and refuses to start.