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

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

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

<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-data-redis</artifactId>
    <exclusions>
        <exclusion>
            <groupId>io.lettuce</groupId>
            <artifactId>lettuce-core</artifactId>
        </exclusion>
    </exclusions>
</dependency>
<!-- jedis -->
<dependency>
    <groupId>redis.clients</groupId>
    <artifactId>jedis</artifactId>
</dependency>
``` `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

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

暂无答案!

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

相关问题