OceanBase
English日本語简体中文
Docs Home
Products
Integrations
Release Notes

Databases

OceanBase DatabaseOceanBase Cloud OceanBase Best Practices

Tools

OceanBase Cloud PlatformOceanBase Migration ServiceOceanBase Developer CenterOceanBase Migration AssessmentOceanBase Admin ToolOceanBase Loader and DumperOceanBase DeployerKubernetes operator for OceanBaseOceanBase Diagnostic Tool OceanBase Binlog Service

Connectors and Middleware

OceanBase Database Proxy OceanBase Connector/C OceanBase Connector/J OceanBase Connector/ODBC OceanBase Connector/NETOceanBase Command-Line Client

Databases

OceanBase DatabaseOceanBase Cloud OceanBase Best Practices

Connectors and Middleware

OceanBase Database Proxy OceanBase Connector/C OceanBase Connector/J OceanBase Connector/ODBC OceanBase Connector/NETOceanBase Command-Line Client

Tools

OceanBase Cloud PlatformOceanBase Migration ServiceOceanBase Developer CenterOceanBase Migration AssessmentOceanBase Admin ToolOceanBase Loader and DumperOceanBase DeployerKubernetes operator for OceanBaseOceanBase Diagnostic Tool OceanBase Binlog Service
OceanBase DatabaseOceanBase Cloud ToolsConnectors and MiddlewareLifecycle Support Policy

OceanBase Migration Service

