CN110784554A - Method and device for processing web micro-service cluster service errors - Google Patents

Method and device for processing web micro-service cluster service errors Download PDF

Info

Publication number
CN110784554A
CN110784554A CN201911073620.7A CN201911073620A CN110784554A CN 110784554 A CN110784554 A CN 110784554A CN 201911073620 A CN201911073620 A CN 201911073620A CN 110784554 A CN110784554 A CN 110784554A
Authority
CN
China
Prior art keywords
service
identification code
terminal
service terminal
deployed
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.)
Granted
Application number
CN201911073620.7A
Other languages
Chinese (zh)
Other versions
CN110784554B (en
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.)
Hangzhou Dbappsecurity Technology Co Ltd
Original Assignee
Hangzhou Dbappsecurity 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 Hangzhou Dbappsecurity Technology Co Ltd filed Critical Hangzhou Dbappsecurity Technology Co Ltd
Priority to CN201911073620.7A priority Critical patent/CN110784554B/en
Publication of CN110784554A publication Critical patent/CN110784554A/en
Application granted granted Critical
Publication of CN110784554B publication Critical patent/CN110784554B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/069Management of faults, events, alarms or notifications using logs of notifications; Post-processing of notifications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention provides a method and a device for processing web micro-service cluster service errors, which relate to the technical field of network security and comprise the following steps: acquiring a first service identification code fed back by a first service terminal; if the first service identification code is the non-allocatable service identification code, sending a first service request to a second service terminal; if the second service identification code fed back by the second service terminal is acquired as the wrong service identification code, the first service request is sent to the target service terminal; determining the number of service terminals to be deployed based on the target service identification code fed back by the target service terminal; if the number is smaller than the preset threshold value, the first service request is sent to the normal service terminal, so that the normal service terminal processes the first service request and resets the service terminal to be deployed, and the technical problem that in the prior art, when a single service terminal has a service error, the service of the web micro-service cluster cannot normally run is solved.

Description

