An automated view library service guarantee system and method

Through the automated view library service guarantee system, the resources and cascade information of the view library are collected and synchronized, and the circuit breaker rules are set and executed. This solves the chain reaction problem of the view library system due to the uncontrollable status of the superior system and achieves the stability of the view library. and quick response capabilities.

CN114357239BActive Publication Date: 2025-01-24CHONGQING UNISINSIGHT TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202210017515.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-07
Publication Date
2025-01-24
Estimated Expiration
2042-01-07

AI Technical Summary

Technical Problem

Due to the uncontrollable state of the upper-level system, the existing view library system leads to a chain reaction of the view library at this level, which is difficult to adapt to the dynamic changes of the rules, and the problem cannot be discovered and solved in time.

Method used

Provide automated viewing gallery service guarantee systems and methods, including collecting modules, fuse rules modules, synchronous modules, and execution modules. By automatic collection of resource information and grade information, the resource and grade assignment of viewing gallery services have a mapping relationship. Rules, the fuse of the fuse is performed simultaneously, and the interface interface is performed according to the rules.

Benefits of technology

It reduces manual participation in entering circuit breaker rules, avoids chain reactions, can adapt to dynamic changes in rules, quickly develops protection capabilities, detects and solves problems in a timely manner, and ensures the stability of the view library.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114357239B_ABST
    Figure CN114357239B_ABST
Patent Text Reader

Abstract

The present invention provides an automated view library service guarantee system and method. The system comprises: a collection module, a fuse rule module, a synchronization module, and an execution module. By setting a plurality of fuse rules having a mapping relationship with resources and cascade configurations of view library services, a to-be-executed fuse rule is obtained through matching, and the interface fuse of the view library service execution at this level is performed. The present invention can automatically generate fuse rules, reduce manual participation in entering fuse rules, avoid manual errors, and avoid chain reactions of the view library at this level when the state of the upper view library system is uncontrollable. The present invention can adapt to the situation where the rules need to be dynamically changed, quickly form protection capabilities, form interface fuses, and timely discover and solve problems, thereby ensuring the stability of the view library at this level.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer applications, and in particular to an automated view library service assurance system and method. Background Art

[0002] The view library is an important part of the security video image information application system. It is mainly responsible for collecting large amounts of video and image data and cascading related data. Due to the large amount of data, the view library system needs to have high throughput and high stability to ensure normal data collection and data sharing with other systems.

[0003] However, in the actual production environment, it is usually necessary to cascade the various captured data and equipment levels collected to multiple superiors. However, due to the uncontrollable state of the superior view library system, and the view library has a cascade relationship and cascade relationship due to its particularity, and the cascaded system is in a constantly changing state, once a problem occurs in the upper and lower systems, it will cause a chain reaction in the view library at this level. Therefore, a view library service guarantee method is needed that can adapt to the situation where the rules need to be changed dynamically, so as to discover and solve problems in a timely manner, and provide guarantee for the view library service in an automated way. Summary of the invention

[0004] In view of the above-mentioned shortcomings of the prior art, the present invention provides an automated view library service assurance system and method to solve the above-mentioned technical problems.

[0005] The automated view library service assurance system and method provided by the present invention include:

[0006] The collection module is used to collect resource information and cascade information of the view library service;

[0007] A fuse rule module, used to set a plurality of fuse rules having a mapping relationship with the resources and cascade configurations of the view library service; and to match the collected resource information and cascade information with the fuse rules to obtain a fuse rule to be executed;

[0008] A synchronization module, used to synchronize the to-be-executed fuse rules to the service replica;

[0009] The execution module is used to perform interface fusing on the view library service at this level according to the to-be-executed fusing rule.

[0010] In one embodiment of the present invention, it further includes:

[0011] An early warning module is used to compare the collected resource information with a preset alarm threshold and issue an alarm message according to the comparison result;

[0012] The recording module is used to record the execution interface fuse information. When the execution of the fuse rule causes cascade data loss, the upper and lower level data are reconciled.

[0013] In one embodiment of the present invention, the fuse rule module includes:

[0014] Data persistence unit, used to convert between data model and storage model;

[0015] A visualization unit, used for visually displaying the resource information, cascade information, fuse rules, alarm information and interface fuse information;