V4.2.5Enterprise Edition
  • OMS Documentation
  • OMS Introduction
    • What is OMS?
    • Terms
    • OMS HA
    • Principles of Store
    • Principles of Full-Import and Incr-Sync
    • Data verification principles
    • Architecture
      • Overview
      • Hierarchical functional system
      • Basic components
    • OMS Oracle full data migration design and impact
    • Limitations
  • Quick Start
    • Data migration process
    • Data synchronization process
  • Deploy OMS
    • Deployment types
    • System and network requirements
    • Memory and disk requirements
    • Environment preparations
    • Deploy OMS on a single node
    • Deploy OMS on multiple nodes in a single region
    • Deploy OMS on multiple nodes in multiple regions
    • Scale out
    • Check the deployment
    • Deploy a time-series database (Optional)
  • OMS console
    • Log in to the OMS console
    • Overview
    • User center
      • Configure user information
      • Change your login password
      • Log out
  • Data migration
    • Overview
    • Migrate data from a MySQL database to a MySQL-compatible tenant of OceanBase Database
    • Migrate data from a MySQL-compatible tenant of OceanBase Database to a MySQL database
    • Migrate data from an Oracle database to a MySQL-compatible tenant of OceanBase Database
    • Migrate data from an Oracle-compatible tenant of OceanBase Database to an Oracle database
    • Migrate data from an Oracle database to an Oracle-compatible tenant of OceanBase Database
    • Migrate data from a DB2 LUW database to an Oracle-compatible tenant of OceanBase Database
    • Migrate data from an Oracle-compatible tenant of OceanBase Database to a DB2 LUW database
    • Migrate data from a DB2 LUW database to a MySQL-compatible tenant of OceanBase Database
    • Migrate data from a MySQL-compatible tenant of OceanBase Database to a DB2 LUW database
    • Migrate data within OceanBase Database
    • Create an active-active disaster recovery task in OceanBase Database
    • Migrate data from a TiDB database to a MySQL-compatible tenant of OceanBase Database
    • Migrate data from a PostgreSQL database to a MySQL-compatible tenant of OceanBase Database
    • Migrate data from a PolarDB-X 1.0 database to a MySQL-compatible tenant of OceanBase Database
    • Migrate incremental data from an Oracle-compatible tenant of OceanBase Database to a MySQL database
    • Manage data migration tasks
      • View details of a data migration task
      • Rename a data migration task
      • View and modify migration objects
      • Use tags to Manage data migration tasks
      • Perform batch operations on data migration tasks
      • Download and import settings of migration objects
      • View and modify the parameter configurations of a data migration task
      • Start and pause a data migration task
      • End and delete a data migration task
    • Supported DDL operations and limits for synchronization
      • Synchronize DDL operations from a MySQL database to a MySQL-compatible tenant of OceanBase Database
        • Overview
        • CREATE TABLE
          • Create a table
          • Create a column
          • Create an index or a constraint
          • Create partitions
        • Data type conversion
        • ALTER TABLE
          • Modify a table
          • Operations on columns
          • Operations on constraints and indexes
          • Operations on partitions
        • TRUNCATE TABLE
        • RENAME TABLE
        • DROP TABLE
        • CREATE INDEX
        • DROP INDEX
        • DDL incompatibilities between a MySQL database and a MySQL-compatible tenant of OceanBase Database
          • Overview
          • Incompatibilities of the CREATE TABLE statement
            • Incompatibilities of CREATE TABLE
            • Column types that are supported to create indexes or constraints
          • Incompatibilities of the ALTER TABLE statement
            • Incompatibilities of ALTER TABLE
            • Change the type of a constrained column
            • Change the type of an unconstrained column
            • Change the length of a constrained column
            • Change the length of an unconstrained column
            • Delete a constrained column
          • Incompatibilities of DROP INDEX operations
      • Synchronize DDL operations from a MySQL-compatible tenant of OceanBase Database to a MySQL database
      • DDL operations for synchronizing data from an Oracle database to an Oracle-compatible tenant of OceanBase Database
        • Overview of DDL synchronization from Oracle to OceanBase Database Oracle compatible mode
        • CREATE TABLE
          • Overview
          • Create a relational table
            • Create a relational table
            • Define columns of a relational table
          • Virtual columns
          • Regular columns
          • Create partitions
            • Overview
            • Partitioning
            • Subpartitioning
            • Composite partitioning
            • User-defined partitioning
            • Subpartition templates
          • Constraints
            • Overview
            • Inline constraints
            • Out-of-line constraints
        • CREATE INDEX
          • Overview
          • Normal indexes
        • ALTER TABLE
          • Modify tables
          • Modify, drop, and add table attributes
          • Column attribute management
            • Modify, drop, and add column attributes
            • Rename a column
            • Add columns and column attributes
            • Modify column attributes
            • Drop columns
          • Modify, drop, and add constraints
          • Partition management
            • Modify, drop, and add partitions
            • Drop a partition
            • Drop subpartitions
            • Add partitions and subpartitions
            • Modify partitions
            • Truncate partitions
        • DROP TABLE
        • RENAME OBJECT
        • TRUNCATE TABLE
        • DROP INDEX
        • DDL incompatibilities between an Oracle database and an Oracle-compatible tenant of OceanBase Database
          • Overview
          • Incompatibilities of CREATE TABLE
          • Incompatibilities in table modification operations
            • Incompatibilities of ALTER TABLE
            • Change the type of a constrained column
            • Change the type of an unconstrained column
            • Change the length of a constrained column
            • Change the length of an unconstrained column
      • Synchronize DDL operations from the Oracle compatible mode of OceanBase Database to an Oracle database
      • Synchronize DDL operations from a DB2 LUW database to an Oracle-compatible tenant of OceanBase Database
      • Synchronize DDL operations from the Oracle compatible mode of OceanBase Database to a DB2 LUW database
      • Synchronize DDL operations from a DB2 LUW database to a MySQL-compatible tenant of OceanBase Database
      • Synchronize DDL operations from a MySQL-compatible tenant of OceanBase Database to a DB2 LUW database
      • DDL synchronization between MySQL-compatible tenants of OceanBase Database
      • DDL synchronization between Oracle-compatible tenants of OceanBase Database
  • Data synchronization
    • Overview
    • Synchronize data from OceanBase Database to a Kafka instance
    • Synchronize data from OceanBase Database to a RocketMQ instance
    • Synchronize data from OceanBase Database to a DataHub instance
    • Synchronize data from an ODP logical table to a physical table in a MySQL-compatible tenant of OceanBase Database
    • Synchronize data from an ODP logical table to a DataHub instance
    • Synchronize data from an IDB logical table to a MySQL-compatible tenant of OceanBase Database
    • Synchronize data from an IDB logical table to a DataHub instance
    • Synchronize data from a MySQL database to a DataHub instance
    • Synchronize data from an Oracle database to a DataHub instance
    • Manage data synchronization tasks
      • View details of a data synchronization task
      • Change the name of a data synchronization task
      • View and modify synchronization objects
      • Use tags to Manage data synchronization tasks
      • Perform batch operations on data synchronization tasks
      • Download and import the settings of synchronization objects
      • View and modify the parameter configurations of a data synchronization task
      • Start and pause a data synchronization task
      • End and delete a data synchronization task
  • Create and manage data sources
    • Create data sources
      • Create an OceanBase data source
        • Create a physical OceanBase data source
        • Create an ODP data source
        • Create an IDB data source
        • Create a public cloud OceanBase data source
        • Create a standalone OceanBase data source
      • Create a MySQL data source
      • Create an Oracle data source
      • Create a TiDB data source
      • Create a Kafka data source
      • Create a RocketMQ data source
      • Create a DataHub data source
      • Create a DB2 LUW data source
      • Create a PostgreSQL data source
      • Create a PolarDB-X 1.0 data source
    • Manage data sources
      • View data source information
      • Copy a data source
      • Edit a data source
      • Delete a data source
    • Create a database user
    • User privileges
    • Enable binlogs for the MySQL database
    • Minimum privileges required when an Oracle database serves as the source
  • OPS & Monitoring
    • O&M overview
    • Go to the overview page
    • Server
      • View server information
      • Update the quota
      • View server logs
    • Components
      • Store
        • Create a store
        • View details of a store
        • Update the configurations of a store
        • Start and pause a store
        • Delete a store
      • Incr-Sync
        • View details of an Incr-Sync component
        • Start and pause an Incr-Sync component
        • Migrate an Incr-Sync component
        • Update the configurations of an Incr-Sync component
        • Batch O&M
        • Delete an Incr-Sync component
      • Full-Import
        • View details of a Full-Import component
        • Pause a Full-Import component
        • Rerun and resume a Full-Import component
        • Update the configurations of a Full-Import component
        • Delete a Full-Import component
      • Full-Verification
        • View details of a Full-Verification component
        • Pause a Full-Verification component
        • Rerun and resume a Full-Verification component
        • Update the configurations of a Full-Verification component
        • Delete a Full-Verification component
    • O&M Task
      • View O&M tasks
      • Skip a task or subtask
      • Retry a task or subtask
    • Parameter Template
      • Overview
      • Task Template
        • Create a task template
        • View and edit task templates
        • Copy and export a task template
        • Delete a task template
      • Component Template
        • Create a component template
        • View and edit component templates
        • Copy and export a component template
        • Delete a component template
      • Component parameters
        • Store parameters
        • Incr-Sync parameters
        • Full-Import Parameters
        • Full-Verification parameters
        • CM parameters
        • Supervisor parameters
  • System management
    • Permission Management
      • Overview
      • Manage users
      • Manage departments
    • Alert center
      • View task alerts
      • View system alerts
      • Manage alert settings
    • Associate with OCP
    • System parameters
      • Modify system parameters
      • Modify HA configurations
      • oblogproxy parameters
    • Manage access keys
    • Operation audit
  • Troubleshooting Guide
    • Manage OMS services
    • OMS logs
    • Component O&M
      • O&M operations for the Supervisor component
      • CLI-based O&M for the Connector component
      • O&M operations for the Store component
    • Component tuning
      • Incr-Sync/Full-Import tuning
      • Oracle store tuning
    • Set throttling
    • Store performance diagnostics
  • Reference Guide
    • Features
      • Configure DDL/DML synchronization
      • Supported DDL operations for synchronization
      • Rename a migration or synchronization object
      • Use SQL conditions to filter data
      • Set an incremental synchronization timestamp
      • Configure matching rules
      • Wildcard patterns supported for matching rules
      • Hidden column mechanisms
      • Instructions on schema migration
      • Create and update a heartbeat table
      • Change the topic
      • Column filtering
      • Data formats
    • API Reference
      • Overview
      • CreateProject
      • StartProject
      • StopProject
      • ResumeProject
      • ReleaseProject
      • DeleteProject
      • ListProjects
      • DescribeProject
      • DescribeProjectSteps
      • DescribeProjectStepMetric
      • DescribeProjectProgress
      • DescribeProjectComponents
      • ListProjectFullVerifyResult
      • StartProjectsByLabel
      • StopProjectsByLabel
      • CreateMysqlDataSource
      • CreateOceanBaseDataSource
      • CreateOceanBaseODPDataSource
      • CreatePolarDBDataSource
      • ListDataSource
      • CreateLabel
      • ListAllLabels
      • DeleteDataSource
      • CreateProjectModifyRecords
      • ListProjectModifyRecords
      • StopProjectModifyRecords
      • RetryProjectModifyRecords
      • CancelProjectModifyRecord
      • SubmitPreCheck
      • GetPreCheckResult
      • UpdateProjectConfig
    • Alert Reference
      • oms_host_down
      • oms_host_down_migrate_resource
      • oms_host_threshold
      • oms_migration_failed
      • oms_migration_delay
      • oms_sync_failed
      • oms_sync_status_inconsistent
      • oms_sync_delay
    • SSO
      • Integrate the OIDC protocol to OMS to implement SSO
      • Integrate the SAML 2.0 protocol to OMS to implement SSO
    • OMS error codes
    • SQL statements for querying database objects
    • Create a trigger
    • Change the log level for a PostgreSQL instance
    • Online DDL tools
    • Supplemental logging in Oracle Database
  • Upgrade Guide
    • Overview
    • Upgrade OMS in single-node deployment mode
    • Upgrade OMS in multi-node deployment mode
    • FAQ
  • FAQ
    • General O&M
      • How do I modify the resource quotas of an OMS container?
      • How do I troubleshoot the OMS server down issue?
      • Deploy InfluxDB for OMS
      • Increase the disk space of the OMS host
    • Task diagnostics
      • How do I troubleshoot common problems with Oracle Store?
      • How do I perform performance tuning for Oracle Store?
      • What do I do when Oracle Store reports an error at the isUpdatePK stack?
      • What do I do when a store does not have data of the timestamp requested by the downstream?
      • What do I do when OceanBase Store failed to access an OceanBase cluster through RPC?
      • How do I use LogMiner to pull data from an Oracle database?
    • OPS & monitoring
      • What are the alert rules?
    • Data synchronization
      • FAQ about synchronization to a message queue
        • What are the strategies for ensuring the message order in incremental data synchronization to Kafka
    • Data migration
      • User privileges
        • What privileges do I need to grant to a user during data migration to or from an Oracle database?
      • Full migration
        • How do I query the ID of a checker?
        • How do I query log files of the Checker component of OMS?
        • How do I query the verification result files of the Checker component of OMS?
        • What do I do if the destination table does not exist?
        • What can I do when the full migration failed due to LOB fields?
        • What do I do if garbled characters cannot be written into OceanBase Database V3.1.2?
      • Incremental synchronization
        • How do I skip DDL statements?
        • How do I migrate an Oracle database object whose name exceeds 30 bytes in length?
        • How do I update whitelists and blacklists?
        • What are the application scope and limits of ETL?
    • Installation and deployment
      • How do I upgrade Store?
  • Release Note
    • V4.2
      • OMS V4.2.5
      • OMS V4.2.4
      • OMS V4.2.3
      • OMS V4.2.2
      • OMS V4.2.1
      • OMS V4.2.0
    • V4.1
      • OMS V4.1.0
    • V4.0
      • OMS V4.0.2
      • OMS V4.0.1
    • V3.4
      • OMS V3.4.0
    • V3.3
      • OMS V3.3.1
      • OMS V3.3.0
    • V3.2
      • OMS V3.2.2
      • OMS V3.2.1
    • V3.1
      • OMS V3.1.0
    • V2.1
      • OMS V2.1.2
      • OMS V2.1.0

Download PDF

Document Feedback
  1. Documentation Center
  2. OceanBase Migration Service
  3. V4.2.5

Scale out

Last Updated:2026-09-04 08:13:48

Scale out from a single node to multiple nodes
The initial node is configured with a VIP as the cm_url
The initial node is configured with a physical machine IP address as the cm_url
Scale out from a single region to multiple regions
Scale out in the separated deployment mode
Scenario example
Procedure

This topic describes how to scale out a single region and a single node, and how to scale out in the separated deployment mode.

Notice

The scale-out nodes must be of the same version as the existing nodes.

Scale out from a single node to multiple nodes

You can scale out from a single node to multiple nodes in the following two scenarios:

  • The initial node is configured with a VIP as the cm_url.

  • The initial node is configured with a physical machine IP address as the cm_url.

The initial node is configured with a VIP as the cm_url

The specific steps are the same as those for the initial single-node deployment. For more information, see Single-node deployment.

Notice

When you start the container, set the value of -e OMS_HOST_IP to the IP address of the current host.

Assume that the cm_nodes value of the initial node is xxx.xxx.xxx.xx1 and that of the added node is xxx.xxx.xxx.xx2. The config.yaml file is configured as follows.

This is to synchronize the initial node's config.yaml to the latest version; scale-out nodes can be deployed directly according to the config.yaml.

