The following table describes parameters provided in the conf.json file of oblogproxy. By default, the configuration file is stored in the /conf/ directory. You only need to modify parameters described in Build oblogproxy by using the source code as needed. We recommend that you do not modify other parameters unless you fully understand their purposes.
| Parameter | Default value | Description |
|---|---|---|
| service_port | 2983 | The service port. |
| encode_threadpool_size | 8 | The initial number of threads in the thread pool for encoding. |
| encode_queue_size | 20000 | The number of encoding threads in the queue. |
| max_packet_bytes | 8,388,608 | The maximum bytes of a data packet. |
| record_queue_size | 1024 | The number of data-sending tasks in the queue. |
| read_timeout_us | 2000000 | The waiting period of each batch of data reading queues. Unit: microseconds. |
| read_fail_interval_us | 1000000 | The waiting period for retrying each data reading queue. Unit: microseconds. |
| read_wait_num | 20000 | The number of data reading queues in a waiting batch. |
| send_timeout_us | 2000000 | The timeout period for sending a packet. Unit: microseconds. |
| send_fail_interval_us | 1000000 | The waiting period for the retry of a failed packet-sending task. Unit: microseconds. |
| command_timeout_s | 10 | The timeout period of command execution. Unit: microseconds. |
| log_quota_size_mb | 5,120 | The threshold size of all log files. Unit: MB. |
| log_quota_day | 30 | The threshold storage period of log files. Unit: days. |
| log_gc_interval_s | 43,200 | The time interval for clearing log files. Unit: seconds. |
| oblogreader_path_retain_hour | 168 | The period for retaining the directories where the sub-processes of oblogreader reside. Unit: hours. |
| oblogreader_lease_s | 300 | The period for detecting the sub-processes of oblogreader after they are started. Unit: seconds. |
| oblogreader_path | ./run | The root path of the context directories of the sub-processes of oblogreader. |
| allow_all_tenant | true | Specifies whether the user is allowed to subscribe to all tenants. |
| auth_user | true | Specifies whether to authenticate the connected user. |
| auth_use_rs | false | Specifies whether to authenticate the user by using the RootServer. |
| auth_allow_sys_user | true | Specifies whether the user is allowed to subscribe to the system tenant. |
| ob_sys_username | "" | The encrypted string of the system tenant's username. You must manually encrypt the username and use it for the subscription of incremental data. |
| ob_sys_password | "" | The encrypted string of the system tenant's password. You must manually encrypt the password and use it for the subscription of incremental data. |
| counter_interval_s | 2 | The counting interval of the counter. Unit: seconds. |
| debug | false | Specifies whether to print the debug information. |
| verbose | false | Specifies whether to print more debug information. |
| verbose_packet | false | Specifies whether to print the information about data packets. |
| readonly | false | Specifies whether to enable read-only mode. |
| channel_type | plain | Link type |
| tls_ca_cert_file | "" | The absolute path of certificate files issued by the certificate authority (CA). |
| tls_cert_file | "" | The absolute path of signature certificates on the server. |
| tls_key_file | "" | The absolute path of private keys on the server. |
| tls_verify_peer | true | Specifies whether to enable verification for OceanBase Log Client. |
| liboblog_tls | false | Specifies whether to enable TLS communication with OBServer nodes. |
| liboblog_tls_cert_path | "" | The absolute path of related certificate files of the OBServer node. |