Meet OceanBase AI Database, the unified database for operational data, real-time analytics, and AI. Explore ->

Meet OceanBase AI Database, the unified database for operational data, real-time analytics, and AI. Explore ->

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

V4.3.0Community Edition

  • What is obd
  • Quick Start
    • Install obd
    • Quick deployment of OceanBase Database
    • Quickly deploy OCP
  • obd Command
    • Quick deployment commands
    • Cluster commands
    • Command groups
    • Image and repository commands
    • Test command groups
    • Tool commands
    • obdiag commands
    • Binlog service commands
    • Hardware commands
    • License commands
    • Password commands
    • Telemetry commands
  • User Guide
    • Usage overview
    • Deploy through GUI
      • Overview
      • Pattern configuration rules
      • Deploy an OceanBase cluster
      • Deploy OCP
      • Deploy OMS
      • Change components
      • Upgrade OCP
      • Upgrade OMS
    • Deploy through CLI
      • Configuration file
      • Component deployment
        • Deploy an OceanBase cluster
        • Deploy seekdb
        • Deploy obconfigserver
        • Deploy OMS
        • Deploy OCP
        • Deploy Alertmanager
        • Deploy obbinlog
        • Deploy oblogproxy
      • Cluster management
        • Physical Standby Database
          • Create a standby tenant
          • Role switching and decoupling
          • Switch the synchronization mode between primary and standby tenants
        • seekdb primary/standby instance
          • Create a standby instance
          • Role switching and decoupling
        • Scale out and component changes
        • Performance test
        • Diagnose a cluster
        • Backup and restore
        • Add a GUI monitoring system to an existing cluster
      • Cluster management
        • Use OCP to take over an OceanBase cluster deployed by obd
        • Take over an OceanBase cluster
      • Component upgrade
        • Upgrade OceanBase Database
        • Upgrade ODP
        • Upgrade OMS
  • Upgrade obd
  • FAQ
  • Error codes
  • Release Notes
    • Version rules
    • V4.3
      • OceanBase Deploy V4.3.0
    • V4.2
      • OceanBase Deployment Tool V4.2.0
    • V4.1
      • OceanBase Deployer V4.1.0
    • V4.0
      • OceanBase Deployer V4.0.0
    • V3.6
      • OceanBase Deployer V3.6.0
    • V3.5
      • OceanBase Deployer V3.5.0
    • V3.4
      • OceanBase Deployer V3.4.0
    • V3.3
      • OceanBase Deployer V3.3.0
    • V3.2
      • OceanBase Deployer V3.2.2
      • OceanBase Deployer V3.2.1
      • OceanBase Deployer V3.2.0
    • V3.1
      • OceanBase Deployer V3.1.2
      • OceanBase Deployer V3.1.1
      • OceanBase Deployer V3.1.0
    • V3.0
      • OceanBase Deployer V3.0.1
      • OceanBase Deployer V3.0.0
    • V2.10
      • OceanBase Deployer V2.10.1
      • OceanBase Deployer V2.10.0
    • V2.9
      • OceanBase Deployer V2.9.2
      • OceanBase Deployer V2.9.1
      • OceanBase Deployer V2.9.0
    • V2.8
      • OceanBase Deployment Tool V2.8.0
    • V2.7
      • OceanBase Deployment Tool V2.7.0
    • V2.6
      • OceanBase Deployment Tool V2.6.2
      • OceanBase Deployment Tool V2.6.1
      • OceanBase Deployment Tool V2.6.0
    • V2.5
      • OceanBase Deployer V2.5.0
    • V2.4
      • OceanBase Deployer V2.4.0
    • V2.3
      • OceanBase Deployment Tool V2.3.1
      • OceanBase Deployer V2.3.0
    • V2.2
      • OceanBase Deployment Tool V2.2.0
    • V2.1
      • OceanBase Deployer V2.1.1
      • OceanBase Deployment Tool V2.1.0
    • V2.0
      • OceanBase Deployment Tool V2.0.1
      • OceanBase Deployment Tool V2.0.0
    • V1.6
      • OceanBase Deployer V1.6.2
      • OceanBase Deployer V1.6.1
      • OceanBase Deployer V1.6.0
    • V1.5
      • OceanBase Deployer V1.5.0
    • V1.4
      • OceanBase Deployer V1.4.0
    • V1.3
      • OceanBase Deployer V1.3.3
      • OceanBase Deployer V1.3.2
      • OceanBase Deployer V1.3.0
    • V1.2
      • OceanBase Deployer V1.2.1
      • OceanBase Deployer V1.2.0
  • Interactive deployment of OceanBase Database Community Edition
  • Deploy a Community Edition cluster using the obd graphical interface
  • Deploy a Community Edition cluster by using an obd configuration file

