使用外置【TDSQL -C MySQL】数据库部署ONES
前置约束
- 仅支持ONES安装时指定;
- 要求ONES版本不低于3.14.29,适配版本为TDSQL MySQL(MySQL 8.0);
- 需提供TDSQL数据库root用户密码。
操作步骤
准备外置数据库
请自行准备好一个TDSQL数据库实例,最好是一个新的实例,不要使用已有的实例,以免影响已有业务。
调整TDSQL数据库配置
| 参数 | ONES 配置 |
|---|---|
| bulk_insert_buffer_size | 8388608 |
| character_set_server | utf8mb4 |
| collation_server | utf8mb4_unicode_ci |
| explicit_defaults_for_timestamp | ON |
| innodb_large_prefix | ON |
| innodb_lock_wait_timeout | 120 |
| innodb_max_dirty_pages_pct | 90 |
| interactive_timeout | 28800 |
| join_buffer_size | 8192kb |
| max_connect_errors | 6000 |
| net_read_timeout | 600 |
| net_write_timeout | 600 |
| query_cache_size | 8M |
| read_buffer_size | 2M |
| session_track_gtids | OWN_GTID |
| sort_buffer_size | 8M |
| tmp_table_size | 16M |
| wait_timeout | 28800 |
| transaction_isolation | REPEATABLE-READ |
| innodb_flush_log_at_trx_commit | 2 |
| init_connect | 'SET NAMES utf8mb4' |
| read_rnd_buffer_size | 8M |
使用外置TDSQL部署ONES
请先根据安装文档部署ONES,当部署到“配置 ONES”这一步时,根据如下步骤继续部署。