CN113612846A - Service online processing method, computing device and computer storage medium - Google Patents

Service online processing method, computing device and computer storage medium Download PDF

Info

Publication number
CN113612846A
CN113612846A CN202110892210.6A CN202110892210A CN113612846A CN 113612846 A CN113612846 A CN 113612846A CN 202110892210 A CN202110892210 A CN 202110892210A CN 113612846 A CN113612846 A CN 113612846A
Authority
CN
China
Prior art keywords
target service
service
service port
port
target
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
CN202110892210.6A
Other languages
Chinese (zh)
Other versions
CN113612846B (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.)
Zhangyue Technology Co Ltd
Original Assignee
Zhangyue 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 Zhangyue Technology Co Ltd filed Critical Zhangyue Technology Co Ltd
Priority to CN202110892210.6A priority Critical patent/CN113612846B/en
Publication of CN113612846A publication Critical patent/CN113612846A/en
Application granted granted Critical
Publication of CN113612846B publication Critical patent/CN113612846B/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/50Network services
    • H04L67/51Discovery or management thereof, e.g. service location protocol [SLP] or web services
    • 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/50Network service management, e.g. ensuring proper service fulfilment according to agreements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention discloses a service online processing method, computing equipment and a computer storage medium. The method comprises the following steps: deleting the service configuration information of the target service port from a name space corresponding to the target service according to the service on-line request aiming at the target service port; informing a node corresponding to the target service port of stopping registering service configuration information of the target service port; executing service online processing; after the service is on line, the service configuration information of the target service port is registered again. The scheme provided by the invention realizes the temporary removal of the flow of the affected target service port, provides an environmental foundation for the online service, effectively reduces the number of online request error reports in the online service process and ensures the normal use of users.

Description

