akkadotnet / Akka.Persistence.Redis

Redis storage for Akka.NET Persistence

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CircuitBreaker configuration

ArturChe opened this issue · comments

From time to time we can observe errors while having problems to connect the Redis:
Recovery failed due to: Akka.Pattern.OpenCircuitException: Circuit Breaker is open; calls are failing fast at Akka.Pattern.Open.<Invoke>d__21.MoveNext() on message ().`

I have found that there are settings that used if nothing defined in the plugin config

 journal-plugin-fallback {
...
 circuit-breaker {
  max-failures = 10
  call-timeout = 10s
  reset-timeout = 30s
}

Is it possible to configure a circuit-breaker in

journal {
 plugin = "akka.persistence.journal.redis"
 redis {
  class = "Akka.Persistence.Redis.Journal.RedisJournal, Akka.Persistence.Redis"
  key-prefix = "akka:shmaka:persistence:"
  configuration-string = "localhost"
}

section?

@Arkatufus we just addressed this in v1.4.13, did we not?

@ArturChe yes, you should be able to configure these values in the akka.persistence.journal.redis setting.