在SpringStarter数据redis中使用莴苣代替绝地时,liveness探测器失败

yh2wf1be  于 2021-07-24  发布在  Java
关注(0)|答案(0)|浏览(273)

我有一个使用spring cloud bom的spring boot应用程序: Hoxton.SR1 该应用程序部署在kubernetes集群中。
为了将应用程序连接到redis数据库,我测试了两种不同的配置:
jedis连接池配置: pom.xml :

  1. <dependency>
  2. <groupId>org.springframework.boot</groupId>
  3. <artifactId>spring-boot-starter-data-redis</artifactId>
  4. <exclusions>
  5. <exclusion>
  6. <groupId>io.lettuce</groupId>
  7. <artifactId>lettuce-core</artifactId>
  8. </exclusion>
  9. </exclusions>
  10. </dependency>
  11. <!-- jedis -->
  12. <dependency>
  13. <groupId>redis.clients</groupId>
  14. <artifactId>jedis</artifactId>
  15. </dependency>
  16. ``` `application.yml` :

spring:
redis:
host: localhost
port: 6379
password: password
database: 0
jedis:
pool:
min-idle: 0
max-idle: 12
max-active: 12
max-wait: 500ms

  1. 部署在k8s集群中效果良好。
  2. 连接池配置: `pom.xml` :

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题