[0016] Rule modification unit, used to modify the circuit breaker rules;

[0017] A rule matching unit is used to match the collected resource information and cascade information with the fuse rule to obtain the fuse rule to be executed.

[0018] In one embodiment of the present invention, the resource information includes processor load information and network load information; the cascade information includes the cascade relationship, the cascade status of the upper and lower levels, and the success rate of the cascade interface; the interface fuse information includes the time information of the interface fuse, the fuse reason, the duration, and the cascade data loss information during the fuse period.

[0019] In one embodiment of the present invention, the mapping relationship includes a flow and anomaly ratio relationship, an access data interface restriction relationship, a subscription push interface restriction relationship, a control alarm push interface restriction relationship, and a cascade query interface restriction relationship;

[0020] The fuse rules include overall inlet traffic query and abnormal ratio fuse rules, query restriction rules for access data interface, query restriction rules for subscription push interface, query restriction rules for control alarm push interface, and query restriction rules for cascade query interface.

[0021] In one embodiment of the present invention, it further includes:

[0022] A decision module is used to select different fusing methods according to the collected resource information and cascade information and the fusing rules to be executed, and the fusing methods include:

[0023] By limiting the average data transmission rate of the view library service at this level, the interface is fused.

[0024] And / or, tokens are issued periodically, and if a request needs to be processed, a token is obtained, and when no token is available, service is denied.

[0025] In one embodiment of the present invention, it further includes:

[0026] A service request module, used to obtain access request information, wherein the access request information includes a current limiting parameter;

[0027] A flow module, used to determine the current request flow according to the current limiting parameters;

[0028] The time module is used to obtain the fuse duration of the current interface fuse mode when the current request flow is greater than the preset receiving flow;

[0029] The recovery module is used to control the service request module to send the access request again according to the interface fuse duration.

[0030] The present invention also provides an automated view library service assurance method, comprising:

[0031] Collect resource information and cascade information of view library services,

[0032] Setting a plurality of fuse rules having a mapping relationship with the resources and cascade configurations of the view library service, and matching the collected resource information and cascade information with the fuse rules to obtain a fuse rule to be executed;

[0033] Synchronize the to-be-executed fuse rules to the service copy;

[0034] According to the to-be-executed fuse rule, interface fuse is performed on the view library service at this level.

[0035] The present invention also provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program implements any of the above methods when executed by a processor.

[0036] The present invention also provides an electronic terminal, comprising: a processor and a memory;

[0037] The memory is used to store a computer program, and the processor is used to execute the computer program stored in the memory, so that the terminal executes any one of the methods described above.

[0038] Beneficial effects of the present invention: The automated view library service assurance system and method of the present invention automatically generates fuse rules, reduces manual participation in entering fuse rules, avoids manual errors, and avoids chain reactions in the view library at this level when the state of the superior view library system is uncontrollable. The present invention can adapt to situations where rules need to be dynamically changed, quickly form protection capabilities, form interface fuses, promptly discover and solve problems, and ensure the stability of the view library at this level.

[0039] In addition, the present invention can also automatically restore the system cascading capability and timely ensure the flow of data in the north-south system. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] Figure 1 It is a schematic diagram of the architecture of the automated view library service assurance system in an embodiment of the present invention.

[0041] Figure 2 It is a schematic diagram of the guarantee process of the automated view library service guarantee system in an embodiment of the present invention.

[0042] Figure 3 It is a schematic diagram of the specification-based initialization rules of the automated view library service assurance system in an embodiment of the present invention.

[0043] Figure 4 It is a schematic diagram of the dynamic modification rules of indicators of the automated view library service assurance system in an embodiment of the present invention.

[0044] Figure 5 It is a schematic diagram of user viewing / modification rules of the automated view library service assurance system in an embodiment of the present invention.

[0045] Figure 6 It is a structural diagram of the automated view library service assurance system in an embodiment of the present invention. DETAILED DESCRIPTION

[0046] The following describes the embodiments of the present invention by specific examples, and those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention. It should be noted that the following embodiments and features in the embodiments can be combined with each other without conflict.

