application.yml 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  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. serviceUrl:
  10. defaultZone: http://deveureka-internal.piaoquantv.com/eureka/
  11. spring:
  12. datasource:
  13. driver-class-name: com.mysql.jdbc.Driver
  14. type: com.zaxxer.hikari.HikariDataSource
  15. hikari:
  16. minimum-idle: 10
  17. maximum-pool-size: 60
  18. connection-test-query: SELECT 1
  19. cloud:
  20. sentinel:
  21. eager: true
  22. transport:
  23. port: 8719
  24. log:
  25. dir: ${datalog}/sentinel
  26. datasource:
  27. ds1:
  28. apollo:
  29. namespace-name: application
  30. flow-rules-key: sentinel.flowRules
  31. default-flow-rule-value: [ ]
  32. rule-type: flow
  33. profiles:
  34. active: dev
  35. application:
  36. name: ad-engine
  37. jackson:
  38. default-property-inclusion: non_null
  39. servlet:
  40. multipart:
  41. max-file-size: 500MB
  42. max-request-size: 500MB
  43. project:
  44. name: ad-engine
  45. server:
  46. tomcat:
  47. threads:
  48. max: 1000
  49. uri-encoding: UTF-8
  50. accept-count: 1000
  51. connection-timeout: 30000
  52. servlet:
  53. context-path: /ad-engine
  54. session:
  55. timeout: 60
  56. pagehelper:
  57. helper-dialect: mysql
  58. #apollo config
  59. app:
  60. id: ad-engine
  61. apollo:
  62. bootstrap:
  63. enabled: true
  64. namespaces: application,RD.Experiment
  65. eagerLoad:
  66. enabled: true
  67. cacheDir: ${datalog}/apollo-cache-dir
  68. mybatis:
  69. type-aliases-package: com.tzld.piaoquan.ad.engine.commons.model
  70. mapper-locations: classpath:mapper/*.xml, classpath:mapper/ext/*.xml
  71. configuration:
  72. log-impl: org.apache.ibatis.logging.slf4j.Slf4jImpl
  73. datalog: /datalog
  74. #datalog: /Users/zhao/Desktop/Code/Java/ad-engine
  75. logging:
  76. file:
  77. path: ${datalog}/weblog/${project.name}
  78. aliyun:
  79. log:
  80. endpoint: cn-hangzhou.log.aliyuncs.com
  81. accessKeyId: LTAIP6x1l3DXfSxm
  82. accessKeySecret: KbTaM9ars4OX3PMS6Xm7rtxGr1FLon
  83. logstore:
  84. request: request-log
  85. info: info-log
  86. error: error-log
  87. statistics: statistics-log
  88. landingTypeFilter: landingpagetype-filter-error-log
  89. adPackageData: ad-package-data
  90. topic:
  91. threadpool:
  92. corePoolSize: 100
  93. maxPoolSize: 100
  94. keepAliveSeconds: 200
  95. queueCapacity: 100000
  96. feishu:
  97. message:
  98. # 飞书群组预警机器人 ID,不指定发送到 默认消息预警群组
  99. bot-id: a73cd47d-70b8-4b73-a207-a133021af176
  100. # 要提醒用户的手机号(多个值用 “,” 隔开)
  101. at-mobiles: 18612832316
  102. # 飞书预警服务器地址
  103. server-url: http://alert-feishu.piaoquantv.com/feishu/sendText
  104. xxl:
  105. job:
  106. accessToken:
  107. executor:
  108. address:
  109. appname: ms-${spring.application.name}
  110. ip:
  111. logpath: ${datalog}/xxl-job/
  112. logretentiondays: 30
  113. port: 9999
  114. grpc:
  115. client:
  116. recommend-feature:
  117. negotiationType: PLAINTEXT
  118. recommend-server:
  119. negotiationType: PLAINTEXT
  120. model:
  121. xgboost:
  122. path: ../xgboost