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 oblogproxy

Last Updated:2026-06-30 14:40:58  Updated
Share
What is on this page
Components
Configuration files
Procedure
Verification
References

folded

Share

This topic describes how to deploy oblogproxy by using the command line in the following two scenarios: full-component deployment (with OceanBase Database) and adding oblogproxy.

Note

  • The machine used in this topic can connect to the Internet or has the required software (OceanBase Database, ODP, oblogproxy, obconfigserver, etc.) installed. If you installed obd by using OceanBase All in One, the local image library contains the installation packages of all components required for deployment.

  • Full-component deployment: This refers to the deployment of all components (oceanbase-ce, obproxy-ce, ob-configserver, and oblogproxy) by using obd in an environment where no OceanBase components are deployed. The obd version must be V2.5.0 or later.

  • Adding oblogproxy: This refers to the deployment of oblogproxy in an environment where an OceanBase cluster is already deployed. The obd version must be V2.9.0 or later. Otherwise, refer to Install oblogproxy for deployment.

Components

  • OBProxy

    OceanBase Database Proxy, also known as ODP, is a proxy server specifically designed for OceanBase Database.

  • obconfigserver

    OceanBase Configserver, which provides metadata registration, storage, and query services for OceanBase.

  • oblogproxy

    OceanBase's incremental log proxy service, which connects to OceanBase and reads incremental logs, providing change data capture (CDC) capabilities to downstream services.

Configuration files

obd provides sample configuration files for deploying oblogproxy. You can modify these files based on your machine's resources.

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

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

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

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

  • Full deployment (oceanbase-ce, obproxy-ce, ob-configserver, and oblogproxy): distributed-with-obproxy-and-oblogproxy-example.yaml

  • Standalone deployment of oblogproxy: oblogproxy-only-example.yaml

  • Adding the oblogproxy component: oblogproxy-component-add.yaml

Procedure

Deploy all components
Add oblogproxy

Scenarios

No OceanBase components are deployed in the current environment. All components (oceanbase-ce, obproxy-ce, ob-configserver, and oblogproxy) are deployed by obd in a single cluster.

Note

If you want to use the Binlog Service of oblogproxy, you need to deploy OBProxy and obconfigserver.

Prerequisites

  • Before you deploy oblogproxy, make sure that you have installed V2.5.0 or later of obd. We recommend that you install the latest version. For more information, see Install obd.

  • If you deploy an OceanBase cluster at the same time, make sure that the OBServer nodes support the AVX instruction set (this requirement applies only to servers with the x86 architecture). You can run the lscpu | grep Flags | grep avx command to check whether the AVX instruction set is supported.

    Note

    When you use servers with the x86 architecture, if the version of the OceanBase Database to be deployed is within the following range, there is no requirement on whether the AVX instruction set is supported:

    • For V4.2.x, the version must be V4.2.5.6 or later.
    • For V4.3.x, the version must be V4.3.5.4 or later.
    • For V4.4.x, the version must be V4.4.1.0 or later.
  • In an offline deployment scenario, if you deploy an OceanBase cluster at the same time and use servers with the ARM architecture, make sure that the OBServer nodes support the LSE instruction set. You can run the lscpu | grep Flags | grep atomics command to check whether the LSE instruction set is supported. If the LSE instruction set is not supported, download the OceanBase Database installation package with the nonlse option and run the obd mirror clone command to upload the installation package to the local image library of obd.

    Note

    The OceanBase Database installation package with the nonlse option is not included in the OceanBase All in One package.

Procedure

