修复Pulsar设置TTL异常,完善本地缓存更新消息
This commit is contained in:
parent
a37f02f4b9
commit
3bd36c65c9
@ -31,6 +31,7 @@
|
|||||||
"UserName": "admin",
|
"UserName": "admin",
|
||||||
"TenantName": "1YMVZZkAkRArjxSD8457",
|
"TenantName": "1YMVZZkAkRArjxSD8457",
|
||||||
"Namespace": "OneNET",
|
"Namespace": "OneNET",
|
||||||
|
"MessageTTL": 3600,
|
||||||
"PulsarSecretKey": "0fd7afb8b0d04e6abc4fdfdac2190a79",
|
"PulsarSecretKey": "0fd7afb8b0d04e6abc4fdfdac2190a79",
|
||||||
"PulsarSubscriptionCustomName": "sub",
|
"PulsarSubscriptionCustomName": "sub",
|
||||||
"EnableTls": false,
|
"EnableTls": false,
|
||||||
|
|||||||
@ -252,6 +252,7 @@ services:
|
|||||||
- --character-set-server=utf8mb4
|
- --character-set-server=utf8mb4
|
||||||
- --collation-server=utf8mb4_unicode_ci
|
- --collation-server=utf8mb4_unicode_ci
|
||||||
- --user=mysql # 确保MySQL以mysql用户运行
|
- --user=mysql # 确保MySQL以mysql用户运行
|
||||||
|
- --binlog-expire-logs-seconds=604800 # 设置binlog保留7天(7*24*60*60=604800秒)
|
||||||
deploy:
|
deploy:
|
||||||
resources:
|
resources:
|
||||||
limits:
|
limits:
|
||||||
|
|||||||
@ -204,6 +204,7 @@ services:
|
|||||||
command:
|
command:
|
||||||
- --character-set-server=utf8mb4
|
- --character-set-server=utf8mb4
|
||||||
- --collation-server=utf8mb4_unicode_ci
|
- --collation-server=utf8mb4_unicode_ci
|
||||||
|
- --binlog-expire-logs-seconds=604800 # 设置binlog保留7天(7*24*60*60=604800秒)
|
||||||
deploy:
|
deploy:
|
||||||
resources:
|
resources:
|
||||||
limits:
|
limits:
|
||||||
|
|||||||
@ -53,18 +53,31 @@
|
|||||||
"Pulsar": {
|
"Pulsar": {
|
||||||
"ServiceUrl": "pulsar+ssl://iot-north-mq.heclouds.com:6651",
|
"ServiceUrl": "pulsar+ssl://iot-north-mq.heclouds.com:6651",
|
||||||
"WebUrl": "http://localhost:8080",
|
"WebUrl": "http://localhost:8080",
|
||||||
"EnableFilter": true,
|
"UserName": "admin",
|
||||||
"EnableAuthorization": true,
|
"TenantName": "1YMVZZkAkRArjxSD8457",
|
||||||
"EnableIoTAuth": true,
|
"Namespace": "OneNET",
|
||||||
"EnableTls": null,
|
"MessageTTL": 360,
|
||||||
"TlsCertificatePath": null,
|
"PulsarSecretKey": "0fd7afb8b0d04e6abc4fdfdac2190a79",
|
||||||
"TlsPrivateKeyPath": null,
|
"PulsarSubscriptionCustomName": "sub4",
|
||||||
"ValidateServerCertificate": null,
|
"EnableTls": false,
|
||||||
"NumPartitions": 30,
|
"ValidateServerCertificate": false,
|
||||||
"TaskThreadCount": 4,
|
"ConnectionTimeout": 30,
|
||||||
"IoTAccessId": "your_project_access_id",
|
"OperationTimeout": 30,
|
||||||
"IoTSecretKey": "your_project_secret_key",
|
"KeepAliveInterval": 30,
|
||||||
"IsSubscriber": true
|
"TaskThreadCount": 8,
|
||||||
|
"IsSubscriber": true,
|
||||||
|
"DefaultPartitions": 16,
|
||||||
|
"DefaultBundles": 16,
|
||||||
|
"EnableAutoCreation": true, //开启自动创建Topic
|
||||||
|
"TopicMode": "Static", //Dynamic 主题模式
|
||||||
|
"EnableTopicTypeFilter": true, //允许Topic类型过滤
|
||||||
|
"AllowedTopicTypes": [ "Static" ], //允许的Topic类型
|
||||||
|
"AllowedClusters": [ "pulsar-cluster-1" ], //允许的集群
|
||||||
|
"AdminRoles": [ "admin" ],
|
||||||
|
"EnableConsumerIdleCleanup": true,
|
||||||
|
"ConsumerIdleCleanupMinutes": 120,
|
||||||
|
"EnableProducerIdleCleanup": true,
|
||||||
|
"ProducerIdleCleanupMinutes": 60
|
||||||
},
|
},
|
||||||
"IoTDBOptions": {
|
"IoTDBOptions": {
|
||||||
"UserName": "root",
|
"UserName": "root",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user