MES-ETL/ConsoleApp2/appsettings.json

34 lines
824 B
JSON
Raw Normal View History

2024-01-12 16:50:37 +08:00
{
"CmdOptions": {
"InputFileType": "CSV",
"InputDir": "D:/MyDumper-ZST",
2024-01-17 15:10:11 +08:00
"TaskCount": 6,
2024-01-17 11:40:16 +08:00
"FlushCount": 10000,
2024-01-12 16:50:37 +08:00
"Isutf8mb4": true,
2024-01-16 18:03:40 +08:00
"OldestShardKey": 23000,
"OldestTime": "202301"
},
2024-01-17 11:40:16 +08:00
"ConnectionStrings": {
"MySqlMaster": "Server=127.0.0.1;Port=33309;UserId=root;Password=123456;" // 要分库,不用加'Database='了
2024-01-17 11:40:16 +08:00
},
2024-01-16 18:03:40 +08:00
"RedisCacheOptions": {
2024-01-17 15:10:11 +08:00
"Configuration": "192.168.1.246:6380",
"InstanceName" : "mes-etl:"
},
"TenantDb": // 分库配置
{
"TenantKey" : "CompanyID",
"DbList": {
/*
*
* (CompanyId < 1000) -> cferp_test_1
* (CompanyId < 2000) -> cferp_test_2
* (CompanyId < 2147483647) -> cferp_test_3
*/
"cferp_test_1": 1000,
"cferp_test_2": 2000,
"cferp_test_3": 2147483647
}
2024-01-12 16:50:37 +08:00
}
}