CN111324477A - Processing method and device for distributed fusing - Google Patents

Processing method and device for distributed fusing Download PDF

Info

Publication number
CN111324477A
CN111324477A CN202010078980.2A CN202010078980A CN111324477A CN 111324477 A CN111324477 A CN 111324477A CN 202010078980 A CN202010078980 A CN 202010078980A CN 111324477 A CN111324477 A CN 111324477A
Authority
CN
China
Prior art keywords
fusing
test
requested party
preset
melting
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010078980.2A
Other languages
Chinese (zh)
Inventor
周通
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Tongbang Zhuoyi Technology Co ltd
Original Assignee
Beijing Tongbang Zhuoyi Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Tongbang Zhuoyi Technology Co ltd filed Critical Beijing Tongbang Zhuoyi Technology Co ltd
Priority to CN202010078980.2A priority Critical patent/CN111324477A/en
Publication of CN111324477A publication Critical patent/CN111324477A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/004Error avoidance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/3006Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system is distributed, e.g. networked systems, clusters, multiprocessor systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2201/00Indexing scheme relating to error detection, to error correction, and to monitoring
    • G06F2201/88Monitoring involving counting

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Mathematical Physics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The application relates to a processing method and a device for distributed fusing, wherein the method comprises the following steps: obtaining an access result of at least one requesting party to a requested party, wherein the access result is used for representing a response condition when the requested party is called; generating fusing information when the access result meets a preset fusing requirement; and fusing all the requesting parties and the requested parties according to the fusing information. Compared with the prior art, the technical scheme provided by the embodiment of the application has the following advantages: by the method in the embodiment, when a problem occurs in the service of the downstream system, it is not necessary that each requester in the upstream needs to access the requester, and the downstream system is fused after the problem is found; invalid access to a requested party with abnormal performance can be avoided, the response speed of the system can be effectively improved, and the performance of the system is improved.

Description