[0047] It should be noted that the illustrations provided in the following embodiments are only schematic illustrations of the basic concept of the present invention, and thus the drawings only show components related to the present invention rather than being drawn according to the number, shape and size of components in actual implementation. In actual implementation, the type, quantity and proportion of each component may be changed arbitrarily, and the component layout may also be more complicated.

[0048] In the following description, numerous details are discussed to provide a more thorough explanation of the embodiments of the present invention. However, it is obvious to those skilled in the art that the embodiments of the present invention can be implemented without these specific details. In other embodiments, well-known structures and devices are shown in the form of block diagrams rather than in detail to avoid making the embodiments of the present invention difficult to understand.

[0049] like Figure 1 , 6 As shown, the automated view library service assurance system in this embodiment includes:

[0050] The collection module is used to collect resource information and cascade information of the view library service;

[0051] A fuse rule module, used to set a plurality of fuse rules having a mapping relationship with the resources and cascade configurations of the view library service; and to match the collected resource information and cascade information with the fuse rules to obtain a fuse rule to be executed;

[0052] A synchronization module, used to synchronize the to-be-executed fuse rules to the service replica;

[0053] The execution module is used to perform interface fusing on the view library service at this level according to the to-be-executed fusing rule.

[0054] In this embodiment, the acquisition module is mainly used to collect resource information and cascade information of the view library service. The resource information in this embodiment includes processor load information and network load information, such as CPU (central processing unit, referred to as CPU) usage, memory usage, and network status; cascade information includes cascade relationship, upper and lower cascade status, and cascade interface success rate. The fuse rule module is mainly used to set a variety of fuse rules that have a mapping relationship with the resources and cascade configuration of the view library service; and according to the collected resource information and cascade information, match with the fuse rule to obtain a fuse rule to be executed. The fuse rule module can provide users with the ability to modify or delete the default fuse rule and persist the fuse rule to the data persistence device. The synchronization module is used to synchronize the fuse rule to be executed to the service copy. The synchronization method can use message queues, Redis, configuration centers, etc. to achieve the synchronization function. Since for a service, it may be necessary to start multiple different applications, but service copies with the same service content, this method can improve the disaster tolerance of the service, but for running multiple services at the same time, it will involve some problems. The fuse rules to be executed can be synchronized through the synchronization module. The execution module is mainly used to perform interface fuse for the view library service at this level according to the fuse rules to be executed. For example, you can use the token bucket algorithm, leaky bucket algorithm, sliding window algorithm to implement it yourself, or use the fuse capabilities provided by the existing Guava or Sentinel.

[0055] In this embodiment, it also includes: an early warning module, which is used to compare the collected resource information with the preset alarm threshold, and issue an alarm message according to the comparison result. The early warning module can issue an alarm for the system key indicator warning to remind the user that the system status is abnormal. A recording module is used to record the execution interface fuse information. When the execution of the fuse rule causes cascade data loss, the upper and lower data are reconciled. The recording module can record the fuse time, reason and duration and the cascade data loss during the current fuse time when sending the fuse, which is used for the upper and lower data reconciliation function.

[0056] In this embodiment, the fuse rule module includes: a data persistence unit, which is used to convert between data models and storage models. The data persistence unit can provide a fuse rule storage function, and various types of databases, files, configuration centers, etc. can be used to implement this function; a visualization unit, which is used to visualize the resource information, cascade information, fuse rules, alarm information and interface fuse information; a rule modification unit, which is used to modify the fuse rules; a rule matching unit, which is used to match the collected resource information and cascade information with the fuse rules to obtain the fuse rules to be executed.

[0057] In this embodiment, the fuse rule module can generate multiple fuse rules according to system specifications and system cascade relationships. The mapping relationship in this embodiment includes the relationship between traffic and abnormality ratio, the access data interface restriction relationship, the subscription push interface restriction relationship, the control alarm push interface restriction relationship, and the cascade query interface restriction relationship; the fuse rules include the overall inlet traffic query and abnormality ratio fuse rules, the access data interface query restriction rules, the subscription push interface query restriction rules, the control alarm push interface query restriction rules, and the cascade query interface query restriction rules.

