作者:梁壮 (PolarDB-X 开源用户)
目前从事于互联网电商行业,多年java开发经验,熟悉分布式,微服务,高并发领域,曾参多个开源项目的维护。
编译说明
机器信息
PRETTY_NAME="Ubuntu 22.04.4 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.4 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
编译方式介绍
编译存在两种方式
第一种 直接使用现成的项目脚本 完成一键编译 一键部署 一键停止
git clone https://github.com/polardb/polardbxcd polardbxmake# 启动./build/run/bin/polardb-x.sh start# 停止./build/run/bin/polardb-x.sh stop
另一种 如下文 称之为hard模式 参考本文 即可规避绝大多数问题
编译源码
编译 DN 存储节点(代号polardbx-engine)
安装依赖(centos 未实测)
yum install cmake3ln -s usr/bin/cmake3 usr/bin/cmake# 安装GCC7yum install centos-release-sclyum install devtoolset-7-gcc devtoolset-7-gcc-c++ devtoolset-7-binutilsecho "source opt/rh/devtoolset-7/enable" >>/etc/profile# 安装依赖yum install make automake git openssl-devel ncurses-devel bison libaio-devel
安装依赖(ubuntu)
# 安装GCC7# 官方文档中 使用 gcc-7 g++-7 但是尝试后 会报错 故修改为如下apt install -y gcc g++update-alternatives --install usr/bin/gcc gcc usr/bin/gcc-7 60 \--slave usr/bin/g++ g++ usr/bin/g++-7update-alternatives --config gccgcc --versiong++ --version# 安装依赖apt install make automake cmake git bison libaio-dev libncurses-dev libsasl2-dev libldap2-dev libssl-dev pkg-config# 补充依赖包sudo apt install libsnappy-dev zlib1g-dev libbz2-dev liblz4-dev
特此说明: 在linux环境下 检查文件夹的所属目录权限以及用户组 是否和登录的用户匹配 ,不然可能导致文件读取不到 或者无法写入
下载源码
# git clone 或者 直接下载zip压缩包git clone https://github.com/polardb/polardbx-engine.git
编译
# 保持网络畅通make -j8make install
接着就是等待编译完成。
编译完成
会在编译的根目录的上级目录 或者本机目录生成一个 t-polardbx-engine-2.4.0
目录内结构如下:
进入到opt里 即可看到 polardbx-engine 文件夹 里面存放就是编译后的内容

后续我们就基于此文件进行部署。
编译 CN 计算节点(代号polardbx-sql)
环境准备
maven 3.5 +
jdk 11 +
源码下载
# 最好使用这种方式 进行下载源码 不要直接下载zip包git clone https://github.com/polardb/polardbx-sql.git# 进入代码目录cd polardbx-sql/# 确保 polardbx-rpc 子模块 (polardbx-glue) 已初始化git submodule update --init
编译
# 编译打包mvn install -D maven.test.skip=true -D env=release
编译完成
编译完成后 在target目录下 即可看到压缩包
这个就是后续要安装的压缩包。
编译 CDC 计算节点(代号polardbx-cdc)
环境准备
maven 3.5 +
jdk 11 +
源码下载
# 最好使用这种方式 进行下载源码 或者直接下载zip包git https://github.com/polardb/polardbx-cdc.git
编译完成
编译完成后 在polardbx-cdc-assemble的target目录下 即可看到压缩包
这个就是后续要安装的压缩包。
安装
由于 CN 和 CDC 我是放在本机的 idea上编译的 所以后续需要统一放到一个 目录下 方便安装
如果都是在服务器上操作的 直接cp到同一个目录即可
安装 DN (代号:polardbx-engine)
此步骤启动一个mysql进程,作为metadb和dn
准备 mysql配置文件(my.cnf),可进行相应修改,默认使用 4886 作为 mysql端口,32886 作为私有协议端口
默认使用 usr/local/develop/PolarDB-X/polardbx_engine 作为mysql数据目录,可以修改成其他目录
根目录新建conf目录 新建 my.cnf 内容如下
重点配置说明 强制执行 rpc_port端口为32886 不然默认是33660 导致连接不上
[mysqld]socket = usr/local/develop/PolarDB-X/polardbx_engine/run/mysql.sockdatadir = usr/local/develop/PolarDB-X/polardbx_engine/datatmpdir = usr/local/develop/PolarDB-X/polardbx_engine/tmplog-bin = usr/local/develop/PolarDB-X/polardbx_engine/log/mysql-bin.loglog-bin-index = usr/local/develop/PolarDB-X/polardbx_engine/log/mysql-bin.index# log-error = usr/local/develop/PolarDB-X/polardbx_engine/slave/master-error.logrelay-log = usr/local/develop/PolarDB-X/polardbx_engine/slave/slave-relay.logrelay-log-info-file = usr/local/develop/PolarDB-X/polardbx_engine/slave/slave-relay-log.inforelay-log-index = usr/local/develop/PolarDB-X/polardbx_engine/slave/slave-relay-log.indexmaster-info-file = usr/local/develop/PolarDB-X/polardbx_engine/master/master.infoslow_query_log_file = usr/local/develop/PolarDB-X/polardbx_engine/slow_query.loginnodb_data_home_dir = usr/local/develop/PolarDB-X/polardbx_engine/innodb_datainnodb_log_group_home_dir = usr/local/develop/PolarDB-X/polardbx_engine/innodb_logport = 4886# 新增的配置 必须要加rpc_port = 32886loose_polarx_port = 32886loose_galaxyx_port = 32886loose_polarx_max_connections = 5000loose_server_id = 476984231loose_cluster-info = 127.0.0.1:14886@1loose_cluster-id = 5431loose_enable_gts = 1loose_innodb_undo_retention=1800core-fileloose_log_sql_info=1loose_log_sql_info_index=1loose_indexstat=1loose_tablestat=1default_authentication_plugin=mysql_native_password# close 5.6 variables for 5.5binlog_checksum=CRC32log_bin_use_v1_row_events=onexplicit_defaults_for_timestamp=OFFbinlog_row_image=FULLbinlog_rows_query_log_events=ONbinlog_stmt_cache_size=32768#innodbinnodb_data_file_path=ibdata1:100M;ibdata2:200M:autoextendinnodb_buffer_pool_instances=8innodb_log_files_in_group=4innodb_log_file_size=200Minnodb_log_buffer_size=200Minnodb_flush_log_at_trx_commit=1#innodb_additional_mem_pool_size=20M #deprecated in 5.6innodb_max_dirty_pages_pct=60innodb_io_capacity_max=10000innodb_io_capacity=6000innodb_thread_concurrency=64innodb_read_io_threads=8innodb_write_io_threads=8innodb_open_files=615350innodb_file_per_table=1innodb_flush_method=O_DIRECTinnodb_change_buffering=noneinnodb_adaptive_flushing=1#innodb_adaptive_flushing_method=keep_average #percona#innodb_adaptive_hash_index_partitions=1 #percona#innodb_fast_checksum=1 #percona#innodb_lazy_drop_table=0 #perconainnodb_old_blocks_time=1000innodb_stats_on_metadata=0innodb_use_native_aio=1innodb_lock_wait_timeout=50innodb_rollback_on_timeout=0innodb_purge_threads=1innodb_strict_mode=1#transaction-isolation=READ-COMMITTEDinnodb_disable_sort_file_cache=ONinnodb_lru_scan_depth=2048innodb_flush_neighbors=0innodb_sync_array_size=16innodb_print_all_deadlocksinnodb_checksum_algorithm=CRC32innodb_max_dirty_pages_pct_lwm=10innodb_buffer_pool_size=500M#myisamconcurrent_insert=2delayed_insert_timeout=300#replicationslave_type_conversions="ALL_NON_LOSSY"slave_net_timeout=4skip-slave-start=OFFsync_master_info=10000sync_relay_log_info=1master_info_repository=TABLErelay_log_info_repository=TABLErelay_log_recovery=0slave_exec_mode=STRICT#slave_parallel_type=DATABASEslave_parallel_type=LOGICAL_CLOCKloose_slave_pr_mode=TABLEslave-parallel-workers=32#binlogserver_id=193317851binlog_cache_size=32Kmax_binlog_cache_size=2147483648loose_consensus_large_trx=ONmax_binlog_size=500Mmax_relay_log_size=500Mrelay_log_purge=OFFbinlog-format=ROWsync_binlog=1sync_relay_log=1log-slave-updates=0expire_logs_days=0rpl_stop_slave_timeout=300slave_checkpoint_group=1024slave_checkpoint_period=300slave_pending_jobs_size_max=1073741824slave_rows_search_algorithms='TABLE_SCAN,INDEX_SCAN'slave_sql_verify_checksum=OFFmaster_verify_checksum=OFF# parallel replaybinlog_transaction_dependency_tracking = WRITESETtransaction_write_set_extraction = XXHASH64#gtidgtid_mode=OFFenforce_gtid_consistency=OFFloose_consensus-io-thread_cnt=8loose_consensus-worker-thread_cnt=8loose_consensus_max_delay_index=10000loose_consensus-election-timeout=10000loose_consensus_max_packet_size=131072loose_consensus_max_log_size=20Mloose_consensus_auto_leader_transfer=ONloose_consensus_log_cache_size=536870912loose_consensus_prefetch_cache_size=268435456loose_consensus_prefetch_window_size=100loose_consensus_auto_reset_match_index=ONloose_cluster-mts-recover-use-index=ONloose_async_commit_thread_count=128loose_replicate-same-server-id=onloose_commit_lock_done_count=1loose_binlog_order_commits=OFFloose_cluster-log-type-node=OFF#thread pool# thread_pool_size=32# thread_pool_stall_limit=30# thread_pool_oversubscribe=10# thread_handling=pool-of-threads#serverdefault-storage-engine=INNODBcharacter-set-server=utf8lower_case_table_names=1skip-external-lockingopen_files_limit=615350safe-user-createlocal-infile=1sql_mode='NO_ENGINE_SUBSTITUTION'performance_schema=0log_slow_admin_statements=1loose_log_slow_verbosity=fulllong_query_time=1slow_query_log=0general_log=0loose_rds_check_core_file_enabled=ONtable_definition_cache=32768eq_range_index_dive_limit=200table_open_cache_instances=16table_open_cache=32768thread_stack=1024kbinlog_cache_size=32Knet_buffer_length=16384thread_cache_size=256read_rnd_buffer_size=128Ksort_buffer_size=256Kjoin_buffer_size=128Kread_buffer_size=128K# skip-name-resolve#skip-sslmax_connections=36000max_user_connections=35000max_connect_errors=65536max_allowed_packet=1073741824connect_timeout=8net_read_timeout=30net_write_timeout=60back_log=1024loose_boost_pk_access=1log_queries_not_using_indexes=0log_timestamps=SYSTEMinnodb_read_ahead_threshold=0loose_io_state=1loose_use_myfs=0loose_daemon_memcached_values_delimiter=':;:'loose_daemon_memcached_option="-t 32 -c 8000 -p15506"innodb_doublewrite=1
注意:如下配置 必须要加 不然导致连接不上的错误
rpc_port = 32886
文件夹创建 (根据数据存放目录来选择)
## polardbx_engine安装包 路径cd /usr/local/develop/PolarDB-X/polardbx_enginemkdir data innodb_data innodb_log log run master slave tmp

