application.properties.tpl 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. #
  2. # Licensed to the Apache Software Foundation (ASF) under one or more
  3. # contributor license agreements. See the NOTICE file distributed with
  4. # this work for additional information regarding copyright ownership.
  5. # The ASF licenses this file to You under the Apache License, Version 2.0
  6. # (the "License"); you may not use this file except in compliance with
  7. # the License. You may obtain a copy of the License at
  8. #
  9. # http://www.apache.org/licenses/LICENSE-2.0
  10. #
  11. # Unless required by applicable law or agreed to in writing, software
  12. # distributed under the License is distributed on an "AS IS" BASIS,
  13. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. # See the License for the specific language governing permissions and
  15. # limitations under the License.
  16. #
  17. # base spring data source configuration
  18. spring.datasource.type=com.alibaba.druid.pool.DruidDataSource
  19. # postgre
  20. spring.datasource.driver-class-name=org.postgresql.Driver
  21. spring.datasource.url=jdbc:postgresql://${POSTGRESQL_HOST}:${POSTGRESQL_PORT}/${POSTGRESQL_DATABASE}?characterEncoding=utf8
  22. # mysql
  23. #spring.datasource.driver-class-name=com.mysql.jdbc.Driver
  24. #spring.datasource.url=jdbc:mysql://192.168.xx.xx:3306/dolphinscheduler?useUnicode=true&characterEncoding=UTF-8
  25. spring.datasource.username=${POSTGRESQL_USERNAME}
  26. spring.datasource.password=${POSTGRESQL_PASSWORD}
  27. # connection configuration
  28. spring.datasource.initialSize=5
  29. # min connection number
  30. spring.datasource.minIdle=5
  31. # max connection number
  32. spring.datasource.maxActive=50
  33. # max wait time for get a connection in milliseconds. if configuring maxWait, fair locks are enabled by default and concurrency efficiency decreases.
  34. # If necessary, unfair locks can be used by configuring the useUnfairLock attribute to true.
  35. spring.datasource.maxWait=60000
  36. # milliseconds for check to close free connections
  37. spring.datasource.timeBetweenEvictionRunsMillis=60000
  38. # the Destroy thread detects the connection interval and closes the physical connection in milliseconds if the connection idle time is greater than or equal to minEvictableIdleTimeMillis.
  39. spring.datasource.timeBetweenConnectErrorMillis=60000
  40. # the longest time a connection remains idle without being evicted, in milliseconds
  41. spring.datasource.minEvictableIdleTimeMillis=300000
  42. #the SQL used to check whether the connection is valid requires a query statement. If validation Query is null, testOnBorrow, testOnReturn, and testWhileIdle will not work.
  43. spring.datasource.validationQuery=SELECT 1
  44. #check whether the connection is valid for timeout, in seconds
  45. spring.datasource.validationQueryTimeout=3
  46. # when applying for a connection, if it is detected that the connection is idle longer than time Between Eviction Runs Millis,
  47. # validation Query is performed to check whether the connection is valid
  48. spring.datasource.testWhileIdle=true
  49. #execute validation to check if the connection is valid when applying for a connection
  50. spring.datasource.testOnBorrow=true
  51. #execute validation to check if the connection is valid when the connection is returned
  52. spring.datasource.testOnReturn=false
  53. spring.datasource.defaultAutoCommit=true
  54. spring.datasource.keepAlive=true
  55. # open PSCache, specify count PSCache for every connection
  56. spring.datasource.poolPreparedStatements=true
  57. spring.datasource.maxPoolPreparedStatementPerConnectionSize=20
  58. spring.datasource.spring.datasource.filters=stat,wall,log4j
  59. spring.datasource.connectionProperties=druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000
  60. #mybatis
  61. mybatis-plus.mapper-locations=classpath*:/org.apache.dolphinscheduler.dao.mapper/*.xml
  62. mybatis-plus.typeEnumsPackage=org.apache.dolphinscheduler.*.enums
  63. #Entity scan, where multiple packages are separated by a comma or semicolon
  64. mybatis-plus.typeAliasesPackage=org.apache.dolphinscheduler.dao.entity
  65. #Primary key type AUTO:" database ID AUTO ", INPUT:" user INPUT ID", ID_WORKER:" global unique ID (numeric type unique ID)", UUID:" global unique ID UUID";
  66. mybatis-plus.global-config.db-config.id-type=AUTO
  67. #Field policy IGNORED:" ignore judgment ",NOT_NULL:" not NULL judgment "),NOT_EMPTY:" not NULL judgment"
  68. mybatis-plus.global-config.db-config.field-strategy=NOT_NULL
  69. #The hump underline is converted
  70. mybatis-plus.global-config.db-config.column-underline=true
  71. mybatis-plus.global-config.db-config.logic-delete-value=-1
  72. mybatis-plus.global-config.db-config.logic-not-delete-value=0
  73. mybatis-plus.global-config.db-config.banner=false
  74. #The original configuration
  75. mybatis-plus.configuration.map-underscore-to-camel-case=true
  76. mybatis-plus.configuration.cache-enabled=false
  77. mybatis-plus.configuration.call-setters-on-nulls=true
  78. mybatis-plus.configuration.jdbc-type-for-null=null
  79. # master settings
  80. # master execute thread num
  81. master.exec.threads=${MASTER_EXEC_THREADS}
  82. # master execute task number in parallel
  83. master.exec.task.num=${MASTER_EXEC_TASK_NUM}
  84. # master heartbeat interval
  85. master.heartbeat.interval=${MASTER_HEARTBEAT_INTERVAL}
  86. # master commit task retry times
  87. master.task.commit.retryTimes=${MASTER_TASK_COMMIT_RETRYTIMES}
  88. # master commit task interval
  89. master.task.commit.interval=${MASTER_TASK_COMMIT_INTERVAL}
  90. # only less than cpu avg load, master server can work. default value : the number of cpu cores * 2
  91. master.max.cpuload.avg=${MASTER_MAX_CPULOAD_AVG}
  92. # only larger than reserved memory, master server can work. default value : physical memory * 1/10, unit is G.
  93. master.reserved.memory=${MASTER_RESERVED_MEMORY}
  94. # worker settings
  95. # worker execute thread num
  96. worker.exec.threads=${WORKER_EXEC_THREADS}
  97. # worker heartbeat interval
  98. worker.heartbeat.interval=${WORKER_HEARTBEAT_INTERVAL}
  99. # submit the number of tasks at a time
  100. worker.fetch.task.num=${WORKER_FETCH_TASK_NUM}
  101. # only less than cpu avg load, worker server can work. default value : the number of cpu cores * 2
  102. worker.max.cpuload.avg=${WORKER_MAX_CPULOAD_AVG}
  103. # only larger than reserved memory, worker server can work. default value : physical memory * 1/6, unit is G.
  104. worker.reserved.memory=${WORKER_RESERVED_MEMORY}
  105. # data quality analysis is not currently in use. please ignore the following configuration
  106. # task record
  107. task.record.flag=false
  108. task.record.datasource.url=jdbc:mysql://192.168.xx.xx:3306/etl?characterEncoding=UTF-8
  109. task.record.datasource.username=xx
  110. task.record.datasource.password=xx