[0058] In this embodiment, a decision module is also included, which is used to select different fusing methods according to the collected resource information and cascade information and the to-be-executed fusing rules. The fusing methods in this embodiment include: by limiting the average transmission rate of the data served by the view library at this level, the interface is fused, and / or, periodically issuing tokens, if a request needs to be processed, a token is obtained, and when no token is available, the service is rejected. A flow module is used to determine the current request flow according to the flow limiting parameters in the fusing method; a time module is used to obtain the interface fusing duration when the current request flow is greater than the preset receiving flow; a recovery module is used to control the re-sending of the access request according to the interface fusing duration. In this embodiment, the processing speed of the submitted access application can be estimated according to the preset receiving flow and the number of current request flows, and then the current processing time can be obtained, and then the to-be-processed access applications can be sorted and allocated according to the priority of the corresponding requester. For example, the current required processing time can be 100ms, and the access applications of requests A, B, and C are sorted. For example, request C has the highest priority and request A has the lowest priority, so the sorting is C, B, A. It is estimated that the processing time of each access request is 10ms, so the fuse duration is 100ms for request C, 110ms for request B, and 120ms for request A. The fuse duration is sent to the corresponding requester so that the requester resends the access request based on the fuse duration. After the fuse duration is reached, the requester resends the access request.

[0059] Accordingly, this embodiment also provides an automated view library service assurance method, including:

[0060] S1. Collect resource information and cascade information of view library service;

[0061] S2. Setting a plurality of fuse rules having a mapping relationship with the resources and cascade configurations of the view library service, and matching the collected resource information and cascade information with the fuse rules to obtain a fuse rule to be executed;

[0062] S3. Synchronize the to-be-executed fuse rules to the service copy;

[0063] S4. According to the to-be-executed fuse rule, interface fuse is performed on the view library service at this level.

[0064] In this embodiment, the collected resource information includes processor load information and network load information, such as CPU (central processing unit, CPU for short) usage, memory usage, and network status; cascade information includes cascade relationship, upper and lower cascade status, and cascade interface success rate.

[0065] In this embodiment, a variety of fuse rules are set up that have a mapping relationship with the resources and cascade configuration of the view library service; and according to the collected resource information and cascade information, the fuse rules are matched to obtain a fuse rule to be executed. The fuse rule module can provide users with the ability to modify or delete the default fuse rules and persist the fuse rules to the data persistence device. The fuse rules to be executed are synchronized to the service replica. The synchronization method can use message queues, Redis, configuration centers, etc. to achieve the synchronization function. According to the fuse rules to be executed, the interface fuse is executed for the view library service at this level. For example, the token bucket algorithm, leaky bucket algorithm, sliding window algorithm can be used to implement it yourself, or the fuse capabilities provided by the existing Guava or Sentinel can be used.

[0066] In this embodiment, the resource information collected is compared with the preset alarm threshold, and an alarm message is issued according to the comparison result. The early warning module can issue an alarm for the system key indicator warning to remind the user that the system status is abnormal. When the cascade data is lost after the execution of the fuse rule, the upper and lower data are reconciled. The recording module can record the fuse time, reason and duration and the cascade data loss during the current fuse time when sending the fuse, which is used for the upper and lower data reconciliation function.

[0067] In this embodiment, a variety of fuse rules can be generated according to system specifications and system cascade relationships. The mapping relationship in this embodiment includes the relationship between traffic and abnormality ratio, the access data interface restriction relationship, the subscription push interface restriction relationship, the control alarm push interface restriction relationship, and the cascade query interface restriction relationship; the fuse rules include the overall inlet traffic query and abnormality ratio fuse rules, the access data interface query restriction rules, the subscription push interface query restriction rules, the control alarm push interface query restriction rules, and the cascade query interface query restriction rules.

[0068] The following is a specific example for explanation:

[0069] Taking the example of data that needs to flow between north-south systems and converge to the upper system, in the system, data usually needs to converge from the lower level to the upper level to the central node of the data middle platform, and the system architecture adopts a tree structure. Since the status of the upper-level system will affect the data push of the lower-level system, which in turn affects the normal business capabilities of the lower-level system. In order to avoid affecting the business of the lower-level system itself, this embodiment adds registration and keep-alive capabilities and system key indicator collection capabilities to the upper and lower levels, and then forms fuse rules for the various collected indicators. When an abnormality occurs in the upper-level system, the business ability to push data to the upper level is automatically fused, thereby ensuring the business capabilities of the system itself. Figure 2 , 3 , 4, 5, specifically:

