application-nx.yaml 4.3 KB

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