Service online processing method, computing device and computer storage medium
Technical Field
The invention relates to the technical field of computers, in particular to a service online processing method, computing equipment and a computer storage medium.
Background
At present, service items of a service end are on-line hundreds of times every day, in the on-line process of the service, an operating service port is temporarily unavailable, and the unavailable time can be several seconds or minutes. In the period of time when the service port is unavailable, if the access traffic processing request is continuously sent to the operating port, the request fails, and in an extreme case, a large number of errors may be reported on line, which affects normal use of the user, and causes problems of poor user experience and the like.
Disclosure of Invention
In view of the above, the present invention has been made to provide a service bring-up processing method, a computing device, and a computer storage medium that overcome or at least partially solve the above problems.
According to an aspect of the present invention, a service online processing method is provided, including:
deleting the service configuration information of the target service port from a name space corresponding to the target service according to the service on-line request aiming at the target service port;
informing a node corresponding to the target service port of stopping registering service configuration information of the target service port;
executing service online processing;
after the service is on line, the service configuration information of the target service port is registered again.
According to another aspect of the present invention, there is provided a computing device comprising: the processor, the memory and the communication interface complete mutual communication through the communication bus;
the memory is used for storing at least one executable instruction, and the executable instruction causes the processor to execute the following operations:
deleting the service configuration information of the target service port from a name space corresponding to the target service according to the service on-line request aiming at the target service port;
informing a node corresponding to the target service port of stopping registering service configuration information of the target service port;
executing service online processing;
after the service is on line, the service configuration information of the target service port is registered again.
According to another aspect of the present invention, a computer storage medium is provided, in which at least one executable instruction is stored, and the executable instruction causes a processor to perform operations corresponding to the above-mentioned service on-line processing method.
According to the scheme provided by the invention, when the service is online for the target service port, the service configuration information of the target service port is deleted from the name space corresponding to the target service, then the node corresponding to the target service port is informed to stop registering the service configuration information of the target service port, so that the continuous distribution of access flow to the target service port can be stopped, the flow of the affected target service port is temporarily removed, an environment basis is provided for the service online, the service online processing is executed, the service configuration information of the target service port is re-registered after the service online is finished, the service smooth online is realized, the number of online request error reports in the service online process is effectively reduced, and the normal use of a user is ensured.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
FIG. 1A is a schematic diagram of a service on-line processing system;
FIG. 1B is a flow diagram illustrating a method for online processing of services according to one embodiment of the invention;
FIG. 2 is a flow diagram illustrating a method for on-line processing of services according to another embodiment of the invention;
FIG. 3 shows a schematic structural diagram of a computing device according to one embodiment of the invention.
Detailed Description
Exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the invention are shown in the drawings, it should be understood that the invention can be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art.
The present invention provides a service on-line processing scheme, fig. 1A is a schematic diagram of a service on-line processing system, a service originating application initiates a service on-line, a service can be rolled on-line at a plurality of service ports of a plurality of servers, in order to ensure that the service port can normally access the access traffic, the node corresponding to the service port needs to register the service configuration information of the service port into a namespace corresponding to the service stored in the configuration center, so as to distribute the access flow according to the service configuration information of the service port in the name space corresponding to the service, after the service is on line at the service port, corresponding service is provided for the user through the service port, and the service initiating application sends access flow generated by the service used by the user to the corresponding service port for processing according to service configuration information stored in a name space configured by the configuration center.
Fig. 1B is a flowchart illustrating a service online processing method according to an embodiment of the present invention. As shown in fig. 1B, the method includes the steps of:
step S101, according to the service on-line request aiming at the target service port, deleting the service configuration information of the target service port from the name space corresponding to the target service.
Specifically, the namespace corresponding to the target service is used to record service configuration information of each service port related to the service, where the service configuration information includes: the IP address and port number of the server to which the destination service port belongs.
In general, one service may use multiple service ports of multiple servers, and when the service needs to be upgraded, a mode in which the service rolls on the multiple service ports is adopted, and a target service port in this embodiment is a service port operated by a target service going on the line.
In the service online process, a service online request is sent to a target service port, and service configuration information of the target service port is deleted from a name space corresponding to a target service according to the service online request of the target service port.
Step S102, informing the node corresponding to the target service port to stop registering the service configuration information of the target service port.
When the node confirms that the target service port has no fault but the service configuration information of the target service port is deleted from the namespace corresponding to the target service, the node will register the service configuration information of the target service port into the namespace corresponding to the target service again, and thus the following situations occur: when the service configuration information of the target service port exists in the name space corresponding to the target service, in order to enable the online service and avoid the situation that a large number of errors are reported on the online, the deletion operation needs to be continuously executed, the node can be registered again, and then repeated deletion and registration operations occur, and finally the access flow cannot be removed.
Step S103, executing service online processing.
Step S104, after the service is on line, the service configuration information of the target service port is registered again.
After the service is online, in order to enable the target service port to re-access the access traffic, the service configuration information of the target service port needs to be re-registered, that is, the service configuration information of the target service port needs to be re-registered to the namespace corresponding to the target service.
According to the scheme provided by the invention, when the service is online for the target service port, the service configuration information of the target service port is deleted from the name space corresponding to the target service, then the node corresponding to the target service port is informed to stop registering the service configuration information of the target service port, so that the continuous distribution of access flow to the target service port can be stopped, the flow of the affected target service port is temporarily removed, an environment basis is provided for the service online, the service online processing is executed, the service configuration information of the target service port is re-registered after the service online is finished, the service smooth online is realized, the number of online request error reports in the service online process is effectively reduced, and the normal use of a user is ensured.
Fig. 2 is a flowchart illustrating a service online processing method according to an embodiment of the present invention.
As shown in fig. 2, the method comprises the steps of:
step S201, according to the service on-line request for the target service port, deleting the service configuration information of the target service port from the name space corresponding to the target service.
Specifically, the namespace corresponding to the target service is used to record service configuration information of each service port related to the service, where the service configuration information includes: for example, if the target service port is 9000 port of the server with the IP address 192.168.1.10, the service configuration information of the target service port is 192.168.1.10 — 9000.
In general, one service may use multiple service ports of multiple servers, and when the service needs to be upgraded, a mode in which the service rolls on the multiple service ports is adopted, and a target service port in this embodiment is a service port operated by a target service going on the line.
In the service online process, a service online request is sent to a target service port, and service configuration information of the target service port is deleted from a name space corresponding to a target service according to the service online request of the target service port.
Each service can correspond to a name space, so that the name space corresponding to the target service can be found, and then the service configuration information of the target service port is deleted from the name space corresponding to the target service; the service configuration information of the target service port is deleted from the name space corresponding to the target service.
Step S202, notifying the node corresponding to the target service port to stop registering the service configuration information of the target service port.
When the node confirms that the target service port has no fault but the service configuration information of the target service port is deleted from the namespace corresponding to the target service, the node will register the service configuration information of the target service port into the namespace corresponding to the target service again, and thus the following situations occur: when the service configuration information of the target service port exists in the name space corresponding to the target service, in order to enable the online service and avoid the situation that a large number of errors are reported on the online, the deletion operation needs to be continuously executed, the node can be registered again, and then repeated deletion and registration operations occur, and finally the access flow cannot be removed.
Step S203, after waiting for the preset time, performing service on-line processing.
After the service configuration information of the target service port is deleted from the namespace, although the service initiation application can be timely notified, the service initiation application caches the service configuration information to the local, however, the service initiation application determines whether the service configuration information changes from the query at a fixed time, so that before the service configuration information is queried again, access traffic is still allocated to the target service port, in the service online process, the target service port is temporarily unavailable, in order to avoid that the access failure affects the normal use of the user, after waiting for a preset time, for example, 10 seconds or 20 seconds, the waiting time can be specifically determined according to the interval time of the service configuration information queried at a fixed time, and then, the service online processing is performed after waiting for 10 seconds or 20 seconds.
And step S204, after the service is on line, health detection is carried out on the target service port.
After the service is finished being on line, the health detection needs to be performed on the target service port, so that the target service port is re-accessed to the access flow after the target service port passes the detection. Specifically, the availability of the target service port and/or the connection time of the target service port are mainly detected.
Step S205, if the health detection result of the target service port is successful, re-register the service configuration information of the target service port into the name space corresponding to the target service, and perform a jump to step S207.
If the health detection result of the target service port is successful, the target service port reaches the re-registration standard, so that the service configuration information of the target service port can be re-registered into the name space corresponding to the target service, and the target service port can continue to access the access flow through re-registration.
Since the node corresponding to the target service port is notified to stop registering the service configuration information of the target service port in step S202, after the service configuration information of the target service port is re-registered in the namespace corresponding to the target service, the process goes to step S207.
Step S206, if the health detection result of the target service port is failure, judging whether the health detection times are more than or equal to the preset times; if not, the step S204 is executed, and if yes, the step S207 is executed.
If the health detection result of the target service port is a failure, it indicates that the target service port does not meet the re-registration standard, and in order to avoid the problem of detection failure caused by network problems and the like, the multiple detection mechanism provided in this embodiment needs to determine whether the health detection frequency is greater than or equal to the preset frequency when the health detection result is a failure, and a specific value of the preset frequency may be set by a person skilled in the art according to the actual service, for example, set to 6 times or 4 times, where the preset frequency corresponding to each target service port may be the same or different. If the number of times is larger than or equal to the preset number of times, the target service port is detected for many times, the detection for many times fails, and in order to not influence the detection of other service ports, the detection is not continued, but the node corresponding to the target service port is notified to perform health detection on the target service port; if the number of times is less than the preset number of times, the health detection can be continued, and the step S204 is skipped to execute.
Step S207, notify the node corresponding to the target service port to perform health detection on the target service port.
Since the node corresponding to the target service port is notified to stop registering the service configuration information of the target service port in step S202, even if the health detection result of the target service port is successful, the node corresponding to the target service port needs to be notified to perform health detection on the target service port, for example, a notification message is sent to the node corresponding to the target service port, so that the service configuration information of the target service port is re-registered in the namespace corresponding to the target service.
If the health detection times are larger than or equal to the preset times, the target service port is detected for multiple times, the multiple detections fail, and in order to not influence the health detection of other service ports, the health detection of the target service port is abandoned, but the node corresponding to the target service port is notified to perform the health detection on the target service port.
After receiving the notification, the node corresponding to the target service port starts to perform health detection on the target service port, for example, detect availability of the target service port and/or detect connection time of the target service port; and if the health detection result of the target service port is successful, re-registering the service configuration information of the target service port into the name space corresponding to the target service.
Step S208, after re-registering the service configuration information of the target service port, allocating an access traffic to the target service port.
The service on-line processing scheme is specifically described below with reference to an example:
in the process of an online level service, assuming that a currently operated target service port is a 9000 port of a server with an IP address of 192.168.1.10, removing service configuration information 192.168.1.10_9000 of the target service port from a namespace corresponding to the level service before the online level service, and simultaneously notifying a node corresponding to the target service port to stop the registration of the service configuration information 192.168.1.10_9000 of the target service port. Then, wait 20 seconds, so that the target service port 192.168.1.10 — 9000 has substantially no access traffic. After 20 seconds, the level service of the target service port 192.168.1.10_9000 is stopped, the image is updated, namely the level service is updated to be online, after the level service is online, health detection is carried out on the target service port 192.168.1.10_9000, in order to meet the detection requirements of other service ports, the maximum number of health detection is set to be 6, for example, the detection is stopped and 192.168.1.10_9000 is registered in the namespace of the level service again as long as one time of success. And if the health detection is carried out for 6 times, and the target service port is found not to pass the health detection, the health detection is abandoned. And finally, informing the node corresponding to the target service port to carry out health detection, starting to check the health request of the target service port 192.168.1.10_9000 by the node corresponding to the target service port, and registering the health request of the target service port 192.168.1.10_9000 into a level service namespace if the node finds that the health detection result of the target service port 192.168.1.10_9000 is successful. After re-registering the service configuration information of the target service port, the target service port 192.168.1.10_9000 re-accesses the traffic.
In an alternative embodiment of the invention, the method further comprises:
starting a first service port in the service on-line process of a target service port, and forwarding access flow allocated to the target service port to a second service port associated with the target service;
after the first service port is started, the access flow is retransmitted to the first service port, and whether the first service port successfully processes the access flow is monitored;
if yes, executing service port switching processing of the target service;
if not, after the service configuration information of the target service port is re-registered, the access flow sent to the first service port is rolled back and sent to the target service port.
Specifically, in order to ensure that, during the service online period, the access traffic accessed to the target service port can be processed normally without a situation of user access failure, the first service port may be started, the access traffic allocated to the target service port is forwarded to a second service port (which may be referred to as a backup service port) associated with the target service, after the first service port is started, the access traffic is forwarded to the newly started first service port, whether the newly started first service port processes the access traffic successfully is monitored, and when the newly started first service port processes the access traffic successfully, the service port switching of the target service is completed. If the newly started first service port cannot successfully process the access traffic, it may be determined that the service port switching of the target service cannot be completed, and after the service configuration information of the target service port is re-registered, the access traffic may be rolled back and sent to the target service port through a roll-back operation.
The scheme provided by the invention deletes the service configuration information of the target service port from the name space corresponding to the target service when the service is online aiming at the target service port, informs the node corresponding to the target service port to stop registering the service configuration information of the target service port, thereby being capable of stopping continuously distributing the access flow to the target service port, realizing temporarily removing the flow of the influenced target service port, providing an environment foundation for the online service, carrying out the online service processing after waiting for the preset time length, ensuring that the target service port is available before accessing the access flow by carrying out the health detection on the target service port after the online service is finished, avoiding the problem that a user cannot normally use the target service port, in addition, realizing the smooth online service, effectively reducing the number of online request error reports in the online service online process, the normal use of the user is ensured.
The embodiment of the invention also provides a nonvolatile computer storage medium, wherein the computer storage medium stores at least one executable instruction, and the computer executable instruction can execute the service online processing method in any method embodiment.
The executable instructions may be specifically configured to cause the processor to:
deleting the service configuration information of the target service port from a name space corresponding to the target service according to the service on-line request aiming at the target service port;
informing a node corresponding to the target service port of stopping registering service configuration information of the target service port;
executing service online processing;
after the service is on line, the service configuration information of the target service port is registered again.
In an alternative implementation, the executable instructions further cause the processor to:
s1, performing health detection on the target service port;
s2, if the health detection result of the target service port is successful, re-registering the service configuration information of the target service port into the name space corresponding to the target service, and jumping to execute S4;
s3, if the health detection result of the target service port is failure, judging whether the health detection times are more than or equal to the preset times; if not, skipping to execute S1, and if yes, skipping to execute S4;
and S4, informing the node corresponding to the target service port to carry out health detection on the target service port.
In an alternative implementation, the executable instructions further cause the processor to:
the node corresponding to the target service port carries out health detection on the target service port;
and if the health detection result of the target service port is successful, re-registering the service configuration information of the target service port into the name space corresponding to the target service.
In an alternative implementation, the executable instructions further cause the processor to:
and after waiting for a preset time, performing service online processing.
In an alternative implementation, the executable instructions further cause the processor to:
starting a first service port in the service on-line process of a target service port, and forwarding access flow allocated to the target service port to a second service port associated with the target service;
after the first service port is started, the access flow is retransmitted to the first service port, and whether the first service port successfully processes the access flow is monitored;
if yes, executing service port switching processing of the target service;
if not, after the service configuration information of the target service port is re-registered, the access flow sent to the first service port is rolled back and sent to the target service port.
In an alternative implementation, the executable instructions further cause the processor to:
after re-registering the service configuration information of the target service port, the access traffic is allocated to the target service port.
In an optional implementation manner, the service configuration information includes: the IP address and port number of the server to which the destination service port belongs.
Fig. 3 is a schematic structural diagram of a computing device according to an embodiment of the present invention, and the specific embodiment of the present invention does not limit the specific implementation of the computing device.
As shown in fig. 3, the computing device may include: a processor (processor)302, a communication Interface 304, a memory 306, and a communication bus 308.
Wherein: the processor 302, communication interface 304, and memory 306 communicate with each other via a communication bus 308.
A communication interface 304 for communicating with network elements of other devices, such as clients or other servers.
The processor 302 is configured to execute the program 310, and may specifically execute relevant steps in the above-described service on-line processing method embodiment.
In particular, program 310 may include program code comprising computer operating instructions.
The processor 302 may be a central processing unit CPU, or an Application Specific Integrated Circuit (ASIC), or one or more Integrated circuits configured to implement an embodiment of the present invention. The computing device includes one or more processors, which may be the same type of processor, such as one or more CPUs; or may be different types of processors such as one or more CPUs and one or more ASICs.
And a memory 306 for storing a program 310. Memory 306 may comprise high-speed RAM memory and may also include non-volatile memory (non-volatile memory), such as at least one disk memory.
The program 310 may specifically be configured to cause the processor 302 to perform the following operations:
deleting the service configuration information of the target service port from a name space corresponding to the target service according to the service on-line request aiming at the target service port;
informing a node corresponding to the target service port of stopping registering service configuration information of the target service port;
executing service online processing;
after the service is on line, the service configuration information of the target service port is registered again.
In an alternative implementation, program 310 further causes processor 302 to:
s1, performing health detection on the target service port;
s2, if the health detection result of the target service port is successful, re-registering the service configuration information of the target service port into the name space corresponding to the target service, and jumping to execute S4;
s3, if the health detection result of the target service port is failure, judging whether the health detection times are more than or equal to the preset times; if not, skipping to execute S1, and if yes, skipping to execute S4;
and S4, informing the node corresponding to the target service port to carry out health detection on the target service port.
In an alternative implementation, program 310 also causes processor 302 to:
the node corresponding to the target service port carries out health detection on the target service port;
and if the health detection result of the target service port is successful, re-registering the service configuration information of the target service port into the name space corresponding to the target service.
In an alternative implementation, program 310 further causes processor 302 to:
and after waiting for a preset time, performing service online processing.
In an alternative implementation, program 310 also causes processor 302 to:
starting a first service port in the service on-line process of a target service port, and forwarding access flow allocated to the target service port to a second service port associated with the target service;
after the first service port is started, the access flow is retransmitted to the first service port, and whether the first service port successfully processes the access flow is monitored;
if yes, executing service port switching processing of the target service;
if not, after the service configuration information of the target service port is re-registered, the access flow sent to the first service port is rolled back and sent to the target service port.
In an alternative implementation, program 310 also causes processor 302 to:
after re-registering the service configuration information of the target service port, the access traffic is allocated to the target service port.
In an optional implementation manner, the service configuration information includes: the IP address and port number of the server to which the destination service port belongs.
The algorithms or displays presented herein are not inherently related to any particular computer, virtual system, or other apparatus. Various general purpose systems may also be used with the teachings herein. The required structure for constructing such a system will be apparent from the description above. In addition, embodiments of the present invention are not directed to any particular programming language. It is appreciated that a variety of programming languages may be used to implement the teachings of the present invention as described herein, and any descriptions of specific languages are provided above to disclose the best mode of the invention.
In the description provided herein, numerous specific details are set forth. It is understood, however, that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the embodiments of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the invention and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be interpreted as reflecting an intention that: that the invention as claimed requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.
Those skilled in the art will appreciate that the modules in the device in an embodiment may be adaptively changed and disposed in one or more devices different from the embodiment. The modules or units or components of the embodiments may be combined into one module or unit or component, and furthermore they may be divided into a plurality of sub-modules or sub-units or sub-components. All of the features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or elements of any method or apparatus so disclosed, may be combined in any combination, except combinations where at least some of such features and/or processes or elements are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Furthermore, those skilled in the art will appreciate that while some embodiments herein include some features included in other embodiments, rather than other features, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments. For example, in the following claims, any of the claimed embodiments may be used in any combination.
The various component embodiments of the invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art will appreciate that a microprocessor or Digital Signal Processor (DSP) may be used in practice to implement some or all of the functionality of some or all of the components according to embodiments of the present invention. The present invention may also be embodied as apparatus or device programs (e.g., computer programs and computer program products) for performing a portion or all of the methods described herein. Such programs implementing the present invention may be stored on computer-readable media or may be in the form of one or more signals. Such a signal may be downloaded from an internet website or provided on a carrier signal or in any other form.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names. The steps in the above embodiments should not be construed as limiting the order of execution unless specified otherwise.
The invention discloses: A1. a service online processing method comprises the following steps:
deleting the service configuration information of the target service port from a name space corresponding to the target service according to the service on-line request aiming at the target service port;
informing a node corresponding to the target service port to stop registering service configuration information of the target service port;
executing service online processing;
and after the service is on line, re-registering the service configuration information of the target service port.
A2. The method of a1, wherein the re-registering the service configuration information of the target service port further comprises:
s1, performing health detection on the target service port;
s2, if the health detection result of the target service port is successful, re-registering the service configuration information of the target service port into the name space corresponding to the target service, and jumping to execute S4;
s3, if the health detection result of the target service port is failure, judging whether the health detection times are more than or equal to preset times; if not, skipping to execute S1, and if yes, skipping to execute S4;
and S4, notifying the node corresponding to the target service port to carry out health detection on the target service port.
A3. The method of a2, wherein the method further comprises:
the node corresponding to the target service port carries out health detection on the target service port;
if the health detection result of the target service port is successful, the service configuration information of the target service port is registered into the name space corresponding to the target service again.
A4. The method of any of a1-A3, wherein the performing service bring-up processing further comprises: and after waiting for a preset time, performing service online processing.
A5. The method of any one of a1-A3, wherein the method further comprises:
starting a first service port in the service on-line process of a target service port, and forwarding access flow allocated to the target service port to a second service port associated with the target service;
after the first service port is started, the access flow is retransmitted to the first service port, and whether the first service port successfully processes the access flow is monitored;
if yes, executing service port switching processing of the target service;
if not, after re-registering the service configuration information of the target service port, rolling back the access flow sent to the first service port and sending the access flow to the target service port.
A6. The method of any of a1-A3, wherein, after re-registering service configuration information of the target service port, the method further comprises:
and distributing access flow to the target service port.
A7. The method of any of a1-A3, wherein the service configuration information comprises: the IP address and port number of the server to which the destination service port belongs.
B8. A computing device, comprising: the system comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface complete mutual communication through the communication bus;
the memory is configured to store at least one executable instruction that causes the processor to:
deleting the service configuration information of the target service port from a name space corresponding to the target service according to the service on-line request aiming at the target service port;
informing a node corresponding to the target service port to stop registering service configuration information of the target service port;
executing service online processing;
and after the service is on line, re-registering the service configuration information of the target service port.
B9. The computing device of B8, wherein the executable instructions further cause the processor to:
s1, performing health detection on the target service port;
s2, if the health detection result of the target service port is successful, re-registering the service configuration information of the target service port into the name space corresponding to the target service, and jumping to execute S4;
s3, if the health detection result of the target service port is failure, judging whether the health detection times are more than or equal to preset times; if not, skipping to execute S1, and if yes, skipping to execute S4;
and S4, notifying the node corresponding to the target service port to carry out health detection on the target service port.
B10. The computing device of B9, wherein the executable instructions further cause the processor to:
the node corresponding to the target service port carries out health detection on the target service port;
if the health detection result of the target service port is successful, the service configuration information of the target service port is registered into the name space corresponding to the target service again.
B11. The computing device of any one of B8-B10, wherein the executable instructions further cause the processor to:
and after waiting for a preset time, performing service online processing.
B12. The computing device of any one of B8-B10, wherein the executable instructions further cause the processor to:
starting a first service port in the service on-line process of a target service port, and forwarding access flow allocated to the target service port to a second service port associated with the target service;
after the first service port is started, the access flow is retransmitted to the first service port, and whether the first service port successfully processes the access flow is monitored;
if yes, executing service port switching processing of the target service;
if not, after re-registering the service configuration information of the target service port, rolling back the access flow sent to the first service port and sending the access flow to the target service port.
B13. The computing device of any one of B8-B10, wherein the executable instructions further cause the processor to:
after re-registering the service configuration information of the target service port, allocating access traffic to the target service port.
B14. The computing device of any of B8-B10, wherein the service configuration information includes: the IP address and port number of the server to which the destination service port belongs.
C15. A computer storage medium, wherein the storage medium stores at least one executable instruction, and the executable instruction causes a processor to execute the operation corresponding to the service online processing method as described in any one of a1-a 7.

