OceanBase logo

OceanBase

A unified distributed database ready for your transactional, analytical, and AI workloads.

DEPLOY YOUR WAY

OceanBase Cloud

The best way to deploy and scale OceanBase

OceanBase Enterprise

Run and manage OceanBase on your infra

TRY OPEN SOURCE

OceanBase Community Edition

The free, open-source distributed database

OceanBase seekdb

Open source AI native search database

Customer Stories

Real-world success stories from enterprises across diverse industries.

View All
BY USE CASES

Mission-Critical Transactions

Global & Multicloud Application

Elastic Scaling for Peak Traffic

Real-time Analytics

Active Geo-redundancy

Database Consolidation

Resources

Comprehensive knowledge hub for OceanBase.

Blog

Live Demos

Training & Certification

Documentation

Official technical guides, tutorials, API references, and manuals for all OceanBase products.

View All
PRODUCTS

OceanBase Cloud

OceanBase Database

Tools

Connectors and Middleware

QUICK START

OceanBase Cloud

OceanBase Database

BEST PRACTICES

Practical guides for utilizing OceanBase more effectively and conveniently

Company

Learn more about OceanBase – our company, partnerships, and trust and security initiatives.

About OceanBase

Partner

Trust Center

Contact Us

International - English
中国站 - 简体中文
日本 - 日本語
Sign In
Start on Cloud

A unified distributed database ready for your transactional, analytical, and AI workloads.

DEPLOY YOUR WAY

OceanBase Cloud

The best way to deploy and scale OceanBase

OceanBase Enterprise

Run and manage OceanBase on your infra

TRY OPEN SOURCE

OceanBase Community Edition

The free, open-source distributed database

OceanBase seekdb

Open source AI native search database

Customer Stories

Real-world success stories from enterprises across diverse industries.

View All
BY USE CASES

Mission-Critical Transactions

Global & Multicloud Application

Elastic Scaling for Peak Traffic

Real-time Analytics

Active Geo-redundancy

Database Consolidation

Comprehensive knowledge hub for OceanBase.

Blog

Live Demos

Training & Certification

Documentation

Official technical guides, tutorials, API references, and manuals for all OceanBase products.

View All
PRODUCTS
OceanBase CloudOceanBase Database
ToolsConnectors and Middleware
QUICK START
OceanBase CloudOceanBase Database
BEST PRACTICES

Practical guides for utilizing OceanBase more effectively and conveniently

Learn more about OceanBase – our company, partnerships, and trust and security initiatives.

About OceanBase

Partner

Trust Center

Contact Us

Start on Cloud
编组
All Products
    • Databases
    • iconOceanBase Database
    • iconOceanBase Cloud
    • iconOceanBase Tugraph
    • iconInteractive Tutorials
    • iconOceanBase Best Practices
    • Tools
    • iconOceanBase Cloud Platform
    • iconOceanBase Migration Service
    • iconOceanBase Developer Center
    • iconOceanBase Migration Assessment
    • iconOceanBase Admin Tool
    • iconOceanBase Loader and Dumper
    • iconOceanBase Deployer
    • iconKubernetes operator for OceanBase
    • iconOceanBase Diagnostic Tool
    • iconOceanBase Binlog Service
    • Connectors and Middleware
    • iconOceanBase Database Proxy
    • iconEmbedded SQL in C for OceanBase
    • iconOceanBase Call Interface
    • iconOceanBase Connector/C
    • iconOceanBase Connector/J
    • iconOceanBase Connector/ODBC
    • iconOceanBase Connector/NET
icon

OceanBase Migration Service