# RM and CM Meta Database information
oms_cm_meta_host: ${oms_cm_meta_host}
oms_cm_meta_password: ${oms_cm_meta_password}
oms_cm_meta_port: ${oms_cm_meta_port}
oms_cm_meta_user: ${oms_cm_meta_user}
oms_rm_meta_host: ${oms_rm_meta_host}
oms_rm_meta_password: ${oms_rm_meta_password}
oms_rm_meta_port: ${oms_rm_meta_port}
oms_rm_meta_user: ${oms_rm_meta_user}

# When you scale out a single node to multiple nodes, please keep the following three databases consistent with the initial node's configuration.
drc_rm_db: ${drc_rm_db}
drc_cm_db: ${drc_cm_db}
drc_cm_heartbeat_db: ${drc_cm_heartbeat_db}

# OMS cluster configuration
cm_url: http://VIP:8088
cm_location: ${cm_location}
cm_region: ${cm_region}
cm_region_cn: ${cm_region_cn}
cm_nodes:
 - xxx.xxx.xxx.xx1
 - xxx.xxx.xxx.xx2

# Time series database configuration
# The default value is false. If you want to enable the metrics reporting feature, set the value to true and remove the comment symbol from the beginning of the parameter.
# tsdb_enabled: false 
# If tsdb_enabled is set to true, please remove the comment symbol from the beginning of the following parameters and fill in the values as needed.
# tsdb_service: 'INFLUXDB'
# tsdb_url: '${tsdb_url}'
# tsdb_username: ${tsdb_user}
# tsdb_password: ${tsdb_password}

