Parameter summary

2025-03-21 09:03:28  Updated

This topic summarizes the parameters in OceanBase Database Proxy (ODP).

Parameter Description
refresh_json_config Specifies whether to force update the JavaScript Object Notation (JSON) information when the Config Server is refreshed.
refresh_rslist Specifies whether to update all RootService lists when the Config Server is refreshed.
refresh_idc_list Specifies whether to update all Internet Data Center (IDC) lists when the Config Server is refreshed.
Parameter Description
proxy_info_check_interval Specifies the interval for ODP to detect configuration updates.
proxy_hot_upgrade_check_interval Specifies the interval for ODP to detect the hot upgrade status.
cache_cleaner_clean_interval Specifies the interval for the cache cleaner to clear the cache.
server_state_refresh_interval Specifies the interval for refreshing the status of OceanBase Database to obtain the latest status of zones or OBServer nodes.
metadb_server_state_refresh_interval Specifies the interval for refreshing the status of the MetaDB node to obtain the latest status of zones or OBServer nodes.
config_server_refresh_interval Specifies the interval for refreshing the Config Server.
idc_list_refresh_interval Specifies the interval for refreshing the IDC list to obtain the latest region and IDC information.
stat_table_sync_interval Specifies the interval for synchronizing statistics to the ob_all_proxy_stat table.
stat_dump_interval Specifies the interval for recording statistics in logs.
cluster_count_high_water_mark Specifies the maximum number of OceanBase clusters that can be accessed. When the number of accessed clusters exceeds this value, ODP evicts clusters based on the least recently used (LRU) algorithm.
cluster_expire_time Specifies the expiration time of cluster information.
ldg_info_refresh_interval Specifies the interval for refreshing server information.
read_stale_retry_interval Specifies the retry interval for reading stale data.
Parameter Description
fetch_proxy_bin_random_time Specifies the maximum random wait time for obtaining binary files during a hot upgrade.
fetch_proxy_bin_timeout Specifies the timeout period for obtaining binary files during a hot upgrade.
hot_upgrade_failure_retries Specifies the number of retries allowed after a hot upgrade fails.
hot_upgrade_rollback_timeout Specifies the timeout period for rolling back a hot upgrade.
hot_upgrade_exit_timeout Specifies the timeout period for a graceful exit.
delay_exit_time Specifies the delay time for ODP to exit.
Parameter Description
log_file_percentage Specifies the maximum percentage of available space occupied by log files of ODP.
log_cleanup_interval Specifies the interval for clearing log files.
log_dir_size_threshold Specifies the maximum available space of the directory where ODP logs are stored.
max_syslog_file_time Specifies the maximum retention period of archive logs.
max_syslog_file_count Specifies the maximum number of archive log files that can be retained.
enable_syslog_file_compress Specifies whether to enable compression for archive logs.
enable_syslog_wf Specifies whether to print logs at or above the WARN level in obproxy.log to a separate log file (obproxy.log.wf).
Parameter Description
need_convert_vip_to_tname Specifies whether to convert a virtual IP address (VIP) into the tenant name.
long_async_task_timeout Specifies the timeout period of long asynchronous tasks.
short_async_task_timeout Specifies the timeout period of short asynchronous tasks.
username_separator Specifies the separator for usernames used by the client to connect to ODP.
Parameter Description
enable_client_connection_lru_disconnect Specifies whether to accept new connections when the number of client connections reaches the upper limit.
client_max_connections Specifies the maximum number of client connections supported by ODP.
observer_query_timeout_delta Specifies the value added to the ob_query_timeout parameter of OceanBase Database to adapt to the delay in network transmission.
enable_cluster_checkout Specifies whether to enable cluster name verification.
enable_proxy_scramble Specifies whether to enable proxy scrambling.
enable_client_ip_checkout Specifies whether to verify the client IP address.
proxy_id Specifies the ID of an ODP to ensure that the client session IDs generated by different ODPs do not conflict with each other.
client_session_id_version Specifies the version of the format used for generating client session IDs.
Parameter Description
connect_observer_max_retries Specifies the maximum number of retries for ODP to connect to OceanBase Database.
connection_diagnosis_option Specifies an option that allows you to enable diagnostics for the current connection by using a bit.
Parameter Description
net_accept_threads Specifies the number of threads that run accept tasks.
net_config_poll_timeout Specifies the timeout period of network events.
default_inactivity_timeout Specifies the default timeout period of TCP connections.
sock_recv_buffer_size_out Specifies the size of the socket receive buffer.
sock_send_buffer_size_out Specifies the size of the socket send buffer.
sock_option_flag_out Specifies the parameter for the TCP connection between ODP and OceanBase Database.
sock_packet_mark_out Specifies the packet mark used when the socket sends a packet.
sock_packet_tos_out Specifies the Type of Service (TOS) used when the socket sends a packet.
server_tcp_init_cwnd Specifies the initial congestion window specified when a TCP connection to OceanBase Database was created.
server_tcp_keepidle Specifies the keepalive idle time for a TCP connection between ODP and OceanBase Database.
server_tcp_keepintvl Specifies the keepalive interval for a TCP connection between ODP and OceanBase Database.
server_tcp_keepcnt Specifies the number of keepalive detections for a TCP connection between ODP and OceanBase Database.
server_tcp_user_timeout Specifies the user timeout period for a TCP connection between ODP and OceanBase Database.
client_sock_option_flag_out Specifies the parameter for the TCP connection between a client and ODP.
client_tcp_keepidle Specifies the keepalive idle time for a TCP connection between ODP and a client.
client_tcp_keepintvl Specifies the keepalive interval for a TCP connection between ODP and a client.
client_tcp_keepcnt Specifies the number of keepalive detections for a TCP connection between ODP and a client.
client_tcp_user_timeout Specifies the user timeout period for a TCP connection between ODP and a client.
Parameter Description
proxy_mem_limited Specifies the maximum runtime memory of ODP.
stack_size Specifies the size of the thread stack.
routing_cache_mem_limited Specifies the maximum memory for the ODP route cache, such as the table cache and address cache.
work_thread_num Specifies the number of worker threads. Specify this parameter when you initialize worker threads.
task_thread_num Specifies the number of task threads.
block_thread_num Specifies the number of blocked task threads. Specify this parameter when you initialize threads.
grpc_thread_num Specifies the number of GRPC threads.
grpc_client_num Specifies the number of GRPC clients.
shard_scan_thread_num Specifies the number of threads for scanning ODP shards.
automatic_match_work_thread Specifies whether to automatically create worker threads based on the number of CPU cores.
enable_strict_kernel_release Specifies whether to verify the OS kernel.
max_log_file_size Specifies the maximum size of a single log file in ODP.
Parameter Description
default_buffer_water_mark Specifies the watermark for controlling the internal buffer size of ODP. ODP processes the requests only after their size exceeds this threshold.
tunnel_request_size_threshold Specifies the maximum size of requests received by ODP.
request_buffer_length Specifies the maximum length of the request buffer allocated to each request.
flow_high_water_mark Specifies the high watermark for triggering throttling.
flow_low_water_mark Specifies the low watermark for stopping throttling.
flow_consumer_reenable_threshold Specifies the maximum number of times the configuration data for throttling in a tunnel can be forwarded.
flow_event_queue_threshold Specifies the threshold of the event queue.
enable_flow_control Specifies whether to enable throttling in a MySQL tunnel.
Parameter Description
enable_trans_detail_stats Specifies whether to enable transaction status statistics.
enable_sync_all_stats Specifies whether to synchronize all statistics.
enable_report_session_stats Specifies whether to report session-level statistics to the internal table.
enable_strict_stat_time Specifies whether to enable the strict statistic time.
enable_cpu_topology Specifies whether to enable the CPU topology to bind worker threads to the CPU.
enable_trace_stats Specifies whether to enable MySQL tracing statistics.
slow_transaction_time_threshold Specifies the time threshold for slow transactions.
slow_proxy_process_time_threshold Specifies the execution time threshold for ODP to pre-execute queries.
query_digest_time_threshold Specifies the time threshold for query execution.
slow_query_time_threshold Specifies the execution time threshold for slow queries.