V4.2.10Community Edition

  • OMS Documentation
  • What's New
  • OMS Community Edition Introduction
    • What is OMS Community Edition?
    • Terms
    • OMS Community Edition HA
    • Architecture
      • Overview
      • Hierarchical functional system
      • Basic components
    • Limitations
  • Quick Start
    • Data migration process
    • Data synchronization process
  • Deploy OMS Community Edition
    • Deployment modes
    • System and network requirements
    • Memory and disk requirements
    • Prepare the environment
    • Deploy OMS Community Edition on a single node
    • Deploy OMS Community Edition on multiple nodes in a single region
    • Deploy OMS Community Edition on multiple nodes in multiple regions
    • Integrate the OIDC protocol into OMS Community Edition to implement SSO
    • Scale out deployment
    • Check the deployment
    • Deploy a time-series database (Optional)
  • OMS Community Edition console
    • Log in to the console of OMS Community Edition
    • Overview
    • User center
      • Configure user information
      • Change your logon password
      • Log off
  • Data migration
    • Overview
    • Migrate data from a MySQL database to OceanBase Database Community Edition
    • Migrate data from HBase to OBKV
    • Migrate incremental data from OBKV to HBase
    • Migrate data from a Milvus database to OceanBase Database Community Edition
    • Migrate data from a Redis database to an OBKV-Redis database
    • Migrate data between tenants of OceanBase Database Community Edition
    • Migrate data in active-active disaster recovery scenarios
    • Migrate data from a TiDB database to OceanBase Database Community Edition
    • Migrate data from a PostgreSQL database to OceanBase Database Community Edition
    • Migrate data from Hive to OceanBase Database Community Edition
    • Migrate data from an ElasticSearch database to OceanBase Database Community Edition
    • Migrate data from OceanBase Database Community Edition to an ElasticSearch database
    • Migrate data from a MongoDB database to OceanBase Database Community Edition
    • Migrate data from a Qdrant database to OceanBase Database Community Edition
    • Manage data migration tasks
      • View details of a data migration task
      • Change the name of a data migration task
      • View and modify migration objects
      • Manage computing platforms
      • Use tags to manage data migration tasks
      • Perform batch operations on data migration tasks
      • Download and import settings of migration objects
      • Start and pause a data migration task
      • Release and delete a data migration task
    • Features
      • DML filtering
      • DDL synchronization
      • Configure matching rules for migration objects
      • Wildcard rules
      • Rename a database table
      • Use SQL conditions to filter data
      • Create and update a heartbeat table
      • Schema migration mechanisms
      • Schema migration operations
      • Set an incremental synchronization timestamp
      • Direct load
    • Supported DDL operations in incremental migration and limits
      • DDL synchronization from MySQL database to OceanBase Community Edition
        • Overview of DDL synchronization from a MySQL database to a MySQL-compatible tenant of OceanBase Database
        • 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 MySQL database and OceanBase Community Edition
          • 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
      • Supported DDL operations in incremental migration between MySQL-compatible tenants of OceanBase Database
  • Data synchronization
    • Data synchronization overview
    • Create a task to synchronize data from OceanBase Database Community Edition to a Kafka instance
    • Create a task to synchronize data from OceanBase Database Community Edition to a RocketMQ 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
      • Start and pause a data synchronization task
      • Release and delete a data synchronization task
    • Features
      • DML filtering
      • DDL synchronization
      • Configure matching rules for synchronization objects
      • Rename a topic
      • Use SQL conditions to filter data
      • Column filtering
      • Data format description
  • Create and manage data sources
    • Create data sources
      • Create an OceanBase-CE data source
      • Create a MySQL data source
      • Create a TiDB data source
      • Create a Kafka data source
      • Create a RocketMQ data source
      • Create a PostgreSQL data source
      • Create an HBase data source
      • Create a Qdrant data source
      • Create a Milvus data source
      • Create a Redis data source
      • Create a Hive data source
      • Create an ElasticSearch data source
      • Create a MongoDB data source
    • Manage data sources
      • View data source information
      • Copy a data source
      • Edit a data source
      • Delete a data source
      • Cache system views
    • Create a database user
    • User privileges
    • Enable binlogs for the MySQL database
  • 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 component
        • View details of a Store component
        • Update the configurations of a Store component
        • Start and pause a Store component
        • Delete a Store component
      • 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
      • Component parameters
        • Coordinator
        • Condition
        • Source Plugin
          • Overview
          • StoreSource
          • DataFlowSource
          • LogProxySource
          • KafkaSource (TiDB)
          • HBaseSource
          • HiveSource
          • ElasticSearchSource
          • MongoDBSource
        • Sink Plugin
          • Overview
          • JDBC-Sink
          • KafkaSink
          • DatahubSink
          • RocketMQSink
          • HBaseSink
          • HiveSink
        • Store parameters
          • Parameters of a MySQL store
          • Parameters of an OceanBase store
        • Parameters of the CM component
        • Parameters of the Supervisor component
        • Parameters of the Full-Verification component
    • O&M Task
      • View O&M tasks
      • Skip a task or subtask
      • Retry a task or subtask
  • 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
  • OMS Community Edition O&M
    • 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 or Full-Import tuning
    • Set throttling
  • Reference Guide
    • API Reference
      • Overview
      • CreateProject
      • StartProject
      • StopProject
      • ResumeProject
      • ReleaseProject
      • DeleteProject
      • ListProjects
      • DescribeProject
      • DescribeProjectSteps
      • DescribeProjectStepMetric
      • DescribeProjectProgress
      • DescribeProjectComponents
      • ListProjectFullVerifyResult
      • StartProjectsByLabel
      • StopProjectsByLabel
      • CreateMysqlDataSource
      • CreateMySQLMasterSlaveDataSource
      • CreateOceanBaseDataSource
      • ListDataSource
      • CreateLabel
      • ListAllLabels
      • ListFullVerifyInconsistenciesResult
      • ListFullVerifyCorrectionsResult
      • UpdateStore
      • UpdateFullImport
      • UpdateIncrSync
      • UpdateFullVerification
    • OMS error codes
    • 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
    • Telemetry parameters
  • Upgrade Guide
    • Overview
    • Upgrade in single-node deployment mode
    • Upgrade in multi-node deployment mode
    • Upgrade the CDC library
    • FAQ
  • FAQ
    • General O&M
      • How do I modify the resource quotas of an OMS container?
      • Clear files in the Store component
      • How do I troubleshoot the OMS server down issue?
      • Deploy InfluxDB for OMS
      • Increase the disk space of the OMS host
    • Task diagnostics
      • 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?
    • 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
      • Performance troubleshooting and tuning for data synchronization from OceanBase Community Edition to Kafka
    • Data migration
      • 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?
        • Garbled characters in the Latin1 character set
        • What do I do if the target 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 update whitelists and blacklists?
        • What are the application scope and limits of ETL?
    • Logon and password
      • What do I do if my logon password is locked?
    • Installation and deployment
      • How do I upgrade Store?
      • What do I do when the "Failed to fetch" error is reported?
      • Change port numbers for components
      • Switching between the primary and standby OMS MetaDBs