Processing method and device for distributed fusing
Technical Field
The present application relates to the field of computer network technologies, and in particular, to a method and an apparatus for processing distributed fusing.
Background
The fusing refers to that when a downstream service suddenly becomes unavailable or responds too slowly for some reason, the upstream service does not continuously call a target service in order to ensure the availability of the whole service of the upstream service, and returns to the target service directly to quickly release resources. And if the target service condition is improved, the call is recovered. Generally, in a software system, an overload phenomenon occurs to a service due to some reasons, and in order to prevent the whole system from being failed, a protection measure is adopted, so that fusing is also called overload protection in many places.
Because the deployment of the systems in the prior art is mostly distributed, but the fusing is performed between every two systems, when the service of the downstream system has a problem, each system in the upstream needs to be accessed, and the fusing is performed after the downstream system has a problem.
The existing mainstream fusing technology frames include Hystrix, Sentinel, resilience4j and the like.
However, in some scenarios, particularly when a gateway system implements a fuse, the prior art framework has certain limitations and inadequacies. The gateway is an entrance for bearing all service requests, various different application systems are called downwards through the gateway, generally, the gateway is called in a generalization mode when being called downwards, namely, different application systems can be called through one method, and how to fuse a certain application system or a certain interface at the downstream, the existing mainstream fusing technology framework is difficult to realize. Therefore, the existing fuse technology architecture has difficulty in implementing distributed fuse.
In view of the technical problems in the related art, no effective solution is provided at present.
Disclosure of Invention
In order to solve the technical problem or at least partially solve the technical problem, the application provides a processing method and device for distributed fusing.
In a first aspect, the present application provides a processing method for distributed fusing, including:
obtaining an access result of at least one requesting party to a requested party, wherein the access result is used for representing a response condition when the requested party is called;
generating fusing information when the access result meets a preset fusing requirement;
and fusing all the requesting parties and the requested parties according to the fusing information.
Optionally, as in the foregoing processing method, after fusing between all requesters and the requested party according to the fusing information, the method further includes:
determining a preset melting test strategy corresponding to the requested party, wherein the preset melting test strategy is used for judging whether the requested party meets the requirement of melting release;
testing the requested party according to the melting test strategy to obtain a test result;
and when the test result meets the preset melting-removing requirement corresponding to the melting-removing test strategy, melting-removing is carried out between all the requesting parties and the requested parties.
Optionally, as in the foregoing processing method, the testing the requested party according to the melting-melting test policy to obtain a test result includes:
when the fusing duration after fusing reaches a preset fusing time interval, performing connectivity test on the requested party according to a preset test frequency to obtain the test result, wherein the connectivity test is used for testing whether the requested party can be normally called or not;
the test result meets the preset melting-melting requirement corresponding to the melting-melting test strategy, and the method comprises the following steps:
and when the test result represents that the requested party passes the connectivity test, judging that the test result meets the preset melting-releasing requirement.
Optionally, as in the foregoing processing method, the performing connectivity test on the requested party according to a preset test frequency to obtain the test result includes:
performing connectivity test on the requested party according to a preset test frequency;
when the requested party passes the connectivity test within a preset retry number threshold, obtaining the test result;
and when the requested party does not pass the connectivity test within the preset retry number threshold, stopping the connectivity test of the requested party.
Optionally, as in the foregoing processing method, determining a preset melting test strategy corresponding to the requested party includes:
receiving first configuration information for configuring the melting test strategy corresponding to the requested party in advance;
and generating the melting test strategy according to the first configuration information.
Optionally, as the foregoing processing method, the method further includes:
receiving second configuration information for configuring the fusing requirement corresponding to the requested party in advance;
and generating the preset fusing requirement according to the second configuration information.
Optionally, as in the foregoing processing method, the accessing that the access result meets the preset fusing requirement includes:
the access result represents that the number of times of continuous calling failure of the at least one requesting party to the requested party is greater than a first time threshold value;
or the like, or, alternatively,
and the access result represents that the number of times of calling failure of the at least one requesting party to the requested party in a preset time period is greater than a second time threshold value.
In a second aspect, the present application provides a distributed fusing processing apparatus, including:
the acquisition module is used for acquiring an access result of at least one requesting party to a requested party, and the access result is used for representing a response condition when the requested party is called;
the generating module is used for generating fusing information when the access result meets a preset fusing requirement;
and the fusing module is used for fusing all the requesting parties and the requested parties according to the fusing information.
In a third aspect, the present application provides an electronic device, comprising: the system comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are communicated with each other through the communication bus;
the memory is used for storing a computer program;
the processor is configured to implement the processing method according to any one of the preceding claims when executing the computer program.
In a fourth aspect, the present application provides a non-transitory computer-readable storage medium, characterized in that the non-transitory computer-readable storage medium stores computer instructions that cause the computer to perform the processing method according to any one of the preceding claims.
The embodiment of the application provides a processing method and a device for distributed fusing, wherein the method comprises the steps of firstly obtaining the response condition of a requested party when the requested party is called through the access result of at least one requesting party to the requested party; then, when the access result meets the preset fusing requirement, fusing information for fusing the requested party is generated, so that the response condition of the requested party can be judged according to the access result of one requesting party, whether the requested party can normally provide services or not is judged, and the fusing information is generated when the requested party cannot normally provide services; finally, fusing all the requesting parties and the requested parties according to the fusing information; furthermore, when a problem occurs in the service of a requested party such as a downstream system, it is not necessary that each requesting party in the upstream needs to access the system, and the downstream system is respectively fused after the problem is found; invalid access to a requested party with abnormal performance can be avoided, the response speed of the system can be effectively improved, and the performance of the system is improved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without inventive exercise.
FIG. 1 is a schematic flowchart illustrating a processing method for distributed fusing according to an embodiment of the present disclosure;
FIG. 2 is a flowchart illustrating a method for processing distributed fusing according to another embodiment of the present application;
FIG. 3 is a flowchart illustrating a processing method of distributed fusing according to another embodiment of the present application;
FIG. 4 is a flowchart illustrating a processing method of distributed fusing according to another embodiment of the present application;
FIG. 5 is a flowchart illustrating a method for processing distributed fusing according to another embodiment of the present application;
FIG. 6 is a flowchart illustrating a method for processing distributed fusing according to another embodiment of the present application;
FIG. 7 is a block diagram of a distributed fuse handling apparatus according to an embodiment of the present disclosure;
fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Fig. 1 is a processing method of distributed fusing according to an embodiment of the present application, including the following steps S1 to S3:
s1, obtaining an access result of at least one requesting party to a requested party, wherein the access result is used for representing a response condition when the requested party is called.
Specifically, the requesting party may be an upstream system, the requested party may be a downstream system or an interface, and the same requested party may interface multiple requesting parties; the response condition may include: whether it was successfully invoked, the response delay of the requested party, etc.
And S2, generating fusing information when the access result meets the preset fusing requirement.
Specifically, the preset fusing requirement is an index for determining connectivity of the requested party according to the access result, for example: the preset fusing requirement may be a success rate of access, or a feedback delay of access, and so on, and in order to match the access result with the preset fusing requirement, the information recorded in the access result is set corresponding to the preset fusing requirement.
And when the access result meets the preset fusing requirement, that is, it is determined that the interface performance index of the requested party does not meet the normal access requirement, so that the fusing information is generated, and optionally, the fusing information may be a fuse (which may be a section of code for representing fusing).
And S3, fusing all the requesting parties and the requested parties according to the fusing information.
Specifically, when at least one requesting party accesses the requested party, it indicates that the requested party cannot normally accept the request or timely feed back the request, so all requesting parties having an access or request relationship with the requested party are fused.
By the method in the embodiment, when a problem occurs in the service of the downstream system, it is not necessary that each requester in the upstream needs to access the requester, and the downstream system is fused after the problem is found; invalid access to a requested party with abnormal performance can be avoided, the response speed of the system can be effectively improved, and the performance of the system is improved.
As shown in fig. 2, in some embodiments, after the fusing between all requesters and requesters according to the fusing information, the processing method further includes steps S4 to S6 as follows:
and S4, determining a preset melting test strategy corresponding to the requested party, wherein the melting test strategy is used for judging whether the requested party meets the requirement of melting release.
Specifically, the melting test strategy may be preset, one or more melting test strategies may be provided, and different requested parties may have different preset melting test strategies corresponding to different performance requirements or functions of the requested parties based on the different performance requirements or functions; and the preset melting test strategy is used for judging whether the performance of the requested party meets the requirement of melting release, and the melting release can be realized by reestablishing a communication channel between the requesting party and the requested party to ensure that the requesting party and the requested party are communicated.
And S5, testing the requested party according to a preset melting test strategy to obtain a test result.
Specifically, the melting test strategy may include the frequency of testing the requested party, the number of tests, the test mode, and the like.
And S6, when the test result meets the preset melting-removing requirement corresponding to the preset melting-removing test strategy, removing the fusing between all requesting parties and the requested parties.
Specifically, each melting-releasing test strategy can correspond to a preset melting-releasing requirement, and the preset melting-releasing requirement is used for judging whether a test result meets the melting-releasing requirement after the requested party is tested through the melting-releasing test strategy; and when the test result of the requested party meets the fusing release requirement, the fusing release between all requesting parties and the requested party can be realized by indicating that the performance of the requested party is recovered to the requirement of providing service again, so that each requesting party starts to access the requested party.
In some embodiments, the processing method, as previously described,
the step S5 is to test the requested party according to a preset melting test strategy to obtain a test result, and specifically includes:
and when the fusing duration after fusing reaches a preset thawing time interval, performing connectivity test on the requested party according to a preset test frequency to obtain a test result, wherein the connectivity test is used for testing whether the requested party can be normally called. Wherein, whether the request can be responded normally comprises the following steps: whether the request can be responded to, and whether the time of the response is within a certain time limit.
Specifically, the fusing of the requested party is performed because the performance of the requested party is problematic, and the requested party cannot be normally recovered immediately under normal conditions; therefore, when the fusing duration after fusing reaches the preset fusing time interval, the connectivity test is carried out again; the connectivity test is carried out on the requesting party according to the preset test frequency, the situation that system resources are wasted due to the fact that access is carried out at high frequency all the time under the condition that the performance of the requested party is abnormal can be avoided, and the melting time interval and the preset test frequency can be set according to specific situations and are not limited; furthermore, the retry number can be limited, so as to prevent the requested party from continuously accessing the requested party under the condition that the requested party cannot automatically recover or rapidly recover, and waste system resources. The step S6, when the test result meets the preset meltdown requirement corresponding to the preset meltdown test strategy, includes:
and when the test result represents that the requested party passes the connectivity test, judging that the test result meets the preset melting-releasing requirement.
Specifically, the presetting of the melting release requirement is a requirement for melting release of a requested party, and may include: whether the request can be responded to, and whether the time of the response is within a certain time limit. Generally, when the requested party passes the connectivity test once, that is, the test result is determined to meet the preset melting-releasing requirement, in other cases, in order to perform melting-releasing again under the condition that the requested party has stable performance, the test result is determined to meet the preset melting-releasing requirement only under the condition that the requested party passes the connectivity test continuously for multiple times.
As shown in fig. 3, in some embodiments, as the foregoing processing method, a connectivity test is performed on a requested party according to a preset test frequency, so as to obtain a test result, where the method includes the following steps S51 to S53:
and S51, performing connectivity test on the requested party according to the preset test frequency.
Specifically, the preset test frequency may be defined to perform sequential connectivity tests on the requested party every certain time duration (for example, when the time duration t2 is 1s, the preset test frequency is 1 test time per second); alternatively, low concurrent test frequencies are typically employed for testing.
And S52, obtaining a test result when the requested party passes the connectivity test within the preset retry number threshold. And S53, stopping the connectivity test of the requested party when the requested party does not pass the connectivity test within the preset retry number threshold.
Specifically, when the requested party fails and can not recover in a short time, in order to prevent the requested party from continuously performing invalid connectivity tests, a retry threshold (e.g. 3 times, 6 times, etc.) is set, and at most, only the requested party is performed connectivity tests within the test times, for example: when the threshold of the retry times is 3 times, only 3 times of connectivity tests are carried out on the requested party at most, generally, when a certain test passes, the test is stopped, the test result is obtained as pass, and when none of the 3 times of tests passes, the corresponding test result is obtained as fail.
One of the methods for defining the melting test strategy in this step may be:
when the melting test strategy is (0-t1-t2-c), the first connectivity test can be started after the melting time after melting reaches t1 (i.e. melting time interval), melting is performed if the test is successful, retry fails, retry is performed again after time t2 according to a preset test frequency (e.g. retry is performed every t2 time interval), and the retriable number is c. Specifically, for example: when the one-melting test strategy is (0-60-60-3), if the fusing time is 2018-12-25:12:00:00, retry can be performed after 2018-12-25:12:01:00, melting can be performed if the fusing time is successful, retry is performed again after 2018-12-25:12:02:00 if the fusing time is failed, and retry can be performed for 3 times at most. If the maximum retry number is reached and the melting is not performed, the melting is stopped, or other melting modes such as manual melting are changed.
The implementation method of manual melting can be as follows: and performing the melting through a related melting function of the management page capable of acquiring the connectivity of the requested party.
As shown in fig. 4, in some embodiments, the step S4 of determining the preset melting test strategy corresponding to the requested party includes the following steps S41 and S42, as the aforementioned processing method:
step S41, first configuration information for configuring the melting test strategy corresponding to the requested party is received in advance.
And S42, generating a preset melting test strategy according to the first configuration information.
Specifically, the first configuration information may be configured in a preset configuration interface, and the specific parameters for configuring may include: the interval time for performing connectivity test after fusing, the frequency of performing test, and the upper threshold of the number of tests.
And after the first configuration information is obtained, a corresponding melting test strategy can be generated according to the first configuration information.
As shown in fig. 5, in some embodiments, the processing method as described above further includes steps S7 and S8 as follows:
and S7, receiving second configuration information for configuring the fusing requirement corresponding to the requested party in advance.
And S8, generating a preset fusing requirement according to the second configuration information.
Specifically, the second configuration information may be configured in a preset configuration interface, and the specific parameters for configuring may include: it is determined whether to fuse the data type based on (e.g., fuse based on a consecutive error count or fuse based on an accumulated error count), and a value configured for each data type (e.g., fuse based on a consecutive error count of 5 or fuse based on an accumulated error count of 6).
And after the second configuration information is obtained, the corresponding preset fusing requirement can be generated according to the second configuration information.
As shown in fig. 6, in some embodiments, as the foregoing processing method, the step S2 where the access result meets the preset fusing requirement includes the following steps S21 and S22:
and S21, the access result represents that the number of times of continuous calling failure of at least one requesting party to the requested party is greater than a first time threshold value.
Specifically, one implementation method may be: fusing (0-M-c) with continuous error count, wherein M is a fixed letter and represents whether the preset fusing requirement is fused or not according to the continuous error count; and fusing after the number of continuous calling errors reaches a certain value c. For example: the continuous error count fusing is 0-M-5, namely representing fusing the requested party after 5 times of continuous errors.
And S22, the access result represents that the number of times of calling failure of at least one requesting party to the requested party in a preset time period is greater than a second time threshold value.
Specifically, one implementation method may be: and fusing (1-t-c) by the accumulated error count, representing that fusing is carried out after the accumulated calling error frequency of the requested party reaches a certain value c within a certain time t. For example: and when the accumulated error count is fused to be 1-60-10, fusing the requested party after the accumulated number of calling errors to the requested party reaches 10 times within 60 seconds.
Optionally, the fusing requirement and the thawing test policy may be stored in a GUAVA local cache of a device (e.g., a gateway) that implements the method according to the embodiment of the present application; fuses (an implementation mode of fusing information), counters (a program for counting the number of fusing required errors or the number of tests in a melting test strategy) are stored in the REDIS distributed cache; because the data in the GUAVA local cache is in one-to-one correspondence with each requesting party, each requested party can place the fusing requirement and the thawing test strategy corresponding to the requested party in the GUAVA local cache, the process of obtaining the data from the REDIS distributed cache is avoided, and the performance can be effectively improved. Further, one implementation method of the counter may be: since the fusing requirements may include: fusing according to the continuous error count or fusing according to the accumulated error count; therefore, the counter may be classified into a continuous fusing counter and an accumulated fusing counter according to the fusing request.
The counter may be stored in the REDIS cache. The cache KEY is designed as OPENAPI (interface), GATEWAY, break.x. fuse code, X indicates continuous or cumulative: 0 indicates continuous and 1 indicates cumulative. When the counting number of the counter reaches the fusing value (such as the continuous error times or the accumulative error times) set in the fusing requirement, fusing is carried out.
One of the optional fuses (fusing information) may be implemented by:
fuses are stored in the REDIS cache, and the cache KEY is designed to be OPENAPI.GATEWAY.BREAK.TOOL.fusing dimension; the fuse is explained to be fused as long as the fuse exists in the cache, and the fuse is not fused if the fuse does not exist; the fuse can be divided into automatic melting and manual melting according to the melting mode; different fuses correspond to different requested parties.
The fuse which is automatically melted down can be (fuse code |0-c-t), retry can be carried out after time t, the fuse is melted down after retry is successful, and retry is carried out for c times. For example: abc123|0-3-20181212101010, with the fuse code abc123, 2018-12-1210: 10:10, could be retried, having been retried 3 times.
Among them, the fuse to be manually fused may be (fuse code |1-F), for example: abc456|1-F, then the fuse is encoded as abc456, which requires manual fuse-opening.
As shown in fig. 7, according to another aspect of the present application, there is also provided a processing apparatus for distributed fusing, including:
the system comprises an acquisition module 1, a storage module and a processing module, wherein the acquisition module is used for acquiring an access result of at least one requesting party to a requested party, and the access result is used for representing a response condition when the requested party is called;
the generating module 2 is used for generating fusing information when the access result meets a preset fusing requirement;
and the fusing module 3 is used for fusing all the requesting parties and the requested parties according to the fusing information.
Specifically, the specific process of implementing the functions of each module in the apparatus according to the embodiment of the present invention may refer to the related description in the method embodiment, and is not described herein again.
According to another embodiment of the present application, there is also provided an electronic apparatus including: as shown in fig. 8, the electronic device may include: the system comprises a processor 1501, a communication interface 1502, a memory 1503 and a communication bus 1504, wherein the processor 1501, the communication interface 1502 and the memory 1503 complete communication with each other through the communication bus 1504.
A memory 1503 for storing a computer program;
the processor 1501 is configured to implement the steps of the above-described method embodiments when executing the program stored in the memory 1503.
The bus mentioned in the electronic device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the electronic equipment and other equipment.
The Memory may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components.
Embodiments of the present application also provide a non-transitory computer-readable storage medium storing computer instructions for causing a computer to perform the steps of the above-described method embodiments.
It is noted that, in this document, relational terms such as "first" and "second," and the like, may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The foregoing are merely exemplary embodiments of the present invention, which enable those skilled in the art to understand or practice the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A processing method of distributed fusing is characterized by comprising the following steps:
obtaining an access result of at least one requesting party to a requested party, wherein the access result is used for representing a response condition when the requested party is called;
generating fusing information when the access result meets a preset fusing requirement;
and fusing all the requesting parties and the requested parties according to the fusing information.
2. The processing method according to claim 1, further comprising, after fusing between all requesters and the requested party according to the fusing information:
determining a preset melting test strategy corresponding to the requested party, wherein the melting test strategy is used for judging whether the requested party meets the requirement of melting release;
testing the requested party according to the melting test strategy to obtain a test result;
and when the test result meets the preset melting-removing requirement corresponding to the melting-removing test strategy, melting-removing is carried out between all the requesting parties and the requested parties.
3. The processing method according to claim 2,
the testing the requested party according to the melting test strategy to obtain a test result comprises the following steps:
when the fusing duration after fusing reaches a preset fusing time interval, performing connectivity test on the requested party according to a preset test frequency to obtain the test result, wherein the connectivity test is used for testing whether the requested party can be normally called or not;
the test result meets the preset melting-melting requirement corresponding to the melting-melting test strategy, and the method comprises the following steps:
and when the test result represents that the requested party passes the connectivity test, judging that the test result meets the preset melting-releasing requirement.
4. The processing method according to claim 3, wherein the performing connectivity test on the requested party according to a preset test frequency to obtain the test result comprises:
performing connectivity test on the requested party according to a preset test frequency;
when the requested party passes the connectivity test within a preset retry number threshold, obtaining the test result;
and when the requested party does not pass the connectivity test within the preset retry number threshold, stopping the connectivity test of the requested party.
5. The processing method of claim 2, wherein determining the preset meltdown test strategy corresponding to the requested party comprises:
receiving first configuration information for configuring the melting test strategy corresponding to the requested party in advance;
and generating the melting test strategy according to the first configuration information.
6. The processing method of claim 1, further comprising:
receiving second configuration information for configuring the fusing requirement corresponding to the requested party in advance;
and generating the preset fusing requirement according to the second configuration information.
7. The processing method according to claim 2, wherein the accessing result meets a preset fusing requirement, and comprises:
the access result represents that the number of times of continuous calling failure of the at least one requesting party to the requested party is greater than a first time threshold value;
or the like, or, alternatively,
and the access result represents that the number of times of calling failure of the at least one requesting party to the requested party in a preset time period is greater than a second time threshold value.
8. A distributed fuse handling device, comprising:
the acquisition module is used for acquiring an access result of at least one requesting party to a requested party, and the access result is used for representing a response condition when the requested party is called;
the generating module is used for generating fusing information when the access result meets a preset fusing requirement;
and the fusing module is used for fusing all the requesting parties and the requested parties according to the fusing information.
9. An electronic device, comprising: the system comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are communicated with each other through the communication bus;
the memory is used for storing a computer program;
the processor, when executing the computer program, implementing the processing method of any one of claims 1-7.
10. A non-transitory computer-readable storage medium storing computer instructions for causing a computer to perform the processing method of any one of claims 1 to 7.
CN202010078980.2A 2020-02-03 2020-02-03 Processing method and device for distributed fusing Pending CN111324477A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010078980.2A CN111324477A (en) 2020-02-03 2020-02-03 Processing method and device for distributed fusing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010078980.2A CN111324477A (en) 2020-02-03 2020-02-03 Processing method and device for distributed fusing

