Modifying the Basic Configuration File (doris.conf)

What is doris.conf?

doris.conf is the basic configuration file for Doris, used to store system runtime settings.

What is included in doris.conf?

  • Database connection: Configure information for Database connection, including host, port, username, and password.
  • Data storage location: Configure the path of data directory and other storage-related information.
  • Cache: Configure the size and type of memory and disk buffer.
  • Disk configuration: Configure information about disk configuration, such as buffer pool size and read-ahead size.
  • Network configuration: Configure information about network configuration, such as listen address and port.

Basic modification process

1. Edit doris.conf: Open the doris.conf file and make modifications.

2. Check modifications: Verify that the modifications are correct and error-free.

3. Restart service: Restart the Doris service to make the modifications take effect.

Most frequently modified parameters

# Database connection configuration
client:
  host: '127.0.0.1'
  port: 8000
  user: 'root'
  password: 'password'

# Data storage location
data:
  directory: '/var/lib/doris'

# Cache configuration
cache:
  size: 2G
  type: RAM

# Disk configuration
disk:
  buffer_pool_size: 1G
  read-ahead_size: 16K

Tips

  • Pay attention to format: Ensure that the modified configuration file follows the correct format to avoid runtime errors.
  • Check for duplicates: Check for duplicate configuration items to prevent abnormal system behavior.