devicedriveservice-test.yaml 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  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: 192.168.2.92:8848
  30. namespace: 49ab56f7-3752-4c43-a935-a1d4024eb82b
  31. redis:
  32. host: 192.168.2.92
  33. database: 1
  34. port: 6379
  35. password: Fjc@2025
  36. prefix: fsv2_test
  37. jedis:
  38. pool:
  39. max-active: 8
  40. max-wait: -1
  41. max-idle: 8
  42. min-idle: 0
  43. mqtt:
  44. emqx:
  45. endpoint: 192.168.2.92
  46. port: 1883
  47. username: admin
  48. password: fujica0408
  49. subclientid: ${spring.application.name}-subscriber-${random.value}
  50. pubclientid: ${spring.application.name}-publisher-${random.value}
  51. qos: 1
  52. keepaliveinterval: 300
  53. cleansession: false
  54. automaticreconnect: true
  55. completiontimeout: 30000
  56. reconnectInterval: 10000
  57. maxReconnectAttempts: -1
  58. connectionTimeout: 30
  59. baseReconnectDelay: 1000
  60. maxReconnectDelay: 60000
  61. topicdeviceup: device/+/message/up/+
  62. topicdownack: device/+/message/down/+/reply
  63. topicheartbeat: $/device/+/message/up/keep_alive
  64. retry:
  65. enabled: true
  66. maxAttempts: 10
  67. initialInterval: 5000
  68. maxInterval: 60000
  69. multiplier: 2.0
  70. connectionTimeout: 30000
  71. heartbeatInterval: 30000
  72. immediateRetry: true
  73. strategy: EXPONENTIAL_BACKOFF
  74. rocketmq:
  75. name-server: 192.168.16.20:9876;192.168.16.21:9876;192.168.16.22:9876
  76. producer:
  77. group: device-drive-producer
  78. send-message-timeout: 30000
  79. retry-times-when-send-failed: 3
  80. topic:
  81. up:
  82. deviceRecognitionResult: device_recognition_test
  83. gateStatus: control_gate_result_test
  84. gpioInput: gpio_input_event_test
  85. heartbeat: heartbeat_event_test
  86. serialData: serial_data_event_test
  87. snapshotResult: snapshot_result_event_test
  88. reply: device-reply-event_test
  89. gpioDeviceStatus: gpio_device_status_test
  90. consumer:
  91. topic:
  92. parkDeviceInfoSync: park-device-info-sync_test
  93. deviceCommand: parkauth_device_command_test
  94. group:
  95. parkDeviceInfoSync: park-device-info-sync-group_test
  96. deviceCommand: device-command-consumer-group_test
  97. device:
  98. auto-register: true
  99. heartbeat-interval: 60
  100. offline-timeout: 300
  101. async:
  102. thread-pool:
  103. common:
  104. core-pool-size: 4
  105. max-pool-size: 16
  106. queue-capacity: 512
  107. name-prefix: async-common-