A complementary configuration for sharding-scaling
We will supply a complementary configuration for sharding-scaling for first using to migrate data from previous databases to shardingsphere. The complementary configuration shows like:
{
"ruleConfiguration": {
"sourceDatasource": [
{
"password": "123456",
"url": "jdbc:mysql://127.0.0.1:3306/db1?serverTimezone=UTC&useSSL=false",
"username": "root",
"table": "test1"
},
{
"password": "123456",
"url": "jdbc:mysql://127.0.0.1:3306/db2?serverTimezone=UTC&useSSL=false",
"username": "root",
"table": "test2"
}
],
"destinationDataSources":
{
"password": "123456",
"url": "jdbc:mysql://127.0.0.1:3306/test?serverTimezone=UTC&useSSL=false",
"username": "root",
}
},
"jobConfiguration": {
"concurrency": 3
}
}
I think it is more readable for the people who is first use sharding-scaling for data migration from previous databases to shardingsphere.
Can we add field to distinguish source and destination component? For source, there has jdbc and shardingsphere configuration, the destination is the same as.
IMO,this config should be generated automatically.
After use elastic-job, we will reconstructor this config.