devicedriveservice-pro.yaml 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. server:
  2. port: 10042
  3. servlet:
  4. encoding:
  5. charset: UTF-8
  6. force: true
  7. context-path: /devicedrive
  8. compression:
  9. enabled: true
  10. mime-types: application/json,application/xml,text/html,text/xml,text/plain
  11. min-response-size: 2048
  12. logging:
  13. file:
  14. path: log/wookit
  15. level:
  16. root: info
  17. "[javax.management]": INFO
  18. "[org.apache.http]": INFO
  19. "[org.apache.tomcat.util.net.NioEndpoint]": INFO
  20. "[sun.rmi]": INFO
  21. "[com.alibaba.nacos]": ERROR
  22. tracer: trace # 开启trace级别日志,在开发时可以开启此配置,则控制台可以打印es全部请求信息及DSL语句,为了避免重复,开启此项配置后,可以将EE的print-dsl设置为false.
  23. spring:
  24. application:
  25. name: devicedriveservice
  26. cloud:
  27. nacos:
  28. discovery:
  29. server-addr: 10.16.0.49:8848
  30. namespace: 02f60846-3747-424e-a598-2ea9e66dfe87
  31. redis:
  32. host: r-wz968zear8t0d8bkbg.redis.rds.aliyuncs.com
  33. database: 3
  34. port: 6379
  35. password: yn8Vh85rxvtUPnqB
  36. prefix: fsv2_pro
  37. jedis:
  38. pool:
  39. max-active: 100
  40. max-wait: -1
  41. max-idle: 20
  42. min-idle: 10
  43. mqtt:
  44. emqx:
  45. # TODO 生产环境 EMQX 地址/账号密码待确认,测试环境为 192.168.2.92 / admin / fujica0408
  46. endpoint: ytcemq-pro.fujica.com.cn
  47. port: 1883
  48. username: admin
  49. password: PacD&98#fhWVESV#6dNY%5V!
  50. subclientid: ${spring.application.name}-subscriber-${random.value}
  51. pubclientid: ${spring.application.name}-publisher-${random.value}
  52. qos: 1
  53. keepaliveinterval: 300
  54. cleansession: false
  55. automaticreconnect: true
  56. completiontimeout: 30000
  57. reconnectInterval: 10000
  58. maxReconnectAttempts: -1
  59. connectionTimeout: 30
  60. baseReconnectDelay: 1000
  61. maxReconnectDelay: 60000
  62. topicdeviceup: device/+/message/up/+
  63. topicdownack: device/+/message/down/+/reply
  64. topicheartbeat: $/device/+/message/up/keep_alive
  65. retry:
  66. enabled: true
  67. maxAttempts: 10
  68. initialInterval: 5000
  69. maxInterval: 60000
  70. multiplier: 2.0
  71. connectionTimeout: 30000
  72. heartbeatInterval: 30000
  73. immediateRetry: true
  74. strategy: EXPONENTIAL_BACKOFF
  75. rocketmq:
  76. name-server: 10.16.0.80:9876;10.16.0.81:9876;10.16.0.82:9876
  77. producer:
  78. group: device-drive-producer
  79. send-message-timeout: 30000
  80. retry-times-when-send-failed: 3
  81. topic:
  82. up:
  83. deviceRecognitionResult: device_recognition_pro
  84. gateStatus: control_gate_result_pro
  85. gpioInput: gpio_input_event_pro
  86. heartbeat: heartbeat_event_pro
  87. serialData: serial_data_event_pro
  88. snapshotResult: snapshot_result_event_pro
  89. reply: device-reply-event_pro
  90. gpioDeviceStatus: gpio_device_status_pro
  91. consumer:
  92. topic:
  93. parkDeviceInfoSync: park-device-info-sync_pro
  94. deviceCommand: parkauth_device_command_pro
  95. group:
  96. parkDeviceInfoSync: park-device-info-sync-group_pro
  97. deviceCommand: device-command-consumer-group_pro
  98. device:
  99. auto-register: true
  100. heartbeat-interval: 60
  101. offline-timeout: 300
  102. async:
  103. thread-pool:
  104. common:
  105. core-pool-size: 4
  106. max-pool-size: 16
  107. queue-capacity: 512
  108. name-prefix: async-common-