[0070] S101: Add, modify or delete existing system fuse rules in the system;

[0071] S102: Obtain system specifications and system cascade relationship;

[0072] S103: Generate the following fuse rules according to the system specifications and system cascade relationship of S102:

[0073] The overall ingress traffic QPS and abnormal ratio fuse rules. QPS stands for query rate per second. QPS can be used to measure the amount of traffic processed by a specific query server within a specified time.

[0074] QPS restriction rules for accessing data interfaces;

[0075] Subscription push interface QPS limit rules;

[0076] QPS restriction rules for the control alarm push interface;

[0077] Cascade query interface QPS limit rules;

[0078] S104: System indicator collection, collecting key indicators such as system memory, CPU, network and the cascade status of upper and lower levels;

[0079] S105: The circuit breaker rules are dynamically changed. The following circuit breaker rules are generated based on the key system indicators collected in S104:

[0080] Subscribe to push interface parameter fuse rules, that is, limit the push of collected data to superiors with abnormal status;

[0081] The control alarm push interface parameter fuse rule limits the push of control alarm data to the superior with abnormal status;

[0082] Cascade query interface parameter fuse rules, that is, limit the query to the data of the lower-level abnormal system;

[0083] S106: convert the parameter fusing rules generated in S103, S103, and S105 into fusing rules that can be recognized by the fusing component and load the rules into the memory;

[0084] S107: When the interface in the system reaches the fuse rule configured in S106, the fuse warning and recording module issues an alarm for the system key indicator warning to remind the user that the system status is abnormal. When sending the fuse, the fuse time, reason and duration, and the cascade data loss during the current fuse time are recorded for the upper and lower data reconciliation function.

[0085] S108: persist the rules of S106 to a persistent device so that they can be used after the system is restarted;

[0086] S109: Send the rule fuse rule of S106 to the cross-service message change notification for other replicas to consume and use the new fuse rule;

[0087] S110: When the system is restarted, the existing fusing rules may be loaded from the data persistence device for use by the fusing component.

[0088] By repeating S103, S104, S105 and S106, automatic protection of the view library system can be achieved according to the status change of the system cascade system.

[0089] This embodiment further provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, any one of the methods in this embodiment is implemented.

[0090] This embodiment also provides an electronic terminal, including: a processor and a memory;

[0091] The memory is used to store a computer program, and the processor is used to execute the computer program stored in the memory, so that the terminal executes any one of the methods in this embodiment.

[0092] The computer-readable storage medium in this embodiment can be understood by ordinary technicians in this field: all or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to the computer program. The aforementioned computer program can be stored in a computer-readable storage medium. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned storage medium includes: ROM, RAM, magnetic disk or optical disk and other media that can store program codes.

[0093] The electronic terminal provided in this embodiment includes a processor, a memory, a transceiver and a communication interface. The memory and the communication interface are connected to the processor and the transceiver and complete communication with each other. The memory is used to store computer programs, the communication interface is used to communicate, and the processor and the transceiver are used to run computer programs so that the electronic terminal executes each step of the above method.

[0094] In this embodiment, the memory may include a random access memory (RAM), and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.

[0095] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.

[0096] In the above embodiments, the description refers to "this embodiment", "an embodiment", "another embodiment", or "other embodiments" to indicate that the specific features, structures, or characteristics described in conjunction with the embodiments are included in at least some embodiments, but not necessarily all embodiments. Multiple occurrences of "this embodiment", "an embodiment", or "another embodiment" do not necessarily all refer to the same embodiment.

[0097] In the above-described embodiments, although the invention has been described in conjunction with specific embodiments of the invention, many substitutions, modifications, and variations of these embodiments will be apparent to those of ordinary skill in the art based on the foregoing description. For example, other storage structures (e.g., dynamic RAM (DRAM)) may use the embodiments discussed. Embodiments of the invention are intended to encompass all such substitutions, modifications, and variations that fall within the broad scope of the appended claims.

[0098] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0099] The present invention can be used in many general or special computing system environments or configurations, such as personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronic devices, network PCs, minicomputers, mainframe computers, distributed computing environments including any of the above systems or devices, and the like.

[0100] The present invention may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present invention may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.

