@@ -32,6 +32,7 @@ namespace TelpoPush.Service.Mq.Kafka | |||||
//SslCaLocation = @"D:\THOMAS\Project\SSJL\C#\Net8\TelpoPushThirdSsl\pem\ca-root.pem", | //SslCaLocation = @"D:\THOMAS\Project\SSJL\C#\Net8\TelpoPushThirdSsl\pem\ca-root.pem", | ||||
EnableAutoCommit = false, // 禁止AutoCommit | EnableAutoCommit = false, // 禁止AutoCommit | ||||
AutoOffsetReset = AutoOffsetReset.Earliest, // 从最早的开始消费起 | AutoOffsetReset = AutoOffsetReset.Earliest, // 从最早的开始消费起 | ||||
CancellationDelayMaxMs=1 | |||||
}; | }; | ||||
} | } | ||||
@@ -33,7 +33,7 @@ namespace TelpoPush.Worker.ThirdSsl.Handlers | |||||
{ | { | ||||
//lock (_syncLocker) | //lock (_syncLocker) | ||||
//{ | //{ | ||||
_logger.LogInformation($"获取kafka数据Message:<{message}>"); | |||||
_logger.LogInformation($"获取kafka数据Message:<{message}>"); | |||||
if (!string.IsNullOrEmpty(message)) | if (!string.IsNullOrEmpty(message)) | ||||
{ | { | ||||
@@ -43,7 +43,7 @@ namespace TelpoPush.Worker.ThirdSsl.Handlers | |||||
switch (model.TopicName) | switch (model.TopicName) | ||||
{ | { | ||||
case "topic.push.telpo.zkheartrate": | case "topic.push.telpo.zkheartrate": | ||||
await DataServiceZkRealHRMonitor(model); | |||||
await DataServiceZkRealHRMonitor(model); | |||||
break; | break; | ||||
default: | default: | ||||
break; | break; | ||||
@@ -21,7 +21,7 @@ namespace TelpoPush.Worker.ThirdSsl | |||||
while (!stoppingToken.IsCancellationRequested) | while (!stoppingToken.IsCancellationRequested) | ||||
{ | { | ||||
await _kafkaSubscribe.SubscribeAsync(); | await _kafkaSubscribe.SubscribeAsync(); | ||||
await Task.Delay(30000, stoppingToken); | |||||
//await Task.Delay(30000, stoppingToken); | |||||
} | } | ||||
} | } | ||||
} | } | ||||
@@ -6,12 +6,12 @@ | |||||
}, | }, | ||||
"ServiceConfig": { | "ServiceConfig": { | ||||
"TelpoDataUrl": "http://ai.ssjlai.com/data", | "TelpoDataUrl": "http://ai.ssjlai.com/data", | ||||
"KafkaBootstrapServers": "k0.id.gdssjl.com:9094", // "172.19.42.53:9092", | |||||
"KafkaBootstrapServers": "k0.ai.gdssjl.com:9094,k1.ai.gdssjl.com:9094,k2.ai.gdssjl.com:9094", // "172.19.42.53:9092", | |||||
"KafkaTopics": [ "topic.push.telpo.zkheartrate" ], | "KafkaTopics": [ "topic.push.telpo.zkheartrate" ], | ||||
"KafkaGroupId": "telpo-tcp-group", | "KafkaGroupId": "telpo-tcp-group", | ||||
"KafkaSaslUsername": "telpo-consumer", | "KafkaSaslUsername": "telpo-consumer", | ||||
"KafkaSaslPassword": "telpo-consumer-pwd", | "KafkaSaslPassword": "telpo-consumer-pwd", | ||||
"KafkaSslCaLocation": "pem/ca-root.pem", | |||||
"KafkaSslCaLocation": "pem/ca-root-prod.pem", | |||||
"CacheDurationSeconds": 1200, //20分钟 | "CacheDurationSeconds": 1200, //20分钟 | ||||
"CacheDurationSeconds10": 600 //10分钟 | "CacheDurationSeconds10": 600 //10分钟 | ||||
}, | }, | ||||
@@ -14,7 +14,7 @@ | |||||
"KafkaGroupId": "telpo-tcp-group", | "KafkaGroupId": "telpo-tcp-group", | ||||
"KafkaSaslUsername": "telpo-consumer", | "KafkaSaslUsername": "telpo-consumer", | ||||
"KafkaSaslPassword": "telpo-consumer-pwd", | "KafkaSaslPassword": "telpo-consumer-pwd", | ||||
"KafkaSslCaLocation": "pem/ca-root.pem", | |||||
"KafkaSslCaLocation": "pem/ca-root-test.pem", | |||||
"CacheDurationSeconds": 1200, //20分钟 | "CacheDurationSeconds": 1200, //20分钟 | ||||
"CacheDurationSeconds10": 600 //10分钟 | "CacheDurationSeconds10": 600 //10分钟 | ||||
}, | }, | ||||
@@ -0,0 +1,30 @@ | |||||
-----BEGIN CERTIFICATE----- | |||||
MIIFDTCCAvWgAwIBAgIUMXj3EAgZN6x7V7Pj3TloZJSamAswDQYJ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SqGSIb3DQEBCwUAA4ICAQBjRp3aixXzG8PNsX4DJuqJQPIMKGkPnxGCMUIdjYjm | |||||
+rAbRDRJzWqIOTYFE1FwXr5vkMr6MAR92ZwUY5k2+POwPo1ZHj8g/ESngfnLuh8Y | |||||
UojmYUU1Nofe8np1ApAArOxW/E0aPrjZOnTRGFK0M3Zzh4DP8bcC6Cy2UFfzYctb | |||||
X4lHI/CFpuqK+0uHXjSMQ67P/gyt3h7H9PjBpH08E4t/jWmldTr+KLPj3dAnnJyA | |||||
fa1WDkcxeVruhtjAXPyHAfpkWBfi3XWYJYhCas1Ng7CAdfPODAv3ya+H4EJkJt9L | |||||
hKoPybQFOPNX29hnxRX6X028yTC9e2qbMe9oaXW42ZsPGFo4nqNWzWSkiHfNx/Pp | |||||
U8kV1PLkbc0k8KKu09mj/Ude5RUJzBmTapYVG8EoeT2NHLr+XIEzw6mRzGjRqsau | |||||
kXC70tLoytLLoOfYdhInne87hD1b/XBSHktdlNGEz1yin9W7G87cfFxDNvfUZ8qN | |||||
yN/7YcXD9PS93uoE4NEgSn1np+SEeVFwUO2RRtGOShd/x3ghdI3fUTT6r8RJJmYP | |||||
L4rTQw+kpIcnKEnzybOqt4sJZYLzVBW1yCMdHIzwJGtbEgA9drZsbHA6DGAgRv/4 | |||||
1JxYR97ilnPqPsbVFKP9d83vWUoWLi8hP9LrU6SAxTP0XAocQ5tLUHHcv+8fQ78X | |||||
CQ== | |||||
-----END CERTIFICATE----- |