Yearning icon indicating copy to clipboard operation
Yearning copied to clipboard

自建IDC与云厂商RDS大表DDL兼容性问题

Open blylei opened this issue 3 years ago • 0 comments

在执行OSC时,且配置gh-ost作为OSC的执行工具时,如果数据库是自建IDC与RDS混合使用时,通过规则配置页面配置的参数无法适配自建IDC与云厂商RDS。针对云厂商的RDS,在原本适用于自建IDC参数的基础上,还需要增加以下参数:

  1. Aliyun:-aliyun-rds
  2. GCP: -gcp
  3. Azure: -azure

实现思路如下:

if pt-osc{
	fmt.Println("正常执行,pt-osc不区分数据库实例类型")
}else{
	if aliyun{
		fmt.Println("新增-aliyun-rds参数")
	}else if gcp{
		fmt.Println("新增-gcp”参数")
	}else if azure{
		fmt.Println("新增“-azure”参数")
	}else{
		fmt.Println("暂不支持的云RDS")
	}
}

blylei avatar Oct 26 '22 02:10 blylei