On Thu, Oct 1, 2015 at 11:40 AM, Viktor Klang <[email protected]> wrote:
> I might be wrong, but isn't this what this constructor does? > > http://doc.akka.io/api/akka/2.4.0/index.html#akka.pattern.CircuitBreaker@ > <init>(scheduler:akka.actor.Scheduler,maxFailures:Int,callTimeout:scala.concurrent.duration.FiniteDuration,resetTimeout:scala.concurrent.duration.FiniteDuration)(implicitexecutor:scala.concurrent.ExecutionContext):akka.pattern.CircuitBreaker > I think the resetTimeout is only for how long it should remain in Open before it goes to HalfOpen. The failure count in Closed is reset to 0 immediately when there is one successful call. /Patrik > > On Thu, Oct 1, 2015 at 11:28 AM, Sandeep Khurana <[email protected]> > wrote: > >> Hello All >> >> I am evaluating Akka to use in our enterprise application. One of the >> feature which we are looking for is to find out if we can allow circuit >> breaker to remain closed when the number of failures are less than certain >> threshold within a time window. >> >> For example, >> >> If in 30 minutes number of failures are more than 10 then open the >> circuit breaker but if not then reset the failure count to zero back again >> so that for next 30 mins the failure count restarts from zero . >> >> In more details, if the application starts at 12 AM and and by 12.30 >> only 9 failures were encountered. Then immediately after 12.30 the failure >> count resets to zero and allow 10 or less failure for next 30 mins again >> without opening the circuit breaker. However if the failure count is 11 >> then circuit breaker open (and enters half open stage after reset time >> interval) . >> >> If its not present in Akka then can this be implemented over Akka as part >> of the application itself? >> >> -- >> >>>>>>>>>> Read the docs: http://akka.io/docs/ >> >>>>>>>>>> Check the FAQ: >> http://doc.akka.io/docs/akka/current/additional/faq.html >> >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user >> --- >> You received this message because you are subscribed to the Google Groups >> "Akka User List" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> To post to this group, send email to [email protected]. >> Visit this group at http://groups.google.com/group/akka-user. >> For more options, visit https://groups.google.com/d/optout. >> > > > > -- > Cheers, > √ > > -- > >>>>>>>>>> Read the docs: http://akka.io/docs/ > >>>>>>>>>> Check the FAQ: > http://doc.akka.io/docs/akka/current/additional/faq.html > >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user > --- > You received this message because you are subscribed to the Google Groups > "Akka User List" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/akka-user. > For more options, visit https://groups.google.com/d/optout. > -- Patrik Nordwall Typesafe <http://typesafe.com/> - Reactive apps on the JVM Twitter: @patriknw -- >>>>>>>>>> Read the docs: http://akka.io/docs/ >>>>>>>>>> Check the FAQ: >>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user --- You received this message because you are subscribed to the Google Groups "Akka User List" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/akka-user. For more options, visit https://groups.google.com/d/optout.
