OceanBase logo

OceanBase

A unified distributed database ready for your transactional, analytical, and AI workloads.

DEPLOY YOUR WAY

OceanBase Cloud

The best way to deploy and scale OceanBase

OceanBase Enterprise

Run and manage OceanBase on your infra

TRY OPEN SOURCE

OceanBase Community Edition

The free, open-source distributed database

OceanBase seekdb

Open source AI native search database

Customer Stories

Real-world success stories from enterprises across diverse industries.

View All
BY USE CASES

Mission-Critical Transactions

Global & Multicloud Application

Elastic Scaling for Peak Traffic

Real-time Analytics

Active Geo-redundancy

Database Consolidation

Resources

Comprehensive knowledge hub for OceanBase.

Blog

Live Demos

Training & Certification

Documentation

Official technical guides, tutorials, API references, and manuals for all OceanBase products.

View All
PRODUCTS

OceanBase Cloud

OceanBase Database

Tools

Connectors and Middleware

QUICK START

OceanBase Cloud

OceanBase Database

BEST PRACTICES

Practical guides for utilizing OceanBase more effectively and conveniently

Company

Learn more about OceanBase – our company, partnerships, and trust and security initiatives.

About OceanBase

Partner

Trust Center

Contact Us

International - English
中国站 - 简体中文
日本 - 日本語
Sign In
Start on Cloud

A unified distributed database ready for your transactional, analytical, and AI workloads.

DEPLOY YOUR WAY

OceanBase Cloud

The best way to deploy and scale OceanBase

OceanBase Enterprise

Run and manage OceanBase on your infra

TRY OPEN SOURCE

OceanBase Community Edition

The free, open-source distributed database

OceanBase seekdb

Open source AI native search database

Customer Stories

Real-world success stories from enterprises across diverse industries.

View All
BY USE CASES

Mission-Critical Transactions

Global & Multicloud Application

Elastic Scaling for Peak Traffic

Real-time Analytics

Active Geo-redundancy

Database Consolidation

Comprehensive knowledge hub for OceanBase.

Blog

Live Demos

Training & Certification

Documentation

Official technical guides, tutorials, API references, and manuals for all OceanBase products.

View All
PRODUCTS
OceanBase CloudOceanBase Database
ToolsConnectors and Middleware
QUICK START
OceanBase CloudOceanBase Database
BEST PRACTICES

Practical guides for utilizing OceanBase more effectively and conveniently

Learn more about OceanBase – our company, partnerships, and trust and security initiatives.

About OceanBase

Partner

Trust Center

Contact Us

Start on Cloud
编组
All Products
    • Databases
    • iconOceanBase Database
    • iconOceanBase Cloud
    • iconOceanBase Tugraph
    • iconInteractive Tutorials
    • iconOceanBase Best Practices
    • Tools
    • iconOceanBase Cloud Platform
    • iconOceanBase Migration Service
    • iconOceanBase Developer Center
    • iconOceanBase Migration Assessment
    • iconOceanBase Admin Tool
    • iconOceanBase Loader and Dumper
    • iconOceanBase Deployer
    • iconKubernetes operator for OceanBase
    • iconOceanBase Diagnostic Tool
    • iconOceanBase Binlog Service
    • Connectors and Middleware
    • iconOceanBase Database Proxy
    • iconEmbedded SQL in C for OceanBase
    • iconOceanBase Call Interface
    • iconOceanBase Connector/C
    • iconOceanBase Connector/J
    • iconOceanBase Connector/ODBC
    • iconOceanBase Connector/NET
icon

OceanBase Database

SQL - V4.1.0Enterprise Edition

    Download PDF

    OceanBase logo

    The Unified Distributed Database for the AI Era.

    Follow Us
    Products
    OceanBase CloudOceanBase EnterpriseOceanBase Community EditionOceanBase seekdb
    Resources
    DocsBlogLive DemosTraining & Certification
    Company
    About OceanBaseTrust CenterLegalPartnerContact Us
    Follow Us

    © OceanBase 2026. All rights reserved

    Cloud Service AgreementPrivacy PolicySecurity
    Contact Us
    Document Feedback
    1. Documentation Center
    2. OceanBase Database
    3. SQL
    4. V4.1.0
    iconOceanBase Database
    SQL - V 4.1.0Enterprise Edition
    SQL
    KV
    • V 4.4.2
    • V 4.3.5
    • V 4.3.3
    • V 4.3.1
    • V 4.3.0
    • V 4.2.5
    • V 4.2.2
    • V 4.2.1
    • V 4.2.0
    • V 4.1.0
    • V 4.0.0
    • V 3.1.4 and earlier

    CPU parameters

    Last Updated:2023-07-28 02:53:17  Updated
    share
    What is on this page
    share
    Parameter Description Suggestion
    work_thread_num The number of OceanBase Database Proxy (ODP) worker threads, which has a significant impact on CPU utilization. The default value is 8. The parameter takes effect upon ODP restart after modification. You can adjust the value dynamically according to the environment. work_thread_num specifies the maximum CPU utilization allowed for ODP.
    task_thread_num The number of threads for some background tasks, such as pulling rslist information. The default value is 2. The parameter takes effect upon ODP restart after modification. We recommend that you use the default value.
    block_thread_num The number of block threads. The default value is 1. The parameter takes effect upon ODP restart after modification. We recommend that you use the default value.
    grpc_thread_num The number of grpc threads. The default value is 8. The parameter takes effect upon ODP restart after modification. We recommend that you use the default value.
    net_accept_threads The number of threads that run accept tasks. The default value is 2. The parameter takes effect upon ODP restart after modification. We recommend that you use the default value.
    automatic_match_work_thread Specifies whether to ignore the specified work_thread_num and to automatically adjust the number of threads based on the number of CPUs. If this parameter is set to true, the value of work_thread_num is used as the maximum number of threads. The default value is true. The parameter takes effect upon ODP restart after modification. If ODP and OBServer are deployed together, CPU contention may occur. In this case, we recommend that you disable this feature. If ODP is deployed separately, we recommend that you enable this feature.
    enable_compression_protocol Specifies whether to enable compression. If compression is disabled, the CPU utilization of ODP can be reduced. The parameter takes effect upon ODP server restart after modification. We recommend that you set it to False.

    You can connect to the OceanBase cluster through port 2883 of ODP under the sys tenant and use the ALTER PROXYCONFIG SET and SHOW PROXYCONFIG LIKE statements to modify and view the preceding parameters.

    Sample code:

    obclient> ALTER PROXYCONFIG SET automatic_match_work_thread = False;
    
    obclient> SHOW PROXYCONFIG LIKE 'work_thread_num';
    

    Previous topic

    Network transmission parameters
    Last

    Next topic

    Network transmission parameters
    Next