Claims (10)

1. A service online processing method comprises the following steps:
deleting the service configuration information of the target service port from a name space corresponding to the target service according to the service on-line request aiming at the target service port;
informing a node corresponding to the target service port to stop registering service configuration information of the target service port;
executing service online processing;
and after the service is on line, re-registering the service configuration information of the target service port.
2. The method of claim 1, wherein the re-registering service configuration information for the target service port further comprises:
s1, performing health detection on the target service port;
s2, if the health detection result of the target service port is successful, re-registering the service configuration information of the target service port into the name space corresponding to the target service, and jumping to execute S4;
s3, if the health detection result of the target service port is failure, judging whether the health detection times are more than or equal to preset times; if not, skipping to execute S1, and if yes, skipping to execute S4;
and S4, notifying the node corresponding to the target service port to carry out health detection on the target service port.
3. The method of claim 2, wherein the method further comprises:
the node corresponding to the target service port carries out health detection on the target service port;
if the health detection result of the target service port is successful, the service configuration information of the target service port is registered into the name space corresponding to the target service again.
4. The method of any of claims 1-3, wherein the performing service bring-up processing further comprises: and after waiting for a preset time, performing service online processing.
5. The method according to any one of claims 1-3, wherein the method further comprises:
starting a first service port in the service on-line process of a target service port, and forwarding access flow allocated to the target service port to a second service port associated with the target service;
after the first service port is started, the access flow is retransmitted to the first service port, and whether the first service port successfully processes the access flow is monitored;
if yes, executing service port switching processing of the target service;
if not, after re-registering the service configuration information of the target service port, rolling back the access flow sent to the first service port and sending the access flow to the target service port.
6. The method of any of claims 1-3, wherein after re-registering service configuration information for the target service port, the method further comprises:
and distributing access flow to the target service port.
7. The method of any of claims 1-3, wherein the service configuration information comprises: the IP address and port number of the server to which the destination service port belongs.
8. A computing device, comprising: the system comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface complete mutual communication through the communication bus;
the memory is configured to store at least one executable instruction that causes the processor to:
deleting the service configuration information of the target service port from a name space corresponding to the target service according to the service on-line request aiming at the target service port;
informing a node corresponding to the target service port to stop registering service configuration information of the target service port;
executing service online processing;
and after the service is on line, re-registering the service configuration information of the target service port.
9. The computing device of claim 8, wherein the executable instructions further cause the processor to:
s1, performing health detection on the target service port;
s2, if the health detection result of the target service port is successful, re-registering the service configuration information of the target service port into the name space corresponding to the target service, and jumping to execute S4;
s3, if the health detection result of the target service port is failure, judging whether the health detection times are more than or equal to preset times; if not, skipping to execute S1, and if yes, skipping to execute S4;
and S4, notifying the node corresponding to the target service port to carry out health detection on the target service port.
10. A computer storage medium, wherein at least one executable instruction is stored in the storage medium, and the executable instruction causes a processor to execute the operation corresponding to the service on-line processing method according to any one of claims 1-7.
CN202110892210.6A 2021-08-04 2021-08-04 Service online processing method, computing device and computer storage medium Active CN113612846B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110892210.6A CN113612846B (en) 2021-08-04 2021-08-04 Service online processing method, computing device and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110892210.6A CN113612846B (en) 2021-08-04 2021-08-04 Service online processing method, computing device and computer storage medium