Download PDF

OMS Documentation What's New What is OMS Community Edition? Terms OMS Community Edition HA Overview Hierarchical functional system Basic components Limitations Data migration process Data synchronization process Deployment modes System and network requirements Memory and disk requirements Prepare the environment Deploy OMS Community Edition on a single node Deploy OMS Community Edition on multiple nodes in a single region Deploy OMS Community Edition on multiple nodes in multiple regions Integrate the OIDC protocol into OMS Community Edition to implement SSO Scale out deployment Check the deployment Deploy a time-series database (Optional) Log in to the console of OMS Community Edition Overview Configure user information Change your logon password Log off Overview Migrate data from a MySQL database to OceanBase Database Community Edition Migrate data from HBase to OBKV Migrate incremental data from OBKV to HBase Migrate data from a Milvus database to OceanBase Database Community Edition Migrate data from a Redis database to an OBKV-Redis database Migrate data between tenants of OceanBase Database Community Edition Migrate data in active-active disaster recovery scenarios Migrate data from a TiDB database to OceanBase Database Community Edition Migrate data from a PostgreSQL database to OceanBase Database Community Edition Migrate data from Hive to OceanBase Database Community Edition Migrate data from an ElasticSearch database to OceanBase Database Community Edition Migrate data from OceanBase Database Community Edition to an ElasticSearch database Migrate data from a MongoDB database to OceanBase Database Community Edition Migrate data from a Qdrant database to OceanBase Database Community Edition View details of a data migration task Change the name of a data migration task View and modify migration objects Manage computing platforms Use tags to manage data migration tasks Perform batch operations on data migration tasks Download and import settings of migration objects Start and pause a data migration task Release and delete a data migration task DML filtering DDL synchronization Configure matching rules for migration objects Wildcard rules Rename a database table Use SQL conditions to filter data Create and update a heartbeat table Schema migration mechanisms Schema migration operations Set an incremental synchronization timestamp Direct load Supported DDL operations in incremental migration between MySQL-compatible tenants of OceanBase Database Data synchronization overview Create a task to synchronize data from OceanBase Database Community Edition to a Kafka instance Create a task to synchronize data from OceanBase Database Community Edition to a RocketMQ instance 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 Start and pause a data synchronization task Release and delete a data synchronization task DML filtering DDL synchronization Configure matching rules for synchronization objects Rename a topic Use SQL conditions to filter data Column filtering Data format description Create an OceanBase-CE data source Create a MySQL data source Create a TiDB data source Create a Kafka data source Create a RocketMQ data source Create a PostgreSQL data source Create an HBase data source Create a Qdrant data source Create a Milvus data source Create a Redis data source Create a Hive data source Create an ElasticSearch data source Create a MongoDB data source View data source information Copy a data source Edit a data source Delete a data source Cache system views Create a database user
OceanBase logo

