application-dev.properties 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. oms.env=dev
  2. ####### Database properties(Configure according to the the environment) #######
  3. #spring.datasource.remote.hibernate.properties.hibernate.dialect=tech.powerjob.server.persistence.config.dialect.PowerJobPGDialect
  4. #spring.datasource.core.driver-class-name=org.postgresql.Driver
  5. #spring.datasource.core.jdbc-url=jdbc:postgresql://localhost:5432/km?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true
  6. #spring.datasource.core.username=postgres
  7. #spring.datasource.core.password=P3x0LG8jzyHRX59l
  8. ## DM数据库连接参数
  9. spring.datasource.remote.hibernate.properties.hibernate.dialect=org.hibernate.dialect.DmDialect
  10. spring.datasource.core.driver-class-name=dm.jdbc.driver.DmDriver
  11. spring.datasource.core.jdbc-url=jdbc:dm://127.0.0.1:5236?schema=km&useUnicode=true&characterEncoding=utf8&useSSL=true&autoReconnect=true&reWriteBatchedInserts=true
  12. spring.datasource.core.username=SYSDBA
  13. spring.datasource.core.password=SYSDBA123
  14. ## MySQL数据库连接参数
  15. #spring.datasource.remote.hibernate.properties.hibernate.dialect=tech.powerjob.server.persistence.config.dialect.PowerJobPGDialect
  16. #spring.datasource.core.driver-class-name=com.mysql.cj.jdbc.Driver
  17. #spring.datasource.core.jdbc-url=jdbc:mysql://localhost:3306/km?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true
  18. #spring.datasource.core.username=root
  19. #spring.datasource.core.password=Root@369
  20. spring.datasource.core.maximum-pool-size=20
  21. spring.datasource.core.minimum-idle=5
  22. # 监控配置
  23. # 客户端开关
  24. spring.boot.admin.client.enabled=true
  25. # 设置 Spring Boot Admin Server 地址
  26. spring.boot.admin.client.url:http://localhost:9099/admin
  27. spring.boot.admin.client.instance.service-host-type=IP
  28. spring.boot.admin.client.username=eco
  29. spring.boot.admin.client.password=123456
  30. ####### MongoDB properties(Non-core configuration properties) #######
  31. ####### delete mongodb config to disable mongodb #######
  32. oms.mongodb.enable=false
  33. #spring.data.mongodb.uri=mongodb+srv://zqq:No1Bug2Please3!@cluster0.wie54.gcp.mongodb.net/powerjob_daily?retryWrites=true&w=majority
  34. ####### Email properties(Non-core configuration properties) #######
  35. ####### Delete the following code to disable the mail #######
  36. #spring.mail.host=smtp.163.com
  37. #spring.mail.username=zqq@163.com
  38. #spring.mail.password=GOFZPNARMVKCGONV
  39. #spring.mail.properties.mail.smtp.auth=true
  40. #spring.mail.properties.mail.smtp.starttls.enable=true
  41. #spring.mail.properties.mail.smtp.starttls.required=true
  42. ####### DingTalk properties(Non-core configuration properties) #######
  43. ####### Delete the following code to disable the DingTalk #######
  44. #oms.alarm.ding.app-key=dingauqwkvxxnqskknfv
  45. #oms.alarm.ding.app-secret=XWrEPdAZMPgJeFtHuL0LH73LRj-74umF2_0BFcoXMfvnX0pCQvt0rpb1JOJU_HLl
  46. #oms.alarm.ding.agent-id=847044348
  47. ####### Resource cleaning properties #######
  48. oms.instanceinfo.retention=1
  49. oms.container.retention.local=1
  50. oms.container.retention.remote=-1
  51. ####### Cache properties #######
  52. oms.instance.metadata.cache.size=1024
  53. ####### Threshold in precise fetching server(0~100). 100 means full detection of server, in which #######
  54. ####### split-brain could be avoided while performance overhead would increase. #######
  55. oms.accurate.select.server.percentage=50