This topic uses the distributed-with-obproxy-and-oblogproxy-example.yaml configuration file as an example to describe how to deploy oblogproxy.

  1. Configure user information

    The following code shows the user information configuration in the configuration file:

    ## 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 specifies the username for logging in to the target server. Ensure that the username has write permissions for the home_path. password and key_file are used for user authentication. Typically, you need to specify only one of them.

    Notice

    After you specify the key path, if your key does not require a password, comment out or delete password to avoid it being treated as the key password for login, which may cause the authentication to fail.

  2. Configure the oceanbase-ce component

    To deploy oblogproxy, you need to create a user (cdcro@sys) with read-only permissions for oblogproxy. The cdcro@sys user belongs to OceanBase Database, and oblogproxy has only the usage rights of this user.

    The following code shows the oceanbase-ce component configuration in the configuration file:

    oceanbase-ce:
      servers:
        - name: server1
          # Please don't use hostname, only IP can be supported
          ip: 10.10.10.1
        - name: server2
          ip: 10.10.10.2
        - name: server3
          ip: 10.10.10.3
      depends:
        - ob-configserver
      global:
        memory_limit: 64G # The maximum running memory for an observer
        # The reserved system memory. system_memory is reserved for general tenants. The default value is 30G.
        system_memory: 30G
        datafile_size: 192G # Size of the data file. 
        log_disk_size: 192G # The size of disk space used by the clog files.
        enable_syslog_wf: false # Print system logs whose levels are higher than WARNING to a separate log file. The default value is true.
        enable_syslog_recycle: true # Enable auto system log recycling or not. The default value is false.
        max_syslog_file_count: 4 # The maximum number of reserved log files before enabling auto recycling. The default value is 0.
        # observer cluster name, consistent with obproxy's cluster_name
        appname: obcluster
        scenario: htap
        root_password: ******** # root user password, can be empty
        proxyro_password: ******** # proxyro user password, consistent with obproxy's observer_sys_password, can be empty
        cdcro_password: ******** # cdcro user password, consistent with oblogproxy's observer_sys_password, can be empty
      server1:
        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.
        #  The working directory for OceanBase Database. OceanBase Database is started under this directory. This is a required field.
        home_path: /home/admin/observer
        # The directory for data storage. The default value is $home_path/store.
        # data_dir: /data
        # The directory for clog, ilog, and slog. The default value is the same as the data_dir value.
        # redo_dir: /redo
        zone: zone1
      server2:
        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.
        #  The working directory for OceanBase Database. OceanBase Database is started under this directory. This is a required field.
        home_path: /home/admin/observer
        # The directory for data storage. The default value is $home_path/store.
        # data_dir: /data
        # The directory for clog, ilog, and slog. The default value is the same as the data_dir value.
        # redo_dir: /redo
        zone: zone2
      server3:
        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.
        #  The working directory for OceanBase Database. OceanBase Database is started under this directory. This is a required field.
        home_path: /home/admin/observer
        # The directory for data storage. The default value is $home_path/store.
        # data_dir: /data
        # The directory for clog, ilog, and slog. The default value is the same as the data_dir value.
        # redo_dir: /redo
        zone: zone3
    

    For more information about the configuration items, see the OceanBase Database section in the Configuration Item Description chapter of Configuration file description. Compared with deploying an OceanBase cluster alone, the cdcro_password configuration item is added to the configuration file. This configuration item is used to configure the password of the cdcro@sys user. If this configuration item is not specified, obd generates a random string.

  3. Configure the obproxy-ce and ob-configserver components

    If you do not need to use the Binlog Service of oblogproxy, you can skip deploying OBProxy and obconfigserver.

    The following code shows the obproxy-ce and ob-configserver component configurations in the configuration file:

    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.
        rpc_listen_port: 2885
        home_path: /home/admin/obproxy
        enable_cluster_checkout: false
        # observer cluster name, consistent with oceanbase-ce's appname. When a depends exists, obd gets this value from the oceanbase-ce of the depends.
        # cluster_name: obcluster
        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.
        # observer_sys_password: # proxyro user password, consistent with oceanbase-ce's proxyro_password, can be empty. When a depends exists, obd gets this value from the oceanbase-ce of the depends.
    ob-configserver:
      servers:
        - 10.10.10.1
      global:
        listen_port: 8080 # The port of ob-configserver web
        # server_ip: 0.0.0.0 # Listen to the ob-configserver server IP. When you want to listen to the specified IP address,use it.
        home_path: /home/admin/ob-configserver  # The working directory for prometheus. ob-configserver is started under this directory. This is a required field.
        ## log config
        # log_level: info # Log printing level of ob-configserver. The default value is `info`
        # log_maxsize: 30 # The total size of manager ob-configserver.Log size is measured in Megabytes.The default value is 30
        # log_maxage: 7 # The days of manager expired ob-configserver.Log retention days. The default value is 7
        # log_maxbackups: 10  #The number of manager expired ob-configserver.Log. The default value is 10
        # log_localtime: true #  Switch of ob-configserver.Log naming with localtime. The default value is true
        # log_compress: true # Compress ob-configserver.Log switch. The default value is true
    
        ## vip config, configserver will generate url with vip_address and port and return it to the client
        ## do not use some random value that can't be connected
        # vip_address: "10.10.10.1"
        # vip_port: 8080
        ## storage config
        # storage:
        #   database_type: sqlite3 # sqlite3 or mysql. Default sqlite3
        #   connection_url: "" # When database_type is set to sqlite3, the connection_url parameter can be left empty. If it is empty, the default value $home_path/.data.db?cache=shared&_fk=1 will be used. When database_type is set to mysql, the connection_url parameter must be configured, with a sample value of user:password@tcp(10.10.10.1:2883)/test?parseTime=true.
    

    For more information about the configuration items, see the ODP and obconfigserver sections in the Configuration Item Description chapter of Configuration file description.

  4. Configure the oblogproxy component

    The following code shows the oblogproxy component configuration in the configuration file:

    oblogproxy:
      depends:
        - oceanbase-ce
        - obproxy-ce
      servers:
        - 10.10.10.1
      global:
        home_path: /home/admin/oblogproxy
        service_port: 2983
        # binlog_dir: /home/admin/oblogproxy/run   # The directory for binlog file. The default value is $home_path/run.
        # binlog_mode: true   # enable binlog mode, default true
    

    The oblogproxy component configuration depends on the oceanbase-ce and obproxy-ce components. The following table describes the configuration items.

    Configuration item
    Required
    Default value
    Description
    version Optional The latest version by default Specifies the version of the component to be deployed. Typically, you do not need to specify this configuration item.
    servers Required N/A For each server, you need to specify - name: server identifier (press Enter) ip: server IP or use - <ip>. If you use - <ip>, it is equivalent to - name: server IP (press Enter) ip: server IP.
    home_path Required N/A The installation path of oblogproxy.
    service_port Required 2983 The listening port of the oblogproxy service.
    binlog_dir Optional $home_path/run The root directory of the Binlog service. You must specify an absolute path.
    binlog_mode Optional true Specifies whether to enable the Binlog mode.
    • When you use obd to deploy oblogproxy, the binlog_dir configuration item in obd corresponds to the binlog_log_bin_basename configuration item of oblogproxy.

    • When you use obd to deploy oblogproxy in Binlog mode, the default value of the binlog_mode configuration item is true.

  5. Deploy the cluster

    [admin@test001 ~]$ obd cluster deploy obtest -c distributed-with-obproxy-and-oblogproxy-example.yaml
    

    If the network is connected, after you execute the obd cluster deploy command, obd checks whether the required installation package exists in the local image library. If not, obd automatically retrieves it from the YUM source.

  6. Start the cluster

    [admin@test001 ~]$ obd cluster start obtest
    
  7. View the cluster status

    [admin@test001 ~]$ obd cluster display obtest
    