The Unified Distributed Database for the AI Era.

Follow Us
Products
OceanBase CloudOceanBase EnterpriseOceanBase Community EditionOceanBase seekdb
Resources
DocsBlogLive DemosTraining & Certification
Company
About OceanBaseTrust CenterLegalPartnerContact Us
Follow Us

© OceanBase 2026. All rights reserved

Cloud Service AgreementPrivacy PolicySecurity
Contact Us
Document Feedback
  1. Documentation Center
  2. OceanBase Migration Service
  3. V4.2.10
iconOceanBase Migration Service
V 4.2.10Community Edition
Enterprise Edition
  • V 4.3.2
  • V 4.3.1
  • V 4.3.0
  • V 4.2.5
  • V 4.2.4
  • V 4.2.3
  • V 4.0.2
  • V 3.4.0
Community Edition
  • V 4.2.13
  • V 4.2.12
  • V 4.2.11
  • V 4.2.10
  • V 4.2.9
  • V 4.2.8
  • V 4.2.7
  • V 4.2.6
  • V 4.2.5
  • V 4.2.4
  • V 4.2.3
  • V 4.2.1
  • V 4.2.0
  • V 4.0.0
  • V 3.3.1

Upgrade in multi-node deployment mode

Last Updated:2026-04-14 07:36:11  Updated
share
What is on this page
Upgrade procedure

folded

share

This topic describes how to upgrade OceanBase Migration Service (OMS) Community Edition in multi-node deployment mode to V4.2.10.

Notice

Only OMS Community Edition V4.2.0 to V4.2.9 can be upgraded to OMS Community Edition V4.2.10. OMS Community Edition earlier than V4.2.0 cannot be upgraded to V4.2.10.

