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 Deployer

V1.6.1Community Edition

  • What is OBD
  • Install OBD
  • User Guide
    • Start an OceanBase cluster
    • Use OBD to start an OceanBase cluster
    • OBD command
      • Quick deployment command
      • Cluster commands
      • Mirror and repository commands
      • Testing commands
      • Tool commands
    • Use OCP to take over a cluster deployed by OBD
    • Add GUI-based monitoring for an existing cluster
  • Configuration file description
  • FAQ
    • FAQ
    • How do I upgrade an OBProxy to obproxy-ce 3.2.3?
  • Error codes

Download PDF

What is OBD Install OBD Start an OceanBase cluster Use OBD to start an OceanBase cluster Quick deployment command Cluster commands Mirror and repository commands Testing commands Tool commands Use OCP to take over a cluster deployed by OBD Add GUI-based monitoring for an existing cluster Configuration file description FAQ How do I upgrade an OBProxy to obproxy-ce 3.2.3? Error codes
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 Deployer
  3. V1.6.1
iconOceanBase Deployer
V 1.6.1Community Edition
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

Use OBD to start an OceanBase cluster

Last Updated:2026-04-13 09:16:02  Updated
share
What is on this page
Step 1: Select a configuration file
Small-scale deployment mode
Professional deployment mode
Step 2: Deploy and start a cluster
Step 3: View the cluster status
Step 4: Modify configurations
Step 5: Stop the cluster
Step 6: Destroy the cluster

folded

share

To start an OceanBase cluster, follow these steps:

Step 1: Select a configuration file

OBD provides different configuration files for different deployment scenarios. These configuration file examples are placed in the directory /usr/OBD/example/. Select a configuration file based on your resource configurations:

Small-scale deployment mode

This deployment mode applies to personal devices with at least 8 GB of memory.

  • Sample configuration file for local single-node deployment: /usr/obd/example/mini-local-example.yaml

  • Sample configuration file for single-node deployment: /usr/obd/example/mini-single-example.yaml

  • Sample configuration file for three-node deployment: /usr/obd/example/mini-distributed-example.yaml

  • Sample configuration file for single-node deployment with ODP: /usr/obd/example/mini-single-with-obproxy-example.yaml

  • Sample configuration file for three-node deployment with ODP: /usr/obd/example/mini-distributed-with-obproxy-example.yaml

Professional deployment mode

This deployment mode applies to advanced Elastic Compute Service (ECS) instances or physical servers with at least 16 CPU cores and 64 GB of memory.

  • Sample configuration file for local single-node deployment: /usr/obd/example/local-example.yaml

  • Sample configuration file for single-node deployment: /usr/obd/example/single-example.yaml

  • Sample configuration file for three-node deployment: /usr/obd/example/distributed-example.yaml

  • Sample configuration file for single-node deployment with ODP: /usr/obd/example/single-with-obproxy-example.yaml

  • Sample configuration file for three-node deployment with ODP: /usr/obd/example/distributed-with-obproxy-example.yaml

  • Sample configuration file for three-node deployment with ODP and obagent: /usr/obd/example/obagent/distributed-with-obproxy-and-obagent-example.yaml

This section describes how to start a local single-node OceanBase cluster by using the sample configuration file for local single-node deployment in the small-scale deployment mode: /usr/obd/example/mini-local-example.yaml.

# Modify the working directory of the OceanBase cluster: home_path.
# Modify the SQL service protocol port of the OceanBase cluster: mysql_port. This port will be used to connect to the cluster later.
# Modify the internal communication port of the OceanBase cluster: rpc_port.
vi ./example/mini-local-example.yaml

If the target server to run the OceanBase cluster is not the logged-in server, do not use the sample configuration file for local single-node deployment. Use another configuration file. Do not forget to change the user password at the beginning of the configuration file.

user:
  username: <Your account name.>
  password: <Your logon password.>
  key_file: <The path of your private key.>

username specifies the username used to log on to the target server. Make sure that your username has the write permission on the home_path directory. password and key_file are used to authenticate the user. Generally, only one of them is required.

NOTE:

After you specify the path of the key, add an annotation to the password field or delete it if your key does not require a password. Otherwise, password will be deemed as the password of the key and used for login, leading to a logon verification failure.

Step 2: Deploy and start a cluster

# The following command checks whether the home_path and data_dir directories are empty.
# If not, an error is returned. In this case, you can add the -f option to forcibly clear the directories.
obd cluster deploy lo -c local-example.yaml

# The following command checks whether the value of the fs.aio-max-nr parameter is no less than 1048576.
# Generally, you do not need to modify the fs.aio-max-nr parameter when you start one node on a server.
# However, you must modify the fs.aio-max-nr parameter when you start four or more nodes on a server.
obd cluster start lo

Step 3: View the cluster status

# View clusters managed by OBD.
obd cluster list
# View the status of the lo cluster.
obd cluster display lo

Step 4: Modify configurations

OceanBase Database has hundreds of configuration items and some of them are coupled. We recommend that you do not modify the configurations in the sample configuration file unless you are familiar with OceanBase Database. The following example shows how to modify the configurations and make them take effect.

# Run the edit-config command to enter the editing mode and modify the cluster configurations.
obd cluster edit-config lo
# Set the value of sys_bkgd_migration_retry_num to 5.
# Note that the minimum value of sys_bkgd_migration_retry_num is 3.
# Save the settings and exit. OBD will tell you how to make the modification take effect.
# To make the modification take effect, you only need to run the reload command.
obd cluster reload lo

Step 5: Stop the cluster

You can run the stop command to stop a running cluster. If the start command fails but some processes are still running, run the destroy command to destroy the cluster.

obd cluster stop lo

Step 6: Destroy the cluster

To destroy the cluster, run this command:

# When the start command fails, some processes may still be running.
# In this case, use the -f option to forcibly stop and destroy the cluster.
obd cluster destroy lo

Previous topic

Start an OceanBase cluster
Last

Next topic

Quick deployment command
Next
What is on this page
Step 1: Select a configuration file
Small-scale deployment mode
Professional deployment mode
Step 2: Deploy and start a cluster
Step 3: View the cluster status
Step 4: Modify configurations
Step 5: Stop the cluster
Step 6: Destroy the cluster