Scenario

An OceanBase cluster already exists in the environment, and you need to use the services of oblogproxy. In this case, you can add oblogproxy to the OceanBase cluster.

Prerequisites

  • Before you add oblogproxy to the OceanBase cluster, ensure that obd V2.9.0 or later is installed. If obd is earlier than V2.9.0, you can upgrade it by referring to Upgrade obd or manually deploy oblogproxy.

  • If oblogproxy is deployed in Binlog Service mode, you need to deploy OBProxy and obconfigserver in advance.

Procedure

Here, we use the oblogproxy-component-add.yaml configuration file as an example to describe how to deploy oblogproxy.

  1. Configure the oblogproxy component.

    Here, we use the oblogproxy-component-add.yaml configuration file as an example. You can define the file name as needed. The content of the configuration file is as follows:

    oblogproxy:
      depends:
        - oceanbase-ce
      servers:
        - 10.10.10.1
      version: 2.0.0
      global:
        home_path: /root/oblogproxy
        service_port: 2983   # External port. The default value is 2983.
    

    The following table describes the configuration parameters.

    Parameter
    Required
    Default Value
    Description
    version Optional The latest version The version of the component to be deployed. Generally, you do not need to specify this parameter.
    servers Required N/A For each server, use - name: server name (line break) ip: server IP to specify it. You can also use - <ip> to specify the server. In this case, - <ip> is equivalent to - name: server IP (line break) ip: server IP.
    home_path Required N/A The installation path of oblogproxy.
    service_port Required 2983 The listening port of oblogproxy.
  2. Add oblogproxy.

    [admin@test001 ~]$ obd cluster component add  obtest -c oblogproxy-component-add.yaml
    

    Here, we use an existing OceanBase cluster named obtest as an example. You need to replace it with the actual cluster name. For more information about the obd cluster component add command, see Cluster command groups.

    The command output is as follows:

    Check before start oblogproxy ok
    start oblogproxy ok
    +--------------------------------+
    |           oblogproxy           |
    +---------------+-------+--------+
    | ip            | port  | status |
    +---------------+-------+--------+
    | 10.10.10.1    | 2983  | active |
    +---------------+-------+--------+
    obclient -h10.10.10.1 -P2983
    
    test running
    Trace ID: b082e760-2889-11ef-9e33-00163e0808cc
    If you want to view detailed obd logs, please run: obd display-trace b082e760-2889-11ef-9e33-00163e0808cc
    
  3. Verify whether oblogproxy is added.

    [admin@test001 ~]$ obd cluster display obtest
    

    If the output contains the information about the oblogproxy component, it indicates that oblogproxy is successfully deployed and added to the OceanBase cluster.