Upgrade procedure

  1. If the high availability (HA) feature is enabled, disable it.

    1. Log in to the OMS Community Edition console.

    2. In the left-side navigation pane, click System Management > System Parameters.

    3. On the System Parameters page, find ha.config.

    4. Click the edit icon next to Value.

    5. In the Modify Value dialog box, set enable to false to disable the HA feature.

  2. Back up the database.

    1. Log in to IP1 and IP2, respectively, and stop the OMS Community Edition V4.2.9 containers on the two servers.

      sudo docker stop ${CONTAINER_NAME}
      

      Note

      CONTAINER_NAME is the name of the created container.

    2. Log in to the CM heartbeat database specified in the configuration file, delete some unnecessary records in the database to save backup time.

      # Log in to the CM heartbeat database specified in the configuration file.
      mysql -hxxx.xxx.xxx.1 -P<port> -u<username> -p<password> -Dcm_hb_429
      
      # Delete unnecessary records.
      # heatbeat_sequence is used to report heartbeats and obtain auto-increment IDs.
      delete from heatbeat_sequence where id < (select max(id) from heatbeat_sequence);
      
    3. Run the following command to manually back up the rm, cm, and cm_hb databases to SQL files and confirm that the sizes of the files are not 0.

      In multi-region scenarios, you need to back up the cm_hb databases in all regions. For example, if two regions are involved, you need to back up four databases: rm, cm, cm_hb1, and cm_hb2.

      mysqldump -hxxx.xxx.xxx.1 -P<port> -u<username> -p<password> --triggers=false rm_429 > /home/admin/rm_429.sql
      
      mysqldump -hxxx.xxx.xxx.1 -P<port> -u<username> -p<password> --triggers=false cm_429 > /home/admin/cm_429.sql
      
      mysqldump -hxxx.xxx.xxx.1 -P<port> -u<username> -p<password> --triggers=false cm_hb_429 > /home/admin/cm_hb_429.sql
      

      The following table describes the backup parameters.

      Parameter Description
      -h The host information to be exported.
      -P The port number for connecting to the database.
      -u The username for the connection.
      -p The password for connecting to the database.
      --triggers Specifies whether to export triggers. The default value is false (not to export).
      rm_429, cm_429, cm_hb_429 This parameter specifies to back up the rm, cm, and cm_hb databases to SQL files. The format is database name > path of SQL file.sql. You must replace the values with those in your actual environment.
  3. Load the OMS Community Edition installation package to the local image repository of the Docker container.

    docker load -i <OMS Community Edition installation package>
    
  4. Start the OMS Community Edition V4.2.10 container.

    OMS Community Edition supports accessing the OMS Community Edition console through HTTP and HTTPS protocols. If you want to securely access OMS Community Edition, you can configure an HTTPS self-signed certificate and mount it to the specified directory in the container. If you want to access OMS Community Edition through the HTTP protocol, you do not need to configure it.

    Notice

    • When you start the OMS Community Edition V4.2.10 container, the paths of the three mounted disks must be consistent with those before the upgrade.
      You can run the sudo docker inspect ${CONTAINER_NAME} | grep -A5 'Binds' command to view the paths of the disks mounted in the previous OMS Community Edition container.

    • OMS Community Edition V3.3.1 and later versions support the new parameter -e IS_UPGRADE=true. This parameter is only applicable in upgrade scenarios and must be added in such scenarios.

    • Replace work.oceanbase-dev.com/obartifact-store/oms:${IMAGE_TAG} with the name of the image actually imported by executing the docker load -i command.

    OMS_HOST_IP=xxx
    CONTAINER_NAME=oms_xxx
    IMAGE_TAG=feature_x.x.x-ce
    
    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 want to mount the HTTPS certificate in the OMS Community Edition 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} \
    -e IS_UPGRADE=true \
    --privileged=true \
    --pids-limit -1 \
    --ulimit nproc=65535:65535 \
    --name ${CONTAINER_NAME} \
    work.oceanbase-dev.com/obartifact-store/oms:${IMAGE_TAG}
    

    The following table describes the startup parameters.

    Parameter Description
    OMS_HOST_IP The IP address of the host.
    Notice:
    The OMS_HOST_IP values of each node are different.
    CONTAINER_NAME The name of the created container.
    IMAGE_TAG After you load the OMS Community Edition installation package to Docker, you can 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 mounted directories created on the OMS Community Edition deployment server. These directories store log files generated during OMS Community Edition operation, log pull component files, and synchronization component files. The files are persisted on the server.
    Notice:
    The mounted directories must be retained in the same location during subsequent re-deployments and upgrades.
    /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. The paths cannot be modified.
    /data/oms/https_crt (optional)
    /data/oms/https_key (optional)
    The mounted path of the HTTPS certificate in the OMS Community Edition container. If the HTTPS certificate is mounted, the OMS Community Edition container runs the Nginx service in HTTPS mode. You must access OMS Community Edition in HTTPS mode to use the OMS Community Edition console.
    IS_UPGRADE In upgrade scenarios, you must set IS_UPGRADE=true. Please note that IS_UPGRADE must be in uppercase.
    privileged Grants extended permissions to the container.
    pids-limit Specifies the number of processes in the container. -1 indicates no limit.
    ulimit nproc Specifies the maximum number of user processes.
  5. Enter the new container.

    docker exec -it ${CONTAINER_NAME} bash  
    

    Note

    CONTAINER_NAME is the name of the created container.

  6. In the root directory, execute the metadata initialization operation.

    sleep 300
    bash /root/docker_init.sh
    

    Note

    • After you run the preceding command, the script automatically applies schema changes to the three databases of OMS Community Edition.

    • If the configuration files of multiple nodes in the same region are the same (mainly the cm_nodes file), you need to run the docker_init.sh script only on one node in the region.
      If the configuration files of multiple nodes in the same region are different (mainly the cm_nodes file), you need to run the docker_init.sh script on each node.

    If the preceding command returns the error Version before 4.1.1 is not allowed to upgrade., perform the following steps.

    1. Confirm that the OMS Community Edition version to be upgraded is not earlier than V4.1.1-CE.

    2. Execute the following SQL statements in the rm database:

      CREATE TABLE IF NOT EXISTS `oms_version` (
         `version` varchar(64) NOT NULL COMMENT 'Version',
         `gmt_modified` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
         PRIMARY KEY (`version`)
         ) DEFAULT CHARSET = utf8mb4 COMMENT = 'Version table';
      
      REPLACE INTO `oms_version`(`version`) VALUES('x.x.x-CE');  -- Enter the actual OMS Community Edition version before the upgrade.
      
    3. Run the initialization command again.

  7. After the docker_init.sh script is executed, confirm that the server list is normal and all servers are in the Online state.

    1. Log in to the OMS Community Edition console.

    2. In the left-side navigation pane, click OPS & Monitoring > Servers.

    3. On the Servers page, view the server list and confirm that the status of all servers is Online.

  8. After the two nodes are upgraded, enable the HA feature and set related parameters on the System Parameters page.

    1. Log in to the OMS Community Edition console.

    2. In the left-side navigation pane, click System Management > System Parameters.

    3. On the System Parameters page, find ha.config.

    4. Click the edit icon next to Value.

    5. In the Modify Value dialog box, set enable to true to enable the HA feature and record the time T2.

      You can also set perceiveStoreClientCheckpoint to true at the same time. If you set it to true, you do not need to record T1 and T2.

    6. If you set perceiveStoreClientCheckpoint to false, you need to modify the value of refetchStoreIntervalMin (the time interval for pulling data, in minutes) based on your business needs. The value of refetchStoreIntervalMin must be greater than T2-T1.

      If you set perceiveStoreClientCheckpoint to true, you do not need to modify the value of refetchStoreIntervalMin. HA starts the Store based on the earliest timestamp of the downstream component minus the value of refetchStoreIntervalMin. For example, if the earliest timestamp of the downstream connector/jdbc-connector is 12:00:00 and the value of refetchStoreIntervalMin is 30 minutes, HA starts the Store at 11:30:00.

      After the HA feature is enabled, HA performs the following operations on components:

      Status of the task/component before the upgrade Status after the upgrade (HA is not enabled) Status after the upgrade (HA is enabled)
      The task is running normally.
      • The Incr-Sync component is running normally.
      • The Store component is running normally.
      The status of the task remains unchanged.
      • The Incr-Sync component fails.
      • The Store component fails.
      The status of the task remains unchanged.
      • HA automatically starts the Incr-Sync component.
      • HA creates a new Store component based on the configuration. For more information, see Modify HA configurations.
      The task fails.
      • The Incr-Sync component fails.
      • The Store component fails.
      The task is paused.
      • The Incr-Sync component is paused.
      • The Store component is running normally.
      The status of the task remains unchanged.
      • The Incr-Sync component is paused.
      • The Store component fails.
      The status of the task remains unchanged.
      • The Incr-Sync component is paused.
      • HA creates a new Store component based on the configuration. For more information, see Modify HA configurations.
  9. (Optional) If you need to roll back, perform the following steps.

    1. Disable the HA feature following the operation in Step 1.

    2. Stop the new container after the upgrade and record the time T3.

      sudo docker stop ${CONTAINER_NAME}
      
    3. Connect to the metaDB and run the following command.

      drop database rm_429;
      drop database cm_429;
      drop database cm_hb_429;
      
      create database rm_429;
      create database cm_429;
      create database cm_hb_429;
      
    4. Restore the backed-up SQL files to the original database.

      mysql -hxxx.xxx.xxx.1 -P<port> -u<username> -p<password> -e "source /home/admin/rm_429.sql" -Drm_429
      
      mysql -hxxx.xxx.xxx.1 -P<port> -u<username> -p<password> -e "source /home/admin/cm_429.sql" -Dcm_429
      
      mysql -hxxx.xxx.xxx.1 -P<port> -u<username> -p<password> -e "source /home/admin/cm_hb_429.sql" -Dcm_hb_429
      
    5. Start the OMS Community Edition V4.2.9 container.

      sudo docker restart ${CONTAINER_NAME}
      
    6. On the System Parameters page, enable the HA feature and set the refetchStoreIntervalMin parameter to the required value.

      If you perform a rollback, HA automatically takes over the Store component, but you may need to manually restore the Incr-Sync or Full-Import component.

  10. After the upgrade is completed, clear the browser cache and log in.

Previous topic

Upgrade in single-node deployment mode
Last

Next topic

Upgrade the CDC library
Next
What is on this page
Upgrade procedure