Method and device for processing web micro-service cluster service errors
Technical Field
The invention relates to the technical field of network security, in particular to a method and a device for processing web micro-service cluster service errors.
Background
In some projects, the web micro-service is high-speed, stable and reliable, the service capability can be dynamically expanded, and the method has great value for enterprise business. In a plurality of web micro-service clusters, once individual service failure is difficult to detect, only business errors can be detected, and different factor errors can occur among different web micro-service clusters.
The problems are often difficult to prevent and solve, only business errors can be detected, and in case of huge business, a lot of time and labor are needed for troubleshooting due to a plurality of web micro-service clusters.
Most of the using methods at the present stage are to check the whole system, judge and solve the collection errors, spend a lot of time and manpower, and cannot immediately process the errors.
No effective solution has been proposed to the above problems.
Disclosure of Invention
In view of the above, an object of the present invention is to provide a method and an apparatus for processing a service error of a web micro-service cluster, so as to alleviate a technical problem in the prior art that when a single service terminal has a service error, a service of the web micro-service cluster cannot normally run.
In a first aspect, an embodiment of the present invention provides a method for processing a web micro-service cluster service error, including: acquiring a first service identification code fed back by a first service terminal, wherein the first service identification code is used for representing whether the first service terminal normally processes a first service request, and the service identification code comprises: a normal service identification code and an error service identification code, the error service identification code comprising: an error service identification code and a non-allocatable service identification code can be allocated, and the first service terminal is any one service terminal in the web micro-service cluster; if the first service identification code is the non-allocatable service identification code, sending the first service request to a second service terminal, wherein the second service terminal is any one service terminal except the first service terminal in the web micro-service cluster; if the second service identification code fed back by the second service terminal is the wrong service identification code, sending the first service request to a target service terminal, wherein the target service terminal is all service terminals except the first service terminal and the second service terminal in the web micro-service cluster; determining the number of service terminals to be deployed based on a target service identification code fed back by the target service terminal, wherein the service terminals to be deployed are the target service terminals corresponding to the wrong service identification code in the target service identification code; and if the number is smaller than a preset threshold value, sending the first service request to a normal service terminal so that the normal service terminal processes the first service request and resets the service terminal to be deployed.
Further, the method further comprises: and if the number is greater than or equal to the preset threshold value, sending a redeployment instruction to the service terminal to be deployed so as to roll back the system of the service terminal to be deployed to the system of the previous version.
Further, the method further comprises: in the process of resetting the service terminal to be deployed, or in the process of rolling back the system of the service terminal to be deployed to the system of the previous version, if a second service request is obtained, the service of the service terminal to be deployed is stopped, and the second service request is sent to the normal service terminal.
Further, the method further comprises: if the first service identification code is the allocable service identification code, resetting the first service terminal so that the reset first service terminal normally processes the first service request.
Further, the method further comprises: sending the error service identification code to an error log system to enable the error log system to record the error service identification code.
In a second aspect, an embodiment of the present invention further provides a device for processing a web micro-service cluster service error, where the device includes: the device comprises an acquisition unit, a first sending unit, a second sending unit, a determination unit and a first resetting unit, wherein the acquisition unit is used for acquiring a first service identification code fed back by a first service terminal, the first service identification code is used for representing whether the first service terminal normally processes a first service request, and the service identification code comprises: a normal service identification code and an error service identification code, the error service identification code comprising: an error service identification code and a non-allocatable service identification code can be allocated, and the first service terminal is any one service terminal in the web micro-service cluster; the first sending unit is configured to send the first service request to a second service terminal if the first service identifier is the unallowable service identifier, where the second service terminal is any one service terminal in the web micro-service cluster except the first service terminal; the second sending unit is configured to send the first service request to a target service terminal if the obtained second service identifier fed back by the second service terminal is the wrong service identifier, where the target service terminal is all service terminals in the web micro-service cluster except the first service terminal and the second service terminal; the determining unit is used for determining the number of the service terminals to be deployed based on the target service identification code fed back by the target service terminal, wherein the service terminals to be deployed are the target service terminals corresponding to the wrong service identification code in the target service identification code; the first resetting unit is configured to send the first service request to a normal service terminal if the number is smaller than a preset threshold, so that the normal service terminal processes the first service request, and resets the service terminal to be deployed.
Further, the first reset unit is further configured to: and if the number is greater than or equal to the preset threshold value, sending a redeployment instruction to the service terminal to be deployed so as to roll back the system of the service terminal to be deployed to the system of the previous version.
Further, the apparatus further comprises: and the disabling unit is used for disabling the service of the service terminal to be deployed and sending a second service request to the normal service terminal if the second service request is obtained in the process of resetting the service terminal to be deployed or in the process of rolling back the system of the service terminal to be deployed to the system of the previous version.
Further, the apparatus further comprises: and the second resetting unit is used for resetting the first service terminal if the first service identification code is the allocable service identification code, so that the reset first service terminal normally processes the first service request.
Further, the apparatus further comprises: and the feedback unit is used for sending the error service identification code to an error log system so that the error log system records the error service identification code.
In the embodiment of the invention, a first service identification code fed back by a first service terminal is obtained; if the first service identification code is the non-allocatable service identification code, sending a first service request to a second service terminal; if the second service identification code fed back by the second service terminal is acquired as the wrong service identification code, the first service request is sent to the target service terminal; determining the number of service terminals to be deployed based on the target service identification code fed back by the target service terminal; and if the number is smaller than the preset threshold value, sending the first service request to the normal service terminal so that the normal service terminal processes the first service request and resets the service terminal to be deployed.
In the embodiment of the invention, the service request is forwarded to other service terminals after the error service identification code fed back by the first service terminal, when the service request cannot be normally processed for more than a preset number of service terminals in the web micro-service cluster, the service terminals which cannot normally process the service request are reset, and the service request is processed by the service terminals which can normally process the service request, so that the purpose of error repair of a single service terminal is achieved, the technical problem that the service of the web micro-service cluster cannot normally run when the single service terminal has a service error in the prior art is solved, and the technical effect of still processing the service request after the single service terminal has a service fault is achieved.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
In order to make the aforementioned and other objects, features and advantages of the present invention comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
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 that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a flowchart of a method for handling a web micro-service cluster service error according to an embodiment of the present invention;
FIG. 2 is a flowchart of another method for handling web microserver cluster service errors according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a device for handling web microserver cluster service errors according to an embodiment of the present invention;
fig. 4 is a schematic diagram of a server according to an embodiment of the present invention.
Detailed Description
To make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is apparent that the described embodiments are some, but not all embodiments of the present invention. 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 invention.
The first embodiment is as follows:
according to an embodiment of the present invention, there is provided an embodiment of a method for handling web micro-service cluster service errors, it should be noted that the steps shown in the flowchart of the drawings may be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in an order different from that shown or described herein.
Fig. 1 is a flowchart of a method for processing a web micro-service cluster service error according to an embodiment of the present invention, as shown in fig. 1, the method includes the following steps:
step S102, obtaining a first service identification code fed back by a first service terminal, where the first service identification code is used to characterize whether the first service terminal normally processes a first service request, and the service identification code includes: a normal service identification code and an error service identification code, the error service identification code comprising: an error service identification code and a non-allocatable service identification code can be allocated, and the first service terminal is any one service terminal in the web micro-service cluster;
step S104, if the first service identification code is the unadaptable service identification code, sending the first service request to a second service terminal, wherein the second service terminal is any one service terminal except the first service terminal in the web micro-service cluster;
step S106, if the second service identification code fed back by the second service terminal is the wrong service identification code, the first service request is sent to a target service terminal, wherein the target service terminal is all service terminals except the first service terminal and the second service terminal in the web micro-service cluster;
step S108, determining the number of service terminals to be deployed based on the target service identification code fed back by the target service terminal, wherein the service terminals to be deployed are the target service terminals corresponding to the wrong service identification code in the target service identification code;
step S110, if the number is smaller than a preset threshold, sending the first service request to a normal service terminal, so that the normal service terminal processes the first service request, and resetting the service terminal to be deployed.
In the embodiment of the invention, the service request is forwarded to other service terminals after the error service identification code fed back by the first service terminal, when the service terminals which do not exceed the preset number in the web micro-service cluster can not normally process the service request, the service terminals which can not normally process the service request are reset, and the service request is processed by the service terminals which can normally process the service request, so that the purpose of error repair of a single service terminal is achieved, the technical problem that the service of the web micro-service cluster can not normally run when the single service terminal has a service error in the prior art is solved, and the technical effect of still processing the service request after the single service terminal has a service fault is achieved.
It should be noted that the first service identifier is used to represent that the first service terminal has a fault, and the service request cannot be normally processed after the first service request is obtained, and in addition, the first service identifier further includes a service identifier that the first service request cannot be sent to the service terminal, so that the generated service identifier is generated, and the service identifier belongs to a non-deployable service identifier.
In addition, it should be noted that the service identifier may be allocated to indicate that the service terminal cannot process the service request normally, but after the service terminal is reset, the service terminal can process the service request normally, and the resetting includes: and adjusting the service operation environment memory or hard disk of the service terminal, and expanding the service hard disk and memory of the service terminal.
The unallowable service identification code indicates that the service terminal cannot normally process the service request, and after the service terminal is reset, the service terminal still cannot normally process the service request, for example, an error occurs in built-in software or a program of the service terminal, and the like.
The preset threshold may be set by the user according to the actual situation, and is generally set to 50% of the number of the service terminals in the web micro-service cluster, which is not specifically limited in the embodiment of the present invention.
In the embodiment of the application, in the process of sending the first service request to the service terminals except the first service terminal, the web micro-service cluster keeps connection with the user terminal sending the service request, so that the first service request can be fed back normally after the normal service terminal processes the first service request.
In an embodiment of the invention, the method further comprises the steps of:
step S112, if the number is greater than or equal to the preset threshold, sending a redeployment instruction to the service terminal to be deployed, so that the system of the service terminal to be deployed rolls back to the system of the previous version.
In the embodiment of the present invention, when the number of the service terminals to be deployed is greater than or equal to the preset threshold, the redeployment instruction is sent to the service terminals to be deployed, so that the service terminals to be deployed load the system of the previous version (the system of the previous version is a system used by the service terminals to be deployed when the service terminals to be deployed can normally process the service requests) after acquiring the redeployment instruction and are re-enabled, thereby solving the problem of the service terminals to be deployed and enabling the service terminals to be deployed to normally process the subsequently received service requests.
In addition, it should be noted that when a new service request (i.e., a second service request) is obtained in the process of resetting the service terminal to be deployed, or in the process of rolling back the system of the service terminal to be deployed to the system of the previous version, the service terminal to be deployed that is being reset or the system is rolled back is stopped, and then the second service request is sent to the normal service terminal, and the normal service terminal processes the second service request, thereby ensuring that the service can normally operate.
In an embodiment of the invention, the method further comprises the steps of:
step S114, if the first service identifier is the allocable service identifier, resetting the first service terminal, so that the reset first service terminal normally processes the first service request.
In the embodiment of the present invention, when the first service identifier fed back by the first service terminal is an allocable identifier, the first service terminal is reset, and the reset first service terminal can process the first service request normally.
It should be noted that, in the process of resetting the first service terminal, the first service terminal maintains connection with the user terminal that sends the first service request, so that it is ensured that the first service terminal after being reset can normally feed back the first service request after processing the first service request, and further, normal operation of the service is ensured.
In the embodiment of the present invention, as shown in fig. 2, the method further includes the following steps:
step S116, sending the error service identification code to an error log system, so that the error log system records the error service identification code.
In the embodiment of the invention, after the error service identification code is obtained, the corresponding error service information can be collected through the error service identification code, and the error identification code and the error service information are sent to the error log system, so that the error log system records the error identification code and the error service information, and a maintainer can determine the service terminal with the service error by looking up the record in the error log system and manually repair the service terminal with the service error.
Example two:
the present invention further provides a device for processing a web micro-service cluster service error, where the device is used to execute the method for processing a web micro-service cluster service error provided in the foregoing content of the embodiment of the present invention, and the following is a specific description of the device for processing a web micro-service cluster service error provided in the embodiment of the present invention.
As shown in fig. 3, the apparatus for processing web microserver cluster service error includes: the device comprises an acquisition unit 10, a first transmission unit 20, a second transmission unit 30, a determination unit 40 and a first reset unit 50.
The acquiring unit 10 is configured to acquire a first service identification code fed back by a first service terminal, where the first service identification code is used to characterize whether the first service terminal normally processes a first service request, and the service identification code includes: a normal service identification code and an error service identification code, the error service identification code comprising: an error service identification code and a non-allocatable service identification code can be allocated, and the first service terminal is any one service terminal in the web micro-service cluster;
the first sending unit 20 is configured to send the first service request to a second service terminal if the first service identifier is the unallowable service identifier, where the second service terminal is any one service terminal in the web micro-service cluster except the first service terminal;
the second sending unit 30 is configured to send the first service request to a target service terminal if the obtained second service identifier fed back by the second service terminal is the wrong service identifier, where the target service terminal is all service terminals in the web micro-service cluster except the first service terminal and the second service terminal;
the determining unit 40 is configured to determine the number of service terminals to be deployed based on a target service identification code fed back by the target service terminal, where the service terminals to be deployed are target service terminals corresponding to an incorrect service identification code in the target service identification code;
the first resetting unit 50 is configured to send the first service request to a normal service terminal if the number is smaller than a preset threshold, so that the normal service terminal processes the first service request, and resets the service terminal to be deployed.
In the embodiment of the invention, the service request is forwarded to other service terminals after the error service identification code fed back by the first service terminal, when the service terminals which do not exceed the preset number in the web micro-service cluster can not normally process the service request, the service terminals which can not normally process the service request are reset, and the service request is processed by the service terminals which can normally process the service request, so that the purpose of error repair of a single service terminal is achieved, the technical problem that the service of the web micro-service cluster can not normally run when the single service terminal has a service error in the prior art is solved, and the technical effect of still processing the service request after the single service terminal has a service fault is achieved.
Preferably, the first reset unit is further configured to: and if the number is greater than or equal to the preset threshold value, sending a redeployment instruction to the service terminal to be deployed so as to roll back the system of the service terminal to be deployed to the system of the previous version.
Preferably, the apparatus further comprises: and the disabling unit is used for disabling the service of the service terminal to be deployed and sending a second service request to the normal service terminal if the second service request is obtained in the process of resetting the service terminal to be deployed or in the process of rolling back the system of the service terminal to be deployed to the system of the previous version.
Preferably, the apparatus further comprises: and the second resetting unit is used for resetting the first service terminal if the first service identification code is the allocable service identification code, so that the reset first service terminal normally processes the first service request.
Preferably, the apparatus further comprises: and the feedback unit is used for sending the error service identification code to an error log system so that the error log system records the error service identification code.
Referring to fig. 4, an embodiment of the present invention further provides a server 100, including: a processor 60, a memory 61, a bus 62 and a communication interface 63, wherein the processor 60, the communication interface 63 and the memory 61 are connected through the bus 62; the processor 60 is arranged to execute executable modules, such as computer programs, stored in the memory 61.
The Memory 61 may include a high-speed Random Access Memory (RAM) and may also include a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. The communication connection between the network element of the system and at least one other network element is realized through at least one communication interface 63 (which may be wired or wireless), and the internet, a wide area network, a local network, a metropolitan area network, and the like can be used.
The bus 62 may be an ISA bus, PCI bus, 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 double-headed arrow is shown in FIG. 4, but that does not indicate only one bus or one type of bus.
The memory 61 is used for storing a program, the processor 60 executes the program after receiving an execution instruction, and the method executed by the apparatus defined by the flow process disclosed in any of the foregoing embodiments of the present invention may be applied to the processor 60, or implemented by the processor 60.
The processor 60 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 60. The processor 60 may be a general-purpose processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the device can also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA) or other Programmable logic device, a discrete Gate or transistor logic device, or a discrete hardware component. The various methods, steps and logic blocks disclosed in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in a memory 61, and the processor 60 reads the information in the memory 61 and, in combination with its hardware, performs the steps of the above method.
In addition, in the description of the embodiments of the present invention, unless otherwise explicitly specified or limited, the terms "mounted," "connected," and "connected" are to be construed broadly, e.g., as meaning either a fixed connection, a removable connection, or an integral connection; can be mechanically or electrically connected; they may be connected directly or indirectly through intervening media, or they may be interconnected between two elements. The specific meanings of the above terms in the present invention can be understood in specific cases to those skilled in the art.
In the description of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc., indicate orientations or positional relationships based on the orientations or positional relationships shown in the drawings, and are only for convenience of description and simplicity of description, but do not indicate or imply that the device or element being referred to must have a particular orientation, be constructed and operated in a particular orientation, and thus, should not be construed as limiting the present invention. Furthermore, the terms "first," "second," and "third" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one logical division, and there may be other divisions when actually implemented, and for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of devices or units through some communication interfaces, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
Finally, it should be noted that: the above-mentioned embodiments are only specific embodiments of the present invention, which are used for illustrating the technical solutions of the present invention and not for limiting the same, and the protection scope of the present invention is not limited thereto, although the present invention is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: any person skilled in the art can modify or easily conceive the technical solutions described in the foregoing embodiments or equivalent substitutes for some technical features within the technical scope of the present disclosure; such modifications, changes or substitutions do not depart from the spirit and scope of the embodiments of the present invention, and they should be construed as being included therein. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. A method for processing web micro-service cluster service errors is characterized by comprising the following steps:
acquiring a first service identification code fed back by a first service terminal, wherein the first service identification code is used for representing whether the first service terminal normally processes a first service request, and the service identification code comprises: a normal service identification code and an error service identification code, the error service identification code comprising: an error service identification code and a non-allocatable service identification code can be allocated, and the first service terminal is any one service terminal in the web micro-service cluster;
if the first service identification code is the non-allocatable service identification code, sending the first service request to a second service terminal, wherein the second service terminal is any one service terminal except the first service terminal in the web micro-service cluster;
if the second service identification code fed back by the second service terminal is the wrong service identification code, sending the first service request to a target service terminal, wherein the target service terminal is all service terminals except the first service terminal and the second service terminal in the web micro-service cluster;
determining the number of service terminals to be deployed based on a target service identification code fed back by the target service terminal, wherein the service terminals to be deployed are the target service terminals corresponding to the wrong service identification code in the target service identification code;
and if the number is smaller than a preset threshold value, sending the first service request to a normal service terminal so that the normal service terminal processes the first service request and resets the service terminal to be deployed.
2. The method of claim 1, further comprising:
and if the number is greater than or equal to the preset threshold value, sending a redeployment instruction to the service terminal to be deployed so as to roll back the system of the service terminal to be deployed to the system of the previous version.
3. The method of claim 2, further comprising:
in the process of resetting the service terminal to be deployed, or in the process of rolling back the system of the service terminal to be deployed to the system of the previous version, if a second service request is obtained, the service of the service terminal to be deployed is stopped, and the second service request is sent to the normal service terminal.
4. The method of claim 1, further comprising:
if the first service identification code is the allocable service identification code, resetting the first service terminal so that the reset first service terminal normally processes the first service request.
5. The method of claim 1, further comprising:
sending the error service identification code to an error log system to enable the error log system to record the error service identification code.
6. A device for handling web microservice cluster service errors, comprising: an acquisition unit, a first transmission unit, a second transmission unit, a determination unit and a first reset unit, wherein,
the acquiring unit is configured to acquire a first service identification code fed back by a first service terminal, where the first service identification code is used to characterize whether the first service terminal normally processes a first service request, and the service identification code includes: a normal service identification code and an error service identification code, the error service identification code comprising: an error service identification code and a non-allocatable service identification code can be allocated, and the first service terminal is any one service terminal in the web micro-service cluster;
the first sending unit is configured to send the first service request to a second service terminal if the first service identifier is the unallowable service identifier, where the second service terminal is any one service terminal in the web micro-service cluster except the first service terminal;
the second sending unit is configured to send the first service request to a target service terminal if the obtained second service identifier fed back by the second service terminal is the wrong service identifier, where the target service terminal is all service terminals in the web micro-service cluster except the first service terminal and the second service terminal;
the determining unit is used for determining the number of the service terminals to be deployed based on the target service identification code fed back by the target service terminal, wherein the service terminals to be deployed are the target service terminals corresponding to the wrong service identification code in the target service identification code;
the first resetting unit is configured to send the first service request to a normal service terminal if the number is smaller than a preset threshold, so that the normal service terminal processes the first service request, and resets the service terminal to be deployed.
7. The apparatus of claim 6, wherein the first resetting unit is further configured to:
and if the number is greater than or equal to the preset threshold value, sending a redeployment instruction to the service terminal to be deployed so as to roll back the system of the service terminal to be deployed to the system of the previous version.
8. The apparatus of claim 7, further comprising: and the disabling unit is used for disabling the service of the service terminal to be deployed and sending a second service request to the normal service terminal if the second service request is obtained in the process of resetting the service terminal to be deployed or in the process of rolling back the system of the service terminal to be deployed to the system of the previous version.
9. The apparatus of claim 6, further comprising: and the second resetting unit is used for resetting the first service terminal if the first service identification code is the allocable service identification code, so that the reset first service terminal normally processes the first service request.
10. The apparatus of claim 6, further comprising: and the feedback unit is used for sending the error service identification code to an error log system so that the error log system records the error service identification code.
CN201911073620.7A 2019-11-05 2019-11-05 Method and device for processing web micro-service cluster service errors Active CN110784554B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911073620.7A CN110784554B (en) 2019-11-05 2019-11-05 Method and device for processing web micro-service cluster service errors

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911073620.7A CN110784554B (en) 2019-11-05 2019-11-05 Method and device for processing web micro-service cluster service errors