Verification

Based on whether the binlog_mode is enabled, there are two verification methods.

  • Method 1: If binlog_mode is set to true, you can copy the connection string printed by obd after it starts and execute it to verify whether you can successfully connect to oblogproxy.

    obclient -h10.10.10.1 -P2983
    
  • Method 2: If binlog_mode is set to false, you can execute the following command on the server where oblogproxy is located to check if there is an oblogproxy process.

    ps axu | grep logproxy
    

    The output is as follows:

    admin    10493  1.1  0.0 634812  2940 ?        Sl   16:21   0:07 /home/admin/oblogproxy/bin/logproxy -f /home/admin/oblogproxy/conf/conf.json
    admin    18071  0.0  0.0 112812   980 pts/1    S+   16:32   0:00 grep --color=auto logproxy
    

References

  • You can use obd to manage the deployed oblogproxy, such as starting, stopping, restarting, and destroying it. For more information about the commands, see Cluster commands. Note that when you execute the obd cluster stop command to stop oblogproxy, obd stops only the oblogproxy process and does not stop the Binlog process (binlog_converter).

Note

  • In a full-component deployment scenario, obd automatically creates the cdcro user in OceanBase Database and configures it in the oblogproxy configuration file. Therefore, you do not need to configure user information when creating the Binlog service.

  • In a minimal-component deployment scenario, if you have configured valid username and password, obd automatically configures them in the oblogproxy configuration file. Therefore, you do not need to configure user information when creating the Binlog service.

Previous topic

Deploy obbinlog
Last

Next topic

Create a standby tenant
Next
What is on this page
Components
Configuration files
Procedure
Verification
References