Download PDF

What is obdInstall obdQuick deployment of OceanBase DatabaseQuickly deploy OCPQuick deployment commandsCluster commandsCommand groupsImage and repository commandsTest command groupsTool commandsobdiag commandsBinlog service commandsHardware commandsLicense commandsPassword commandsTelemetry commandsUsage overviewOverviewPattern configuration rulesDeploy an OceanBase clusterDeploy OCPDeploy OMSChange componentsUpgrade OCPUpgrade OMSConfiguration fileUpgrade obdFAQError codesVersion rulesOceanBase Deploy V4.3.0OceanBase Deployment Tool V4.2.0OceanBase Deployer V4.1.0OceanBase Deployer V4.0.0OceanBase Deployer V3.6.0OceanBase Deployer V3.5.0OceanBase Deployer V3.4.0OceanBase Deployer V3.3.0OceanBase Deployer V3.2.2OceanBase Deployer V3.2.1OceanBase Deployer V3.2.0OceanBase Deployer V3.1.2OceanBase Deployer V3.1.1OceanBase Deployer V3.1.0OceanBase Deployer V3.0.1OceanBase Deployer V3.0.0OceanBase Deployer V2.10.1OceanBase Deployer V2.10.0OceanBase Deployer V2.9.2OceanBase Deployer V2.9.1OceanBase Deployer V2.9.0OceanBase Deployment Tool V2.8.0OceanBase Deployment Tool V2.7.0OceanBase Deployment Tool V2.6.2OceanBase Deployment Tool V2.6.1OceanBase Deployment Tool V2.6.0OceanBase Deployer V2.5.0OceanBase Deployer V2.4.0OceanBase Deployment Tool V2.3.1OceanBase Deployer V2.3.0OceanBase Deployment Tool V2.2.0OceanBase Deployer V2.1.1OceanBase Deployment Tool V2.1.0OceanBase Deployment Tool V2.0.1OceanBase Deployment Tool V2.0.0OceanBase Deployer V1.6.2OceanBase Deployer V1.6.1OceanBase Deployer V1.6.0OceanBase Deployer V1.5.0OceanBase Deployer V1.4.0OceanBase Deployer V1.3.3OceanBase Deployer V1.3.2OceanBase Deployer V1.3.0OceanBase Deployer V1.2.1OceanBase Deployer V1.2.0Interactive deployment of OceanBase Database Community EditionDeploy a Community Edition cluster using the obd graphical interfaceDeploy a Community Edition cluster by using an obd configuration file
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. V4.3.0
iconOceanBase Deployer
V 4.3.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 4.3.0
  • 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

Deploy OCP

Last Updated:2026-06-30 14:40:58  Updated
Share
What is on this page
Prerequisites
Configuration files
Procedure
Step 1: Obtain the installation package
Step 2: Deploy OCP
References

folded

Share

This topic describes how to deploy OCP by using an obd configuration file in an environment based on CentOS Linux 7.9 x86 architecture.

Note

Currently, obd supports only OCP Community Edition V4.2.1 and later and OCP Enterprise Edition V4.3.5 and later.

Prerequisites

  • You have installed obd on your server. We recommend that you install the latest version. For more information, see Install obd.

  • The user and server resources for deploying OCP meet the deployment requirements. For more information, see the Installation Planning section in the official documentation of OceanBase Cloud.

  • The clockdiff command is installed on the server where OCP is to be deployed.

  • If you are to deploy OCP based on OceanBase Database, ensure that the server where the OBServer node is deployed supports the AVX instruction set (this restriction applies only to servers with the x86 architecture). You can execute the lscpu | grep Flags | grep avx command to check whether the server supports the AVX instruction set.

    Note

    If you use a server with the x86 architecture, the server does not need to support the AVX instruction set when you deploy OceanBase Database of the following versions:

    • V4.2.5.6 or later for V4.2.x versions.
    • V4.3.5.4 or later for V4.3.x versions.
    • V4.4.1.0 or later for V4.4.x versions.
  • In an offline deployment scenario, if you are to deploy OCP based on OceanBase Database and use an ARM server, check whether the server where the OBServer node is deployed supports the LSE instruction set. You can execute the lscpu | grep Flags | grep atomics command to check whether the server supports the LSE instruction set. If the server does not support the LSE instruction set, download the OceanBase Database installation package with the nonlse parameter and use the obd mirror clone command to upload the installation package to the local image library of obd.

    Note

    The OceanBase All in One package does not contain the OceanBase Database installation package with the nonlse parameter.

Configuration files

obd provides sample configuration files for deploying OCP. You can modify them based on your machine resources.

  • If you installed obd by directly downloading it, you can view the sample configuration files provided by obd in the /usr/obd/example directory.

  • If you installed obd by decompressing the all-in-one installation package, you can view the sample configuration files provided by obd in the ~/.oceanbase-all-in-one/obd/usr/obd/example directory.

  • You can also view the sample configuration files provided by obd in its GitHub repository.

The following are the sample configuration files provided by obd for deploying OCP.

  • Deploy OCP separately: ocp-only-example.yaml

  • Deploy OCP in a distributed manner with ODP: distributed-with-obproxy-and-ocp-example.yaml

Procedure

Note

OBLOADER supports deploying both the Community Edition and Enterprise Edition of OCP. This topic describes how to deploy the Community Edition of OCP.

Step 1: Obtain the installation package

  1. Download the installation package

    Visit OceanBase Download Center and search for OceanBase Cloud Platform. Download the required installation package and upload it to any directory on the obd control machine.

    If you cannot find the required version of the installation package on the download center, contact technical support for assistance.

  2. Decompress the installation package

    In the directory where the installation package is located, execute the following command to decompress it:

    [admin@test001 ~]$ tar -xzf ocp-all-in-one-*.tar.gz
    
  3. (Optional) Uninstall the original obd

    If obd is already installed on the machine and it was installed using the All in One package, you can execute the following command to uninstall the current obd.

    [admin@test001 ~]$ cd ocp-all-in-one/bin && bash uninstall.sh
    
  4. Start the installation program

    In the bin directory of the ocp-all-in-one installation directory, execute the install.sh script to start the obd installation program.

    [admin@test001 bin]$ bash install.sh
    

    This script installs obd and copies all installation packages in the rpms directory of the installation directory to the local image library of obd, while closing the remote image library. After the execution is successful, the following output will be displayed. You can copy and execute the source ~/.oceanbase-all-in-one/bin/env.sh command in the output to apply the environment configuration.

    add auto set env logic to profile: /home/admin/.bash_profile
    
    #########################################################################################
     Install Finished
    =========================================================================================
    Setup Environment:              source ~/.oceanbase-all-in-one/bin/env.sh
    Quick Start:                    obd demo
    Use Web Service to install:     obd web
    Use Web Service to upgrade:     obd web upgrade
    More Details:                   obd -h
    =========================================================================================
    

Step 2: Deploy OCP

This section describes two methods to deploy OCP: Deploy OCP independently and Deploy OCP with OceanBase Database.

  • When deploying OCP independently, you need to first create the metadata database and corresponding tenants (ocp_meta and ocp_monitor) for OCP. For detailed operations on creating databases, see Deploy OceanBase Database on a single server or Deploy an OceanBase cluster by using the graphical interface. You can manually create tenants or use obd commands to create tenants. For detailed information on using obd commands to create tenants, see the obd cluster tenant create command in Cluster commands.

  • When deploying OCP with OceanBase Database, you can configure both OceanBase Database and OCP information in the configuration file. When starting OCP, it will start the metadata database of OCP based on the configured OceanBase Database information.