Publications (1)

Publication Number Publication Date
CN111324477A true CN111324477A (en) 2020-06-23

Family

ID=71163336

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010078980.2A Pending CN111324477A (en) 2020-02-03 2020-02-03 Processing method and device for distributed fusing

Country Status (1)

Country Link
CN (1) CN111324477A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111814178A (en) * 2020-06-29 2020-10-23 四川长虹电器股份有限公司 Data callback fusing protection method for third-party application
CN113595925A (en) * 2021-07-06 2021-11-02 中企云链(北京)金融信息服务有限公司 Intelligent gateway dynamic current limiting implementation method

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106254331A (en) * 2016-07-28 2016-12-21 努比亚技术有限公司 A kind of terminal applies request managing device and method, communication system
CN109240765A (en) * 2018-08-28 2019-01-18 中国联合网络通信集团有限公司 Blowout method, device, equipment and the computer readable storage medium of Service Source
CN109766210A (en) * 2019-01-17 2019-05-17 多点生活(成都)科技有限公司 Service fusing control method, service fusing control device and server cluster

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106254331A (en) * 2016-07-28 2016-12-21 努比亚技术有限公司 A kind of terminal applies request managing device and method, communication system
CN109240765A (en) * 2018-08-28 2019-01-18 中国联合网络通信集团有限公司 Blowout method, device, equipment and the computer readable storage medium of Service Source
CN109766210A (en) * 2019-01-17 2019-05-17 多点生活(成都)科技有限公司 Service fusing control method, service fusing control device and server cluster

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111814178A (en) * 2020-06-29 2020-10-23 四川长虹电器股份有限公司 Data callback fusing protection method for third-party application
CN113595925A (en) * 2021-07-06 2021-11-02 中企云链(北京)金融信息服务有限公司 Intelligent gateway dynamic current limiting implementation method
CN113595925B (en) * 2021-07-06 2024-01-30 中企云链(北京)金融信息服务有限公司 Method for realizing dynamic current limiting of intelligent gateway

