What are system parameters?
System parameters in RisingWave refer to the parameters that advanced users can use to adjust how internal components work in RisingWave. Currently, these system parameters are available in RisingWave.How to view system parameters?
You can use theSHOW PARAMETERS command to view the system parameters, along with their current values.
The Mutable column indicates whether the parameter can be altered using the ALTER SYSTEM SET command after the system is running. t means it can be altered using the ALTER SYSTEM SET command while f means it cannot be altered using the command.
How to configure system parameters?
Mutable and immutable parameters are configured differently. You can configure mutable parameters using theALTER SYSTEM SET command in psql.
The full syntax of the ALTER SYSTEM SET statement is:
state_store and data_directory need to be initialized before starting a cluster.
To configure parameter settings in the CLI of the Meta Node, navigate to the directory where RisingWave is installed and run the following command:
data_directory:
meta-node --data_directory "hummock_001"
As RisingWave reads system parameters at different times, there is no guarantee that a parameter value change will take effect immediately. We recommend that you adjust system parameters before running a streaming query after your RisingWave cluster starts.