Deploy OCP independently
Deploy OCP with OceanBase Database
  1. Create a configuration file

    Execute the following command to create a configuration file. Here, we use ocp-only-example.yaml as an example. You can customize the filename as needed.

    vim ocp-only-example.yaml
    
  2. Modify the user information

    You can copy the following content and modify it according to your actual scenario.

    ## Only need to configure when remote login is required
    user:
      username: admin
    #   password: your password if need
      key_file: /home/admin/.ssh/id_rsa
    #   port: your ssh port, default 22
    #   timeout: ssh connection timeout (second), default 30
    

    username is the username for logging in to the target machine, and ensure that your username has write permissions to the home directory. password and key_file are both used for user verification. Typically, you only need to fill in one of them.

    Notice

    After configuring the key path, if your key does not require a password, please comment out or delete password to avoid it being considered as the key password for login, which may cause verification failure.

  3. Modify the OCP configuration

    You can copy the following content and modify it according to your actual scenario. For the specific meanings of the configuration items, see Configuration file description under Configuration item description.

    ocp-server-ce:
      # version: 4.2.2
      # package_hash: 84a65bf0ec004e73b772938696b2b896a0ef2b2f
      # release: 20240315150922.el7
      servers:
        - 10.10.10.1
      global:
        home_path: /home/admin/ocp
        soft_dir: /home/admin/ocp/software
        log_dir: /home/admin/ocp/logs
        ocp_site_url: http://10.10.10.1:8080
        port: 8080
        admin_password: ********
        memory_size: 4G
        jdbc_url: jdbc:oceanbase://10.10.10.2:2881/test
        jdbc_username: root@sys
        jdbc_password: ********
        ocp_meta_tenant:
          tenant_name: ocp_meta
          max_cpu: 2.0
          memory_size: 4G
        ocp_meta_username: root
        ocp_meta_password: ********
        ocp_meta_db: meta_database
        ocp_monitor_tenant:
          tenant_name: ocp_monitor
          max_cpu: 2.0
          memory_size: 4G
        ocp_monitor_username: root
        ocp_monitor_password: ********
        ocp_monitor_db: monitor_database
    
  4. Deploy OCP

    obd cluster deploy ocp -c ocp-only-example.yaml
    

    In the command, ocp is the cluster name, which you can customize according to your actual needs. After the deployment is successful, the command line will output the corresponding startup command, as follows:

    ocp deployed
    Please execute ` obd cluster start ocp ` to start
    Trace ID: 4e444844-0211-11ef-8e69-00163e0808cc
    If you want to view detailed obd logs, please run: obd display-trace 4e444844-0211-11ef-8e69-00163e0808cc
    
  5. Start OCP

    obd cluster start ocp
    

    After the startup is successful, the login information of OCP will be output, as follows:

    +----------------------------------------------------------+
    |                      ocp-server-ce                       |
    +---------------------------+----------+----------+--------+
    | url                       | username | password | status |
    +---------------------------+----------+----------+--------+
    | http://10.10.10.1:8080    | admin    | ******** | active |
    +---------------------------+----------+----------+--------+
    ocp running
    Trace ID: ed5a1f4c-0218-11ef-bda1-00163e0808cc
    If you want to view detailed obd logs, please run: obd display-trace ed5a1f4c-0218-11ef-bda1-00163e0808cc
    

Step 1: Create a configuration file

Execute the following command to create a configuration file. Here, we use distributed-ocp.yaml as an example. You can customize the filename as needed.

vim distributed-ocp.yaml

