application.yml 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. eureka:
  2. instance:
  3. prefer-ip-address: true #是否优先使用IP地址作为主机名的标识,默认false
  4. instance-id: ${spring.cloud.client.ip-address}:${spring.application.name}:${server.port} #注册到eureka上的唯一实例ID
  5. lease-renewal-interval-in-seconds: 10 #表示eureka client发送心跳给server端的频率,默认30
  6. lease-expiration-duration-in-seconds: 30 #表示eureka server至上一次收到client的心跳之后,等待下一次心跳的超时时间,在这个时间内若没收到下一次心跳,则将移除该instance,默认90
  7. client:
  8. registry-fetch-interval-seconds: 5 #定时从Eureka Server拉取服务注册信息的间隔时间
  9. spring:
  10. datasource:
  11. driver-class-name: com.mysql.jdbc.Driver
  12. type: com.zaxxer.hikari.HikariDataSource
  13. hikari:
  14. minimum-idle: 10
  15. maximum-pool-size: 60
  16. connection-test-query: SELECT 1
  17. cloud:
  18. sentinel:
  19. eager: true
  20. transport:
  21. port: 8719
  22. log:
  23. dir: ${datalog}/sentinel
  24. datasource:
  25. ds1:
  26. apollo:
  27. namespace-name: application
  28. flow-rules-key: sentinel.flowRules
  29. default-flow-rule-value: [ ]
  30. rule-type: flow
  31. profiles:
  32. active: dev
  33. application:
  34. name: ad-engine
  35. jackson:
  36. default-property-inclusion: non_null
  37. servlet:
  38. multipart:
  39. max-file-size: 500MB
  40. max-request-size: 500MB
  41. project:
  42. name: ad-engine
  43. server:
  44. tomcat:
  45. threads:
  46. max: 1000
  47. uri-encoding: UTF-8
  48. accept-count: 1000
  49. connection-timeout: 30000
  50. servlet:
  51. context-path: /ad-engine
  52. session:
  53. timeout: 60
  54. pagehelper:
  55. helper-dialect: mysql
  56. #apollo config
  57. app:
  58. id: ad-engine
  59. apollo:
  60. bootstrap:
  61. enabled: true
  62. namespaces: application,RD.Experiment
  63. eagerLoad:
  64. enabled: true
  65. cacheDir: ${datalog}/apollo-cache-dir
  66. mybatis:
  67. type-aliases-package: com.tzld.piaoquan.ad.engine.commons.model
  68. mapper-locations: classpath:mapper/*.xml, classpath:mapper/ext/*.xml
  69. configuration:
  70. log-impl: org.apache.ibatis.logging.slf4j.Slf4jImpl
  71. datalog: /Users/zhao/Desktop/Code/Java/ad-engine
  72. #datalog: /Users/gufengshou/Documents/yiqi_project
  73. logging:
  74. file:
  75. path: ${datalog}/weblog/${project.name}
  76. aliyun:
  77. log:
  78. endpoint: cn-hangzhou.log.aliyuncs.com
  79. accessKeyId: LTAIP6x1l3DXfSxm
  80. accessKeySecret: KbTaM9ars4OX3PMS6Xm7rtxGr1FLon
  81. logstore:
  82. request: request-log
  83. info: info-log
  84. error: error-log
  85. statistics: statistics-log
  86. landingTypeFilter: landingpagetype-filter-error-log
  87. adPackageData: ad-package-data
  88. topic:
  89. threadpool:
  90. corePoolSize: 100
  91. maxPoolSize: 100
  92. keepAliveSeconds: 200
  93. queueCapacity: 100000
  94. feishu:
  95. message:
  96. # 飞书群组预警机器人 ID,不指定发送到 默认消息预警群组
  97. bot-id: a73cd47d-70b8-4b73-a207-a133021af176
  98. # 要提醒用户的手机号(多个值用 “,” 隔开)
  99. at-mobiles: 18612832316
  100. # 飞书预警服务器地址
  101. server-url: http://alert-feishu.piaoquantv.com/feishu/sendText
  102. xxl:
  103. job:
  104. accessToken:
  105. executor:
  106. address:
  107. appname: ms-${spring.application.name}
  108. ip:
  109. logpath: ${datalog}/xxl-job/
  110. logretentiondays: 30
  111. port: 9999
  112. grpc:
  113. client:
  114. recommend-feature:
  115. negotiationType: PLAINTEXT
  116. recommend-server:
  117. negotiationType: PLAINTEXT