application-prod.yml 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. jedis:
  2. pool:
  3. config:
  4. maxTotal: 100
  5. maxIdle: 20
  6. maxWaitMillis: 20000
  7. host: prod.redis.java110.com
  8. port: 6379
  9. eureka:
  10. instance:
  11. leaseRenewalIntervalInSeconds: 10
  12. leaseExpirationDurationInSeconds: 30
  13. preferIpAddress: true
  14. instanceId: ${spring.cloud.client.ip-address}:${server.port}
  15. client:
  16. serviceUrl:
  17. defaultZone: http://prod.java110.com:8761/eureka/
  18. #defaultZone: http://localhost:8761/eureka/
  19. server:
  20. port: 8004
  21. tomcat:
  22. uri-encoding: UTF-8
  23. spring:
  24. http:
  25. encoding:
  26. charset: UTF-8
  27. enabled: true
  28. force: true
  29. application:
  30. name: log-service
  31. redis:
  32. database: 0
  33. host: 192.168.31.199
  34. port: 6379
  35. pool:
  36. max-active: 300
  37. max-wait: 10000
  38. max-idle: 100
  39. min-idle: 0
  40. timeout: 0
  41. datasource:
  42. connectionProperties: druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000
  43. minIdle: 5
  44. validationQuery: SELECT 1 FROM DUAL
  45. initialSize: 5
  46. maxWait: 60000
  47. filters: stat,wall,log4j
  48. poolPreparedStatements: true
  49. type: com.alibaba.druid.pool.DruidDataSource
  50. url: jdbc:mysql://prod.db.java110.com:3306/TT?useUnicode=true&characterEncoding=utf-8
  51. maxPoolPreparedStatementPerConnectionSize: 20
  52. password: TT@12345678
  53. testOnBorrow: false
  54. testWhileIdle: true
  55. minEvictableIdleTimeMillis: 300000
  56. timeBetweenEvictionRunsMillis: 60000
  57. testOnReturn: false
  58. driverClassName: com.mysql.jdbc.Driver
  59. maxActive: 20
  60. username: TT
  61. #============== kafka ===================
  62. kafka:
  63. consumer:
  64. zookeeper:
  65. connect: prod.zk.java110.com:2181
  66. servers: prod.kafka.java110.com:9092
  67. enable:
  68. auto:
  69. commit: true
  70. session:
  71. timeout: 6000
  72. auto:
  73. commit:
  74. interval: 100
  75. offset:
  76. reset: latest
  77. topic: test
  78. group:
  79. id: logService
  80. concurrency: 10
  81. producer:
  82. zookeeper:
  83. connect: prod.zk.java110.com:2181
  84. servers: prod.kafka.java110.com:9092
  85. retries: 0
  86. batch:
  87. size: 4096
  88. linger: 1
  89. buffer:
  90. memory: 40960