Step 2: Modify the configuration file

  1. Modify the user information

    You can copy the following content and modify it based on your actual scenario.

    ## Only need to configure when remote login is required
    user:
      username: admin
    #   password: your password if need
      key_file: /home/admin/.ssh/id_rsa
    #   port: your ssh port, default 22
    #   timeout: ssh connection timeout (second), default 30
    

    username is the username for logging in to the target machine. Make sure that your username has write permissions to the home directory. password and key_file are both used for user verification. Typically, you only need to fill in one of them.

    Notice

    After specifying the key path, if your key does not require a password, comment out or delete password to prevent it from being mistakenly considered as the key password, which could lead to verification failure.

  2. Modify the OceanBase Database configuration

    You can copy the following content and modify it based on your actual scenario.

    oceanbase-ce:
      version: 4.3.5.3
      # release: 100000242024032211.el7
      # package_hash: c4a03c83614f50c99ddb1c37dda858fa5d9b14b7
      servers:
        - name: server1
          ip: 10.10.10.1
        - name: server2
          ip: 10.10.10.2
        - name: server3
          ip: 10.10.10.3
      global:
        appname: obcluster
        cluster_id: 1711955629
        mysql_port: 2881
        rpc_port: 2882
        home_path: /home/admin/oceanbase
        data_dir: /home/admin/oceanbase/data
        redo_dir: /home/admin/oceanbase/redo
        obshell_port: 2886
        scenario: htap
        memory_limit: 64G
        system_memory: 30G
        log_disk_size: 192G
        datafile_size: 192GB
        ocp_meta_tenant:
          tenant_name: ocp_meta
          max_cpu: 2.0
          memory_size: 4G
        ocp_meta_username: root
        ocp_meta_password: ********
        ocp_meta_db: meta_database
        ocp_monitor_tenant:
          tenant_name: ocp_monitor
          max_cpu: 2.0
          memory_size: 8G
        ocp_monitor_username: root
        ocp_monitor_password: ********
        ocp_monitor_db: monitor_database
        proxyro_password: ********
        root_password: ********
        enable_syslog_recycle: true
        enable_syslog_wf: false
        max_syslog_file_count: 4 
        cpu_count: 20
      server1:
        zone: zone1
      server2:
         zone: zone2
      server3:
         zone: zone3
    

    For more information about the configuration items of OceanBase Database, see Configuration Item Description in Configuration File Description. The following table lists the OCP-related configuration items.

    Configuration Item
    Required
    Default Value
    Effective After Modification
    Description
    ocp_meta_tenant Required tenant_name: meta_tenant
    max_cpu: 1
    memory_size: 2147483648
    Redeployment The information about the OCP metadata tenant.
    • tenant_name: the name of the OCP metadata tenant.
    • max_cpu: the maximum number of CPU cores allocated to the OCP metadata tenant.
    • memory_size: the size of memory allocated to the OCP metadata tenant.
    ocp_meta_username Optional meta Restart the process The username for connecting to the OCP metadata tenant.
    ocp_meta_password Required A random string by default Restart the process The password corresponding to the username specified by ocp_meta_username.
    ocp_meta_db Optional meta_database Redeployment The name of the database where the OCP metadata is stored.
    ocp_monitor_tenant Required tenant_name: monitor_tenant
    max_cpu: 1
    memory_size: 2147483648
    Redeployment The information about the OCP monitoring data tenant.
    • tenant_name: the name of the OCP monitoring data tenant.
    • max_cpu: the maximum number of CPU cores allocated to the OCP monitoring data tenant.
    • memory_size: the size of memory allocated to the OCP monitoring data tenant.
    ocp_monitor_username Optional monitor_user Restart the process The username for connecting to the OCP monitoring data tenant.
    ocp_monitor_password Required A random string by default Restart the process The password corresponding to the username specified by ocp_monitor_username.
    ocp_monitor_db Optional monitor_database Redeployment The name of the database where the OCP monitoring data is stored.
  3. Modify the ODP configuration

    You can copy the following content and modify it based on your actual scenario. For more information about the configuration items, see Configuration Item Description in Configuration File Description.

    obproxy-ce:
      # version: 4.2.3.0
      # package_hash: 7ca6c000887b90db111093180e6984bf4cf8f7380a948870f3eb2ac30be38f37
      # release: 3.el7
      depends:
        - oceanbase-ce
      servers:
        - 10.10.10.1
      global:
        home_path: /home/admin/obproxy
        prometheus_listen_port: 2884
        listen_port: 2883
        obproxy_sys_password: ********
        skip_proxy_sys_private_check: true
        enable_strict_kernel_release: false
        enable_cluster_checkout: false
        proxy_id: 5150
        client_session_id_version: 2
    
  4. Modify the OCP configuration

    You can copy the following content and modify it based on your actual scenario. For more information about the configuration items, see Configuration Item Description in Configuration File Description.

    Notice

    When you deploy OCP based on OceanBase Database, obd will obtain the information about the OCP metadata database from the configuration items under the OceanBase Database component. In this case, the configuration items jdbc_xxx will report an error.

    ocp-server-ce:
      # version: 4.2.2
      # package_hash: 84a65bf0ec004e73b772938696b2b896a0ef2b2f
      # release: 20240315150922.el7
      depends:
        - oceanbase-ce
        - obproxy-ce
      servers:
        - 10.10.10.1
      global:
        home_path: /home/admin/ocp
        soft_dir: /home/admin/ocp/software
        log_dir: /home/admin/ocp/logs
        ocp_site_url: http://10.10.10.1:8080
        port: 8080
        admin_password: ********
        memory_size: 8G
    