[0101] The above embodiments are merely illustrative of the principles and effects of the present invention, and are not intended to limit the present invention. Anyone familiar with the technology may modify or change the above embodiments without violating the spirit and scope of the present invention. Therefore, all equivalent modifications or changes made by a person of ordinary skill in the art without departing from the spirit and technical ideas disclosed by the present invention shall still be covered by the claims of the present invention.

Claims

1. An automated view library service assurance system, characterized in that: include: The collection module is used to collect resource information and cascade information of the view library service; A fuse rule module, used to set a plurality of fuse rules having a mapping relationship with the resources and cascade configurations of the view library service; and to match the collected resource information and cascade information with the fuse rules to obtain a fuse rule to be executed; A synchronization module, used to synchronize the to-be-executed fuse rules to the service replica; An execution module, used for executing interface fuse for the view library service at this level according to the fuse rule to be executed; The fuse rule module includes: Data persistence unit, used to convert between data model and storage model; A visualization unit, used for visually displaying the resource information, cascade information, fuse rules, alarm information and interface fuse information; Rule modification unit, used to modify the circuit breaker rules; A rule matching unit is used to match the collected resource information and cascade information with the fuse rule to obtain the fuse rule to be executed.

2. The automated view library service assurance system according to claim 1, characterized in that: Also includes: An early warning module is used to compare the collected resource information with a preset alarm threshold and issue an alarm message according to the comparison result; The recording module is used to record the execution interface fuse information. When the execution of the fuse rule causes cascade data loss, the upper and lower level data are reconciled.

3. The automated view library service assurance system according to claim 1, characterized in that: The resource information includes processor load information and network load information; the cascade information includes cascade relationship, upper and lower cascade status and cascade interface success rate; the interface fuse information includes interface fuse time information, fuse reason, duration and cascade data loss information during the fuse period.

4. The automated view library service assurance system according to claim 1, characterized in that: The mapping relationship includes the relationship between flow and abnormal ratio, the access data interface restriction relationship, the subscription push interface restriction relationship, the control alarm push interface restriction relationship, and the cascade query interface restriction relationship; The fuse rules include overall inlet traffic query and abnormal ratio fuse rules, query restriction rules for access data interface, query restriction rules for subscription push interface, query restriction rules for control alarm push interface, and query restriction rules for cascade query interface.

5. The automated view library service assurance system according to claim 4, characterized in that: Also includes: A decision module is used to select different fusing methods according to the collected resource information and cascade information and the fusing rules to be executed, and the fusing methods include: By limiting the average data transmission rate of the view library service at this level, the interface is fused. And / or, tokens are issued periodically, and if a request needs to be processed, a token is obtained, and when no token is available, service is denied.

6. The automated view library service assurance system according to claim 5, characterized in that: Also includes: A service request module, used to obtain access request information, wherein the access request information includes a current limiting parameter; A flow module, used to determine the current request flow according to the current limiting parameters; The time module is used to obtain the fuse duration of the current interface fuse mode when the current request flow is greater than the preset receiving flow; The recovery module is used to control the service request module to send the access request again according to the interface fuse duration.

7. An automated view library service assurance method, characterized in that: include: Collect resource information and cascade information of view library services; A plurality of fuse rules having a mapping relationship with the resources and cascade configurations of the view library service are set through the fuse rule module, and the collected resource information and cascade information are matched with the fuse rules to obtain a fuse rule to be executed; Synchronize the to-be-executed fuse rules to the service copy; According to the to-be-executed fuse rule, interface fuse is executed for the view library service at this level; The fuse rule module includes: Data persistence unit, used to convert between data model and storage model; A visualization unit, used for visually displaying the resource information, cascade information, fuse rules, alarm information and interface fuse information; Rule modification unit, used to modify the circuit breaker rules; A rule matching unit is used to match the collected resource information and cascade information with the fuse rule to obtain the fuse rule to be executed.

8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to claim 7 is implemented.

9. An electronic terminal, characterized in that: include: Processor and memory; The memory is used to store a computer program, and the processor is used to execute the computer program stored in the memory, so that the terminal executes the method according to claim 7.

Citation Information

Patent Citations

  • Unified service traffic-limiting fusing platform and method thereof

    CN111787073A