yangys
2025-05-09 e0d3490c2c785a9e94b3ef5128be97da2978956f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
server:
  port: 8099
 
spring:
  application:
    name: qwcollect
  profiles:
    active: dev
  datasource:
    dynamic:
      primary: master
      datasource:
        master:
          url: ${datasource.url}
          username: ${datasource.username}
          password: ${datasource.password}
          driver-class-name: ${datasource.driver-class-name}
          hikari:
            minimum-idle: 5
            maximum-pool-size: 15
            auto-commit: true
            idle-timeout: 30000
            pool-name: DatebookHikariCP
            max-lifetime: 1800000
            connection-timeout: 30000
            connection-test-query: SELECT 1
        iotdb:
          driver-class-name: ${iotdb.driver}
          url: jdbc:iotdb://${iotdb.host}:${iotdb.port}/
          username: ${iotdb.username}
          password: ${iotdb.password}
          type: com.zaxxer.hikari.HikariDataSource
          hikari:
            minimum-idle: 5
            maximum-pool-size: 50
            auto-commit: true
            idle-timeout: 30000
            pool-name: DatebookHikariCP
            max-lifetime: 1800000
            connection-timeout: 10000
            connection-test-query: select count(*) from root.test
mybatis:
  configuration:
    cache-enabled: true
    map-underscore-to-camel-case: true
  mapper-locations: classpath:mapper/*.xml
  type-aliases-package: com.qianwen.mdc.collect.entity.iotdb,com.qianwen.mdc.collect.entity.mgr
  #com.qianwen.mdc.collect.entity.iotdb
#离线判定时长(毫秒),超过这个时长无采集数据判定为离线
offlineConfigDuration: 300000
wfg:
# 请一定注意! WorkerIdBitLength + SeqBitLength + DataCenterIdBitLength <= 22
  # 1表示雪花漂移算法,2表示传统雪花算法
  method: 1
  # 基础时间,为2023-07-01 00:00:00 id>0
  baseTime: 1688140800000
  # 数据中心id
  dataCenterId: 0
  # 数据中心id位长,默认为0表示不开启数据中心id功能
  dataCenterIdBitLength: 0
  # 机器码(当前系统的机器码)
  workerId: 0
  # 机器码位长(能表示机器码的最大值)
  workerIdBitLength: 1
  # 序列数位长(能表示机器码的最大序列数)
  seqBitLength: 6
  # 最大序列数(含)
  maxSeqNumber: 0
  # 最小序列数(含)
  minSeqNumber: 5
  # 最大漂移次数,与计算能力有关
  topOverCostCount: 2000