omind-mq.yml 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. --- # rabbitmq 配置
  2. spring:
  3. rabbitmq:
  4. host: 172.25.0.11
  5. port: 5672
  6. username: tino
  7. password: tino2023
  8. cloud:
  9. # https://docs.spring.io/spring-cloud-stream/reference/rabbit/rabbit_overview/receiving-batch.html
  10. function:
  11. # 重点配置 与 binding 名与消费者对应
  12. definition: stationPriceSender;priceSender;realtimeData;chargeOrderData;heartBeat
  13. stream:
  14. function:
  15. bindings:
  16. realtimeData-in-0: realtimeData-in
  17. realtimeData-out-0: realtimeData-out
  18. chargeOrderData-in-0: chargeOrderData-in
  19. chargeOrderData-out-0: chargeOrderData-out
  20. priceSender-in-0: priceSender-in
  21. priceSender-out-0: priceSender-out
  22. stationPriceSender-in-0: stationPriceSender-in
  23. stationPriceSender-out-0: stationPriceSender-out
  24. heartBeat-in-0: heartBeat-in
  25. heartBeat-out-0: heartBeat-out
  26. default-binder: rabbit
  27. bindings:
  28. realtimeData-in:
  29. binder: rabbit
  30. destination: realtimeData-topic
  31. content-type: application/json
  32. group: device-group
  33. consumer:
  34. batch-mode: true
  35. concurrency: 1 # 初始/最少/空闲时 消费者数量。默认1
  36. realtimeData-out:
  37. binder: rabbit
  38. destination: realtimeData-topic
  39. content-type: application/json
  40. group: device-group
  41. chargeOrderData-in:
  42. binder: rabbit
  43. destination: chargeOrderData-topic
  44. content-type: application/json
  45. group: device-group
  46. chargeOrderData-out:
  47. binder: rabbit
  48. destination: chargeOrderData-topic
  49. content-type: application/json
  50. group: device-group
  51. priceSender-in:
  52. binder: rabbit
  53. destination: priceSender-topic
  54. content-type: application/json
  55. group: device-group
  56. priceSender-out:
  57. binder: rabbit
  58. destination: priceSender-topic
  59. content-type: application/json
  60. group: device-group
  61. stationPriceSender-in:
  62. binder: rabbit
  63. destination: stationPriceSender-topic
  64. content-type: application/json
  65. group: device-group
  66. stationPriceSender-out:
  67. binder: rabbit
  68. destination: stationPriceSender-topic
  69. content-type: application/json
  70. group: device-group
  71. heartBeat-in:
  72. binder: rabbit
  73. destination: heartBeat-topic
  74. content-type: application/json
  75. group: device-group
  76. consumer:
  77. batch-mode: true
  78. concurrency: 1 # 初始/最少/空闲时 消费者数量。默认1
  79. heartBeat-out:
  80. binder: rabbit
  81. destination: heartBeat-topic
  82. content-type: application/json
  83. group: device-group
  84. rabbit:
  85. bindings:
  86. realtimeData-in:
  87. consumer:
  88. enable-batching: true
  89. batch-size: 50
  90. receive-timeout: 2000
  91. producer:
  92. batching-enabled: true
  93. batch-size: 50
  94. batch-buffer-limit: 2000
  95. batch-timeout: 5000
  96. heartBeat-in:
  97. consumer:
  98. enable-batching: true
  99. batch-size: 50
  100. receive-timeout: 2000
  101. producer:
  102. batching-enabled: true
  103. batch-size: 50
  104. batch-buffer-limit: 2000
  105. batch-timeout: 5000