Circuit breaking

About Circuit Breaking

Circuit breaking is a mechanism that monitor services in real-time mode, checking for error in the service's responses. Once the failures exceed a certain threshold, the circuit breaker shuts off the access to the service. Circuit breaking is used to detect error conditions that may last a long time; errors are sent back immediately and the dependent services are not allowed to call the faulty service.

A circuit breaker has the following characteristics:

It is possible to develop a contingency plan for the period when the faulty service is unreachable. You may either increase the retry period, re-route the user to some other service or switch to some kind of degraded functionality for the period of unavailability. This can prevent the application from tying up when trying to reach the application.

Go to TOP

Circuit Breaking parameters

Parameter: Description:
observe layer7 Monitor live traffic for HTTP errors.
observe layer4 Monitor live traffic for TCP errors.
error-limit 50 Number of errors considered as the threshold
on-error The action to be performed when the threshold is exceeded
On-error action: Description:
mark-down mark the service as down
fastinter force fastinter
fail-check simulate a failed check, also forces fastinter (default)
sudden-death simulate a pre-fatal failed health check, one more failed check will mark a server down, forces fastinter

Go to TOP

How to start using Circuit Breaking

Roxy-WI provides a great possibility for starting use Circuit Breaking in a couple clicks.

Go to the "Add proxy" page. Choose what you would like to create: listen or backend. Press the "Show Advanced settings"(in the black box)

Roxy-WI Circuit Breaking

Press the "Circuit Breaking" checkbox(in the black box), and in the showed menu choose need parameters according to this description

Roxy-WI Circuit Breaking
Go to TOP

Was this article helpful?

Yes, thanks!
Not really
Go back