🚧 confkeeper 正在公司内部测试中 请勿在生产环境使用

迁移指南

迁移工具

nacos的配置文件迁移到confkeeper

主要迁移的是配置文件表和命名空间表

先使用confkeeper启动一次,建完所有表

然后运行迁移工具,并加上配置文件./confkeeper-migrate --config=config.yaml

配置文件示例

Tip

其中tenant_names配置是指定需要迁移的命名空间,如果不加这个配置的话就是迁移所有命名空间

# 数据库配置
source:
  type: "mysql"
  mysql:
    host: "localhost"
    port: 3306
    username: "nacos"
    password: "xxx"
    database: "nacos_devtest"
    charset: "utf8mb4"

target:
  type: "postgresql"
  postgresql:
    host: "localhost"
    port: 5432
    username: "postgres"
    password: "xxx"
    database: "confkeeper"
    sslmode: "disable"

# 迁移配置
migration:
  batch_size: 1000
  timeout_seconds: 300
  tenant_names:
    - "default"