The initial node is configured with a physical machine IP address as the cm_url

In this scenario, you need to correct the database information. The procedure is as follows.

Note

The tables to be corrected are location_cm, host, and resource_group in the drc_cm_db database, and cluster_info in the drc_rm_db database.

  1. Configure a VIP, SLB, or domain name and bind all the physical machine IP addresses in the current region.

    For example, the VIP is bound to the IP addresses xxx.xxx.xxx.xx1 and xxx.xxx.xxx.xx2.

  2. Stop the processes in the original container. Take oms_330 as an example.

    sudo docker exec -it oms_330 bash  
    supervisorctl stop all
    
  3. Take the drc_rm_db database and cluster_info table as an example. Log in to the database and perform the following operations.

    1. Query data in the cluster_info table for backup.

      select * from cluster_info;
      
    2. Delete data in the cluster_info table.

      delete from cluster_info;
      
  4. Modify the configuration file in the oms_330 container.

    # /home/admin/conf/config.yaml is a fixed directory in the Docker container.
    sudo vi /home/admin/conf/config.yaml
    
    # Modify the cm_url and add cm_nodes:
    cm_url: http://VIP:8088
    cm_nodes:
     - xxx.xxx.xxx.xx1
     - xxx.xxx.xxx.xx2
    
  5. Perform the initialization again.

    sudo sh /root/docker_init.sh
    

    After the initialization is completed, check whether the cm_url field in the cluster_info table of the database is correctly set to the VIP address.

  6. Copy the configuration file and start the OMS container on another host.

    Notice

    When you start the container, set the value of -e OMS_HOST_IP to the IP address of the current host.

    OMS_HOST_IP=xxx
    CONTAINER_NAME=oms_xxx
    IMAGE_TAG=feature_x.x.x
    
    docker run -dit --net host \
    -v /data/config.yaml:/home/admin/conf/config.yaml \
    -v /data/oms/oms_logs:/home/admin/logs \
    -v /data/oms/oms_store:/home/ds/store \
    -v /data/oms/oms_run:/home/ds/run \
    # If you mount the HTTPS certificate in the OMS container, set the following two parameters.
    -v /data/oms/https_crt:/etc/pki/nginx/oms_server.crt 
    -v /data/oms/https_key:/etc/pki/nginx/oms_server.key
    -e OMS_HOST_IP=${OMS_HOST_IP} \
    --privileged=true \
    --pids-limit -1 \
    --ulimit nproc=65535:65535 \
    --name ${CONTAINER_NAME} \
    work.oceanbase-dev.com/obartifact-store/oms:${IMAGE_TAG}
    

Scale out from a single region to multiple regions

The procedure for scaling out a single-region single-node deployment to a multi-region single-node deployment is the same as the procedure for deploying OMS in a single-node mode, except that the drc_cm_heartbeat_db parameter in the config.yaml file must be different from the database used by the original OMS host. You also need to modify the cm_url, cm_location, cm_region, cm_region_cn, and cm_nodes parameters to the configurations of the new region.

  1. Log in to the OMS deployment server.

  2. (Optional) Deploy a time-series database.

    If you want OMS to collect and display monitoring data, deploy a time-series database. If you do not want OMS to display monitoring data, skip this step. For more information, see Deploy a time-series database.

  3. Prepare the configuration file.

    Edit the OMS startup configuration file in an appropriate directory. For example, you can create the configuration file as /root/config.yaml.

    Replace the required parameters with the actual values of the target environment. Take the expanded host xxx.xxx.xxx.xx1 in the Jiangsu region as an example, the config.yaml file is configured as follows.

    Notice

    In the config.yaml file, the `Key: Value` format has a space following the colon.

    # RM and CM meta database information
    oms_cm_meta_host: ${oms_cm_meta_host}
    oms_cm_meta_password: ${oms_cm_meta_password}
    oms_cm_meta_port: ${oms_cm_meta_port}
    oms_cm_meta_user: ${oms_cm_meta_user}
    oms_rm_meta_host: ${oms_rm_meta_host}
    oms_rm_meta_password: ${oms_rm_meta_password}
    oms_rm_meta_port: ${oms_rm_meta_port}
    oms_rm_meta_user: ${oms_rm_meta_user}
    
    # drc_rm_db, drc_cm_db, and the initial node are configured in the same way.
    drc_rm_db: ${drc_rm_db}
    drc_cm_db: ${drc_cm_db}
    # drc_cm_heartbeat_db must be given a new name to distinguish it from the heartbeat_db database of the initial node.
    drc_cm_heartbeat_db: ${drc_cm_heartbeat_db}
    
    # OMS cluster configuration
    # The following parameters are configured in the expanded region.
    cm_url: http://xxx.xxx.xxx.xx1:8088
    cm_location: ${cm_location}
    cm_region: cn-jiangsu
    cm_region_cn: Jiangsu
    cm_nodes:
     - xxx.xxx.xxx.xx1
    
    # Time-series database configuration
    # The default value is false. If you want to enable the metrics reporting feature, set this parameter to true and remove the comment mark from the beginning of the line.
    # tsdb_enabled: false 
    # If tsdb_enabled is set to true, remove the comment mark from the beginning of the following parameters and set them to appropriate values.
    # tsdb_service: 'INFLUXDB'
    # tsdb_url: '${tsdb_url}'
    # tsdb_username: ${tsdb_user}
    # tsdb_password: ${tsdb_password}
    
    Parameter
    Description
    Required
    oms_cm_meta_host The IP address of the meta database of the CM. At present, only OceanBase Database in MySQL compatible mode is supported, and the version must be V2.0 or later. Yes
    oms_cm_meta_password The password of the meta database of the CM. Yes
    oms_cm_meta_port The port of the meta database of the CM. Yes
    oms_cm_meta_user The username of the meta database of the CM. Yes
    oms_rm_meta_host The IP address of the meta database of the RM. At present, only OceanBase Database in MySQL compatible mode is supported, and the version must be V2.0 or later. Yes
    oms_rm_meta_password The password of the meta database of the RM. Yes
    oms_rm_meta_port The port of the meta database of the RM. Yes
    oms_rm_meta_user The username of the meta database of the RM. Yes
    drc_rm_db The name of the database of the console, which must be the same as the initial node. Yes
    drc_cm_db The name of the meta database of the cluster management service, which must be the same as the initial node. Yes
    drc_cm_heartbeat_db The name of the heartbeat database of the cluster management service. Please use a new name to distinguish it from the heartbeat_db database of the initial node. Yes
    cm_url The URL of the cluster management service of OMS. For example, http://xxx.xxx.xxx.xx1:8088.
    Notice:
    In single-node deployment, the value is usually the IP address of the current OMS host.
    We recommend that you do not use http://127.0.0.1:8088, because this address cannot be expanded to multi-region multi-node mode.
    Yes
    cm_location The region code, which ranges from 0 to 127. Each region is represented by a number, which you can choose. Yes
    cm_region The region, for example, cn-jiangsu.
    Notice:
    If you are using the disaster recovery and dual-active feature with Alibaba Cloud MSHA, use the region information provided by Alibaba Cloud as the value of cm_region.
    No
    cm_region_cn The Chinese name of the region. For example, Jiangsu. No
    cm_nodes The IP address list of the cluster management service of OMS. In this example, xxx.xxx.xxx.xx1 is used. Yes
    tsdb_enabled Specifies whether to enable the metrics reporting feature (monitoring capability). The value can be true or false. No. The default value is false.
    tsdb_service Specifies the type of the time-series database. The value can be INFLUXDB or CERESDB. No. The default value is INFLUXDB.
    tsdb_url The IP address of the host where InfluxDB is deployed. If tsdb_enabled is set to true, set this parameter to the actual value. No
    tsdb_username The username of the time-series database. If tsdb_enabled is set to true, set this parameter to the actual value. After you deploy the time-series database, you must manually create a time-series database user and specify the username and password. No
    tsdb_password The password of the time-series database. If tsdb_enabled is set to true, set this parameter to the actual value. No
  4. Load the OMS installation package to the local image repository of the Docker container.

    docker load -i <OMS installation package>
    
  5. Run the following command to start the container.

    OMS can be accessed through the HTTP protocol or HTTPS protocol. If you want to securely access OMS, you can provide an HTTPS certificate and mount it to the specified directory in the container. If you want to access OMS through the HTTP protocol, no configuration is required.

    OMS_HOST_IP=xxx
    CONTAINER_NAME=oms_xxx
    IMAGE_TAG=feature_x.x.x
    
    docker run -dit --net host \
    -v /data/config.yaml:/home/admin/conf/config.yaml \
    -v /data/oms/oms_logs:/home/admin/logs \
    -v /data/oms/oms_store:/home/ds/store \
    -v /data/oms/oms_run:/home/ds/run \
    # If you have mounted the HTTPS certificate to the OMS container, you need to set the following two parameters.
    -v /data/oms/https_crt:/etc/pki/nginx/oms_server.crt 
    -v /data/oms/https_key:/etc/pki/nginx/oms_server.key
    -e OMS_HOST_IP=${OMS_HOST_IP} \
    --privileged=true \
    --pids-limit -1 \
    --ulimit nproc=65535:65535 \
    --name ${CONTAINER_NAME} \
    work.oceanbase-dev.com/obartifact-store/oms:${IMAGE_TAG}
    
    Parameter
    Description
    OMS_HOST_IP The IP address of the host.
    CONTAINER_NAME The name of the created container. The format is oms_xxx. Specify xxx based on the specific version. For example, if you want to use OMS V3.1.0, specify oms_310.
    IMAGE_TAG After you load the OMS installation package to Docker, run the docker images command to obtain the [IMAGE ID] or [REPOSITORY:TAG] of the loaded image, which is the unique identifier of the loaded image, namely, <OMS_IMAGE>.
    /data/oms/oms_logs
    /data/oms/oms_store
    /data/oms/oms_run
    /data/oms/oms_logs, /data/oms/oms_store, and /data/oms/oms_run can be replaced with the created mount directories on your OMS deployment server. These directories store the log files generated during OMS operation, the files generated by the log pull component and the synchronization component, and are persisted locally.
    Notice:
    The mount directory must remain unchanged when you redeploy or upgrade OMS.
    /home/admin/logs
    /home/ds/store
    /home/ds/run
    /home/admin/logs, /home/ds/store, and /home/ds/run are fixed directories in the container and cannot be modified.
    /data/oms/https_crt (optional)
    /data/oms/https_key (optional)
    The HTTPS certificate mount directory in the OMS container. You can replace the directory based on your actual situation. If you have mounted the HTTPS certificate, the Nginx service in the OMS container will run in HTTPS mode. You must access OMS in HTTPS mode to use the OMS console service.
    privileged Grants the container extended privileges.
    pids-limit Specifies the process limit for the container. -1 indicates no limit.
    ulimit nproc Specifies the maximum number of user processes.
  6. Go to the new container.

    docker exec -it ${CONTAINER_NAME} bash  
    

    Notice

    CONTAINER_NAME is the name of the created container. The format is oms_xxx. Specify xxx based on the specific version. For example, if you want to use OMS V3.1.0, specify oms_310.

  7. Run the metadata initialization command.

    sh /root/docker_init.sh
    

    After the command is executed, the initialization process proceeds as follows:

    1. Initialize data in the meta database.

    2. Generate configuration files for each component.

    3. Restart all components.

    4. Initialize OMS resource labels and resource groups.

    When you run docker_init.sh, pay attention to the command line output. After the initialization is completed, the system will prompt you [End] All initialization steps completed.

    Notice

    The initialization process takes 2 to 4 minutes. Please wait patiently and do not interrupt the process.

Scale out in the separated deployment mode

Scenario example

In the Hangzhou region, there is only one component node. You need to add another component node in the Hangzhou region.

Procedure

  1. Modify the config.yaml file of the existing management node.

    1. Go to the management node.

      sudo docker exec -it <oms_console> bash
      
    2. Run the vim /home/admin/conf/config.yaml command.

    3. Add the IP address of the new component node to cm_nodes and copy the complete config.yaml file for new the component node.

  2. Deploy the component node by using the docker run command.

    1. Prepare the directories and files required by the OMS container and the config.yaml file.

      sudo mkdir -m 777 /home/lxxxx.lxxxx/lxxxx_oms_run_022103 && cd /home/lxxxx.lxxxx/lxxxx_oms_run_022103 && mkdir -m 777 oms_logs oms_run oms_store && sudo vim /home/lxxxx.lxxxx/lxxxx_oms_run_022103/config.yaml
      
      sudo chmod 777 /home/lxxxx.lxxxx/lxxxx_oms_run_022103/config.yaml
      
    2. Copy the configuration file and start the OMS container on another host.

      sudo docker run -dit --net host \
      -v /home/lxxxx.lxxxx/lxxxx_oms_run_022103/config.yaml:/home/admin/conf/config.yaml \
      -v /home/lxxxx.lxxxx/lxxxx_oms_run_022103/oms_logs:/home/admin/logs \
      -v /home/lxxxx.lxxxx/lxxxx_oms_run_022103/oms_store:/home/ds/store \
      -v /home/lxxxx.lxxxx/lxxxx_oms_run_022103/oms_run:/home/ds/run \
      -e OMS_HOST_IP=xxx.xxx.xxx.1 \
      --privileged=true \
      --pids-limit -1 \
      --ulimit nproc=65535:65535 \
      --name oms_component \
      188a066a27ab
      
  3. Run the initialization command.

    sh docker_init.sh
    
  4. Run the following command on the management node.

    python -m omsflow.scripts.units.oms_cluster_manager add_resource
    

Previous topic

Deploy OMS on multiple nodes in multiple regions
Last

Next topic

Check the deployment
Next
on this page
Scale out from a single node to multiple nodes
The initial node is configured with a VIP as the cm_url
The initial node is configured with a physical machine IP address as the cm_url
Scale out from a single region to multiple regions
Scale out in the separated deployment mode
Scenario example
Procedure