Publications (2)

Publication Number Publication Date
CN110784554A true CN110784554A (en) 2020-02-11
CN110784554B CN110784554B (en) 2022-07-08

Family

ID=69389253

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911073620.7A Active CN110784554B (en) 2019-11-05 2019-11-05 Method and device for processing web micro-service cluster service errors

Country Status (1)

Country Link
CN (1) CN110784554B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106656604A (en) * 2016-12-23 2017-05-10 郑州云海信息技术有限公司 Microservice request management method, microservice controller and high-concurrence microservice architecture
CN108173911A (en) * 2017-12-18 2018-06-15 中国科学院声学研究所 A kind of micro services fault detect processing method and processing device
US20180225182A1 (en) * 2017-02-09 2018-08-09 Red Hat, Inc. Fault isolation and identification in versioned microservices
US20180270122A1 (en) * 2017-03-20 2018-09-20 Red Hat, Inc. Automatic microservice problem detection in enterprise applications
US20180270107A1 (en) * 2017-03-16 2018-09-20 International Business Machines Corporation Microservices communication pattern for fault detection in end-to-end flows
CN109302469A (en) * 2018-09-26 2019-02-01 平安科技(深圳)有限公司 Micro services management method, device, computer equipment and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106656604A (en) * 2016-12-23 2017-05-10 郑州云海信息技术有限公司 Microservice request management method, microservice controller and high-concurrence microservice architecture
US20180225182A1 (en) * 2017-02-09 2018-08-09 Red Hat, Inc. Fault isolation and identification in versioned microservices
US20180270107A1 (en) * 2017-03-16 2018-09-20 International Business Machines Corporation Microservices communication pattern for fault detection in end-to-end flows
US20180270122A1 (en) * 2017-03-20 2018-09-20 Red Hat, Inc. Automatic microservice problem detection in enterprise applications
CN108173911A (en) * 2017-12-18 2018-06-15 中国科学院声学研究所 A kind of micro services fault detect processing method and processing device
CN109302469A (en) * 2018-09-26 2019-02-01 平安科技(深圳)有限公司 Micro services management method, device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN110784554B (en) 2022-07-08