Startup parameters

Parameter Description
ignore_local_config Specifies whether to ignore all local cache files and start ODP by using a remote JSON file.
local_bound_ip Specifies the IP address bound to ODP to listen on.
listen_port Specifies the listening port of ODP.
ip_listen_mode Specifies the listening mode of ODP.
local_bound_ipv6_ip Specifies the IPv6 address bound to ODP.
obproxy_config_server_url Specifies the URL of the Config Server. ODP can serve as a proxy for all clusters registered with the Config Server.
enable_get_rslist_remote Specifies whether to obtain the RootService list from the remote server.
rootservice_cluster_name Specifies the default name of the cluster of the RootService list.
rootservice_list Specifies the RootService lists of OceanBase Database, in the ip1:sql_port1;ip2:sql_port2 format.
Parameter Description
proxy_tenant_name Specifies the default tenant name of the cloud user.
Parameter Description
enable_congestion Specifies whether to enable the blocklist mechanism, which is enabled by default.
congestion_failure_threshold Specifies whether to add an OBServer node to the blocklist.
congestion_fail_window Specifies the statistical period for failures of OBServer nodes.
min_keep_congestion_interval Specifies the shortest time to wait before an OBServer node is removed from the blocklist.
congestion_retry_interval Specifies the retry interval for OBServer nodes in the alive-but-unavailable blocklist.
min_congested_connect_timeout Specifies the minimum timeout period for OBServer nodes that are alive but unavailable.
Parameter Description
server_detect_mode Specifies the server detection mode.
server_detect_fail_threshold Specifies the number of server detection attempts.
server_detect_refresh_interval Specifies the interval for refreshing the server status.
detect_server_timeout Specifies the timeout period for detecting whether OceanBase Database gives a response.
enable_bad_route_reject Specifies whether to reject requests that cannot be routed.
enable_partition_table_route Specifies whether to enable partitioned table-based routing for ODP.
compression_algorithm Specifies the compression protocol and compression level of the OceanBase 2.0 protocol.
enable_compression_protocol Specifies whether to enable the compression protocol.
enable_ob_protocol_v2 Specifies whether to enable the OceanBase 2.0 protocol between ODP and OceanBase Database. OceanBase 2.0 is a proprietary transmission protocol developed based on the MySQL compression protocol.
enable_ob_protocol_v2_with_client Specifies whether to enable the OceanBase 2.0 protocol between ODP and the client. OceanBase 2.0 is a proprietary transmission protocol developed based on the MySQL compression protocol.
enable_transaction_internal_routing Specifies whether to enable distributed transaction routing.
enable_reroute Specifies whether to enable rerouting.
enable_weak_reroute Specifies whether to enable rerouting for weak-consistency reads.
ob_max_read_stale_time Specifies the maximum latency allowed in weak-consistency reads. The default value is -1, which indicates that this feature is disabled.
enable_pl_route Specifies whether to enable Procedural Language (PL) routing.
enable_cached_server Specifies whether to use the cached server session in the case of no table entry.
Parameter Description
sqlaudit_mem_limited Specifies the maximum memory for SQL audit.
internal_cmd_mem_limited Specifies the maximum memory for responses to internal commands of ODP. The value 0 indicates no limit.
Parameter Description
server_routing_mode Specifies the routing mode of ODP.
syslog_level Specifies the syslog level.
monitor_log_level Specifies the monitoring log level.
xflush_log_level Specifies the xflush log level.
enable_async_log Specifies whether to enable asynchronous logs.
mem_leak_check_class_name Specifies the names of classes to be monitored by the show proxymemory objpool command, which can be names in the free_list_name column of the command output.
mem_leak_check_mod_name Specifies the names of modules to be monitored by the show proxymemory command, which can be names in the mod_name column of the command output.
Parameter Description
proxy_idc_name Specifies the name of the IDC for IDC-based routing in ODP.
current_local_config_version Specifies the local configuration version of the current ODP.
Parameter Description
monitor_item_limit Specifies the maximum number of monitoring statistical items of ODP or the maximum number of metrics of Prometheus.
monitor_item_max_idle_period Specifies the retention period of monitoring statistical items in the memory.
monitor_cost_ms_unit Specifies whether to convert the unit of monitoring statistics to milliseconds. The default unit is microseconds.
monitor_stat_dump_interval Specifies the interval for flushing monitoring statistics to logs.
monitor_stat_low_threshold Specifies the low time threshold of tenant statistics.
monitor_stat_middle_threshold Specifies the medium time threshold of tenant statistics.
monitor_stat_high_threshold Specifies the high time threshold of tenant statistics.
enable_monitor_stat Specifies whether to enable monitoring statistics.
Parameter Description
prometheus_listen_port Specifies the Prometheus listening port of ODP.
prometheus_cost_ms_unit Specifies whether to convert the calculation unit of Prometheus to milliseconds. The default unit is microseconds.
prometheus_sync_interval Specifies the interval for synchronizing Prometheus monitoring metrics to Prometheus Exporter.
enable_prometheus Specifies whether to monitor Prometheus.
enable_extra_prometheus_metric Specifies whether to enable network and routing metrics of Prometheus.
enable_causal_order_read Specifies whether ODP selects a server by priority and synchronizes the security snapshot version as needed.
Parameter Description
partition_location_expire_relative_time Specifies the expiration period of the partition location cache, in milliseconds.
enable_qa_mode Specifies whether ODP can force expire all location caches.
check_tenant_locality_change Specifies whether to enable the location cache to cache dirty data upon location changes.
enable_async_pull_location_cache Specifies whether to asynchronously pull the location cache when dirty data is cached.
Parameter Description
enable_client_ssl Specifies whether ODP uses SSL to connect to the client.
enable_server_ssl Specifies whether ODP uses SSL to connect to OceanBase Database.
Parameter Description
enable_qos Specifies whether to enable QoS for ODP.
qos_stat_clean_interval Specifies the interval for clearing QoS statistics.
qos_stat_item_limit Specifies the number of QoS statistical items of ODP.
Parameter Description
enable_standby Specifies whether to enable the standby database.
Parameter Description
sequence_entry_expire_time Specifies the validity period of sequences.
sequence_fail_retry_count Specifies the number of retry failures allowed for sequences.
enable_sequence_prefetch Specifies whether to prefetch sequences.
sequence_prefetch_threshold Specifies the maximum cost for triggering prefetch.
Parameter Description
obproxy_sys_password Specifies the password of the root@proxysys user.
observer_sys_password Specifies the password of the account (proxyro@sys) used by ODP to connect to the OceanBase cluster.
observer_sys_password1 Specifies the password of the account (proxyro@sys) used by ODP to connect to the OceanBase cluster.
Parameter Description
protocol_diagnosis_level Specifies whether to enable protocol diagnostics and whether to output diagnostic information to logs.
route_diagnosis_level Specifies the level of detail in routing diagnostics.
Parameter Description
enable_obproxy_rpc_service Specifies whether to enable the RPC service port.
rpc_enable_congestion Specifies whether to enable OBServer blocklist processing for RPC requests.
rpc_enable_direct_expire_route_entry Specifies whether to clean up expired routing information by force and not to use dirty data for asynchronous refresh.
rpc_enable_force_srv_black_list Specifies whether to enable the blocklist for forced logon authentication.
rpc_enable_global_index Specifies whether to enable the support by RPC requests for global index routing.
rpc_enable_parallel_handler Specifies whether to enable the asynchronous execution framework.
rpc_enable_reroute Specifies whether to enable RPC rerouting.
rpc_enable_retry_request_info_log Specifies whether to print RPC request retry information.
rpc_force_srv_black_list Specifies the blocklist for forced logon authentication.
rpc_listen_port Specifies the RPC service listening port.
rpc_max_request_batch_size Specifies the maximum number of requests allowed in a single batch.
rpc_max_response_batch_size Specifies the maximum number of responses allowed in a single batch.
rpc_max_server_table_entry_num Specifies the maximum number of connections in the backend connection pool of the RPC processing module.
rpc_net_timeout_base Specifies the benchmark sending rate, that is, the time (in ms) required for sending 1 byte of data. The minimum bandwidth is 200 Bps. If the parameter is set to a value lower than 200 Bps, the backend connection is abnormal and ODP removes the connection from the connection pool.
rpc_period_task_interval Specifies the interval for ODP to execute periodic RPC processing tasks. RPC processing tasks mainly clean up requests in invalid state in the frontend and backend.
rpc_request_timeout Specifies the default timeout period for sending a request, in us.
rpc_request_timeout_delta Specifies the delta value of the timeout period for processing a request within ODP.
rpc_server_entry_expire_time Specifies the idle timeout period for the backend connection pool. If there is no backend connection within the specified period of time, the backend connection pool automatically exits.
rpc_server_net_handler_expire_time Specifies the timeout period for the backend connection to process a request. If no response is received within the specified period of time after a request is sent, ODP considers the connection abnormal and removes the connection from the connection pool.
rpc_server_net_invalid_time_us Specifies the interval for sending pending requests in the backend connection.
rpc_server_net_max_pending_request Specifies the number of requests to be sent in the backend connection. When the number of requests reaches the specified value within rpc_server_net_invalid_time_us, ODP considers the backend connection invalid and removes the connection from the connection pool.
rpc_srv_session_pool_inactive_timeout Specifies the inactive timeout period for the server connection in the synchronization module.
rpc_support_key_partition_shard_request Specifies whether to send an RPC request that involves cross-partition queries to all partitions when the target table is a KEY-partitioned table.
Parameter Description
target_db_server Specifies the IP addresses of OBServer nodes for which ODP applies forcible routing, in the ip0:port0,ip1:port1,ip2:port2;ip3:port3;ip4:port4 format.
proxy_route_policy Specifies the routing strategy for weak-consistency read requests on OceanBase Database Proxy (ODP), which defines the backend server to which client requests are routed for processing.
proxy_primary_zone_name Specifies the name of the primary zone for logical data center (LDC)-based routing in OceanBase Database Proxy (ODP).
enable_primary_zone Specifies whether OceanBase Database Proxy (ODP) performs routing based on the primary zone priorities of the tenant when routing calculation fails.
enable_index_route Specifies whether to enable routing for the global index table based on global index keys in OceanBase Database Proxy (ODP).
enable_single_leader_node_routing Specifies whether to apply more efficient routing rules when a tenant is deployed in leader concentration mode.

