配置文件

This commit is contained in:
xiaolipro 2025-08-15 23:38:48 +08:00
parent 3b43ffa0e5
commit d4716e3faf
2 changed files with 143 additions and 2 deletions

2
.gitignore vendored
View File

@ -6,8 +6,6 @@
*.user
*.sln.docstates
appsettings.json
logs/
# Build results
[Dd]ebug/

View File

@ -0,0 +1,143 @@
{
"Serilog": {
"MinimumLevel": {
"Default": "Debug",
"Override": {
"Microsoft.AspNetCore": "Debug"
}
},
"Enrich": [
"FromLogContext",
"WithMachineName",
"WithProcessId",
"WithThreadId"
],
"WriteTo": [
{
"Name": "Console"
}
]
},
"AllowedHosts": "*",
"App": {
"Urls": [
"http://*:8889"
],
"CorsOrigins": [
"http://localhost:8889"
]
},
"TrackApp": {
"TrackRefreshFetchCount": 4,
"OrderPullStatusScanInterval": 60,
"TrackButtomUpScanInterval":600,
"WarningNotifyUrl": "http://xxxx",
"ItfxBaseAddress": "http://43.139.210.35:8888/"
},
"ConnectionStrings": {
"Default": "server=129.204.22.146;database=track_center;uid=dev;pwd=itd!@#123;charset=utf8mb4;"
},
"FeiShuNotice": {
"Title": "TrackCenter-Dev",
"Webhook": "https://open.feishu.cn/open-apis/bot/v2/hook/255c44ff-5891-4902-9b6a-6d0250e745f7",
"Timeout": 20
},
"Redis": {
"Host": "129.204.22.146:6379",
"Password": "itd!@#123",
"MaxPoolSize": 1000,
"Database": 1,
"Prefix": ""
},
"RabbitMQ": {
"Connections": {
"Default": {
"HostName": "129.204.22.146",
"Port": 5672,
"UserName": "rabbit",
"Password": "itd!@#123"
}
}
},
"ElasticSearch": {
"NodeUrls": [
"http://129.204.22.146:9200"
],
"LoginName": "elastic",
"Password": "afyTgmVb8jq6",
"Base64PassPassword": "Basic ZWxhc3RpYzphZnlUZ21WYjhqcTY="
},
"Kafka": {
"BootstrapServers": "kafka01.test.itfx.local:9092,kafka02.test.itfx.local:9092,kafka03.test.itfx.local:9092",
"Consumer": {
// 会话超时时间ms,超时时间未收到客户端心跳,则会移除该客户端同时触发自平衡
"SessionTimeoutMs": 45000,
// 超过这个时间消息没有消费,则认为消费失败同时组也认为消费失败,触发自平衡给其他消费者
"MaxPollIntervalMs": 300000,
// 心跳间隔ms
"HeartbeatIntervalMs": 3000,
// 提取消息的最小字节数1024*64,
"FetchMinBytes": 65536,
// 提取消息的最大字节数
"FetchMaxBytes": 1048576,
// 等待填充Fetch的最大ms
"FetchWaitMaxMs": 3000
},
"Producer": {
// 发送重试次数
"MessageSendMaxRetries": 3,
// 请求超时ms
"RequestTimeoutMs": 30000,
// 压缩类型 None/Gzip/Snappy/Lz4/Zstd
"CompressionType": "Lz4",
// Gzip 0-9 LZ4 0-12 数值越大压缩效果越好cpu占用越多
"CompressionLevel": 6,
// 最多允许累计多少ms消息积压
"LingerMs": 3000,
// 批处理最大尺寸 1024 * 256 字节
"BatchSize": 262144,
// 批处理最大消息数
"BatchNumMessages": 2000,
// 生产者队列最大消息数量
"QueueBufferingMaxMessages": 100000,
// 生产者队列最大尺寸
"QueueBufferingMaxKbytes": 1048576,
// 分区器 Random/Consistent/ConsistentRandom/Murmur2/Murmur2Random
"Partitioner": "ConsistentRandom"
}
},
"CAP": {
"FailedRetryCount": 3,
"FailedRetryInterval": 60,
"FallbackWindowLookbackSeconds": 2400,
"PrefetchCount": 1,
"SucceedMessageExpiredAfter": 21600,
"EnableSubscriberParallelExecute": true,
"EnablePublishParallelSend" : false
},
// 预警任务配置,优先级0最高,可选0,1,2
"WarningTask": {
// 业务中台系统id
"MiddleSystemId": 9498,
// 预警计算批量大小
"WarningCalcBatchSize": 1000,
// 预警计算间隔ms
"WarningCalcInterval": 60000,
// 预警计算最大重试次数
"WarningCalcMaxRetryCount": 3,
// 通知任务优先级
"ScanWarningNotifyTaskLevel": 1,
// 预警通知任务扫描间隔(小时)
"ScanWarningNotifyTaskHourInterval": 4,
// 回传预警最大重试次数
"ReturnWarningMaxRetryCount": 3,
// 回传重试推送任务优先级
"ScanReturnWarningRetryPushTaskLevel": 0,
// 回传重试推送任务扫描间隔(分钟)
"ScanReturnWarningRetryPushTaskMinuteInterval": 3,
// 预警明细生成任务优先级
"ScanTransportWarningDetailsGenerateTaskLevel": 0,
// 预警明细生成任务扫描间隔(分钟)
"ScanTransportWarningDetailsGenerateTaskMinuteInterval": 5
}
}