Similar Documents

Publication Publication Date Title
CN111555963B (en) Message pushing method and device, electronic equipment and storage medium
CN111464355A (en) Method and device for controlling expansion capacity of Kubernetes container cluster and network equipment
CN111130938B (en) Index acquisition method and device, electronic equipment and computer readable storage medium
CN105610648A (en) Operation and maintenance monitoring data collection method and server
CN112506755B (en) Log acquisition method, device, computer equipment and storage medium
CN110677464A (en) Edge node device, content distribution system, method, computer device, and medium
CN111611140A (en) Reporting verification method and device of buried point data, electronic equipment and storage medium
CN113794597A (en) Alarm information processing method, system, electronic device and storage medium
CN114500305B (en) Device monitoring method, device, storage medium and program product
CN115858221A (en) Management method and device of storage equipment, storage medium and electronic equipment
JP6015750B2 (en) Log collection server, log collection system, and log collection method
CN110784554B (en) Method and device for processing web micro-service cluster service errors
CN103731315A (en) Server failure detecting method
CN112306871A (en) Data processing method, device, equipment and storage medium
CN110908885B (en) Log collection method and device and related components
US20080216057A1 (en) Recording medium storing monitoring program, monitoring method, and monitoring system
US11157381B2 (en) Display control method and display control device
CN114328080A (en) Firmware state detection method and device and electronic equipment
CN113242302A (en) Data access request processing method and device, computer equipment and medium
CN107919980B (en) Evaluation method and device for clustered system
CN111984484A (en) Non-invasive micro-service access method and system
CN117240909A (en) Service cancellation method, device, storage medium and apparatus
CN113271327B (en) Networking method of central monitoring system and medical equipment
CN114567539B (en) Network system exception handling method, device, equipment and medium
CN111708689B (en) Method and device for modifying AB experiment and electronic equipment

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
GR01 Patent grant
GR01 Patent grant