Others

Parameter Description
enable_xa_route Specifies whether to enable xa_start hold and route it to the partition accessed by the next DML statement.
normal_pl_update_threshold Specifies the maximum number of partition location update tasks processed by ODP per second.
proxy_local_cmd Specifies the hot restart of ODP.
client_max_memory_size Specifies the maximum size of memory dynamically allocated to client sessions.
delay_update_entry_interval Specifies the interval for delaying the update of table or partition entries.
tenant_location_valid_time Specifies the validity period of cached tenant information.
qa_mode_mock_public_cloud_slb_addr Specifies the SLB address of the mock public cloud.
enable_cpu_isolate Specifies whether to enable CPU isolation.
mysql_version Specifies the version returned while connecting to a MySQL tenant.
enable_performance_mode Specifies whether to enable the performance mode.
enable_full_link_trace Specifies whether to enable end-to-end tracing for query execution.
enable_trace Specifies whether to enable traces.
enable_stat Specifies whether to enable statistics.
digest_sql_length Specifies the length of recorded SQL statements. The value 0 specifies to record SQL statements with the default length.
obproxy_read_only Specifies the read/write type.
obproxy_read_consistency Specifies the target to which requests are sent.
enable_global_ps_cache Specifies whether to use the global PS cache.
enable_read_write_split Specifies whether to enable the read/write splitting mode.
enable_transaction_split Specifies whether to support transaction splitting.
binlog_service_ip Specifies the address list of the binlog service cluster. The value can be one or more IP addresses or domain names. If you specify multiple IP addresses or domain names, separate them with semicolons (;).
ssl_attributes The SSL attributes.
sql_table_cache_expire_relative_time Specifies the expiration time of the SQL table cache, in milliseconds. The value 0 indicates that the cache will never expire.
sql_table_cache_mem_limited Specifies the maximum memory usage of the SQL table cache in ODP.
enable_cloud_full_username Specifies whether to consider the account name used for logon as the username of the user. This parameter is used for cloud users.
enable_full_username Specifies whether the username must contain the tenant name and cluster name. This parameter is used for non-cloud users.
skip_proxyro_check Specifies whether to allow a client to use the proxyro@sys account for access. The value false indicates that a client cannot use this account for access.
skip_proxy_sys_private_check Specifies whether ODP skips checking the private address of the system.
obproxy_force_parallel_query_dop Used to adapt to the _force_parallel_query_dop parameter of OceanBase Database.
syslog_io_bandwidth_limit Specifies the upper limit of disk I/O bandwidth allowed for ODP logging. ODP logging is throttled when its traffic exceeds the upper bandwidth limit. When throttling is triggered, the log REACH SYSLOG RATE LIMIT will be printed in obproxy.log.
enable_sharding Specifies whether to use logical databases.

Deleted parameters

Parameter Description Remarks
enable_binlog_service Specifies whether ODP sends binlog requests to oblogproxy. This parameter is deleted since ODP V4.2.2.
enable_connection_diagnosis Specifies whether to enable connection diagnostics. This parameter is deleted since ODP V4.2.2.
enable_abort_conn_info Specifies whether ODP sends an error packet when a connection is aborted. This parameter is deleted since ODP V4.2.3.

Contact Us