Publications (2)

Publication Number Publication Date
CN113612846A true CN113612846A (en) 2021-11-05
CN113612846B CN113612846B (en) 2022-07-29

Family

ID=78306848

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110892210.6A Active CN113612846B (en) 2021-08-04 2021-08-04 Service online processing method, computing device and computer storage medium

Country Status (1)

Country Link
CN (1) CN113612846B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150019709A1 (en) * 2013-07-10 2015-01-15 Apollo Group, Inc. Method and apparatus for controlling initiation of multi-service transactions
US9256506B1 (en) * 2012-06-04 2016-02-09 Google Inc. System and method for performing operations on target servers
CN106792797A (en) * 2016-11-22 2017-05-31 上海斐讯数据通信技术有限公司 Offline processing method and radio reception device on a kind of user terminal
CN107770227A (en) * 2016-08-22 2018-03-06 北京京东尚科信息技术有限公司 The distribution processing method and device of service request
CN108574720A (en) * 2017-05-09 2018-09-25 北京金山云网络技术有限公司 A kind of service loading method and device
CN109905349A (en) * 2017-12-08 2019-06-18 广东安盾安检排爆装备有限公司成都分公司 A kind of safety monitoring date safety storing system
CN110347654A (en) * 2018-03-23 2019-10-18 北京京东尚科信息技术有限公司 A kind of method and apparatus of online cluster features
CN111431741A (en) * 2020-03-17 2020-07-17 北京奇艺世纪科技有限公司 Service online method, system, computer device and storage medium
CN111857763A (en) * 2019-04-30 2020-10-30 北京达佳互联信息技术有限公司 Data processing method and device, electronic equipment and storage medium
CN112261072A (en) * 2019-10-10 2021-01-22 北京京东尚科信息技术有限公司 Service calling method, device, equipment and storage medium

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9256506B1 (en) * 2012-06-04 2016-02-09 Google Inc. System and method for performing operations on target servers
US20150019709A1 (en) * 2013-07-10 2015-01-15 Apollo Group, Inc. Method and apparatus for controlling initiation of multi-service transactions
CN107770227A (en) * 2016-08-22 2018-03-06 北京京东尚科信息技术有限公司 The distribution processing method and device of service request
CN106792797A (en) * 2016-11-22 2017-05-31 上海斐讯数据通信技术有限公司 Offline processing method and radio reception device on a kind of user terminal
CN108574720A (en) * 2017-05-09 2018-09-25 北京金山云网络技术有限公司 A kind of service loading method and device
CN109905349A (en) * 2017-12-08 2019-06-18 广东安盾安检排爆装备有限公司成都分公司 A kind of safety monitoring date safety storing system
CN110347654A (en) * 2018-03-23 2019-10-18 北京京东尚科信息技术有限公司 A kind of method and apparatus of online cluster features
CN111857763A (en) * 2019-04-30 2020-10-30 北京达佳互联信息技术有限公司 Data processing method and device, electronic equipment and storage medium
CN112261072A (en) * 2019-10-10 2021-01-22 北京京东尚科信息技术有限公司 Service calling method, device, equipment and storage medium
CN111431741A (en) * 2020-03-17 2020-07-17 北京奇艺世纪科技有限公司 Service online method, system, computer device and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
刘晓东; 赵晓芳; 陈雅静; 陈继红: "基于服务能力模型的微服务弹性资源供给机制", 《高技术通讯》 *

