diff --git a/backend/pom.xml b/backend/pom.xml index 3a8a62a498..7d1e213fc0 100644 --- a/backend/pom.xml +++ b/backend/pom.xml @@ -284,12 +284,6 @@ org.springframework.boot spring-boot-starter-data-redis - - - redis.clients - jedis - - diff --git a/backend/src/main/resources/application.properties b/backend/src/main/resources/application.properties index 89396ba266..df130211f2 100644 --- a/backend/src/main/resources/application.properties +++ b/backend/src/main/resources/application.properties @@ -61,8 +61,9 @@ quartz.scheduler-name=deServerJob spring.servlet.multipart.max-file-size=500MB spring.servlet.multipart.max-request-size=500MB # actuator -management.server.port=8083 -management.endpoints.web.exposure.include=* +management.health.redis.enabled=false +#management.server.port=8083 +#management.endpoints.web.exposure.include=* #spring.freemarker.checkTemplateLocation=false #RSA非对称加密参数:私钥 rsa.private_key=MIIBUwIBADANBgkqhkiG9w0BAQEFAASCAT0wggE5AgEAAkEA0vfvyTdGJkdbHkB8mp0f3FE0GYP3AYPaJF7jUd1M0XxFSE2ceK3k2kw20YvQ09NJKk+OMjWQl9WitG9pB6tSCQIDAQABAkA2SimBrWC2/wvauBuYqjCFwLvYiRYqZKThUS3MZlebXJiLB+Ue/gUifAAKIg1avttUZsHBHrop4qfJCwAI0+YRAiEA+W3NK/RaXtnRqmoUUkb59zsZUBLpvZgQPfj1MhyHDz0CIQDYhsAhPJ3mgS64NbUZmGWuuNKp5coY2GIj/zYDMJp6vQIgUueLFXv/eZ1ekgz2Oi67MNCk5jeTF2BurZqNLR3MSmUCIFT3Q6uHMtsB9Eha4u7hS31tj1UWE+D+ADzp59MGnoftAiBeHT7gDMuqeJHPL4b+kC+gzV4FGTfhR9q3tTbklZkD2A== @@ -86,16 +87,30 @@ server.compression.mime-types=application/javascript,text/css,application/json,a server.compression.min-response-size=1024 #下面的配置新增到/opt/dataease/conf/dataease/properties -#spring.redis.database=0 -#spring.redis.host=192.168.0.110 -#spring.redis.port=6379 -#spring.redis.password=DataEase_ZNB@REDIS +#缓存类型 +##spring.cache.type=redis +#spring.cache.type=ehcache +#redis公共配置 #spring.redis.timeout=10000 #spring.redis.lettuce.pool.max-active=8 #spring.redis.lettuce.pool.max-wait=-1 #spring.redis.lettuce.pool.max-idle=8 -##spring.cache.type=redis -#spring.cache.type=ehcache + +#单机模式redis配置 +#spring.redis.database=0 +#spring.redis.host=192.168.0.110 +#spring.redis.port=6379 +#spring.redis.password=DataEase_ZNB@REDIS + +#哨兵模式redis配置 +#spring.redis.sentinel.master=mymaster +#spring.redis.sentinel.nodes=192.168.0.110:26379,192.168.0.110:26380,192.168.0.110:26381 +#spring.redis.sentinel.password= + +#cluster模式redis配置 +#spring.redis.cluster.nodes=192.168.0.110:7001,192.168.0.110:7002,192.168.0.110:7003,192.168.0.110:7004,192.168.0.110:7005,192.168.0.110:7006 +#spring.redis.cluster.max-redirects=3 +#spring.redis.password=DataEase_ZNB@REDIS