Similar Documents

Publication Publication Date Title
CN106776099B (en) Service fusing isolation system and method
US20220201534A1 (en) Method and device for determining terminal behavior analysis
CN106716972B (en) Semi-automatic failover
CN109936511B (en) Token obtaining method, device, server, terminal equipment and medium
CN111262795B (en) Service interface-based current limiting method and device, electronic equipment and storage medium
CN106533805B (en) Micro-service request processing method, micro-service controller and micro-service architecture
CN111078453B (en) Method, device, computer equipment and storage medium for automatically fusing and recovering micro-service
CN111768288B (en) Service processing method, device, electronic equipment and storage medium
CN111324477A (en) Processing method and device for distributed fusing
WO2022135158A1 (en) Transaction request processing method and apparatus, and transaction transfer system
WO2024007995A1 (en) Network fault recovery method and apparatus, device, and storage medium
CN110896382A (en) Flow control method, device, equipment and computer readable storage medium
CN114168071B (en) Distributed cluster capacity expansion method, distributed cluster capacity expansion device and medium
CN111104213A (en) Method and device for adjusting fusing
CN111949421B (en) SDK calling method, device, electronic equipment and computer readable storage medium
CN113472879B (en) Service request method, device, computer equipment and storage medium
CN110941622A (en) Data processing method and device
CN111680293A (en) Information monitoring management method and device based on Internet and server
CN115296979B (en) Fault processing method, device, equipment and storage medium
CN113656215B (en) Automatic disaster recovery method, system, medium and equipment based on centralized configuration
CN115277479A (en) Method and system for realizing system operation condition monitoring based on monitoring assistant
CN111354174A (en) Alarm method, device, server and readable storage medium
CN113568781A (en) Database error processing method and device and database cluster access system
WO2017084284A1 (en) Method for detecting operation of function management configuration server, legitimate client, cdn node and system
CN110113187B (en) Configuration updating method and device, configuration server and configuration system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination