Nebula Graph provides two initial configuration files for the Graph Service, nebula-graphd.conf.default and nebula-graphd.conf.production. Users can use them in different scenarios conveniently. The default file path is /usr/local/nebula/etc/.
It is not recommended to modify the value of local_config to false. If modified, the Nebula Graph service will first read the cached configurations, which may cause configuration inconsistencies between clusters and cause unknown risks.
It is not recommended to modify the configurations that are not introduced in this topic, unless you are familiar with the source code and fully understand the function of configurations.
To use the initial configuration file, choose one of the above two files and delete the suffix .default or .production from the initial configuration file for the Meta Service to apply the configurations defined in it.
If a parameter is not set in the configuration file, Nebula Graph uses the default value. Not all parameters are predefined. And the predefined parameters in the two initial configuration files are different. This topic uses the parameters in nebula-metad.conf.default.
When set to true, the process is a daemon process.
The file that records the process ID.
When set to true, the optimizer is enabled.
Specifies the Nebula Graph time zone. This parameter is not predefined in the initial configuration files. The system default value is UTC+00:00:00. For the format of the parameter value, see Specifying the Time Zone with TZ. For example， --timezone_name=UTC+08:00 represents the GMT+8 time zone.
When set to true, the process gets configurations from the configuration files.
While inserting property values of time types, Nebula Graph transforms time types (except TIMESTAMP) to the corresponding UTC according to the time zone specified by timezone_name. The time-type values returned by nGQL queries are all UTC time.
timezone_name is only used to transform the data stored in Nebula Graph. Other time-related data of the Nebula Graph processes still uses the default time zone of the host, such as the log printing time.
The directory that stores the Meta Service log. It is recommended to put logs on a different hard disk from the data.
Specifies the minimum level of the log. That is, no logs below this level will be printed. Optional values are 0 (INFO), 1 (WARNING), 2 (ERROR), 3 (FATAL). It is recommended to set it to 0 during debugging and 1 in a production environment. If it is set to 4, Nebula Graph will not print any logs.
Specifies the detailed level of the log. The larger the value, the more detailed the log is. Optional values are 0, 1, 2, 3.
Specifies the maximum time to buffer the logs. If there is a timeout, it will output the buffered log to the log file. 0 means real-time output. This configuration is measured in seconds.
When set to true, the process redirects thestdout and stderr to separate output files.
Specifies the filename for the stdout log.
Specifies the filename for the stderr log.
Specifies the minloglevel to be copied to the stderr log.
Specifies the IP addresses and ports of all Meta Services. Multiple addresses are separated with commas.
Specifies the local IP for the Graph Service. The local IP address is used to identify the nebula-graphd process. If it is a distributed cluster or requires remote access, modify it to the corresponding address.
Specifies the listening network device.
Specifies RPC daemon listening port of the Graph service.
When set to false, the SO_REUSEPORT is closed.
Specifies the maximum length of the connection queue for socket monitoring. This configuration must be modified together with the net.core.somaxconn.
Specifies the time to expire an idle connection. 0 means that the connection will never expire. This configuration is measured in seconds.
Specifies the time to expire an idle session. 0 means that the session will never expire. This configuration is measured in seconds.
Specifies the number of threads that accept incoming connections.
Specifies the number of networking IO threads. 0 is the number of CPU cores.
Specifies the number of threads that execute queries. 0 is the number of CPU cores.
Specifies the IP address for the HTTP service.
Specifies the port for the HTTP service.
Specifies the port for the HTTP2 service.
Specifies the default heartbeat interval. Make sure the heartbeat_interval_secs values for all services are the same, otherwise Nebula Graph CANNOT work normally. This configuration is measured in seconds.
Specifies the RPC connection timeout threshold between the Graph Service and the Storage Service. This parameter is not predefined in the initial configuration files. You can manually set it if you need it. The system default value is 60000ms.
Specifies the Meta service listening port used by the HTTP protocol. It must be consistent with the ws_http_port in the Meta service configuration file.
The real IP address must be used in the configuration file. Otherwise, 127.0.0.1/0.0.0.0 cannot be parsed correctly in some cases.
Specifies the trigger threshold of the high-level memory alarm mechanism. The default value is 0.9. If the system memory usage is higher than this value, an alarm mechanism will be triggered, and Nebula Graph will stop querying. This parameter is not predefined in the initial configuration files.
The TOSS (Transaction on Storage Side) function is used to ensure the final consistency of the INSERT, UPDATE, or UPSERT operations on edges (because one edge logically corresponds to two key-value pairs on the hard disk). The DELETE operation is not currently supported. After the TOSS function is enabled, the time delay of related operations will be increased by about one time.