You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by GitBox <gi...@apache.org> on 2019/10/22 01:23:51 UTC
[GitHub] [servicecomb-pack] Fxdemon edited a comment on issue #576:
[SCB-1532] Redis configuration is invalid
Fxdemon edited a comment on issue #576: [SCB-1532] Redis configuration is invalid
URL: https://github.com/apache/servicecomb-pack/pull/576#issuecomment-544772234
> --akkaConfig.akka-persistence-redis.redis.mode=sentinel
> --akkaConfig.akka-persistence-redis.redis.database=0
> --akkaConfig.akka-persistence-redis.redis.master=mymaster
> --akkaConfig.akka-persistence-redis.redis.sentinel-list=127.0.0.1:6379
> --akkaConfig.akka-persistence-redis.redis.password=xxx
如上配akka-persistence-redis.jar 读取不到对应配置信息, 目前默认读取akka-persistence-redis.jar中 *.conf中的配置
使用方式:
#redis 单机模式
#akkaConfig:
# akka.persistence.journal.plugin: akka-persistence-redis.journal
# akka.persistence.snapshot-store.plugin: akka-persistence-redis.snapshot
# akka-persistence-redis:
# redis:
# mode: simple
# host: ${spring.redis.host}
# port: ${spring.redis.port}
# database: 0
# #password: ${spring.redis.password}
#redis 哨兵模式
`akkaConfig:
akka.persistence.journal.plugin: akka-persistence-redis.journal
akka.persistence.snapshot-store.plugin: akka-persistence-redis.snapshot
akka-persistence-redis:
redis:
mode: sentinel
database: 1
password: ${spring.redis.password}
master: ${spring.redis.sentinel.master}
sentinel-list: ${spring.redis.sentinel.nodes}`
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services