Step 3: Deploy OCP

  1. Deploy OCP

    obd cluster deploy ocp -c distributed-ocp.yaml
    

    In the command, ocp is the cluster name, which you can customize based on your actual scenario. After the deployment is successful, the command line will output the corresponding startup command, as shown below:

    ocp deployed
    Please execute ` obd cluster start ocp ` to start
    Trace ID: 990e7dba-0223-11ef-ab25-00163e0808cc
    If you want to view detailed obd logs, please run: obd display-trace 990e7dba-0223-11ef-ab25-00163e0808cc
    
  2. Start OCP

    obd cluster start ocp
    

    After the startup is successful, the cluster information will be output, as shown below:

    +-------------------------------------------------+
    |                  oceanbase-ce                   |
    +---------------+---------+------+-------+--------+
    | ip            | version | port | zone  | status |
    +---------------+---------+------+-------+--------+
    | 10.10.10.1    | 4.3.5.3 | 2881 | zone1 | ACTIVE |
    | 10.10.10.2    | 4.3.5.3 | 2881 | zone2 | ACTIVE |
    | 10.10.10.3    | 4.3.5.3 | 2881 | zone3 | ACTIVE |
    +---------------+---------+------+-------+--------+
    obclient -h10.10.10.1 -P2881 -uroot -p'********' -Doceanbase -A
    
    +-------------------------------------------------+
    |                     obproxy-ce                  |
    +---------------+------+-----------------+--------+
    | ip            | port | prometheus_port | status |
    +---------------+------+-----------------+--------+
    | 10.10.10.1    | 2883 | 2884            | active |
    +---------------+------+-----------------+--------+
    obclient -h10.10.10.1 -P2883 -uroot@proxysys -p'********' -Doceanbase -A
    
    +----------------------------------------------------------+
    |                      ocp-server-ce                       |
    +---------------------------+----------+----------+--------+
    | url                       | username | password | status |
    +---------------------------+----------+----------+--------+
    | http://10.10.10.1:8080    | admin    | ******** | active |
    +---------------------------+----------+----------+--------+
    ocp running
    

References

  • After you deploy a cluster by using obd, you can manage the cluster by using obd commands, such as restart, reload, stop, and destroy. For more information about the obd commands, see Cluster commands.
  • For information about how to upgrade OceanBase Cloud, see Upgrade OceanBase Cloud.

Previous topic

Deploy OMS
Last

Next topic

Deploy Alertmanager
Next
What is on this page
Prerequisites
Configuration files
Procedure
Step 1: Obtain the installation package
Step 2: Deploy OCP
References