[SCB-1532] Redis configuration is invalid#576
Conversation
#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}
|
直接在 application.yaml 中增加配置不行吗? |
|
不行 |
|
我们希望对于redis的支持可以通过启动参数配置,而不是通过重新编译源代码的方式,按照你修改后的解析方式,我理解应该就支持以下这种方式了,你能确认一下吗? redis 单例模式 redis 哨兵模式 |
WillemJiang
left a comment
There was a problem hiding this comment.
Could you please update the document for it?
|
|
||
| if(name.startsWith(REDIS_NAME) && !propertyMap.containsKey(name)){ | ||
| String readJournalKey = ("akka-persistence-redis.read-journal.redis.").concat(name.substring(REDIS_NAME.length())); | ||
| String journalKey = ("akka-persistence-redis.journal.redis.").concat(name.substring(REDIS_NAME.length())); |
There was a problem hiding this comment.
why do we need to set up 3 configuration key with one value?
There was a problem hiding this comment.
why do we need to set up 3 configuration key with one value?
It's OK, akka-persistence-redis contain three components, journal, snapshot, read-journal, their Redis configuration is the same.
https://github.com/safety-data/akka-persistence-redis/blob/master/src/main/resources/reference.conf
使用方式: |
coolbeevip
left a comment
There was a problem hiding this comment.
I will update fsm_manual_zh.md later.
Follow this checklist to help us incorporate your contribution quickly and easily:
[SCB-XXX] Fixes bug in ApproximateQuantiles, where you replaceSCB-XXXwith the appropriate JIRA issue.mvn clean installto make sure basic checks pass. A more thorough check will be performed on your pull request automatically.