启动mysql
注意:启动 DN 需要使用非 root 账号完成
# DN根目录# 初始化./bin/mysqld --defaults-file=/usr/local/develop/PolarDB-X/polardbx_engine/conf/my.cnf --initialize-insecure# 启动 会在根目录输出一个 out.lognohup ./bin/mysqld --defaults-file=/usr/local/develop/PolarDB-X/polardbx_engine/conf/my.cnf >./out.log 2>&1 &
启动日志
2024-07-31T02:35:49.100371-00:00 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended.2024-07-31T02:35:49.603104-00:00 0 [Warning] [MY-000000] [Server] Plugin polarx_rpc reported: 'Plugin polarx_rpc start up.'2024-07-31T02:35:49.603949-00:00 0 [Warning] [MY-000000] [Server] Plugin polarx_rpc reported: 'MtEpoll start with detected 8 CPUs.'2024-07-31T02:35:49.625232-00:00 0 [Warning] [MY-000000] [Server] Plugin polarx_rpc reported: 'MtEpoll start with 32 groups with each group 4 threads.'2024-07-31T02:35:49.626200-00:00 0 [Warning] [MY-000000] [Server] Plugin polarx_rpc reported: 'Listen on port 33660.'2024-07-31T02:35:49.853544-00:00 0 [System] [MY-025031] [XPaxos] [Recovery] Consensus_binlog_recovery::recover end , file_size 283, curr_position 283, m_current_index 0, m_start_pos 4, m_end_pos 4, m_valid_pos 283, m_valid_index 0, m_is_malformed 0, m_in_transaction 0, get_error_type 1, get_error 0, get_error_message2024-07-31T02:35:49.853582-00:00 0 [System] [MY-010229] [Server] Starting XA crash recovery...2024-07-31T02:35:49.871148-00:00 0 [System] [MY-013911] [Server] Crash recovery finished in binlog engine. No attempts to commit, rollback or prepare any transactions.2024-07-31T02:35:49.871195-00:00 0 [System] [MY-013911] [Server] Crash recovery finished in InnoDB engine. No attempts to commit, rollback or prepare any transactions.2024-07-31T02:35:49.871220-00:00 0 [System] [MY-010232] [Server] XA crash recovery finished.2024-07-31T02:36:07.931654-00:00 0 [System] [MY-025036] [XPaxos] [Proto] Server 1 : Paxos state change from FOLL to CAND !!2024-07-31T02:36:07.934233-00:00 0 [System] [MY-025036] [XPaxos] [Proto] Server 1 : Start new requestVote: new term(2)2024-07-31T02:36:07.934386-00:00 0 [System] [MY-025036] [XPaxos] [Proto] Server 1 : Paxos state change from CAND to LEDR !!2024-07-31T02:36:07.936712-00:00 0 [System] [MY-025036] [XPaxos] [Proto] Server 1 : become Leader (currentTerm 2, lli:1, llt:2)!!2024-07-31T02:36:07.936960-00:00 0 [System] [MY-025031] [XPaxos] [Recovery] Found max consensus index = [0] at Consensus_recovery_manager::get_max_consensus_index_from_recover_trx_hash2024-07-31T02:36:07.937044-00:00 0 [System] [MY-025030] [XPaxos] start consensus_commit_pos_watcher thread2024-07-31T02:36:08.028851-00:00 0 [System] [MY-025022] [Server] Gtid_in_table :2024-07-31T02:36:08.031908-00:00 0 [Warning] [MY-010068] [Server] CA certificate ca.pem is self signed.2024-07-31T02:36:08.032133-00:00 0 [System] [MY-013602] [Server] Channel mysql_main configured to support TLS. Encrypted connections are now supported for this channel.2024-07-31T02:36:08.048248-00:00 0 [Warning] [MY-000067] [Server] unknown variable 'loose_polarx_port=32886'.2024-07-31T02:36:08.048407-00:00 0 [Warning] [MY-000067] [Server] unknown variable 'loose_galaxyx_port=32886'.2024-07-31T02:36:08.048428-00:00 0 [Warning] [MY-000067] [Server] unknown variable 'loose_polarx_max_connections=5000'.2024-07-31T02:36:08.048446-00:00 0 [Warning] [MY-000067] [Server] unknown variable 'loose_enable_gts=1'.2024-07-31T02:36:08.048460-00:00 0 [Warning] [MY-000067] [Server] unknown variable 'loose_log_sql_info=1'.2024-07-31T02:36:08.048476-00:00 0 [Warning] [MY-000067] [Server] unknown variable 'loose_log_sql_info_index=1'.2024-07-31T02:36:08.048488-00:00 0 [Warning] [MY-000067] [Server] unknown variable 'loose_indexstat=1'.2024-07-31T02:36:08.048499-00:00 0 [Warning] [MY-000067] [Server] unknown variable 'loose_tablestat=1'.2024-07-31T02:36:08.048518-00:00 0 [Warning] [MY-000067] [Server] unknown variable 'loose_slave_pr_mode=TABLE'.2024-07-31T02:36:08.048531-00:00 0 [Warning] [MY-000067] [Server] unknown variable 'loose_async_commit_thread_count=128'.2024-07-31T02:36:08.048545-00:00 0 [Warning] [MY-000067] [Server] unknown variable 'loose_commit_lock_done_count=1'.2024-07-31T02:36:08.048568-00:00 0 [Warning] [MY-000067] [Server] unknown variable 'loose_log_slow_verbosity=full'.2024-07-31T02:36:08.048579-00:00 0 [Warning] [MY-000067] [Server] unknown variable 'loose_rds_check_core_file_enabled=ON'.2024-07-31T02:36:08.048591-00:00 0 [Warning] [MY-000067] [Server] unknown variable 'loose_boost_pk_access=1'.2024-07-31T02:36:08.048602-00:00 0 [Warning] [MY-000067] [Server] unknown variable 'loose_io_state=1'.2024-07-31T02:36:08.048614-00:00 0 [Warning] [MY-000067] [Server] unknown variable 'loose_use_myfs=0'.2024-07-31T02:36:08.048632-00:00 0 [Warning] [MY-000067] [Server] unknown variable 'loose_daemon_memcached_values_delimiter=:;:'.2024-07-31T02:36:08.048644-00:00 0 [Warning] [MY-000067] [Server] unknown variable 'loose_daemon_memcached_option=-t 32 -c 8000 -p15506'.2024-07-31T02:36:08.092316-00:00 0 [System] [MY-000000] [Server] /usr/local/develop/PolarDB-X/polardbx_engine/bin/mysqld is using 'bundled jemalloc' Malloc Library.2024-07-31T02:36:08.092367-00:00 0 [System] [MY-010931] [Server] /usr/local/develop/PolarDB-X/polardbx_engine/bin/mysqld: ready for connections. Version: '8.0.32-X-Cluster-8.4.19' socket: '/usr/local/develop/PolarDB-X/polardbx_engine/run/mysql.sock' port: 4886 Source distribution.2024-07-31T02:36:08.092368-00:00 0 [System] [MY-011323] [Server] X Plugin ready for connections. Bind-address: '::' port: 33060, socket: /tmp/mysqlx.sock2024-07-31T02:36:08.092602-00:00 0 [System] [MY-025030] [XPaxos] ConsensusLogManager::wait_follower_upgraded, consensus term: 2, consensus index: 02024-07-31T02:36:08.107541-00:00 0 [Warning] [MY-000000] [Server] Plugin polarx_rpc reported: 'CPUs changed from [] to [0,1,2,3,4,5,6,7].'2024-07-31T02:36:08.172076-00:00 6 [System] [MY-025034] [XPaxos] [Applier] Apply thread start, recover status = 0, start apply index = 0, rli consensus index 0, consensus_ptr CommitIndex 12024-07-31T02:36:08.172256-00:00 6 [System] [MY-025034] [XPaxos] [Applier] Apply thread group relay log file name = '/usr/local/develop/PolarDB-X/polardbx_engine/log/mysql-bin.000001', pos = 252', next_index = 1, rli apply index = 02024-07-31T02:36:08.174116-00:00 6 [System] [MY-025034] [XPaxos] [Applier] mts_init_consensus_apply_index 02024-07-31T02:36:08.174156-00:00 6 [System] [MY-025034] [XPaxos] [Applier] Apply thread stop, opt_consensus_leader_stop_apply: false, seconds_behind_master: 1722393368, opt_consensus_leader_stop_apply_time: 02024-07-31T02:36:08.174181-00:00 6 [System] [MY-025034] [XPaxos] [Applier] Apply thread catchup commit index, consensus index: 0, current term: 1, apply term: 2, stop term: 22024-07-31T02:36:08.181957-00:00 0 [System] [MY-025030] [XPaxos] ConsensusLogManager::wait_follower_upgraded finish, error 02024-07-31T02:36:09.612000-00:00 0 [Warning] [MY-000000] [Server] Plugin polarx_rpc reported: 'MtEpoll bind worker thread(tid:31735) 0:0(1,1) to CPUs [0,1,2,3].'2024-07-31T02:36:09.619792-00:00 0 [Warning] [MY-000000] [Server] Plugin polarx_rpc reported: 'MtEpoll bind worker thread(tid:31736) 0:1(1,1) to CPUs [0,1,2,3].'2024-07-31T02:36:09.620287-00:00 0 [Warning] [MY-000000] [Server] Plugin polarx_rpc reported: 'MtEpoll bind worker thread(tid:31737) 0:2(1,1) to CPUs [0,1,2,3].'2024-07-31T02:36:09.620632-00:00 0 [Warning] [MY-000000] [Server] Plugin polarx_rpc reported: 'MtEpoll bind worker thread(tid:31749) 3:2(1,1) to CPUs [4,5,6,7].'2024-07-31T02:36:09.621009-00:00 0 [Warning] [MY-000000] [Server] Plugin polarx_rpc reported: 'MtEpoll bind worker thread(tid:31740) 1:1(1,1) to CPUs [4,5,6,7].'2024-07-31T02:36:09.621341-00:00 0 [Warning] [MY-000000] [Server] Plugin polarx_rpc reported: 'MtEpoll bind worker thread(tid:31745) 2:2(1,1) to CPUs [0,1,2,3].'2024-07-31T02:36:09.621708-00:00 0 [Warning] [MY-000000] [Server] Plugin polarx_rpc reported: 'MtEpoll bind worker thread(tid:31741) 1:2(1,1) to CPUs [4,5,6,7].'2024-07-31T02:36:09.621956-00:00 0 [Warning] [MY-000000] [Server] Plugin polarx_rpc reported: 'MtEpoll bind worker thread(tid:31751) 4:0(1,1) to CPUs [0,1,2,3].'2024-07-31T02:36:09.622339-00:00 0 [Warning] [MY-000000] [Server] Plugin polarx_rpc reported: 'MtEpoll bind worker thread(tid:31746) 2:3(1,1) to CPUs [0,1,2,3].'2024-07-31T02:36:09.622612-00:00 0 [Warning] [MY-000000] [Server] Plugin polarx_rpc reported: 'MtEpoll bind worker thread(tid:31747) 3:0(1,1) to CPUs [4,5,6,7].'2024-07-31T02:36:09.622935-00:00 0 [Warning] [MY-000000] [Server] Plugin polarx_rpc reported: 'MtEpoll bind worker thread(tid:31739) 1:0(1,1) to CPUs [4,5,6,7].'2024-07-31T02:36:09.623242-00:00 0 [Warning] [MY-000000] [Server] Plugin polarx_rpc reported: 'MtEpoll bind worker thread(tid:31743) 2:0(1,1) to CPUs [0,1,2,3].'2024-07-31T02:36:09.623631-00:00 0 [Warning] [MY-000000] [Server] Plugin polarx_rpc reported: 'MtEpoll bind worker thread(tid:31738) 0:3(1,1) to CPUs [0,1,2,3].'2024-07-31T02:36:09.625762-00:00 0 [Warning] [MY-000000] [Server] Plugin polarx_rpc reported: 'MtEpoll bind worker thread(tid:31784) 12:1(1,1) to CPUs [0,1,2,3].'2024-07-31T02:36:09.626034-00:00 0 [Warning] [MY-000000] [Server] Plugin polarx_rpc reported: 'MtEpoll bind worker thread(tid:31809) 18:2(1,1) to CPUs [0,1,2,3].'2024-07-31T02:36:09.626287-00:00 0 [Warning] [MY-000000] [Server] Plugin polarx_rpc reported: 'MtEpoll bind worker thread(tid:31773) 9:2(1,1) to CPUs [4,5,6,7].'2024-07-31T02:36:09.626572-00:00 0 [Warning] [MY-000000] [Server] Plugin polarx_rpc reported: 'MtEpoll bind worker thread(tid:31755) 5:0(1,1) to CPUs [4,5,6,7].'2024-07-31T02:36:09.626884-00:00 0 [Warning] [MY-000000] [Server] Plugin polarx_rpc reported: 'MtEpoll bind worker thread(tid:31804) 17:1(1,1) to CPUs [4,5,6,7].'2024-07-31T02:36:09.627192-00:00 0 [Warning] [MY-000000] [Server] Plugin polarx_rpc reported: 'MtEpoll bind worker thread(tid:31857) 30:2(1,1) to CPUs [0,1,2,3].'2024-07-31T02:36:09.627601-00:00 0 [Warning] [MY-000000] [Server] Plugin polarx_rpc reported: 'MtEpoll bind worker thread(tid:31795) 15:0(1,1) to CPUs [4,5,6,7].'2024-07-31T02:36:09.627878-00:00 0 [Warning] [MY-000000] [Server] Plugin polarx_rpc reported: 'MtEpoll bind worker thread(tid:31815) 20:0(1,1) to CPUs [0,1,2,3].'2024-07-31T02:36:09.628180-00:00 0 [Warning] [MY-000000] [Server] Plugin polarx_rpc reported: 'MtEpoll bind worker thread(tid:31814) 19:3(1,1) to CPUs [4,5,6,7].'2024-07-31T02:36:09.628406-00:00 0 [Warning] [MY-000000] [Server] Plugin polarx_rpc reported: 'MtEpoll bind worker thread(tid:31753) 4:2(1,1) to CPUs [0,1,2,3].'2024-07-31T02:36:09.628639-00:00 0 [Warning] [MY-000000] [Server] Plugin polarx_rpc reported: 'MtEpoll bind worker thread(tid:31777) 10:2(1,1) to CPUs [0,1,2,3].'2024-07-31T02:36:09.628884-00:00 0 [Warning] [MY-000000] [Server] Plugin polarx_rpc reported: 'MtEpoll bind worker thread(tid:31762) 6:3(1,1) to CPUs [0,1,2,3].'2024-07-31T02:36:09.629199-00:00 0 [Warning] [MY-000000] [Server] Plugin polarx_rpc reported: 'MtEpoll bind worker thread(tid:31789) 13:2(1,1) to CPUs [4,5,6,7].'2024-07-31T02:36:09.629409-00:00 0 [Warning] [MY-000000] [Server] Plugin polarx_rpc reported: 'MtEpoll bind worker thread(tid:31750) 3:3(1,1) to CPUs [4,5,6,7].'2024-07-31T02:36:09.629575-00:00 0 [Warning] [MY-000000] [Server] Plugin polarx_rpc reported: 'MtEpoll bind worker thread(tid:31788) 13:1(1,1) to CPUs [4,5,6,7].'2024-07-31T02:36:09.629775-00:00 0 [Warning] [MY-000000] [Server] Plugin polarx_rpc reported: 'MtEpoll bind worker thread(tid:31769) 8:2(1,1) to CPUs [0,1,2,3].'2024-07-31T02:36:09.629977-00:00 0 [Warning] [MY-000000] [Server] Plugin polarx_rpc reported: 'MtEpoll bind worker thread(tid:31845) 27:2(1,1) to CPUs [4,5,6,7].'2024-07-31T02:36:09.630185-00:00 0 [Warning] [MY-000000] [Server] Plugin polarx_rpc reported: 'MtEpoll bind worker thread(tid:31831) 24:0(1,1) to CPUs [0,1,2,3].'2024-07-31T02:36:09.630509-00:00 0 [Warning] [MY-000000] [Server] Plugin polarx_rpc reported: 'MtEpoll bind worker thread(tid:31774) 9:3(1,1) to CPUs [4,5,6,7].'2024-07-31T02:36:09.630834-00:00 0 [Warning] [MY-000000] [Server] Plugin polarx_rpc reported: 'MtEpoll bind worker thread(tid:31802) 16:3(1,1) to CPUs [0,1,2,3].'2024-07-31T02:36:09.631156-00:00 0 [Warning] [MY-000000] [Server] Plugin polarx_rpc reported: 'MtEpoll bind worker thread(tid:31798) 15:3(1,1) to CPUs [4,5,6,7].'2024-07-31T02:36:09.631480-00:00 0 [Warning] [MY-000000] [Server] Plugin polarx_rpc reported: 'MtEpoll bind worker thread(tid:31854) 29:3(1,1) to CPUs [4,5,6,7].'2024-07-31T02:36:09.631755-00:00 0 [Warning] [MY-000000] [Server] Plugin polarx_rpc reported: 'MtEpoll bind worker thread(tid:31813) 19:2(1,1) to CPUs [4,5,6,7].'2024-07-31T02:36:09.631911-00:00 0 [Warning] [MY-000000] [Server] Plugin polarx_rpc reported: 'MtEpoll bind worker thread(tid:31757) 5:2(1,1) to CPUs [4,5,6,7].'2024-07-31T02:36:09.632046-00:00 0 [Warning] [MY-000000] [Server] Plugin polarx_rpc reported: 'MtEpoll bind worker thread(tid:31765) 7:2(1,1) to CPUs [4,5,6,7].'2024-07-31T02:36:09.632169-00:00 0 [Warning] [MY-000000] [Server] Plugin polarx_rpc reported: 'MtEpoll bind worker thread(tid:31859) 31:0(1,1) to CPUs [4,5,6,7].'2024-07-31T02:36:09.632308-00:00 0 [Warning] [MY-000000] [Server] Plugin polarx_rpc reported: 'MtEpoll bind worker thread(tid:31764) 7:1(1,1) to CPUs [4,5,6,7].'2024-07-31T02:36:09.632531-00:00 0 [Warning] [MY-000000] [Server] Plugin polarx_rpc reported: 'MtEpoll bind worker thread(tid:31759) 6:0(1,1) to CPUs [0,1,2,3].'2024-07-31T02:36:09.632801-00:00 0 [Warning] [MY-000000] [Server] Plugin polarx_rpc reported: 'MtEpoll bind worker thread(tid:31780) 11:1(1,1) to CPUs [4,5,6,7].'2024-07-31T02:36:09.633125-00:00 0 [Warning] [MY-000000] [Server] Plugin polarx_rpc reported: 'MtEpoll bind worker thread(tid:31800) 16:1(1,1) to CPUs [0,1,2,3].'2024-07-31T02:36:09.633401-00:00 0 [Warning] [MY-000000] [Server] Plugin polarx_rpc reported: 'MtEpoll bind worker thread(tid:31849) 28:2(1,1) to CPUs [0,1,2,3].'2024-07-31T02:36:09.633635-00:00 0 [Warning] [MY-000000] [Server] Plugin polarx_rpc reported: 'MtEpoll bind worker thread(tid:31754) 4:3(1,1) to CPUs [0,1,2,3].'2024-07-31T02:36:09.633822-00:00 0 [Warning] [MY-000000] [Server] Plugin polarx_rpc reported: 'MtEpoll bind worker thread(tid:31821) 21:2(1,1) to CPUs [4,5,6,7].'2024-07-31T02:36:09.634124-00:00 0 [Warning] [MY-000000] [Server] Plugin polarx_rpc reported: 'MtEpoll bind worker thread(tid:31797) 15:2(1,1) to CPUs [4,5,6,7].'2024-07-31T02:36:09.634368-00:00 0 [Warning] [MY-000000] [Server] Plugin polarx_rpc reported: 'MtEpoll bind worker thread(tid:31791) 14:0(1,1) to CPUs [0,1,2,3].'2024-07-31T02:36:09.634619-00:00 0 [Warning] [MY-000000] [Server] Plugin polarx_rpc reported: 'MtEpoll bind worker thread(tid:31805) 17:2(1,1) to CPUs [4,5,6,7].'2024-07-31T02:36:09.634786-00:00 0 [Warning] [MY-000000] [Server] Plugin polarx_rpc reported: 'MtEpoll bind worker thread(tid:31837) 25:2(1,1) to CPUs [4,5,6,7].'2024-07-31T02:36:09.634974-00:00 0 [Warning] [MY-000000] [Server] Plugin polarx_rpc reported: 'MtEpoll bind worker thread(tid:31846) 27:3(1,1) to CPUs [4,5,6,7].'2024-07-31T02:36:09.635177-00:00 0 [Warning] [MY-000000] [Server] Plugin polarx_rpc reported: 'MtEpoll bind worker thread(tid:31786) 12:3(1,1) to CPUs [0,1,2,3].'2024-07-31T02:36:09.635391-00:00 0 [Warning] [MY-000000] [Server] Plugin polarx_rpc reported: 'MtEpoll bind worker thread(tid:31748) 3:1(1,1) to CPUs [4,5,6,7].'2024-07-31T02:36:09.635555-00:00 0 [Warning] [MY-000000] [Server] Plugin polarx_rpc reported: 'MtEpoll bind worker thread(tid:31818) 20:3(1,1) to CPUs [0,1,2,3].'2024-07-31T02:36:09.635774-00:00 0 [Warning] [MY-000000] [Server] Plugin polarx_rpc reported: 'MtEpoll bind worker thread(tid:31744) 2:1(1,1) to CPUs [0,1,2,3].'2024-07-31T02:36:09.635958-00:00 0 [Warning] [MY-000000] [Server] Plugin polarx_rpc reported: 'MtEpoll bind worker thread(tid:31811) 19:0(1,1) to CPUs [4,5,6,7].'2024-07-31T02:36:09.636182-00:00 0 [Warning] [MY-000000] [Server] Plugin polarx_rpc reported: 'MtEpoll bind worker thread(tid:31776) 10:1(1,1) to CPUs [0,1,2,3].'2024-07-31T02:36:09.636423-00:00 0 [Warning] [MY-000000] [Server] Plugin polarx_rpc reported: 'MtEpoll bind worker thread(tid:31763) 7:0(1,1) to CPUs [4,5,6,7].'2024-07-31T02:36:09.636619-00:00 0 [Warning] [MY-000000] [Server] Plugin polarx_rpc reported: 'MtEpoll bind worker thread(tid:31856) 30:1(1,1) to CPUs [0,1,2,3].'2024-07-31T02:36:09.636821-00:00 0 [Warning] [MY-000000] [Server] Plugin polarx_rpc reported: 'MtEpoll bind worker thread(tid:31760) 6:1(1,1) to CPUs [0,1,2,3].'2024-07-31T02:36:09.636985-00:00 0 [Warning] [MY-000000] [Server] Plugin polarx_rpc reported: 'MtEpoll bind worker thread(tid:31827) 23:0(1,1) to CPUs [4,5,6,7].'2024-07-31T02:36:09.637216-00:00 0 [Warning] [MY-000000] [Server] Plugin polarx_rpc reported: 'MtEpoll bind worker thread(tid:31793) 14:2(1,1) to CPUs [0,1,2,3].'2024-07-31T02:36:09.637486-00:00 0 [Warning] [MY-000000] [Server] Plugin polarx_rpc reported: 'MtEpoll bind worker thread(tid:31803) 17:0(1,1) to CPUs [4,5,6,7].'2024-07-31T02:36:09.637682-00:00 0 [Warning] [MY-000000] [Server] Plugin polarx_rpc reported: 'MtEpoll bind worker thread(tid:31794) 14:3(1,1) to CPUs [0,1,2,3].'2024-07-31T02:36:09.638100-00:00 0 [Warning] [MY-000000] [Server] Plugin polarx_rpc reported: 'MtEpoll bind worker thread(tid:31807) 18:0(1,1) to CPUs [0,1,2,3].'2024-07-31T02:36:09.638997-00:00 0 [Warning] [MY-000000] [Server] Plugin polarx_rpc reported: 'MtEpoll bind worker thread(tid:31787) 13:0(1,1) to CPUs [4,5,6,7].'2024-07-31T02:36:09.639170-00:00 0 [Warning] [MY-000000] [Server] Plugin polarx_rpc reported: 'MtEpoll bind worker thread(tid:31844) 27:1(1,1) to CPUs [4,5,6,7].'2024-07-31T02:36:09.639474-00:00 0 [Warning] [MY-000000] [Server] Plugin polarx_rpc reported: 'MtEpoll bind worker thread(tid:31742) 1:3(1,1) to CPUs [4,5,6,7].'2024-07-31T02:36:09.639673-00:00 0 [Warning] [MY-000000] [Server] Plugin polarx_rpc reported: 'MtEpoll bind worker thread(tid:31772) 9:1(1,1) to CPUs [4,5,6,7].'2024-07-31T02:36:09.639901-00:00 0 [Warning] [MY-000000] [Server] Plugin polarx_rpc reported: 'MtEpoll bind worker thread(tid:31799) 16:0(1,1) to CPUs [0,1,2,3].'2024-07-31T02:36:09.640152-00:00 0 [Warning] [MY-000000] [Server] Plugin polarx_rpc reported: 'MtEpoll bind worker thread(tid:31825) 22:2(1,1) to CPUs [0,1,2,3].'2024-07-31T02:36:09.640347-00:00 0 [Warning] [MY-000000] [Server] Plugin polarx_rpc reported: 'MtEpoll bind worker thread(tid:31843) 27:0(1,1) to CPUs [4,5,6,7].'2024-07-31T02:36:09.640592-00:00 0 [Warning] [MY-000000] [Server] Plugin polarx_rpc reported: 'MtEpoll bind worker thread(tid:31833) 24:2(1,1) to CPUs [0,1,2,3].'2024-07-31T02:36:09.640806-00:00 0 [Warning] [MY-000000] [Server] Plugin polarx_rpc reported: 'MtEpoll bind worker thread(tid:31778) 10:3(1,1) to CPUs [0,1,2,3].'2024-07-31T02:36:09.640984-00:00 0 [Warning] [MY-000000] [Server] Plugin polarx_rpc reported: 'MtEpoll bind worker thread(tid:31782) 11:3(1,1) to CPUs [4,5,6,7].'2024-07-31T02:36:09.641208-00:00 0 [Warning] [MY-000000] [Server] Plugin polarx_rpc reported: 'MtEpoll bind worker thread(tid:31766) 7:3(1,1) to CPUs [4,5,6,7].'2024-07-31T02:36:09.641383-00:00 0 [Warning] [MY-000000] [Server] Plugin polarx_rpc reported: 'MtEpoll bind worker thread(tid:31835) 25:0(1,1) to CPUs [4,5,6,7].'2024-07-31T02:36:09.641528-00:00 0 [Warning] [MY-000000] [Server] Plugin polarx_rpc reported: 'MtEpoll bind worker thread(tid:31822) 21:3(1,1) to CPUs [4,5,6,7].'2024-07-31T02:36:09.641724-00:00 0 [Warning] [MY-000000] [Server] Plugin polarx_rpc reported: 'MtEpoll bind worker thread(tid:31819) 21:0(1,1) to CPUs [4,5,6,7].'2024-07-31T02:36:09.641859-00:00 0 [Warning] [MY-000000] [Server] Plugin polarx_rpc reported: 'MtEpoll bind worker thread(tid:31752) 4:1(1,1) to CPUs [0,1,2,3].'2024-07-31T02:36:09.642058-00:00 0 [Warning] [MY-000000] [Server] Plugin polarx_rpc reported: 'MtEpoll bind worker thread(tid:31783) 12:0(1,1) to CPUs [0,1,2,3].'2024-07-31T02:36:09.642325-00:00 0 [Warning] [MY-000000] [Server] Plugin polarx_rpc reported: 'MtEpoll bind worker thread(tid:31806) 17:3(1,1) to CPUs [4,5,6,7].'2024-07-31T02:36:09.642442-00:00 0 [Warning] [MY-000000] [Server] Plugin polarx_rpc reported: 'MtEpoll bind worker thread(tid:31796) 15:1(1,1) to CPUs [4,5,6,7].'2024-07-31T02:36:09.642631-00:00 0 [Warning] [MY-000000] [Server] Plugin polarx_rpc reported: 'MtEpoll bind worker thread(tid:31792) 14:1(1,1) to CPUs [0,1,2,3].'2024-07-31T02:36:09.642821-00:00 0 [Warning] [MY-000000] [Server] Plugin polarx_rpc reported: 'MtEpoll bind worker thread(tid:31812) 19:1(1,1) to CPUs [4,5,6,7].'2024-07-31T02:36:09.643017-00:00 0 [Warning] [MY-000000] [Server] Plugin polarx_rpc reported: 'MtEpoll bind worker thread(tid:31848) 28:1(1,1) to CPUs [0,1,2,3].'2024-07-31T02:36:09.643217-00:00 0 [Warning] [MY-000000] [Server] Plugin polarx_rpc reported: 'MtEpoll bind worker thread(tid:31810) 18:3(1,1) to CPUs [0,1,2,3].'2024-07-31T02:36:09.643343-00:00 0 [Warning] [MY-000000] [Server] Plugin polarx_rpc reported: 'MtEpoll bind worker thread(tid:31790) 13:3(1,1) to CPUs [4,5,6,7].'2024-07-31T02:36:09.643541-00:00 0 [Warning] [MY-000000] [Server] Plugin polarx_rpc reported: 'MtEpoll bind worker thread(tid:31852) 29:1(1,1) to CPUs [4,5,6,7].'2024-07-31T02:36:09.643714-00:00 0 [Warning] [MY-000000] [Server] Plugin polarx_rpc reported: 'MtEpoll bind worker thread(tid:31829) 23:2(1,1) to CPUs [4,5,6,7].'2024-07-31T02:36:09.643878-00:00 0 [Warning] [MY-000000] [Server] Plugin polarx_rpc reported: 'MtEpoll bind worker thread(tid:31756) 5:1(1,1) to CPUs [4,5,6,7].'2024-07-31T02:36:09.644015-00:00 0 [Warning] [MY-000000] [Server] Plugin polarx_rpc reported: 'MtEpoll bind worker thread(tid:31816) 20:1(1,1) to CPUs [0,1,2,3].'2024-07-31T02:36:09.644166-00:00 0 [Warning] [MY-000000] [Server] Plugin polarx_rpc reported: 'MtEpoll bind worker thread(tid:31761) 6:2(1,1) to CPUs [0,1,2,3].'2024-07-31T02:36:09.644326-00:00 0 [Warning] [MY-000000] [Server] Plugin polarx_rpc reported: 'MtEpoll bind worker thread(tid:31770) 8:3(1,1) to CPUs [0,1,2,3].'2024-07-31T02:36:09.645302-00:00 0 [Warning] [MY-000000] [Server] Plugin polarx_rpc reported: 'MtEpoll bind worker thread(tid:31855) 30:0(1,1) to CPUs [0,1,2,3].'2024-07-31T02:36:09.645511-00:00 0 [Warning] [MY-000000] [Server] Plugin polarx_rpc reported: 'MtEpoll bind worker thread(tid:31839) 26:0(1,1) to CPUs [0,1,2,3].'2024-07-31T02:36:09.645684-00:00 0 [Warning] [MY-000000] [Server] Plugin polarx_rpc reported: 'MtEpoll bind worker thread(tid:31801) 16:2(1,1) to CPUs [0,1,2,3].'2024-07-31T02:36:09.645868-00:00 0 [Warning] [MY-000000] [Server] Plugin polarx_rpc reported: 'MtEpoll bind worker thread(tid:31823) 22:0(1,1) to CPUs [0,1,2,3].'2024-07-31T02:36:09.646047-00:00 0 [Warning] [MY-000000] [Server] Plugin polarx_rpc reported: 'MtEpoll bind worker thread(tid:31834) 24:3(1,1) to CPUs [0,1,2,3].'2024-07-31T02:36:09.646156-00:00 0 [Warning] [MY-000000] [Server] Plugin polarx_rpc reported: 'MtEpoll bind worker thread(tid:31775) 10:0(1,1) to CPUs [0,1,2,3].'2024-07-31T02:36:09.646324-00:00 0 [Warning] [MY-000000] [Server] Plugin polarx_rpc reported: 'MtEpoll bind worker thread(tid:31779) 11:0(1,1) to CPUs [4,5,6,7].'2024-07-31T02:36:09.646541-00:00 0 [Warning] [MY-000000] [Server] Plugin polarx_rpc reported: 'MtEpoll bind worker thread(tid:31771) 9:0(1,1) to CPUs [4,5,6,7].'2024-07-31T02:36:09.646780-00:00 0 [Warning] [MY-000000] [Server] Plugin polarx_rpc reported: 'MtEpoll bind worker thread(tid:31862) 31:3(1,1) to CPUs [4,5,6,7].'2024-07-31T02:36:09.646945-00:00 0 [Warning] [MY-000000] [Server] Plugin polarx_rpc reported: 'MtEpoll bind worker thread(tid:31836) 25:1(1,1) to CPUs [4,5,6,7].'2024-07-31T02:36:09.647126-00:00 0 [Warning] [MY-000000] [Server] Plugin polarx_rpc reported: 'MtEpoll bind worker thread(tid:31820) 21:1(1,1) to CPUs [4,5,6,7].'2024-07-31T02:36:09.647287-00:00 0 [Warning] [MY-000000] [Server] Plugin polarx_rpc reported: 'MtEpoll bind worker thread(tid:31785) 12:2(1,1) to CPUs [0,1,2,3].'2024-07-31T02:36:09.647478-00:00 0 [Warning] [MY-000000] [Server] Plugin polarx_rpc reported: 'MtEpoll bind worker thread(tid:31850) 28:3(1,1) to CPUs [0,1,2,3].'2024-07-31T02:36:09.647642-00:00 0 [Warning] [MY-000000] [Server] Plugin polarx_rpc reported: 'MtEpoll bind worker thread(tid:31808) 18:1(1,1) to CPUs [0,1,2,3].'2024-07-31T02:36:09.647820-00:00 0 [Warning] [MY-000000] [Server] Plugin polarx_rpc reported: 'MtEpoll bind worker thread(tid:31851) 29:0(1,1) to CPUs [4,5,6,7].'2024-07-31T02:36:09.648008-00:00 0 [Warning] [MY-000000] [Server] Plugin polarx_rpc reported: 'MtEpoll bind worker thread(tid:31828) 23:1(1,1) to CPUs [4,5,6,7].'2024-07-31T02:36:09.648193-00:00 0 [Warning] [MY-000000] [Server] Plugin polarx_rpc reported: 'MtEpoll bind worker thread(tid:31758) 5:3(1,1) to CPUs [4,5,6,7].'2024-07-31T02:36:09.648299-00:00 0 [Warning] [MY-000000] [Server] Plugin polarx_rpc reported: 'MtEpoll bind worker thread(tid:31817) 20:2(1,1) to CPUs [0,1,2,3].'2024-07-31T02:36:09.648443-00:00 0 [Warning] [MY-000000] [Server] Plugin polarx_rpc reported: 'MtEpoll bind worker thread(tid:31767) 8:0(1,1) to CPUs [0,1,2,3].'2024-07-31T02:36:09.648649-00:00 0 [Warning] [MY-000000] [Server] Plugin polarx_rpc reported: 'MtEpoll bind worker thread(tid:31858) 30:3(1,1) to CPUs [0,1,2,3].'2024-07-31T02:36:09.648898-00:00 0 [Warning] [MY-000000] [Server] Plugin polarx_rpc reported: 'MtEpoll bind worker thread(tid:31840) 26:1(1,1) to CPUs [0,1,2,3].'2024-07-31T02:36:09.649019-00:00 0 [Warning] [MY-000000] [Server] Plugin polarx_rpc reported: 'MtEpoll bind worker thread(tid:31826) 22:3(1,1) to CPUs [0,1,2,3].'2024-07-31T02:36:09.649142-00:00 0 [Warning] [MY-000000] [Server] Plugin polarx_rpc reported: 'MtEpoll bind worker thread(tid:31832) 24:1(1,1) to CPUs [0,1,2,3].'2024-07-31T02:36:09.649653-00:00 0 [Warning] [MY-000000] [Server] Plugin polarx_rpc reported: 'MtEpoll bind worker thread(tid:31781) 11:2(1,1) to CPUs [4,5,6,7].'2024-07-31T02:36:09.649872-00:00 0 [Warning] [MY-000000] [Server] Plugin polarx_rpc reported: 'MtEpoll bind worker thread(tid:31860) 31:1(1,1) to CPUs [4,5,6,7].'2024-07-31T02:36:09.650038-00:00 0 [Warning] [MY-000000] [Server] Plugin polarx_rpc reported: 'MtEpoll bind worker thread(tid:31838) 25:3(1,1) to CPUs [4,5,6,7].'2024-07-31T02:36:09.650228-00:00 0 [Warning] [MY-000000] [Server] Plugin polarx_rpc reported: 'MtEpoll bind worker thread(tid:31853) 29:2(1,1) to CPUs [4,5,6,7].'2024-07-31T02:36:09.650461-00:00 0 [Warning] [MY-000000] [Server] Plugin polarx_rpc reported: 'MtEpoll bind worker thread(tid:31847) 28:0(1,1) to CPUs [0,1,2,3].'2024-07-31T02:36:09.650631-00:00 0 [Warning] [MY-000000] [Server] Plugin polarx_rpc reported: 'MtEpoll bind worker thread(tid:31830) 23:3(1,1) to CPUs [4,5,6,7].'2024-07-31T02:36:09.650790-00:00 0 [Warning] [MY-000000] [Server] Plugin polarx_rpc reported: 'MtEpoll bind worker thread(tid:31768) 8:1(1,1) to CPUs [0,1,2,3].'2024-07-31T02:36:09.650944-00:00 0 [Warning] [MY-000000] [Server] Plugin polarx_rpc reported: 'MtEpoll bind worker thread(tid:31842) 26:3(1,1) to CPUs [0,1,2,3].'2024-07-31T02:36:09.651072-00:00 0 [Warning] [MY-000000] [Server] Plugin polarx_rpc reported: 'MtEpoll bind worker thread(tid:31824) 22:1(1,1) to CPUs [0,1,2,3].'2024-07-31T02:36:09.651232-00:00 0 [Warning] [MY-000000] [Server] Plugin polarx_rpc reported: 'MtEpoll bind worker thread(tid:31861) 31:2(1,1) to CPUs [4,5,6,7].'
如果看到如上日志 说明启动成功了!
连接测试
# 指定socket连接 密码为空 直接回车就行mysql -u root -S /usr/local/develop/PolarDB-X/polardbx_engine/run/mysql.sock -p

