Standalone Common Parameters Configuration

Four configuration files are in the matrixone/etc/launch/ directory: cn.toml, tn.toml, proxy.toml, and log.toml, used to configure standard parameters.

cn.toml

Default Parameters

The cn.toml file contains the following default parameters:

ParameterExplanationExample
[log]Log configuration section
levelLog level, default is info, can be modified to different levelslevel = “info”
[cn]cn node, not editable/
port-baseStarting port number used by “cn”, continuously finding 20 available ports for internal services starting from this port numberport-base = 18000
service-hostService connection address used for registration to HAKeeperservice-host = “127.0.0.1”
[cn.frontend]Frontend configuration section
portPort for MatrixOne to listen and for client connectionsport = 6001
hostListening IP addresshost = “0.0.0.0”

Extended Parameters

In the cn.toml file, you can also customize and add the following configuration parameters:

ParameterExplanationExample
[log]Log configuration section
formatLog save format as JSON or otherformat = “console”
filenameLog filenamefilename = “mo.log”
[cn.frontend]Frontend configuration section
unix-socketListen to Unix domain interfaceunix-socket = “/tmp/mysql.sock”
lengthOfQueryPrintedConsole output query lengthlengthOfQueryPrinted = 200000
enableTlsEnable TLSenableTls = false
tlsCaFileClient SSL CA list file pathtlsCaFile = ‘’
tlsCertFileClient X509 PEM format key file pathtlsCertFile = ‘’
tlsKeyFileClient X509 PEM format key file pathtlsKeyFile = ‘’
saveQueryResultSave query resultssaveQueryResult = false
queryResultTimeoutQuery result timeout timequeryResultTimeout = 24
queryResultMaxsizeQuery result maximum sizequeryResultMaxsize = 100
lowerCaseTableNamesIdentifier case sensitivity, the default parameter value is 1, indicating case insensitivitylowerCaseTableNames = 1
[cn.Txn]Transaction configuration section
isolationTransaction isolation level, used to configure the transaction isolation level on the “cn” node. The isolation level defines the behavior of transactions during concurrent operations. By default, if the isolation level (Isolation) is not set, it will be set to Serializable Isolation (SI) when the transaction mode (Mode) is set to optimistic and to Read Committed Isolation (RC) when the transaction mode is set to pessimistic. Default: RCisolation = “RC”
modeTransaction mode configures the transaction mode on the “cn” node. The transaction mode defines how operations and concurrency are handled in a transaction. Possible values are optimistic and pessimistic, with the default value being optimistic.mode = “optimistic”
[fileservice.cache]File service cache configuration section
memory-capacityCache memory sizememory-capacity = “512MB”
[observability]Observability parameters
hostExposed metrics service listening IP. This parameter specifies the IP address that the metrics service listens on.host = “0.0.0.0”
statusPortPrometheus monitoring port. This parameter defines the port number that the metrics service listens on. Metrics services typically provide metric data via HTTP. This parameter and the host parameter form the access address for the metrics service.statusPort = 7001
enableMetricToPromEnable metric service. If set to true, metric service will be enabledenableMetricToProm = false
disableMetricDisable metric collection. If set to true, the system will not collect any metric data, and the metric service port will not be listened todisableMetric = false
disableTraceDisable trace collection. If set to true, the system will stop collecting any trace, metric, and log datadisableTrace = false
longQueryTimeLog queries that exceed execution time. This parameter defines a threshold in seconds to filter out queries that exceed this threshold in execution time. The execution plans (ExecPlan) of these queries are then logged for later analysis. If set to 0.0, all execution plans of queries will be logged.longQueryTime = 1.0

tn.toml

Default Parameters

The tn.toml file contains the following default parameters:

ParameterExplanationExample
[log]Log configuration section
levelLog level, default is info, can be modified to different levelslevel = “info”
[dn]TN node, not editable
uuidUnique identifier of TN, not editableuuid = “dd4dccb4-4d3c-41f8-b482-5251dc7a41bf”
port-baseStarting port number used by “TN”, continuously finding 20 available ports for internal services starting from this port numberport-base = 19000
service-hostService connection address used for registration to HAKeeperservice-host = “0.0.0.0”

Extended Parameters

In the tn.toml file, you can also customize and add the following configuration parameters:

ParameterExplanationExample
[log]Log configuration section
formatLog save format as JSON or otherformat = “console”
filenameLog filenamefilename = “tn.log”
[dn.LogtailServer]Logtail Server configuration section
rpc-enable-checksumEnable RPC checksumrpc-enable-checksum = false
[fileservice.cache]File service cache configuration section
memory-capacityCache memory sizememory-capacity = “512MB”
[observability]Observability parameters
hostExposed metrics service listening IP. This parameter specifies the IP address that the metrics service listens on.host = “0.0.0.0”
statusPortPrometheus monitoring port. This parameter defines the port number that the metrics service listens on. Metrics services typically

Provide metric data via HTTP. This parameter and the host parameter form the access address for the metrics service. | statusPort = 7001 | | enableMetricToProm | Enable metric service. If set to true, metric service will be enabled | enableMetricToProm = false| | disableMetric | Disable metric collection. If set to true, the system will not collect any metric data, and the metric service port will not be listened to | disableMetric = false | | disableTrace | Disable trace collection. If set to true, the system will stop collecting any trace, metric, and log data | disableTrace = false | | longQueryTime | Log queries that exceed execution time. This parameter defines a threshold in seconds to filter out queries that exceed this threshold in execution time. The execution plans (ExecPlan) of these queries are then logged for later analysis. If set to 0.0, all execution plans of queries will be logged. | longQueryTime = 1.0 |

log.toml

Default Parameters

The log.toml file contains the following default parameters:

ParameterExplanationExample
[log]Log configuration section
levelLog level, default is info, can be modified to different levelslevel = “info”
[logservice]Logservice configuration section
uuidUnique identifier of Logservice, not editableuuid = “dd1dccb4-4d3c-41f8-b482-5251dc7a41bf”
data-dirDefault data directorydata-dir = “./mo-data”

Extended Parameters

In the log.toml file, you can also customize and add the following configuration parameters:

ParameterExplanationExample
[log]Log configuration section
formatLog save format as JSON or otherformat = “console”
filenameLog filenamefilename = “log1.log”
[logservice]Logservice configuration section
logservice-addressLogservice addresslogservice-address = “0.0.0.0:32000”
raft-addressRaft addressraft-address = “0.0.0.0:32001”
gossip-addressGossip addressgossip-address = “0.0.0.0:32002”
gossip-seed-addressesGossip seed node addressesgossip-seed-addresses = “ “
[LogtailServer.BootstrapConfig]LogtailServer bootstrap configuration section
init-hakeeper-membersInitial HAKeeper membersinit-hakeeper-members = “ “
[fileservice.cache]File service cache configuration section
memory-capacityCache memory sizememory-capacity = “512MB”
[observability]Observability parameters
hostExposed metrics service listening IP. This parameter specifies the IP address that the metrics service listens on.host = “0.0.0.0”
statusPortPrometheus monitoring port. This parameter defines the port number that the metrics service listens on. Metrics services typically provide metric data via HTTP. This parameter and the host parameter form the access address for the metrics service.statusPort = 7001
enableMetricToPromEnable metric service. If set to true, metric service will be enabledenableMetricToProm = false
disableMetricDisable metric collection. If set to true, the system will not collect any metric data, and the metric service port will not be listened todisableMetric = false
disableTraceDisable trace collection. If set to true, the system will stop collecting any trace, metric, and log datadisableTrace = false
longQueryTimeLog queries that exceed execution time. This parameter defines a threshold in seconds to filter out queries that exceed this threshold in execution time. The execution plans (ExecPlan) of these queries are then logged for later analysis. If set to 0.0, all execution plans of queries will be logged.longQueryTime = 1.0

proxy.toml

Default Parameters

The proxy.toml file contains the following default parameters:

ParameterExplanationExample
[log]Log configuration section
levelLog level, default is info, can be modified to different levelslevel = “info”
[proxy]Proxy configuration section
listen-addressListen address, default is 0.0.0.0:6009listen-address = “0.0.0.0:6009”

Extended Parameters

In the proxy.toml file, you can also customize and add the following configuration parameters:

ParameterExplanationExample
[log]Log configuration section
formatLog save format as JSON or otherformat = “console”
filenameLog filenamefilename = “proxy.log”
[proxy]Proxy configuration section
rebalance-intervalRebalance interval. This is the time interval between two rebalance operations. In distributed systems, rebalance operations are performed to balance the load between servers and ensure each server has a similar workload.rebalance-interval = 30
rebalance-disabledRebalance disable flag. If set to true, the rebalance will be disabled, and the system will not automatically perform rebalance operations.rebalance-disabled = false
rebalance-toleranceRebalance tolerance. This parameter indicates the tolerance of the rebalance. When the number of connections exceeds the average value avg * (1 + tolerance), the connections will be migrated to other CN (compute node) servers. The tolerance value should be less than 1, defining to what extent the number of connections can exceed the average value without triggering a rebalance operation. For example, suppose tolerance is set to 0.3 when a server’s connections exceed 30% of the average connection count. In that case, the rebalance operation will migrate connections to other servers to balance the load.rebalance-tolerance = 0.3
[fileservice.cache]File service cache configuration section
memory-capacityCache memory sizememory-capacity = “512MB”
[observability]Observability parameters

| | | host | Exposed metrics service listening IP. This parameter specifies the IP address that the metrics service listens on. | host = “0.0.0.0” | | statusPort | Prometheus monitoring port. This parameter defines the port number that the metrics service listens on. Metrics services typically provide metric data via HTTP. This parameter and the host parameter form the access address for the metrics service. | statusPort = 7001 | | enableMetricToProm | Enable metric service. If set to true, metric service will be enabled | enableMetricToProm = false| | disableMetric | Disable metric collection. If set to true, the system will not collect any metric data, and the metric service port will not be listened to | disableMetric = false | | disableTrace | Disable trace collection. If set to true, the system will stop collecting any trace, metric, and log data | disableTrace = false | | longQueryTime | Log queries that exceed execution time. This parameter defines a threshold in seconds to filter out queries that exceed this threshold in execution time. The execution plans (ExecPlan) of these queries are then logged for later analysis. If set to 0.0, all execution plans of queries will be logged. | longQueryTime = 1.0 |