| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114 |
- server:
- port: 10042
- servlet:
- encoding:
- charset: UTF-8
- force: true
- context-path: /devicedrive
- compression:
- enabled: true
- mime-types: application/json,application/xml,text/html,text/xml,text/plain
- min-response-size: 2048
- logging:
- file:
- path: log/wookit
- level:
- root: info
- "[javax.management]": INFO
- "[org.apache.http]": INFO
- "[org.apache.tomcat.util.net.NioEndpoint]": INFO
- "[sun.rmi]": INFO
- "[com.alibaba.nacos]": ERROR
- tracer: trace # 开启trace级别日志,在开发时可以开启此配置,则控制台可以打印es全部请求信息及DSL语句,为了避免重复,开启此项配置后,可以将EE的print-dsl设置为false.
- spring:
- application:
- name: devicedriveservice
- cloud:
- nacos:
- discovery:
- server-addr: 10.16.0.49:8848
- namespace: 02f60846-3747-424e-a598-2ea9e66dfe87
- redis:
- host: r-wz968zear8t0d8bkbg.redis.rds.aliyuncs.com
- database: 3
- port: 6379
- password: yn8Vh85rxvtUPnqB
- prefix: fsv2_pro
- jedis:
- pool:
- max-active: 100
- max-wait: -1
- max-idle: 20
- min-idle: 10
- mqtt:
- emqx:
- # TODO 生产环境 EMQX 地址/账号密码待确认,测试环境为 192.168.2.92 / admin / fujica0408
- endpoint: ytcemq-pro.fujica.com.cn
- port: 1883
- username: admin
- password: PacD&98#fhWVESV#6dNY%5V!
- subclientid: ${spring.application.name}-subscriber-${random.value}
- pubclientid: ${spring.application.name}-publisher-${random.value}
- qos: 1
- keepaliveinterval: 300
- cleansession: false
- automaticreconnect: true
- completiontimeout: 30000
- reconnectInterval: 10000
- maxReconnectAttempts: -1
- connectionTimeout: 30
- baseReconnectDelay: 1000
- maxReconnectDelay: 60000
- topicdeviceup: device/+/message/up/+
- topicdownack: device/+/message/down/+/reply
- topicheartbeat: $/device/+/message/up/keep_alive
- retry:
- enabled: true
- maxAttempts: 10
- initialInterval: 5000
- maxInterval: 60000
- multiplier: 2.0
- connectionTimeout: 30000
- heartbeatInterval: 30000
- immediateRetry: true
- strategy: EXPONENTIAL_BACKOFF
- rocketmq:
- name-server: 10.16.0.80:9876;10.16.0.81:9876;10.16.0.82:9876
- producer:
- group: device-drive-producer
- send-message-timeout: 30000
- retry-times-when-send-failed: 3
- topic:
- up:
- deviceRecognitionResult: device_recognition_pro
- gateStatus: control_gate_result_pro
- gpioInput: gpio_input_event_pro
- heartbeat: heartbeat_event_pro
- serialData: serial_data_event_pro
- snapshotResult: snapshot_result_event_pro
- reply: device-reply-event_pro
- gpioDeviceStatus: gpio_device_status_pro
- consumer:
- topic:
- parkDeviceInfoSync: park-device-info-sync_pro
- deviceCommand: parkauth_device_command_pro
- group:
- parkDeviceInfoSync: park-device-info-sync-group_pro
- deviceCommand: device-command-consumer-group_pro
- device:
- auto-register: true
- heartbeat-interval: 60
- offline-timeout: 300
- async:
- thread-pool:
- common:
- core-pool-size: 4
- max-pool-size: 16
- queue-capacity: 512
- name-prefix: async-common-
|