报错重试
## 清空目录下的文件rm -rf ./data/* ./innodb_data/* ./innodb_log/* ./log/* ./run/* ./master/* ./slave/* ./tmp/*## 重复之前的启动过程
安装 CN (代号:polardbx-sql)
启动mysql进程之后,便可以初始化PolarDB-X,需要准备以下几个配置:
metadb user:以下采用my_polarxmetadb database:创建metadb库,以下采用 polardbx_meta_db_polardbx密码加密key(dnPasswordKey):以下采用 asdf1234ghjk5678PolarDB-X默认用户名:默认为 polarx_rootPolarDB-X默认用户密码:默认为 123456,可通过 -S 参数修改
注意:启动 CN 需要使用非 root 账号完成
删除原有配置文件 conf/server.properties,在重新新建
路径配置使用 /usr/local/develop/PolarDB-X/polardbx-binlog 前缀 如果想替换 请全部替换
重点配置说明 galaxyXProtocol=2 必须要改成2 不然导致连接不上错误
Initialize gms failed due to: ERR-CODE: [PXC-10001][ERR_X_PROTOCOL_CLIENT] XDataSource to my_polarx#5204802@127.0.0.1:32886 Failed to init new TCP. XClientPool to my_polarx#5204802@127.0.0.1:32886 now 31 TCP(0 aging), 31 sessions(0 running, 0 idle), 0 waiting connection.
# PolarDB-X 服务端口serverPort=8527# PolarDB-X RPC 端口rpcPort=9090managerPort=3406charset=utf-8processors=4processorHandler=16processorKillExecutor=128syncExecutor=128managerExecutor=128serverExecutor=1024idleTimeout=60000trustedIps=127.0.0.1slowSqlTime=1000maxConnection=20000allowManagerLogin=1allowCrossDbQuery=trueenableLogicalDbWarmmingUp=true# 必须要改 不然导致连接不上galaxyXProtocol=2# MetaDB地址metaDbAddr=127.0.0.1:4886# MetaDB私有协议端口metaDbXprotoPort=32886# MetaDB用户metaDbUser=my_polarxmetaDbName=polardbx_meta_db_polardbxinstanceId=polardbx-polardbxmetaDbPasswd=27qEwnDfG/6sB/YCId+yQMEUYZmBPJyjvBjFcrnXKEo=
初始化 CN
# CN 安装文件目录cd /usr/local/develop/PolarDB-X/polardbx-server-5.4.19# 根目录执行bin/startup.sh \-I \-P asdf1234ghjk5678 \-d 127.0.0.1:4886:32886 \-r "" \-u polardbx_root \-S "123456"
此步骤中会生成内部密码及加密密码,需要将其填写配置文件 conf/server.properties 中,用于后续访问:
Generate password for user: my_polarx && 3)(6)Q5^3+$rU1+%lL8!6*aT5(cM4xEncrypted password: 27qEwnDfG/6sB/YCId+yaMEUYZmBxJyjvBjFcrnXKEo=The property file is resident at resource file, skip saving password into it======== Paste following configurations to conf/server.properties ! =======metaDbPasswd=27qEwnDfG/6sB/YCId+yQMEUYZmaPJyjvBaFcrnXKEo========= Paste above configurations to conf/server.properties ! =======Thu Aug 01 07:53:46 UTC 2024 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.create metadb database: polardbx_meta_db_polardbxThu Aug 01 07:53:46 UTC 2024 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.create user (my_polarx) on node (127.0.0.1:4886)Thu Aug 01 07:53:46 UTC 2024 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.create user (my_polarx) on node (127.0.0.1:4886:32886)Root user for polarx with password: polardbx_root && 123456Encrypted password for polarx: UY1tQsgNvP8GJGGP8vHKKA==Initialize polardbx success
看到 Initialize polardbx success 表明初始化成功 部署成功了一大半
另外需要将生成的 密码 metaDbPasswd=27qEwnDfG/6sB/YCId+yQMEUYZmaPJyjvBaFcrnXKEo= 更新到 conf/server.properties 注意空格
启动CN
bin/startup.sh -P asdf1234ghjk5678
观察启动日志

日志文件在根目录下的logs/tddl下 主要日志 tddl.log 和 meta-db.log 里
连接测试
# 在localhost下免密登录的 登录后即可看到 内容mysql -h127.1 -P8527 -upolardbx_root

默认是没有数据库的 能登录进来 即可说明 DN部署成功。
失败重试
# 登录 DN的数据库 删除 polardbx_meta_db_polardbx 库mysql -u root -S /usr/local/develop/PolarDB-X/polardbx_engine/run/mysql.sock -pdrop databases polardbx_meta_db_polardbx;# 删除 pid# 重新启动会报错提示 pid具体的路径 直接删除即可
安装 CDC (代号:polardbx-cdc)
终于到了这里 。。。。。继续开始
启动PolarDB-X进程之后,便可以初始化PolarDB-X CDC组件,需要准备以下几个配置:
metadb user:和启动PolarDB-X时设置的值保持一致,以下采用my_polarxmetadb database:和启动PolarDB-X时设置的值保持一致,以下采用 polardbx_meta_db_polardbxmetadb password:和启动PolarDB-X时设置的值保持一致,需使用密文,以下采用HMqvkvXZtT7XedA6t2IWY8+D7fJWIJir/mIY1Nf1b58=metadb port:和启动MySQL时设置的值保持一致,以下采用 4886密码加密key(dnPasswordKey):和启动PolarDB-X时设置的值保持一致,以下采用 asdf1234ghjk5678PolarDB-X用户名:和启动PolarDB-X时设置的值保持一致,以下采用默认值 polardbx_rootPolarDB-X用户密码:和启动PolarDB-X时设置的值保持一致,需使用密文,以下采用默认值H1AzXc2NmCs61dNjH5nMvA==PolarDB-X端口:和启动PolarDB-X时设置的值保持一致,以下采用默认值 8527当前机器分配给CDC使用的内存大小:以下采用16000代指,单位为M,实际配置值请替换为真实值
注意:启动 CDC 需要使用非 root 账号完成
删除config/server.properties 文件 并重新创建一个 内容如下
重点说明
内存配置 mem_size 单位MB 根据实际自己可用的来
磁盘大小 单位MB disk_size 根据实际自己可用的来
日志以及其他文件的 持久化目录 默认为 /usr/local/develop/PolarDB-X/polardbx-binlog/ 可按照实际修改 然后批量替换即可
## 基础配置#config_scan_period_second=2polardbx_instance_id=polardbx-polardbxcluster_id=cluster_1ins_id=1001ins_ip=127.0.0.1daemon_port=3007ssh_port=3008common_ports={"cdc1_port":"3009","cdc3_port":"3011","cdc2_port":"3010","cdc6_port":"3014","cdc5_port":"3013","cdc4_port":"3012"}cpu_cores=4# 内存大小mem_size=4096# 磁盘大小 单位MBdisk_size=10240rds_uid=rds_bid=rds_api_url=http://rds-api.control.internal.rds.aliyuncs.com:8087/servicesrds_api_access_id=rds_api_access_key=# CLUSTERruntime_mode=LOCAL_SINGLEprint_metrics=trueinterface_acl_enabled=falsecluster_type=assigned_dn_ip=storage.persistBasePath=/usr/local/develop/PolarDB-X/polardbx-binlog/logs/rocksdbbinlog.dir.path=/usr/local/develop/PolarDB-X/polardbx-binlog/binlog/dnPasswordKey=asdf1234ghjk5678# 修改useEncryptedPassword=true# 新增polardbx.instance.id=polardbx-polardbxsigar_enabled=truelatest_server_address_persist_file=/usr/local/develop/PolarDB-X/polardbx-binlog/env/latest_server_addr.jsonlatest_server_address_flush_interval=30cluster_role=masteris_lab_env=falseforce_reset_enable=falserelease_note_path=/usr/local/develop/PolarDB-X/polardbx-binlog/releaseNote# Storage相关的参数配置#storage_persist_enabled=truestorage_persist_txn_entity_enabled=truestorage_persist_mode=AUTOstorage_persist_all_threshold=0.95storage_persist_new_threshold=0.85storage_persist_check_interval_mills=10storage_persist_txn_threshold=104857600storage_persist_txnitem_threshold=52428800storage_persist_base_path=/usr/local/develop/PolarDB-X/polardbx-binlog/logs/rocksdbstorage_persist_delete_mode=SINGLEstorage_persist_unit_count=3storage_clean_worker_count=4storage_clean_buffer_size=10000storage_parallel_restore_enabled=truestorage_parallel_restore_parallelism=4storage_parallel_restore_batch_size=100storage_parallel_restore_max_event_size=5242880## metadb的数据库配置#metaDb_url=jdbc:mysql://127.0.0.1:4886/polardbx_meta_db_polardbx?useSSL=falsemetaDb_username=my_polarxmetaDb_password=27qEwnDfG/6sB/YCId+yQMEUYZmBPJyjvBjFcrnXKEo=metadb_scan_switch=truemetadb_scan_interval_seconds=30## polarx server的数据库配置#polarx_url=jdbc:mysql://127.0.0.1:8527/__cdc__polarx_username=polardbx_rootpolarx_password=UY1tQsgNvP8GJGGP8vHKKA==## datasource相关#datasource_max_active=60datasource_max_wait=600000datasource_check_valid_timeout_sec=1## Task和Dumper之间,Txn Stream相关参数#binlog_txn_stream_packet_mode=BYTESbinlog_txn_stream_client_async_enabled=truebinlog_txn_stream_client_receive_queue_size=64binlog_txn_stream_flow_control_window_size=800## 逻辑Binlog目录&文件&上传下载等相关配置#binlog_dir_path=/usr/local/develop/PolarDB-X/polardbx-binlog/binlogbinlog_disk_max_size_mb=524288000binlog_file_size=524288000binlog_file_seek_buffer_size=256binlog_file_seek_last_tso_mode=0binlog_write_dry_run_enabled=falsebinlog_write_dry_run_mode=1binlog_write_rows_query_event_enabled=truebinlog_write_check_rows_query_event=falsebinlog_write_check_server_id=truebinlog_write_check_server_id_target_value=binlog_write_check_tso=truebinlog_write_buffer_size=1048576binlog_write_buffer_direct_enabled=truebinlog_write_flush_policy=0binlog_write_flush_interval=1000binlog_write_heartbeat_interval=30binlog_write_heartbeat_as_txn=truebinlog_write_tableid_base_value=0binlog_parallel_build_enabled=truebinlog_parallel_build_parallelism=1binlog_parallel_build_with_batch=truebinlog_parallel_build_ring_buffer_size=65536binlog_parallel_build_max_slot_size=1024binlog_parallel_build_max_slot_payload_size=8192binlog_sync_read_buffer_size=1048576binlog_sync_packet_size=1048576binlog_sync_client_async_enabled=truebinlog_sync_client_receive_queue_size=64binlog_sync_flow_control_window_size=800binlog_sync_event_split_mode=CLIENTbinlog_sync_inject_trouble_enabled=falsebinlog_sync_check_file_status_interval_second=5binlog_dump_packet_size=2097152binlog_dump_read_buffer_size=33554432binlog_dump_master_heartbeat_period=1000000000binlog_dump_m_event_checksum_alg=CRC32binlog_dump_check_checksum_alg_switch=truebinlog_dump_back_pressure_sleep_time_us=1000binlog_dump_wait_cursor_ready_times_limit=6binlog_dump_wait_cursor_ready_retry_interval_second=5binlog_dump_test_streaming_consume_enabled=falsebinlog_dump_force_streaming_consume_enabled=falsebinlog_dump_download_path=/usr/local/develop/PolarDB-X/polardbx-binlog/logs/binlogdumpbinlog_dump_download_first_mode=truebinlog_dump_download_window_size=5binlog_dump_download_error_retry_times=10binlog_dump_download_max_wait_seconds=500binlog_backup_type=NULLbinlog_backup_file_preserve_days=15binlog_backup_purged_record_preserve_days=7binlog_backup_upload_mode=MULTI_PARTbinlog_backup_upload_buffer_size=1048576binlog_backup_upload_max_thread_num=32binlog_backup_upload_multi_append_threshold=4binlog_backup_upload_part_size=10485760binlog_backup_upload_wait_data_timeout_ms=10000binlog_backup_download_mode=PARALLELbinlog_backup_download_part_size=52428800binlog_backup_download_max_thread_num=10binlog_backup_download_last_file_count=1binlog_backup_force_download_enabled=falsebinlog_backup_download_link_preserve_seconds=43200binlog_purge_check_interval_minute=1binlog_purge_disk_use_ratio=0.9binlog_purge_enabled=truebinlog_recover_mode_with_dumper_slave=SYNCbinlog_recover_tso_overwrite_config=[]binlog_ddl_set_table_group_enabled=truebinlog_ddl_alter_manually_table_group_enabled=truebinlog_ddl_alter_implicit_table_group_enabled=true## 中心化存储相关参数#oss_endpoint=oss_bucket_name=oss_access_key_id=oss_access_key_secret=lindorm_endpoint=lindorm_thrift_port=8053lindorm_s3_port=9053lindorm_bucket_name=lindorm_access_key_id=lindorm_access_key_secret=## Daemon和拓扑相关的配置#daemon_heartbeat_interval_ms=1000daemon_watch_cluster_interval_ms=5000daemon_watch_cluster_heartbeat_timeout_ms=10000daemon_watch_cluster_wait_start_timeout_ms=10000daemon_watch_work_process_interval_ms=1000daemon_watch_work_process_heartbeat_timeout_ms=2000daemon_watch_work_process_blacklist=MysqlDumpStressTestdaemon_watch_history_resource_interval_minute=60daemon_watch_replica_in_binlog_cluster_enabled=truedaemon_tso_heartbeat_interval_ms=200daemon_tso_heartbeat_self_adaption_enabled=falsedaemon_tso_heartbeat_self_adaption_target_interval=10daemon_tso_heartbeat_self_adaption_eps_threshold=300000daemon_rest_api_acl_ak=daemon_rest_api_acl_sk=daemon_force_refresh_topology_interval=0daemon_support_refresh_topology_only_daemon_down=falsedaemon_wait_task_start_timeout_second=5daemon_wait_task_stop_timeout_second=30daemon_wait_clean_binlog_timeout_second=5# ON / OFFdaemon_dn_health_checker_switch=ONdaemon_dn_health_checker_interval=10daemon_dn_health_checker_connection_timeout_second=30daemon_dn_health_checker_sla_limit_second=120# 开启异常注入daemon_dn_health_checker_error_inject=falsedaemon_dn_health_checker_retry_num=10# 开启定时flush log测试daemon_auto_flush_log_test=falsetopology_node_minsize=1topology_work_process_heartbeat_interval_ms=1000topology_use_relay_task_threshold_with_dn_num=1024topology_resource_use_ratio=0.9topology_resource_dumper_weight=2topology_resource_dumper_slave_max_mem=8192topology_resource_task_weight=4topology_repair_storage_with_scale_enabled=truetopology_recover_tso_type=BINLOG_RECORDtopology_recover_tso_time_limit=8topology_recover_tso_binlog_num_limit=50topology_force_use_recover_tso_enabled=falsecolumnar_process_heartbeat_timeout_ms=600000## Task相关的配置#task_engine_auto_start=falsetask_merge_xa_without_tso=falsetask_merge_dry_run=falsetask_merge_dry_run_mode=1task_merge_group_unit_size=8task_merge_group_queue_size=256task_merge_group_max_level=2task_merge_source_queue_size=512task_merge_source_queue_max_total_size=20480task_merge_force_complete_heartbeat_window_time_limit=10task_merge_check_heartbeat_window_enabled=truetask_transmit_dry_run=falsetask_transmit_dry_run_mode=1task_transmit_chunk_mode=MEMSIZEtask_transmit_chunk_item_size=10240task_transmit_max_message_size=104857600task_transmit_queue_size=1024task_transmit_dumping_queue_size=64task_collect_merge_stage_parallelism=4task_collect_build_packet_size_limit=65536task_collect_queue_size=8192task_extract_log_trans=falsetask_extract_log_trans_detail=falsetask_extract_log_event=falsetask_extract_remove_hints_in_ddl_sql=falsetask_extract_skip_duplicate_txn_key=falsetask_extract_filter_logic_table_blacklist=task_extract_filter_logic_db_blacklist=task_extract_filter_physical_table_blacklist=task_extract_filter_trans_blacklist=task_extract_filter_trans_threshold=500task_extract_disorder_trace_id_allowed=falsetask_extract_sort_hold_size=-1task_extract_transaction_group_size=10000task_extract_watch_memory_leak_enabled=falsetask_extract_rebuild_data_log=falsetask_reformat_column_type_enabled=truetask_reformat_attach_private_ddl_enabled=truetask_reformat_attach_drds_hidden_pk_enabled=falsetask_reformat_ignore_mismatched_column_error=falsetask_reformat_event_force_enabled=falsetask_reformat_ddl_algorithm_blacklist=OMC,OMC_INDEXtask_reformat_ddl_hint_blacklist=GSI_BACKFILL_POSITION_MARK,FP_PAUSE_AFTER_DDL_TASK_EXECUTION,FP_STATISTIC_SAMPLE_ERRORtask_reformat_no_foreign_key_check=truetask_dump_offline_binlog_forced=falsetask_dump_offline_binlog_recall_days_limit=10task_dump_offline_binlog_prefer_host_instances=task_dump_offline_binlog_in_download_mode=falsetask_dump_offline_binlog_download_dir=/usr/local/develop/PolarDB-X/polardbx-binlog/logs/rdsbinlogtask_dump_offline_binlog_download_thread_init_num=3task_dump_offline_binlog_download_thread_max_num=10task_dump_offline_binlog_download_disk_limit_per_dn=5120task_dump_offline_binlog_download_disk_limit_total=204800task_dump_offline_binlog_cache_mode=AUTOtask_dump_offline_binlog_cache_unit_size=31457280task_dump_offline_binlog_cache_size_limit=566231040task_dump_same_region_storage_binlog=truetask_recover_check_previous_dn_change=falsetask_recover_search_tso_in_quick_mode=falsetask_recover_force_quick_search_when_loss_backup=truetask_recover_search_tso_with_v1_algorithm=false## 报警相关的参数配置#alarm_nodata_threshold_second=120alarm_delay_threshold_second=300alarm_report_alarm_event_enabled=truealarm_latest_consume_time_ms=0alarm_check_consumer_interval_ms=60000alarm_fatal_threshold_ms=7200000## meta相关的控制参数#meta_recover_rollback_mode=SNAPSHOT_EXACTLYmeta_recover_force_use_snapshot_exactly_mode=falsemeta_retrieve_instant_create_table_modes=SNAPSHOT_SEMI,SNAPSHOT_UNSAFEmeta_build_check_consistency_enabled=falsemeta_build_log_table_meta_detail_enabled=falsemeta_build_semi_snapshot_enabled=truemeta_build_semi_snapshot_preserve_hours=720meta_build_semi_snapshot_check_delta_interval_sec=60meta_build_apply_from_history_first=falsemeta_build_full_snapshot_threshold=100000meta_build_snapshot_retry_times=10meta_build_full_snapshot_check_interval_sec=3600meta_build_record_sql_with_exists_enabled=falsemeta_build_physical_ddl_sql_blacklist_regex=^(create|alter|drop)\\s+table\\s+(`)?(__drds_global_tx_log|polarx_global_trx_log)(`)?(\\s*\\(|\\s+).*,^create\\s+(definer\\s*=\\s*('|`)\\w+('|`)@('|`)[\\w|\\.|%]+('|`)\\s+)?(function|procedure)\\s+.*,^create\\s+sequence.*,^drop\\s+sequence.*,^drop\\s+procedure.*,^drop\\s+function.*,^alter\\s+user\\s+.*,^grant\\s+.*,^savepoint.*,^rollback\\s+(work\\s+)?to\\s+savepoint.*,^release\\s+savepoint.*meta_build_logic_ddl_db_blacklist=polardbxmeta_build_logic_ddl_table_blacklist=meta_build_logic_ddl_tso_blacklist=meta_build_share_topology_enabled=OFFmeta_build_share_topology_with_intern=falsemeta_build_ignore_apply_error=falsemeta_build_snapshot_error_inject=falsemeta_build_record_ignored_ddl_enabled=falsemeta_alarm_logic_ddl_count_threshold=100000meta_alarm_physical_ddl_count_threshold=500000meta_purge_physical_ddl_threshold=500000meta_purge_mark_ddl_threshold=10000meta_purge_logic_ddl_soft_delete_enabled=falsemeta_persist_base_path=/usr/local/develop/PolarDB-X/polardbx-binlog/logs/rocksdb_metameta_persist_enabled=OFFmeta_cache_compare_result_enabled=truemeta_cache_table_meta_max_size=8192meta_cache_table_meat_expire_time_minutes=60meta_write_all_variable_to_db_switch=false## FlashBack相关的参数#flashback_binlog_files_count_per_task=5flashback_binlog_write_buffer_sql_size=163840flashback_binlog_write_buffer_byte_size=536870912flashback_binlog_download_dir=/usr/local/develop/PolarDB-X/polardbx-binlog/binlogflashback_binlog_max_download_file_count=200flashback_binlog_download_thread_num=10flashback_download_link_preserve_second=1296000flashback_upload_multi_mode_threshold=5368709120## Binlog-X相关参数#binlogx_rocksdb_base_path=/usr/local/develop/PolarDB-X/polardbx-binlog/logs/rocksdb_xbinlogx_auto_init=truebinlogx_stream_group_name=binlogx_stream_count=binlogx_dir_path_prefix=/usr/local/develop/PolarDB-X/polardbx-binlog/binlogbinlogx_wait_latest_tso_timeout_second=30binlogx_schedule_dispatcher_count_per_node=1binlogx_schedule_dispatcher_memory_unit=10240binlogx_schedule_dispatcher_memory_min=1024binlogx_schedule_dispatcher_rocksdb_ratio=0.1binlogx_transmit_relay_engine_type=FILEbinlogx_transmit_relay_file_max_size=104857600binlogx_transmit_read_batch_item_size=200binlogx_transmit_read_batch_byte_size=10485760binlogx_transmit_read_file_buffer_size=1048576binlogx_transmit_read_log_detail_enabled=falsebinlogx_transmit_write_batch_size=100binlogx_transmit_write_parallelism=4binlogx_transmit_write_queue_size=256binlogx_transmit_write_file_buffer_size=1048576binlogx_transmit_write_file_buffer_use_direct_mem=truebinlogx_transmit_write_file_flush_interval_ms=100binlogx_transmit_write_slowdown_threshold=250binlogx_transmit_write_slowdown_speed=1048576binlogx_transmit_write_stop_threshold=500binlogx_transmit_write_log_detail_enabled=falsebinlogx_transmit_hash_level=binlogx_record_level_hash_db_list=binlogx_record_level_hash_table_list=binlogx_db_level_hash_db_list=binlogx_db_level_hash_table_list=binlogx_table_level_hash_db_list=binlogx_table_level_hash_table_list=binlogx_table_level_hash_table_list_regex=binlogx_clean_old_version_binlog_enabled=truebinlogx_clean_relay_data_enabled=truebinlogx_clean_relay_data_interval_minute=1binlogx_txn_stream_flow_control_window_max_size=1000binlogx_file_seek_buffer_max_total_size=512binlogx_kway_source_queue_size=128## Replica相关参数#rpl_persist_base_path=/usr/local/develop/PolarDB-X/polardbx-binlog/logs/rocksdb_rpl/rpl_task_support_running_check=truerpl_single_task_memory_when_distribute=1500rpl_random_compare_all=falserpl_rocksdb_deserialize_parallelism=1rpl_default_ignore_db_list=sys,mysql,information_schemarpl_default_sql_mode=NO_AUTO_VALUE_ON_ZEROrpl_pool_cn_black_ip_list=rpl_task_keep_alive_interval_seconds=72000# 同时影响闪回和replicarpl_filter_table_error=falserpl_persist_schema_meta_enabled=OFFrpl_table_meta_max_cache_size=8192rpl_table_meta_expire_time_minutes=60rpl_state_metrics_flush_interval_second=5rpl_ddl_retry_interval_mills=1000rpl_ddl_retry_max_count=20rpl_ddl_wait_align_interval_mills=50rpl_ddl_apply_columnar_enabled=falserpl_delay_alarm_threshold_second=900rpl_ddl_parse_error_process_mode=0rpl_error_sql_truncate_length=300rpl_full_valid_min_batch_rows_count=5000000rpl_full_valid_min_batch_byte_size=100000000rpl_full_valid_batch_size=1000000rpl_full_valid_max_sample_percentage=1.0rpl_full_valid_max_sample_rows_count=100000rpl_full_valid_parallelism=1rpl_full_valid_max_persist_rows_count=5000000rpl_full_valid_records_per_second=1000000rpl_repair_parallelism=20rpl_full_valid_skip_collect_statistic=falserpl_full_valid_auto_reset_error_tasks=truerpl_set_max_statement_time_option=falserpl_async_ddl_enabled=falserpl_async_ddl_threshold_in_second=600rpl_parallel_schema_apply_enabled=falserpl_parallel_schema_channel_enabled=truerpl_parallel_schema_channel_parallelism=10000rpl_parallel_schema_apply_batch_size=32768rpl_parallel_table_apply_enabled=falserpl_connection_init_sql=set enable_auto_savepoint = true;set foreign_key_checks = 0;set enable_foreign_key = true;set enable_create_expression_index = true;set enable_unique_key_on_gen_col=true;set transaction_policy = 'XA';rpl_apply_use_cached_thread_pool_enabled=falserpl_default_memory=2048rpl_full_valid_max_batch_rows_count=10000000rpl_full_valid_max_batch_size=500000000rpl_full_valid_runner_thread_pool_core_size=10rpl_full_valid_runner_thread_pool_max_size=20rpl_full_valid_runner_thread_pool_keep_alive_time_seconds=120rpl_full_valid_runner_thread_pool_queue_size=1024rpl_full_valid_cn_conn_pool_count=10rpl_full_valid_mock_sample=falserpl_full_valid_check_detail_fetch_size=1024rpl_extractor_ddl_log_open=false## 实验室相关参数## 开启action log表配置支持test_open_binlog_lab_event_support=false
启动 CDC
接下来,即可启动CDC daemon进程,命令如下所示。启动之后,通过jps命令查看进程状态,CDC会有3个附属进程,分别是DaemonBootStrap、TaskBootStrap和DumperBootStrap,CDC的系统日志会输出到${HOME}/logs目录下,全局binlog日志会输出到binlog.dir.path参数配置的目录下,TaskBootStrap进程和DumperBootStrap进程被kill后,会被Daemon进程自动拉起。当 runtime_mode=LOCAL_SINGLE 只会有一个进程DaemonBootStrap 其他两个 TaskBootStrap和DumperBootStrap 都内嵌在DaemonBootStrap里执行
bin/daemon.sh start
日志观察
日志文件在 ${HOME}/logs/polardbx-binlog/Daemon下重点观察 default.log
测试
登录PolarDB-X,执行一些DDL或DML操作,然后执行show binary logs 和show binlog events命令,验证全局binlog的生成状态。
mysql -h127.1 -P8527 -upolardbx_rootshow binary logs;# 这个事件会有很多show binlog events;


验证binlog 生成情况 执行DML 语句 以及 DDL 观察binlog日志的 position位点是否更新。
show master status

失败重试
CDC的报错 大概率是配置的问题 如果按照如上配置 即可规避90% 以上的错误 如果还有其他的报错,结合日志文件进行具体分析。
参考文档: https://doc.polardbx.com/zh/quickstart/topics/quickstart-development.html
结尾
遇到错误的话 多看日志 结合源码分析错误问题。
在linux环境下 检查文件夹的所属目录权限以及用户组 是否和登录的用户匹配 ,不然可能导致文件读取不到 或者无法写入 。
PolarDB技术交流钉群:





