OceanBase logo

OceanBase

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

Product Overview
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

OceanBase

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

Product Overview
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 - V3.2.4Enterprise Edition

    Download PDF

    OceanBase logo

    The Unified Distributed Database for the AI Era.

    Follow Us
    Products
    OceanBase CloudOceanBase EnterpriseOceanBase Community EditionOceanBase seekdb
    Resources
    DocsBlogWhite PaperLive DemosTraining & CertificationTicket
    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. V3.2.4
    iconOceanBase Database
    SQL - V 3.2.4Enterprise Edition
    Databases
    • OceanBase Database
    • OceanBase Cloud
    • OceanBase Tugraph
    • Interactive Tutorials
    • OceanBase Best Practices
    Tools
    • OceanBase Cloud Platform
    • OceanBase Migration Service
    • OceanBase Developer Center
    • OceanBase Migration Assessment
    • OceanBase Admin Tool
    • OceanBase Loader and Dumper
    • OceanBase Deployer
    • Kubernetes operator for OceanBase
    • OceanBase Diagnostic Tool
    • OceanBase Binlog Service
    Connectors and Middleware
    • OceanBase Database Proxy
    • Embedded SQL in C for OceanBase
    • OceanBase Call Interface
    • OceanBase Connector/C
    • OceanBase Connector/J
    • OceanBase Connector/ODBC
    • OceanBase Connector/NET
    SQL
    KV
    • V 4.6.0
    • 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

    Add OBServer nodes to zones

    Last Updated:2023-10-27 09:57:43  Updated
    Share
    What is on this page
    Add OBServer nodes to zones by using SQL statements
    Add OBServer nodes to zones in OCP
    Background
    Add a host
    Add OBServer nodes

    folded

    Share

    This topic describes how to scale out a cluster by adding OBServer nodes to zones in the cluster.

    You can add OBServer nodes to a zone by executing SQL statements or using OceanBase Cloud Platform (OCP).

    Add OBServer nodes to zones by using SQL statements

    You can use SQL statements to add OBServer nodes to zones.

    Assume that you have a cluster that has three zones, which are z1, z2, and z3, and each zone has two OBServer nodes. The cluster has a user tenant named tenant1. The following code shows the resource distribution of the tenant:

    obclient> CREATE RESOURCE UNIT unit1 MAX_CPU 5,MIN_CPU 4, MAX_MEMORY '36G', MIN_MEMORY '32G', MAX_IOPS 128, MIN_IOPS 128, MAX_DISK_SIZE '2T', MAX_SESSION_NUM 64;
    
    obclient> CREATE RESOURCE POOL pool1 UNIT 'unit1', UNIT_NUM 2, ZONE_LIST ('z1','z2','z3');
    
    obclient>CREATE TENANT tenant1 resource_pool_list=('pool1');
    

    Assume that you need to add one OBServer node to each zone. After the scale-out, each of the three zones contains three OBServer nodes.

    Perform the following steps:

    1. Log on to the sys tenant as the root user.

    2. Add an OBServer node to each of z1, z2, and z3.

      For more information about how to add an OBServer node to a zone, see Add an OBServer node.

    3. Adjust the resource configurations of the tenant by increasing the value of the UNIT_NUM parameter based on your business requirements.

      Notice

      • One resource unit can be located on only one OBServer node, and multiple resource units of the same tenant cannot be located on the same OBServer node. If you have adjusted the resource unit configs to the optimal settings during the tenant scale-out, you must increase the number of resource units in this step.
      • When you increase the number of resource units, the value of the UNIT_NUM parameter cannot be greater than the number of OBServer nodes in each zone.
      obclient> CREATE RESOURCE UNIT unit2 MAX_CPU 10, MAX_MEMORY '50G', MAX_IOPS 128,MAX_DISK_SIZE '10G', MAX_SESSION_NUM 64, MIN_CPU=10, MIN_MEMORY='50G', MIN_IOPS=128;
      
      obclient> ALTER RESOURCE POOL pool1 UNIT='unit2';
      

      In this case, you need to change the value of the UNIT_NUM parameter to 3. Sample statement:

      obclient> ALTER RESOURCE POOL pool1 UNIT_NUM 3;
      

    Add OBServer nodes to zones in OCP

    You can also add OBServer nodes to zones in OCP. Generally, you need to add the same number of OBServer nodes to each zone.

    Background

    Assume that you have a cluster that has three zones, which are z1, z2, and z3, and each zone has two OBServer nodes. Assume that you need to add one OBServer node to each zone. After the scale-out, each of the three zones contains three OBServer nodes.

    Notice

    When you add OBServer nodes to zones, make sure that the number of OBServer nodes in each zone is equal.

    Add a host

    Before you scale out a cluster, you must add a host. For more information about, see Add a host in Add zones to a cluster.

    Add OBServer nodes

    1. Log on to the OCP console.

    2. Add one OBServer node to each of the three zones.

      For more information about how to add an OBServer node to a zone in OCP, see Add an OBServer node.

    3. Adjust the resource pool settings of the tenant based on your business requirements. To be specific, increase the number of resource units in each zone.

      Notice

      One resource unit can be located on only one OBServer node. If you have adjusted the resource unit specifications to the optimal settings during the tenant scale-out, you must increase the number of resource units in this step.

      For more information about how to modify a resource pool in OCP, see Modify a resource pool.

    Previous topic

    Add zones to a cluster
    Last

    Next topic

    Delete zones from a cluster
    Next
    What is on this page
    Add OBServer nodes to zones by using SQL statements
    Add OBServer nodes to zones in OCP
    Background
    Add a host
    Add OBServer nodes