Also Published As

Publication number Publication date
CN113612846B (en) 2022-07-29

Similar Documents

Publication Publication Date Title
US10152355B2 (en) Grid licensing server and fault tolerant grid system and method of use
CN108234630B (en) Data reading method and device based on distributed consistency protocol
US11206173B2 (en) High availability on a distributed networking platform
US9189303B2 (en) Shadow queues for recovery of messages
CN107682172B (en) Control center device, service system processing method and medium
CN111897558A (en) Kubernets upgrading method and device for container cluster management system
CN107391033B (en) Data migration method and device, computing equipment and computer storage medium
EP2645635B1 (en) Cluster monitor, method for monitoring a cluster, and computer-readable recording medium
KR102327572B1 (en) Methods and devices for data storage and service processing
CN113067875A (en) Access method, device and equipment based on dynamic flow control of micro-service gateway
CN112015595A (en) Master-slave database switching method, computing device and storage medium
US20090182877A1 (en) Ineligible group member status
US8103905B2 (en) Detecting and recovering from process failures
CN108200157B (en) Log synchronization method and device for triggering rollback by master node
CN113612846B (en) Service online processing method, computing device and computer storage medium
CN108062224B (en) Data reading and writing method and device based on file handle and computing equipment
CN108121514B (en) Meta information updating method and device, computing equipment and computer storage medium
CN113596195B (en) Public IP address management method, device, main node and storage medium
CN111367921A (en) Data object refreshing method and device
CN112988405B (en) Automatic degradation method and device for micro-service and computing equipment
CN110769020B (en) Resource request processing method, device, equipment and system
CN112019359B (en) Service processing method and system based on IMS network
CN115484162B (en) Component adaptation method, device, server side and storage medium of software system
CN115905271B (en) Virus library updating method and device and multi-engine detection system
CN111078658B (en) Method and device for mounting cluster file 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
GR01 Patent grant
GR01 Patent grant