application-db.yaml 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  1. server:
  2. port: 8012
  3. max-http-header-size: 128KB
  4. spring:
  5. application:
  6. name: data-adapter
  7. jpa:
  8. show-sql: false
  9. cache:
  10. type: SIMPLE
  11. datasource:
  12. type: com.alibaba.druid.pool.DruidDataSource
  13. driver-class-name: org.postgresql.Driver
  14. url: jdbc:postgresql://172.16.12.102:5432/power_lcm
  15. username: postgres
  16. password: GYee@#56
  17. druid:
  18. max-active: 20
  19. initial-size: 1
  20. min-idle: 3
  21. max-wait: 60000
  22. time-between-eviction-runs-millis: 60000
  23. min-evictable-idle-time-millis: 300000
  24. test-while-idle: true
  25. test-on-borrow: false
  26. test-on-return: false
  27. # config:
  28. # activate:
  29. # on-profile: nx
  30. # redis:
  31. # database: 2
  32. # host: 192.168.2.5
  33. # password:
  34. # port: 6379
  35. # timeout: 60000
  36. # jedis:
  37. # pool:
  38. # maxTotal: 20
  39. # maxIdle: 20
  40. # maxwait: 60000
  41. # minIdle: 10
  42. # 此处Key不可改变
  43. knife4j:
  44. redis:
  45. # 是否采用json序列化方式,若不采用jackson序列化
  46. jsonSerialType: 'Fastjson'
  47. host: 114.55.105.194
  48. password: wanghs123
  49. port: 6379
  50. databases: [ 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15 ] # 要使用的库,会根据此处填写的库生成redisTemplate
  51. timeout: 60s
  52. lettuce: # lettuce基于netty,线程安全,支持并发
  53. pool:
  54. max-active: 50
  55. max-wait: -1ms
  56. max-idle: 8
  57. min-idle: 0
  58. cache:
  59. type: Simple
  60. timeseries:
  61. db-type: taoscz #"${DATABASE_TYPE:sql}" # cassandra/kairosDB/hbase/opentsDB/influxDB/TiDB
  62. #db-type: hadoop #"${DATABASE_TYPE:sql}" # cassandra/kairosDB/hbase/opentsDB/influxDB/TiDB
  63. #golden 数据库信息
  64. golden:
  65. #server_ip: 192.168.1.100
  66. server_ip: 10.155.32.1
  67. #server_ip: 172.168.1.3
  68. server_port: 6327
  69. user_name: sa
  70. password: golden
  71. pool_size: 10
  72. max_pool_size: 100
  73. #单次查询历史原始数据的数量上限
  74. query_history_limit: 100000
  75. #hadoop数据库信息
  76. hadoop:
  77. #查询上一个值的最多访问次数 2的8次方,增加步长为60分钟,如:t0-60,t0-120,t0-240....
  78. lastValueSearch: 8
  79. urlMap:
  80. DJL: http://192.168.1.61:4242/api/
  81. DQ: http://192.168.1.62:4242/api/
  82. GF: http://192.168.1.63:4242/api/
  83. GGL: http://192.168.1.64:4242/api/
  84. FGL: http://192.168.1.66:4242/api/
  85. FJ: http://192.168.1.69:4243/api/
  86. JSFW: http://192.168.1.67:4242/api/
  87. #仅限于查询NSSDQN,NXDQDI,SBQNWDQ,SBQXLDQ
  88. DQ2: http://192.168.1.62:10001/api/
  89. #taos数据库
  90. taos:
  91. server_ip: 18.6.30.71
  92. # server_ip: 192.168.1.67
  93. #restful
  94. server_port: 6041
  95. #jni
  96. #server_port: 6030
  97. user_name: root
  98. password: taosdata
  99. pool_size: 500
  100. max_pool_size: 2000
  101. #适配器链接taos数据库配置信息
  102. taoscz:
  103. server_ip: 172.16.12.101
  104. server_port: 6041
  105. db_name: jsfw_db
  106. user_name: root
  107. password: taosdata
  108. pool_size: 10
  109. max_pool_size: 100
  110. driver_type: com.taosdata.jdbc.rs.RestfulDriver
  111. #driver_type: com.taosdata.jdbc.TSDBDriver
  112. #taos中ai测点的超级表名
  113. di_stable_name: pointdi
  114. #taos中di测点的超级表名
  115. ai_stable_name: pointci
  116. #EDOS 数据库信息
  117. edos:
  118. server_ip: 192.168.1.100
  119. server_port: 10010
  120. default_connections: 1
  121. incremental_connections: 1
  122. max_connections: 10
  123. # Publish 发布服务配置
  124. publish:
  125. rtdb_scan_interval: 1000
  126. publish_interval: 5000
  127. #是否缓存所有风机测点
  128. isLoadAllTag: false
  129. #是否启动websocket推送
  130. websocket_start: false
  131. #websocket推送风机基本信息统一编码
  132. uniformcode:
  133. wind_speed_code: AI022
  134. roll_speed_code: AI128
  135. power_code: AI130
  136. status_code: FJZT8
  137. lock_code: XDSL
  138. pv_I: AIG060 #电流-A相
  139. pv_U: AIG061 #电压-A相
  140. pv_P: AI130 #功率-有功功率
  141. pv_statue: FJZT #状态
  142. redis:
  143. host: 10.155.32.4
  144. port: 6379
  145. password: gdnxfd123
  146. #management:
  147. # endpoints:
  148. # web:
  149. # exposure:
  150. # include: "*"
  151. arthas:
  152. #tunnel地址,目前是部署在同一台服务器,正式环境需要拆分
  153. tunnel-server: ws://localhost:7777/ws
  154. #tunnel显示的应用名称,直接使用应用名
  155. app-name: ${spring.application.name}
  156. #arthas http访问的端口和远程连接的端口
  157. http-port: 8888
  158. telnet-port: 9999