Detecting and handling discrepancies between external circuit breakers and internal circuit breakers
AssigneeRed Hat, Inc.
InventorAlissa Bonas
Life of this patent
Estimating the term…
Abstract
Aspects of the disclosure provide for mechanisms for detecting and handling discrepancies between an external circuit breaker and an internal circuit breaker applicable to applications and/or services in a computer system. A method of the disclosure includes: determining, in view of a first circuit breaker applicable to a service hosted on a computer system, a first circuit breaking rule, wherein the first circuit breaker is applicable to one or more endpoints of the computer system; determining, in view of a second circuit breaker applicable to the service, a second circuit breaking rule; and generating a warning in response to detecting a discrepancy between the first circuit breaking rule and the second circuit breaking rule.
Claims19
A method comprising:
- configuring, by a traffic controller component executing on a processing device of a computer system hosting a service on a plurality of endpoints, an external circuit breaker in view of a configuration file that is independent from a source code for the service, wherein the external circuit breaker is configured for an application to the service, and wherein the configuration file comprises a first circuit breaking rule that defines a first set of conditions that invoke the external circuit breaker;
- responsive to detecting that a condition of the first set of conditions defined by the first circuit breaking rule is satisfied, controlling, by the traffic controller component, traffic to the service on the plurality of endpoints;
- determining, by the traffic controller component, a second circuit breaking rule from the source code of the service, wherein the second circuit breaking rule defines a second set of conditions that invoke an internal circuit breaker that is configured for the application to the service;
- determining, by the traffic controller component whether the condition of the first set of conditions defined by the first circuit breaking rule corresponds to a respective condition of the second set of conditions defined by the second circuit breaking rule;
- responsive to determining that the condition of the first set of conditions does not correspond to the respective condition of the second set of conditions, detecting, by the traffic controller component, a discrepancy between the first circuit breaking rule and the second circuit breaking rule;
- and
- transmitting, by the traffic controller component, an alert indicating the detected discrepancy between the first circuit breaking rule and the second circuit breaking rule to a user device of the computer system.
A system comprising:
- a memory;
- and
- a processing device operatively coupled to the memory, the processing device to:
- configure, by a traffic controller component executing on the processing device, an external circuit breaker in view of a configuration file that is independent from a source code for a service hosted on a plurality of endpoints, wherein the external circuit breaker is configured for an application to the service, and wherein the configuration file comprises a first circuit breaking rule that defines a first set of conditions that invoke the external circuit breaker;
- responsive to detecting that a condition of the first set of conditions defined by the first circuit breaking rule is satisfied, control, by the traffic controller component, traffic to the service on the plurality of endpoints;
- determine, by the traffic control component, a second circuit breaking rule from the source code of the service, wherein the second circuit breaking rule defines a second set of conditions that invoke an internal circuit breaker that is configured for the application to the service;
- determine, by the traffic controller component, whether the condition of the first set of conditions defined by the first circuit breaking rule corresponds to a respective condition of the second set of conditions defined by the second circuit breaking rule;
- responsive to determining that the conditions of the first set of conditions does not correspond to the respective condition of the second set of conditions, detect, by the traffic controller component, a discrepancy between the external circuit breaker and the internal circuit breaker;
- and
- transmit, by the traffic controller component, an alert indicating the detected discrepancy between the external circuit breaker and the internal circuit breaker to a user device.
A non-transitory machine-readable storage medium including instructions that, when accessed by a processing device, cause the processing device to:
- configure, by a traffic controller component executing on the processing device, an external circuit breaker in view of a configuration file that is independent from a source code for a service hosted on a plurality of endpoints, wherein the external circuit breaker is configured for an application to the service, and wherein the configuration file comprises a first circuit breaking rule that defines a first set of conditions that invoke the external circuit breaker;
- responsive to detecting that a condition of the first set of conditions defined by the first circuit breaking rule is satisfied, control, by the traffic controller component, traffic to the service on the plurality of endpoints;
- determine, by the traffic controller component, a second circuit breaking rule from the a source code of the service, wherein the second circuit breaking rule defines a second set of conditions that invokes an internal circuit breaker that is configured for the application to the service;
- determine, by the traffic controller component, whether the condition of the first set of conditions defined by the first circuit breaking rule corresponds to a respective condition of the second set of conditions defined by the second circuit breaking rule;
- responsive to determining that the condition of the first set of conditions does not correspond to the respective condition of the second set of conditions, detect, by the traffic controller component, a discrepancy between the first circuit breaking rule and the second circuit breaking rule;
- and
- transmitting, by the traffic controller component, an alert indicating the detected discrepancy between the first circuit breaking rule and the second circuit breaking rule to a user device.
Dependencies are inferred from the claim text.