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 Deployer

V2.9.0Community 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 Deployer
    3. V2.9.0
    iconOceanBase Deployer
    V 2.9.0Community 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
    Community Edition
    • V 3.2.1
    • V 3.2.0
    • V 3.1.0
    • V 3.0.0
    • V 2.10.1
    • V 2.10.0
    • V 2.9.0
    • V 2.8.0
    • V 2.7.0
    • V 2.6.0
    • V 2.5.0
    • V 2.4.0
    • V 2.3.1
    • V 2.3.0
    • V 2.2.0
    • V 2.1.0
    • V 2.0.0
    • V 1.6.1

    Scale out a cluster and change cluster components

    Last Updated:2026-04-14 09:56:16  Updated
    Share
    What is on this page
    Prerequisites
    Scale out a cluster
    Add a component
    Delete a component
    References

    folded

    Share

    This topic describes how to scale out an OceanBase cluster managed by OceanBase Deployer (obd) and how to add a component to or delete a component from the cluster.

    Prerequisites

    Make sure that the following conditions are met:

    • The cluster is in the running state.

    • You have installed obd V2.5.0 or later in the environment.

    • You have installed OBClient in the environment.

    Scale out a cluster

    You can scale out all components of an OceanBase cluster except oblogproxy. The following example describes how to scale out OceanBase Database Community Edition of an OceanBase cluster named test.

    1. The following sample code shows the information of the node to be added in a configuration file named scale_out.yaml:

      oceanbase-ce:
        servers:
          - name: server2
            ip: 10.10.10.2
        server2:
          mysql_port: 2881 # The external port for OceanBase Database. Default value: 2881.
          rpc_port: 2882 # The internal port for OceanBase Database. Default value: 2882.
          home_path: /home/admin/observer
          zone: zone2
      

      You can specify the information of the new node in a new configuration file, and you cannot modify the parameters such as those in the depends, global, or servers section in the configuration files of obd.

    2. Run the scale-out command. Here is an example:

      obd cluster scale_out test -c scale_out.yaml
      

      For more information about the obd cluster scale_out command, see Cluster commands.

      After the command is executed successfully, as shown below:

      Execute ` obd cluster display test ` to view the cluster status
      Trace ID: 3777cea4-dd1a-11ee-b38d-00163e0808cc
      If you want to view detailed obd logs, please run: obd display-trace 3777cea4-dd1a-11ee-b38d-00163e0808cc
      
    3. Verify the scale-out result.

      You can copy and run the obd cluster display command to view the status of the cluster. Here is an example of command output:

      +----------------------------------------------+
      |                  observer                    |
      +------------+---------+------+-------+--------+
      | ip         | version | port | zone  | status |
      +------------+---------+------+-------+--------+
      | 10.10.10.1 | 4.2.1.2 | 2881 | zone1 | ACTIVE |
      | 10.10.10.2 | 4.2.1.2 | 2881 | zone2 | ACTIVE |
      +------------+---------+------+-------+--------+
      obclient -h10.10.10.1 -P2881 -uroot -p'********' -Doceanbase -A
      

      You can also copy the obclient command in the output and run the command to log on to the OceanBase cluster, and then run the select svr_ip,id,zone,status from __all_server; command to view information about nodes in the cluster. Here is an example of command output:

      +------------+----+-------+--------+
      | svr_ip     | id | zone  | status |
      +------------+----+-------+--------+
      | 10.10.10.1 |  1 | zone1 | ACTIVE |
      | 10.10.10.2 |  2 | zone2 | ACTIVE |
      +------------+----+-------+--------+
      

    Add a component

    You can add components deployed by using OceanBase Deployer (obd) to an OceanBase cluster in the running state. Note that you can add only a component that does not exist in the cluster.

    The following example describes how to add OBAgent to an OceanBase cluster named test.

    1. View the component information.

      obd cluster edit-config test
      

      The following output indicates that only OceanBase Database Community Edition and ODP Community Edition exist in the cluster.

      ##Only need to configure when remote login is required
      user:
        username: admin
        key_file: /home/admin/.ssh/id_rsa
      oceanbase-ce:
        servers:
          - name: server1
            ip: 10.10.10.1
          - name: server2
            ip: 10.10.10.2
          - name: server3
            ip: 10.10.10.3
        global:
          cluster_id: 1
          mysql_port: 2881 # External port for OceanBase Database. The default value is 2881. DO NOT change this value after the cluster is started.
          rpc_port: 2882 # Internal port for OceanBase Database. The default value is 2882. DO NOT change this value after the cluster is started.
          home_path: /home/admin/observer
          # Some parameters are omitted here.
        server1:
          zone: zone1
        server2:
          zone: zone2
        server3:
          zone: zone3
      obproxy-ce:
        depends:
          - oceanbase-ce
        servers:
          - 10.10.10.1
        global:
          listen_port: 2883 # External port. The default value is 2883.
          prometheus_listen_port: 2884 # The Prometheus port. The default value is 2884.
          home_path: /home/admin/obproxy
          enable_cluster_checkout: false
          skip_proxy_sys_private_check: true
          enable_strict_kernel_release: false
          obproxy_sys_password: ******** # obproxy sys user password, can be empty. When a depends exists, obd gets this value from the oceanbase-ce of the depends.
      
    2. Create a configuration file named addtional_component.yaml to add OBAgent. Here is an example:

      obagent:
        depends:
          - oceanbase-ce
        servers:
          - name: server1
            ip: 10.10.10.1
          - name: server2
            ip: 10.10.10.2
          - name: server3
            ip: 10.10.10.3
        global:
          home_path: /home/admin/obagent
      

      Notice

      Parameters in the servers section in the configuration file of OBAgent must be identical to those of OceanBase Database Community Edition.

    3. Run the following command to add the component:

      [admin@test ~]$ obd cluster component add test -c addtional_component.yaml
      
    4. Verify the result.

      After the command is executed, you can run the obd cluster display command to view the status of the cluster:

      [admin@test ~]$ obd cluster display test
      

      The following output indicates the information of OBAgent, which means that the component already exists in the cluster:

      +----------------------------------------------+
      |                  observer                    |
      +------------+---------+------+-------+--------+
      | ip         | version | port | zone  | status |
      +------------+---------+------+-------+--------+
      | 10.10.10.1 | 4.2.1.2 | 2881 | zone1 | ACTIVE |
      | 10.10.10.2 | 4.2.1.2 | 2881 | zone2 | ACTIVE |
      | 10.10.10.3 | 4.2.1.2 | 2881 | zone3 | ACTIVE |
      +------------+---------+------+-------+--------+
      obclient -h10.10.10.1 -P2881 -uroot -p'********' -Doceanbase -A
      
      Connect to obproxy ok
      +----------------------------------------------+
      |                  obproxy                     |
      +------------+------+-----------------+--------+
      | ip         | port | prometheus_port | status |
      +------------+------+-----------------+--------+
      | 10.10.10.1 | 2883 | 2884            | active |
      +------------+------+-----------------+--------+
      obclient -h10.10.10.1 -P2883 -uroot -p'********' -Doceanbase -A
      Connect to Obagent ok
      +---------------------------------------------------------------+
      |                          obagent                              |
      +------------+--------------------+--------------------+--------+
      | ip         | mgragent_http_port | monagent_http_port | status |
      +------------+--------------------+--------------------+--------+
      | 10.10.10.1 | 8089               | 8088               | active |
      +------------+--------------------+--------------------+--------+
      

    Delete a component

    You can delete a component from an OceanBase cluster in the running state. Before you delete a component, make sure that the component exists in the cluster.

    The following example describes how to delete OBAgent and ODP Community Edition from an OceanBase cluster named test.

    1. View the component information.

      obd cluster edit-config test
      

      The following output indicates that OceanBase Database Community Edition, ODP Community Edition, and OBAgent exist in the cluster.

      ##Only need to configure when remote login is required
      user:
        username: admin
        key_file: /home/admin/.ssh/id_rsa
      oceanbase-ce:
        servers:
          - name: server1
            ip: 10.10.10.1
          - name: server2
            ip: 10.10.10.2
          - name: server3
            ip: 10.10.10.3
        global:
          cluster_id: 1
          mysql_port: 2881 # External port for OceanBase Database. The default value is 2881. DO NOT change this value after the cluster is started.
          rpc_port: 2882 # Internal port for OceanBase Database. The default value is 2882. DO NOT change this value after the cluster is started.
          home_path: /home/admin/observer
          # Some parameters are omitted here.
        server1: 
          zone: zone1
        server2:
          zone: zone2
        server3:
          zone: zone3
      obproxy-ce:
        depends:
          - oceanbase-ce
        servers:
          - 10.10.10.1
        global:
          listen_port: 2883 # External port. The default value is 2883.
          prometheus_listen_port: 2884 # The Prometheus port. The default value is 2884.
          home_path: /home/admin/obproxy
          enable_cluster_checkout: false
          skip_proxy_sys_private_check: true
          enable_strict_kernel_release: false
          obproxy_sys_password: ******** # obproxy sys user password, can be empty. When a depends exists, obd gets this value from the oceanbase-ce of the depends.
      obagent:
        depends:
          - oceanbase-ce
        servers:
          - name: server1
            ip: 10.10.10.1
          - name: server2
            ip: 10.10.10.2
          - name: server3
            ip: 10.10.10.3
        global:
          home_path: /home/admin/obagent
      
    2. Run the following command to delete components:

      [admin@test ~]$ obd cluster component del test obagent obproxy-ce
      
    3. Verify the result.

      After the command is executed, you can run the obd cluster display command to view the status of the cluster:

      [admin@test ~]$ obd cluster display test
      

      The following output indicates that ODP Community Edition and OBAgent no longer exist in the cluster:

      +----------------------------------------------+
      |                  observer                    |
      +------------+---------+------+-------+--------+
      | ip         | version | port | zone  | status |
      +------------+---------+------+-------+--------+
      | 10.10.10.1 | 4.2.1.2 | 2881 | zone1 | ACTIVE |
      | 10.10.10.2 | 4.2.1.2 | 2881 | zone2 | ACTIVE |
      | 10.10.10.3 | 4.2.1.2 | 2881 | zone3 | ACTIVE |
      +------------+---------+------+-------+--------+
      obclient -h10.10.10.1 -P2881 -uroot -p'********' -Doceanbase -A
      

    References

    • For more information about obd commands used in this topic, see Cluster commands.

    • After you scale out OceanBase Database Community Edition, you can also scale out a tenant or resource pool of the cluster. For more information, see Horizontal scaling of tenant resources in the OceanBase Database documentation.

    • For more information about how to log on to OceanBase Database by using OBClient, see Connect to an OceanBase Database tenant by using OBClient in the OceanBase Database documentation.

    Previous topic

    Switch the roles of tenants and decouple a standby tenant from the primary tenant
    Last

    Next topic

    FAQ
    Next
    What is on this page
    Prerequisites
    Scale out a cluster
    Add a component
    Delete a component
    References