shardingsphere icon indicating copy to clipboard operation
shardingsphere copied to clipboard

A complementary configuration for sharding-scaling

Open ssxlulu opened this issue 6 years ago • 3 comments

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.

ssxlulu avatar May 19 '20 05:05 ssxlulu

Can we add field to distinguish source and destination component? For source, there has jdbc and shardingsphere configuration, the destination is the same as.

avalon5666 avatar May 19 '20 11:05 avalon5666

IMO,this config should be generated automatically.

kimmking avatar May 25 '20 07:05 kimmking

After use elastic-job, we will reconstructor this config.

Lucas-307 avatar Jul 14 '20 10:07 Lucas-307