Lossless publishing method, device and equipment and storage medium are applied
By implementing gentle isolation and lossless deployment of application terminals and applications, combined with detection services, the problems of application deployment time limits and interruptions have been solved, achieving a seamless application deployment process.
Patent Information
- Application Number
- CN202310704099.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-14
- Publication Date
- 2025-12-12
- Estimated Expiration
- 2043-06-14
AI Technical Summary
In existing technologies, application deployment needs to be carried out during periods of low traffic, which results in time constraints for system maintenance and brief interruptions during deployment, affecting normal user experience.
By gently isolating the application terminal and the application itself, without affecting existing users, a lossless release is then carried out, and a detection service is invoked to perform detection, ensuring that the user experience is not interrupted during the release process.
It enables application deployment at any time without affecting user access, solving the problems of time constraints and brief interruptions, and has wide applicability and high efficiency.
Smart Images

Figure CN116760808B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of computer, in particular to an application lossless publishing method and device, equipment and storage medium. BACKGROUND
[0002] With the development of the Internet, the popularity of smart phones, people can operate online anytime, anywhere, and with the continuous development of technology, the frequency of system operation and maintenance is greatly improved. Previously, when the system needed to be maintained, it was selected in the morning period with less traffic, which caused trouble for the operation and maintenance of the system, and the application had a short interruption during the release, and the user could not normally use the system. SUMMARY
[0003] The main purpose of the present application is to provide an application lossless publishing method, device, equipment and storage medium, which aims to solve the problem of time limit for application release affecting system maintenance, and short-term interruption of application during release affecting normal use of users.
[0004] To achieve the above purpose, the present application provides an application lossless publishing method, which is applied to an F5 traffic intervention system, and the application lossless publishing method comprises the following steps:
[0005] The first application terminal and the first application are gently isolated, and the gentle isolation does not affect the use of the access user;
[0006] The first application after gentle isolation is lossless published;
[0007] The detection service is called to detect the first application after lossless publishing is completed.
[0008] Optionally, the step of gently isolating the first application terminal and the first application comprises:
[0009] The detection interface return value of the first application terminal is modified to a first return value;
[0010] The first return value is synchronized to the first application;
[0011] According to the first return value, the detection management service is called to switch the first application terminal and the first application to a gentle isolation state.
[0012] Optionally, the step of lossless publishing the first application after gentle isolation comprises:
[0013] The monitoring service is called to determine whether the first application terminal and the first application have production traffic access;
[0014] If the first application terminal and the first application have no production traffic access, the first application is lossless published.
[0015] Optionally, the step of detecting the first application after the lossless publishing is completed by calling the detection service comprises:
[0016] receiving prompt information that the first application is published losslessly;
[0017] According to the prompt information, the detection service is called to detect the first application, which includes but is not limited to one or more of version detection, cache version, and health detection.
[0018] Optionally, after the step of calling the detection service to detect the first application according to the prompt information, the method further comprises:
[0019] determining whether the detection result of the first application is normal;
[0020] If the detection result of the first application is normal, the detection interface return value of the first application terminal is modified to a second return value;
[0021] If the detection result of the first application is abnormal, the first application is losslessly published.
[0022] Optionally, after the step of modifying the detection interface return value of the first application terminal to the second return value if the detection result of the first application is normal, the method further comprises:
[0023] synchronizing the second return value to the first application;
[0024] According to the second return value, a detection management service is called to switch the first application terminal and the first application to an online state.
[0025] Optionally, after the step of calling the detection management service to switch the first application terminal and the first application to the online state according to the second return value, the method further comprises:
[0026] calling a monitoring service to determine whether the first application in the online state runs normally;
[0027] If the first application in the online state runs normally, the second application terminal and the second application are gently isolated;
[0028] If the first application in the online state runs abnormally, the first application terminal and the first application are gently isolated.
[0029] In addition, to achieve the above-mentioned purpose, the application further provides an application lossless publishing device, which comprises:
[0030] an isolation module, which gently isolates the first application terminal and the first application, and the gentle isolation does not affect the use of access users.
[0031] publishing the first application after the gentle isolation;
[0032] detecting the first application after the lossless publishing by calling a detection service.
[0033] The application also provides a terminal device, which comprises a memory, a processor, and an application lossless publishing program stored in the memory and executable on the processor, and the application lossless publishing program implements the steps of the application lossless publishing method when executed by the processor.
[0034] The application also provides a computer readable storage medium, which stores an application lossless publishing program, and the application lossless publishing program implements the steps of the application lossless publishing method when executed by a processor.
[0035] The application lossless publishing method, device, equipment and storage medium provided by the application can gently isolate the first application terminal and the first application, and the gentle isolation does not affect the use of the access users; the first application after the gentle isolation is published losslessly; and the first application after the lossless publishing is detected by calling a detection service. By gently isolating the application terminal and the application, the application terminal and the application are no longer connected to the production flow, the use of the application by the users who have accessed is not interrupted during the publishing process while new users are rejected. Therefore, the lossless publishing of the application is realized, and the technical problems that the application publishing has a time limit for system maintenance and the application has a short interruption during the publishing period to affect the normal use of the users are solved. Compared with the prior art, the application has the advantages of wide application range, no interruption of the application and higher efficiency.
[0036] The above is only the preferred embodiment of the application, and does not limit the patent scope of the application. Any equivalent structure or equivalent flow conversion according to the content of the specification and drawings of the application, or direct or indirect application in other related technical fields, is also included in the patent protection scope of the application. BRIEF DESCRIPTION OF DRAWINGS
[0037] Figure 1 FIG. 1 is a functional module schematic diagram of a terminal device to which the application lossless publishing device belongs;
[0038] Figure 2 FIG. 2 is a flow schematic diagram of a first exemplary embodiment of the application lossless publishing method;
[0039] Figure 3 FIG. 3 is a flow schematic diagram of a second exemplary embodiment of the application lossless publishing method;
[0040] Figure 4 A flowchart of a third exemplary embodiment of the application using the lossless publishing method;
[0041] Figure 5 A flowchart of a fourth exemplary embodiment of the application using the lossless publishing method;
[0042] Figure 6 A flowchart of a fifth exemplary embodiment of the application using the lossless publishing method;
[0043] Figure 7 A schematic diagram of calling a detection service in the lossless publishing method of the application;
[0044] Figure 8 A flowchart of a sixth exemplary embodiment of the application using the lossless publishing method;
[0045] Figure 9 A schematic diagram of an existing application publishing running exception;
[0046] Figure 10 A schematic diagram of another existing application publishing running exception;
[0047] Figure 11 A schematic diagram of an application publishing running exception in the method of the application;
[0048] Figure 12 A schematic diagram of the overall flow of the embodiment of the application using the lossless publishing method.
[0049] The implementation, functional features and advantages of the application will be further described with reference to the embodiments and the accompanying drawings. DETAILED DESCRIPTION
[0050] It should be understood that the specific embodiments described herein are merely intended to explain the application and are not intended to limit the application.
[0051] The main solution of the embodiment of the application is to mildly isolate the first application terminal and the first application, which does not affect the use of the access user; to perform lossless publishing on the first application after the mild isolation; and to call a detection service to detect the first application after the lossless publishing is completed. By mildly isolating the application terminal and the application, the application terminal and the application no longer access the production traffic, and while rejecting the access of new users, the use of the application by the users who have accessed during the publishing process will not be interrupted. Thus, the lossless publishing of the application is achieved, and the technical problems that the application publishing has a time limit affecting system maintenance and the application has a short-term interruption affecting normal use of the users during the publishing period are solved. Compared with the prior art, the application has the advantages of wide application range, no interruption of the application, and higher efficiency.
[0052] The embodiments of the present application consider that the application of the related technical solutions needs to be selected in the morning time period with less traffic, which causes trouble for the operation and maintenance of the system, and the application has a short-term interruption during the release, and the user cannot normally use.
[0053] Based on this, the embodiments of the present application propose a solution, which can realize the release of the application at any time, without affecting the normal use of the access customer, solve the technical problems that the application release has time limit affecting system maintenance, and the application has a short-term interruption affecting the normal use of the user, make the application release more convenient and efficient.
[0054] Specifically, referring to Figure 1 , Figure 1 is a functional block diagram of a terminal device to which the application lossless release device belongs. The application lossless release device can be a device that can independently release the application losslessly, which can be carried on the terminal device in the form of hardware or software. The terminal device can be a smart mobile device such as a mobile phone and a tablet computer, and can also be a fixed terminal device or a server with data processing function.
[0055] In the embodiment, the terminal device to which the application lossless release device belongs at least includes an output module 110, a processor 120, a memory 130, and a communication module 140.
[0056] The memory 130 stores an operating system and an application lossless release program. The application lossless release device can perform gentle isolation on the first application terminal and the first application, which does not affect the use of the access user; perform lossless release on the first application after gentle isolation; and call a detection service to detect the first application after lossless release. The application lossless release program performs gentle isolation, and stores the lossless release application information in the memory 130; the output module 110 can be a display screen and the like. The communication module 140 can include a WIFI module, a mobile communication module, and a Bluetooth module, and the like, and communicates with external devices or servers through the communication module 140.
[0057] The application lossless release program in the memory 130 is executed by the processor to implement the following steps:
[0058] Gentle isolation is performed on the first application terminal and the first application, which does not affect the use of the access user;
[0059] Lossless release is performed on the first application after gentle isolation;
[0060] A detection service is called to detect the first application after lossless release.
[0061] Further, the application lossless publishing program in the memory 130 is further implemented with the following steps when executed by the processor:
[0062] modifying the detection interface return value of the first application terminal to a first return value;
[0063] synchronizing the first return value to the first application;
[0064] according to the first return value, calling a detection management service to switch the first application terminal and the first application to a gentle isolation state.
[0065] Further, the application lossless publishing program in the memory 130 is further implemented with the following steps when executed by the processor:
[0066] calling a monitoring service to determine whether the first application terminal and the first application have production traffic access;
[0067] if the first application terminal and the first application have no production traffic access, performing lossless publishing on the first application.
[0068] Further, the application lossless publishing program in the memory 130 is further implemented with the following steps when executed by the processor:
[0069] receiving prompt information that the lossless publishing of the first application is completed;
[0070] according to the prompt information, calling a detection service to detect the first application, the detection service including one or more of version detection, cache version, and health detection.
[0071] Further, the application lossless publishing program in the memory 130 is further implemented with the following steps when executed by the processor:
[0072] determining whether the detection result of the first application is normal;
[0073] if the detection result of the first application is normal, modifying the detection interface return value of the first application terminal to a second return value;
[0074] if the detection result of the first application is abnormal, performing lossless publishing on the first application.
[0075] Further, the application lossless publishing program in the memory 130 is further implemented with the following steps when executed by the processor:
[0076] synchronizing the second return value to the first application;
[0077] according to the second return value, calling a detection management service to switch the first application terminal and the first application to an online state.
[0078] Further, the application lossless publishing program in the memory 130 is executed by the processor to further implement the following steps:
[0079] Call the monitoring service to determine whether the first application running in the online state is normal;
[0080] If the first application running in the online state is normal, the second application terminal and the second application are gently isolated;
[0081] If the first application running in the online state is abnormal, the first application terminal and the first application are gently isolated.
[0082] In the embodiment, the first application terminal and the first application are gently isolated, the gentle isolation does not affect the use of the access user, the first application after the gentle isolation is losslessly published, and the detection service is called to detect the first application after the lossless publishing. By gently isolating the application terminal and the application, the application terminal and the application no longer access the production traffic, while rejecting the access of new users, the use of the application by the accessed users is not interrupted during the publishing process. Therefore, the lossless publishing of the application is realized, and the technical problems that the application publishing has a time limit affecting the system maintenance and the application has a short interruption affecting the normal use of the users during the publishing period are solved. Compared with the prior art, the application has the advantages of wide application range, no interruption of the application, and higher efficiency.
[0083] Based on the terminal device architecture but not limited to the above-mentioned architecture, the method embodiment of the application is proposed.
[0084] Referring to Figure 2 , Figure 2 The flowchart of the first exemplary embodiment of the application lossless publishing method is shown. The application lossless publishing method comprises:
[0085] In step S101, the first application terminal and the first application are gently isolated, and the gentle isolation does not affect the use of the access user;
[0086] The execution subject of the method of the embodiment is an F5 traffic intervention service system, which can include a monitoring server, a detection server, a detection management server, and a publishing server. The execution subject of the method of the embodiment can also be an F5 traffic intervention device or an F5 traffic intervention equipment. The embodiment takes the F5 traffic intervention device as an example, which can be integrated on a device with data processing function.
[0087] In order to solve the current application release has time limit influence system maintenance, and the release period application has short-term interruption influence user normal use problem, break the application release time limit, maintain access user's normal use is particularly important, in order to realize the application in any period of release and does not affect the access user use, take the following steps to realize:
[0088] Firstly, set up special F5 flow intervention device integrated in the device with data processing function, through F5 flow intervention device can be gentle isolation to application terminal and application.
[0089] Finally, through the detection management server in F5 flow intervention device, the first application terminal and the first application are gently isolated.
[0090] Among them, gentle isolation is a running state of application terminal and application, when the application terminal and the application are in gentle isolation state, no longer access to production flow, refuse new user to use the application, but at the same time does not affect the access user to use the application.
[0091] Step S102, the first application after gentle isolation is lossless release;
[0092] When the detection management server in F5 flow intervention device gently isolates the first application terminal and the first application, the first application is lossless released, which takes the following steps to realize:
[0093] Firstly, further determine that the first application terminal and the first application have no production flow access, that is, no new user uses the application;
[0094] Finally, when confirming that there is no production flow access, the release server in F5 flow intervention service device releases the first application losslessly.
[0095] Among them, lossless release is that when the application is released and upgraded, it will not affect the user who is using the system, for example, the user is updating the data, if the upgrade is carried out at this time, the system upgrade often needs to restart, which will cause the user's data update to fail, while the lossless release does not need to restart the system, and will not affect the user's data update.
[0096] Step S103, calling detection service, detecting the first application after lossless release.
[0097] When the first application is lossless released, the first application is detected, which takes the following steps to realize:
[0098] Firstly, the release transmitter in F5 flow intervention service device sends prompt information of the first application lossless release completion to the detection server;
[0099] Finally, according to the prompt information, the F5 traffic intervention service device calls a detection service to detect the first application after the lossless publishing is completed through the detection server.
[0100] The first application terminal and the first application are mildly isolated through the above scheme, and the mild isolation does not affect the use of the access user; the first application after the mild isolation is losslessly published; and the detection service is called to detect the first application after the lossless publishing is completed. The application terminal and the application are mildly isolated, the application terminal and the application no longer access the production traffic, the use of the application by the user who has accessed is not interrupted during the publishing process while the new user access is rejected. Therefore, the lossless publishing of the application is realized, and the technical problems that the application publishing has a time limit affecting system maintenance and the application has a short-term interruption affecting normal use of the user during the publishing period are solved. Compared with the prior art, the application has the advantages of wide application range, no interruption of the application and higher efficiency.
[0101] Reference Figure 3 , Figure 3 The flowchart of a second exemplary embodiment of the application lossless publishing method is shown.
[0102] Based on the above Figure 2 The step S101, the mild isolation of the first application terminal and the first application can include:
[0103] In step S1011, the return value of the detection interface of the first application terminal is modified to a first return value;
[0104] In step S1012, the first return value is synchronized to the first application;
[0105] In step S1013, according to the first return value, the detection management service is called to switch the first application terminal and the first application to a mild isolation state.
[0106] Specifically, in order to realize the mild isolation of the first application terminal and the first application, the first application terminal and the first application are switched to the mild isolation state by modifying the return value of the detection interface, and the following steps are taken to realize it:
[0107] Firstly, the F5 traffic intervention device calls the detection management service, and modifies the return value of the detection interface of the first application terminal to the first return value through the detection management server;
[0108] Then, the first return value is synchronized to the first application by refreshing the cache of the first application through the detection management server;
[0109] Finally, according to the first return value, the detection management server adjusts the running state of the first application terminal and the first application, and switches the first application terminal and the first application to the mild isolation state.
[0110] The mild isolation is a running state of the application terminal and the application, and when the application terminal and the application are in the mild isolation state, no production traffic is accessed, and new users are refused to use the application, but the use of the application by the access users is not affected.
[0111] The embodiment modifies the detection interface return value of the first application terminal to the first return value, synchronizes the first return value to the first application, and calls the detection management service according to the first return value to switch the first application terminal and the first application to the mild isolation state. The first application terminal and the first application are mildly isolated by modifying the detection interface return value to the first return value. Thus, the access of new users is rejected, the use of the application by the access users is not affected, and support is provided for lossless publishing of the application.
[0112] Referring to Figure 4 , Figure 4 FIG. 3 is a flowchart of a third exemplary embodiment of the application lossless publishing method.
[0113] Based on the above Figure 2 embodiment, the step S102, the lossless publishing of the first application in the mild isolation state includes:
[0114] Step S1021, calling a monitoring service to determine whether the first application terminal and the first application have production traffic access;
[0115] Step S1022, if the first application terminal and the first application have no production traffic access, performing lossless publishing on the first application.
[0116] Specifically, after the F5 traffic intervention device has mildly isolated the first application terminal and the first application, it is further confirmed that there is no production traffic access, and the first application is losslessly published by taking the following steps:
[0117] First, after the F5 traffic intervention device has mildly isolated the first application terminal and the first application, a monitoring service is called to monitor the traffic of the first application terminal and the first application through a monitoring server to determine whether there is production traffic access.
[0118] Finally, if the first application terminal and the first application have no production traffic access, the F5 traffic intervention device calls a publishing service to losslessly publish the first application through a publishing server.
[0119] The lossless publishing is that when the application is published and upgraded, the user using the system is not affected, for example, the user is updating the data, if the system is upgraded at this time, the system upgrade needs to be restarted, and the restart causes the data update of the user to fail, and the lossless publishing does not need to restart the system and does not affect the data update of the user.
[0120] The embodiment realizes the lossless publishing of the first application by judging whether the first application terminal and the first application have production traffic access through the monitoring service, and publishing the first application without loss if the first application terminal and the first application have no production traffic access.
[0121] With reference to Figure 5 , Figure 5 The flowchart of the fourth exemplary embodiment of the application lossless publishing method is shown.
[0122] Based on the above Figure 2 The step S103 of calling the detection service to detect the first application after the lossless publishing is completed includes:
[0123] The step S1031 of receiving the prompt information that the first application lossless publishing is completed;
[0124] The step S1032 of calling the detection service to detect the first application according to the prompt information, wherein the detection service includes one or more of version detection, cache version, and health detection.
[0125] Specifically, after the lossless publishing of the first application is completed, the first application is detected by the following steps:
[0126] Firstly, the publishing server in the F5 traffic intervention device sends the prompt information that the first application lossless publishing is completed to the detection server.
[0127] Finally, according to the prompt information, the F5 traffic intervention device calls the detection service to detect the first application through the detection server.
[0128] The detection service includes one or more of version detection, cache version, and health detection.
[0129] The embodiment implements the detection of the first application completed by lossless publishing, and provides support for the first application terminal and the online of the first application.
[0130] With reference to Figure 6 , Figure 6 The flowchart of the fifth exemplary embodiment of the application applying the lossless publishing method is shown.
[0131] Based on the above Figure 5 The step S1033 can include the following steps after the detection service is called according to the prompt information and the first application is detected:
[0132] The step S1041 judges whether the result of the detection of the first application is normal.
[0133] The step S1042 modifies the detection interface return value of the first application terminal to a second return value if the result of the detection of the first application is normal.
[0134] The step S1043 synchronizes the second return value to the first application.
[0135] The step S1044 calls the detection management service according to the second return value, and switches the first application terminal and the first application to the online state.
[0136] Specifically, after the first application completed by lossless publishing is detected, the detection result is judged, and the first application terminal and the first application are online when the detection result is normal, which is implemented by the following steps:
[0137] Firstly, the F5 traffic intervention device calls the detection service, judges the result of the detection of the first application by the detection server.
[0138] Secondly, if the detection result is normal, the F5 traffic intervention device calls the detection management service, and modifies the detection interface return value of the first application terminal to a second return value by the detection management server.
[0139] Then, the second return value is synchronized to the first application by the detection management server by refreshing the cache of the first application.
[0140] Finally, according to the second return value, the detection management server adjusts the running state of the first application terminal and the first application, and switches the first application terminal and the first application to an online state.
[0141] If the detection result is abnormal, the first application is re-published without loss. If the detection interface return value is modified to any value other than the first return value and the second return value, the application terminal and the application are switched to a forced isolation state, and no longer access production traffic, and new users and access users cannot normally use the application.
[0142] Taking the first return value as 520, the second return value as 200, the application terminal as a machine, and the detection interface return value as a detection result as an example.
[0143] Referring to Figure 7 , Figure 7 FIG. 1 is a schematic diagram of calling a detection management service in an application lossless publishing method according to the present application.
[0144] The developer opens the detection management page on the terminal, and can directly obtain application, machine, detection result, update time, update personnel, validity and the like. Figure 7 All detection results of all applications and machines in FIG. 1 are 200, indicating that all applications and machines are in an online state. If the detection result of a certain application and machine is modified to 520, the application and machine can be switched to a gentle isolation state.
[0145] The embodiment performs lossless publishing of the first application by judging whether the detection result of the first application is normal, modifying the detection interface return value of the first application terminal to the second return value if the detection result of the first application is normal, synchronizing the second return value to the first application, and calling a detection management service according to the second return value to switch the first application terminal and the first application to an online state. The performance of the first application after lossless publishing is evaluated by judging the detection result. Thus, lossless publishing and evaluation of the first application are realized, and support is provided for the online of the first application terminal and the first application.
[0146] Referring to Figure 8 , Figure 8 FIG. 6 is a flowchart of a sixth exemplary embodiment of an application lossless publishing method according to the present application.
[0147] Based on the above Figure 6 embodiment, after the step S1044 of calling a detection management service according to the second return value to switch the first application terminal and the first application to an online state, the method further includes:
[0148] Step S1045: calling a monitoring service to judge whether the first application in the online state runs normally.
[0149] Step S1046, if the first application in the online state runs normally, the second application terminal and the second application are mildly isolated.
[0150] Specifically, after the first application terminal and the first application are online, the monitoring service is called to judge the running state of the first application, and if the first application runs normally, the second application is losslessly released, and the following steps are taken to achieve:
[0151] Firstly, the F5 traffic intervention device calls the monitoring service to judge whether the first application in the online state runs normally through the monitoring server;
[0152] Finally, if the first application in the online state runs normally, the F5 traffic intervention device calls the detection management service to mildly isolate the second application terminal and the second application through the detection management server, and the same principle is used to losslessly release the second application.
[0153] If the first application in the online state runs normally, the F5 traffic intervention device calls the detection management service to mildly isolate the first application terminal and the first application again through the detection management server.
[0154] Taking the application as a credit card business transaction gateway as an example.
[0155] Referring to Figure 9 , Figure 10 and Figure 11 , Figure 9 is a schematic view of an abnormal running in the other application release method, Figure 10 is another schematic view of an abnormal running in the other application release method, Figure 11 is a schematic view of an abnormal running in the application lossless release method.
[0156] From Figure 9 and Figure 10 , it can be seen that when the other application release method is used, the number of abnormalities generated by the release at midnight reaches 2182, and the time points of generating the number of abnormalities are more than 95% during the release. From Figure 11 , it can be seen that the number of abnormalities on the day of the release at midnight is only 22, and the service quality of the application is not affected by the release, and the access user is not affected by the release.
[0157] Due to various reasons, the business gateway release needs to be released after 12 o'clock at midnight, and in the case that the business gateway is developed by only two people (one internal + one ODC) and one person is responsible for operation and maintenance, the release process lasts for 3-4 hours, which is normal. The physical and mental pressure on the developer is a great challenge. Therefore, it is urgently needed to break this limitation and reduce the operation and maintenance pressure on the developer.
[0158] The embodiment can realize lossless publishing of the first application, improve service quality of the application, and automatically perform lossless publishing of the second application when the first application runs normally, thereby improving efficiency of application publishing.
[0159] As another example, the embodiment can realize lossless publishing of the application through the F5 traffic intervention device, and a flow of the application lossless publishing method is as shown in Figure 11
[0160] Taking the first application terminal as the LGWZ Shanghai cluster, the second application terminal as the LGWZ Shenzhen cluster, the first application as the MBZ application on the LGWZ Shanghai cluster, the second application as the MBZ application on the LGWZ Shenzhen cluster, the first return value as 520, and the second return value as 200 as an example.
[0161] First, the F5 traffic intervention device calls the detection management service, and modifies the detection interface return value of the LGWZ Shanghai cluster to 520 through the detection management server;
[0162] Then, the detection management server refreshes the cache of the MBZ application on the LGWZ Shanghai cluster, synchronizes the detection interface return value with the value of 520 to the MBZ application on the LGWZ Shanghai cluster, and according to the detection interface return value, the LGWZ Shanghai cluster and the MBZ application on the LGWZ Shanghai cluster are gently isolated;
[0163] Then, the F5 traffic intervention device calls the publishing service, and updates the MBZ application on the LGWZ Shanghai cluster through the publishing server;
[0164] Then, the F5 traffic intervention device calls the detection service, and detects the updated MBZ application on the LGWZ Shanghai cluster through the detection server;
[0165] Then, it is judged whether the detection result of the updated MBZ application on the LGWZ Shanghai cluster is normal;
[0166] Then, if the detection result is abnormal, the F5 traffic intervention device calls the publishing service, and updates the MBZ application on the LGWZ Shanghai cluster through the publishing server again;
[0167] Then, if the detection result is normal, the F5 traffic intervention device calls the detection management service, and modifies the detection interface return value of the LGWZ Shanghai cluster to 200 through the detection management server;
[0168] Then, when the detection interface return value of the LGWZ Shanghai cluster is modified to 200, the detection management server refreshes the cache of the MBZ application on the LGWZ Shanghai cluster, synchronizes the detection interface return value of 200 to the MBZ application on the LGWZ Shanghai cluster, and according to the detection interface return value, puts the LGWZ Shanghai cluster and the MBZ application on the LGWZ Shanghai cluster online and accesses the production traffic;
[0169] Then, the F5 traffic intervention device calls the monitoring service to monitor the running of the MBZ application on the LGWZ Shanghai cluster through the monitoring server;
[0170] Then, it is judged whether the monitoring result of the MBZ application on the LGWZ Shanghai cluster is normal;
[0171] Then, if the monitoring result is abnormal, the F5 traffic intervention device calls the detection management service to modify the detection interface return value of the LGWZ Shanghai cluster to 520 through the detection management server, and re-warmly isolates the MBZ application on the LGWZ Shanghai cluster;
[0172] Finally, if the monitoring result is normal, the F5 traffic intervention device calls the detection management service to modify the detection interface return value of the LGWZ Shanghai cluster to 520 through the detection management server, and performs lossless publishing of the MBZ application on the LGWZ Shanghai cluster according to the same principle.
[0173] The F5 traffic intervention device includes a monitoring server, a detection server, a detection management server, and a publishing server. Modifying the detection interface return value to any value other than 520 and 200 will switch the application terminal and the application to a forced isolation state.
[0174] In addition, when encountering production exceptions, the detection management service can also be called to manually isolate abnormal application terminals to isolate abnormal application terminals at the fastest speed and quickly recover production principles.
[0175] The application lossless publishing method will also be combined with monitoring equipment to discover exceptions through monitoring and feedback operation and maintenance service platforms to trigger traffic intervention mechanisms to achieve limited self-isolation in the event of exceptions and form a monitoring self-healing center.
[0176] The embodiment achieves lossless publishing of the application by the above scheme, specifically by mildly isolating the first application terminal and the first application, which does not affect the use of the access user; performing lossless publishing on the first application after the mild isolation; and calling a detection service to detect the first application after the lossless publishing is completed. By mildly isolating the application terminal and the application, the application terminal and the application no longer access the production traffic, and while new user access is rejected, the use of the application by the user who has accessed is not interrupted during the publishing process. Therefore, lossless publishing of the application is achieved, and the technical problems that the application publishing has a time limit affecting system maintenance and the application has a short-term interruption affecting normal use of the user during the publishing period are solved. Compared with the prior art, the application has the advantages of wide application range, no interruption of the application, and higher efficiency.
[0177] In addition, the application further provides an application lossless publishing device, which comprises:
[0178] an isolation module, which mildly isolates the first application terminal and the first application, and the mild isolation does not affect the use of the access user;
[0179] a publishing module, which is used for performing lossless publishing on the first application after the mild isolation;
[0180] a detection module, which is used for calling a detection service to detect the first application after the lossless publishing is completed.
[0181] The principle of implementing lossless publishing of the application in the embodiment can refer to the above-mentioned embodiments, and will not be described here.
[0182] In addition, the application embodiment further provides a terminal device, which comprises a memory, a processor, and an application lossless publishing program stored in the memory and capable of running on the processor. When the application lossless publishing program is executed by the processor, the steps of the application lossless publishing method are implemented.
[0183] Since the application lossless publishing program is executed by the processor, all the technical solutions of the above-mentioned embodiments are adopted, and at least all the beneficial effects brought by all the technical solutions of the above-mentioned embodiments are achieved, which will not be described here.
[0184] The application embodiment further provides a computer readable storage medium, which stores an application lossless publishing program. When the application lossless publishing program is executed by the processor, the steps of the application lossless publishing method are implemented.
[0185] Since the application lossless publishing program is executed by the processor, all the technical solutions of the above-mentioned embodiments are adopted, and at least all the beneficial effects brought by all the technical solutions of the above-mentioned embodiments are achieved, which will not be described here.
[0186] Compared with the prior art, the application lossless publishing scheme proposed in the embodiment of the application, by mild isolation of the first application terminal and the first application, the mild isolation does not affect the use of the access user; the first application after mild isolation is published losslessly; the detection service is called to detect the first application after lossless publishing is completed. Thus, the problem that the application can only be published in the early morning period with less traffic, and the access user cannot normally use during the publishing period is solved. Based on the application scheme, starting from the problem that the application cannot be published at any time in the real world and the application has a short interruption during the publishing period, an application lossless publishing scheme is designed, and the effectiveness of the application lossless publishing method of the application is verified on the abnormal detection after the lossless publishing of the application, and finally the efficiency of the application lossless publishing by the method of the application is obviously improved.
[0187] Compared with the prior art, the application embodiment scheme has the following advantages:
[0188] 1. The user is not affected during operation and publishing.
[0189] 2. There is no time limit, and the publishing operation can be performed at any time.
[0190] 3. Machine failure rapid isolation, gray publishing, operation and application publishing are realized.
[0191] 4. Also applicable to other similar load balancing.
[0192] It should be noted that in this paper, the term "includes", "contains" or any other variant thereof is intended to cover non-exclusive inclusion, so that the process, method, article or system including a series of elements not only includes those elements, but also includes other elements not explicitly listed, or includes elements inherent to such process, method, article or system. Without more limitations, the element defined by the statement "includes a" does not exclude the presence of another identical element in the process, method, article or system including the element.
[0193] The above application embodiment serial number is only for description, not representing the pros and cons of the embodiment.
[0194] Through the above description of the embodiments, those skilled in the art can clearly understand that the above-mentioned example method can be realized by means of software and a necessary general hardware platform, and of course, it can also be realized by hardware, but in many cases, the former is a better embodiment. Based on such understanding, the technical solutions of the present application can be embodied in the form of a software product, which is stored in a storage medium (such as a ROM / RAM, a magnetic disk, or an optical disc) and includes a plurality of instructions for causing a terminal device (which can be a mobile phone, a computer, a server, a controlled terminal, or a network device) to execute the method of each embodiment of the present application
[0195] The above is only a preferred embodiment of the present application, and does not limit the patent scope of the present application, and any equivalent structure or equivalent process transformation using the content of the specification and drawings, or direct or indirect application in other related technical fields, is also included in the patent protection scope of the present application.
Claims
1. A method for applying lossless publishing, characterized by, The method is applied to an F5 traffic intervention system, and the application lossless publishing method comprises the following steps: The first application terminal and the first application are mildly isolated, and the mild isolation does not affect the use of the access user; The first application after the mild isolation is losslessly published; A detection service is called to detect the first application after the lossless publishing is completed; The step of mildly isolating the first application terminal and the first application comprises: The detection interface return value of the first application terminal is modified to be a first return value; The first return value is synchronized to the first application; According to the first return value, a detection management service is called to switch the first application terminal and the first application to a mild isolation state, In the mild isolation state, the first application terminal and the first application no longer access production traffic, and new users are refused to use the first application, and the access users continue to use the first application; The step of calling the detection service to detect the first application after the lossless publishing is completed comprises: Prompt information that the first application lossless publishing is completed is received; According to the prompt information, a detection service is called to detect the first application, and the detection service comprises one or more of version detection, cache version, and health detection; The step of calling the detection service to detect the first application according to the prompt information further comprises: It is judged whether the detection result of the first application is normal; If the detection result of the first application is normal, the detection interface return value of the first application terminal is modified to be a second return value; If the detection result of the first application is abnormal, the first application is losslessly published; The step of modifying the detection interface return value of the first application terminal to be the second return value if the detection result of the first application is normal further comprises: The second return value is synchronized to the first application; According to the second return value, a detection management service is called to switch the first application terminal and the first application to an online state; The step of calling the detection management service to switch the first application terminal and the first application to the online state according to the second return value further comprises: A monitoring service is called to judge whether the first application in the online state runs normally; If the first application in the online state runs normally, the second application terminal and the second application are mildly isolated; If the first application in the online state runs abnormally, the first application terminal and the first application are mildly isolated.
2. The method of claim 1, wherein, The step of losslessly publishing the first application after the mild isolation comprises: A monitoring service is called to judge whether the first application terminal and the first application have production traffic access; If the first application terminal and the first application have no production traffic access, the first application is losslessly published.
3. A non-destructive publishing device, characterized in that, The application lossless publishing device comprises: An isolation module for mildly isolating the first application terminal and the first application, and the mild isolation does not affect the use of the access user; A publishing module for losslessly publishing the first application after the mild isolation. detecting the first application after lossless publishing is completed; The isolation module is further configured to modify a return value of a detection interface of the first application terminal to a first return value. The first return value is synchronized to the first application. According to the first return value, the detection management service is called to switch the first application terminal and the first application to a gentle isolation state. In the gentle isolation state, the first application terminal and the first application no longer access production traffic, and new users are rejected from using the first application, but users who have already accessed continue to use the first application. The detection module is further configured to receive prompt information that the first application has completed lossless publishing. According to the prompt information, the detection service is called to detect the first application, and the detection service includes one or more of version detection, cache version, and health detection. The detection module is further configured to determine whether the detection result of the first application is normal. If the detection result of the first application is normal, the return value of the detection interface of the first application terminal is modified to a second return value. If the detection result of the first application is abnormal, the first application is losslessly published. The detection module is further configured to synchronize the second return value to the first application. According to the second return value, the detection management service is called to switch the first application terminal and the first application to an online state. The detection module is further configured to call the monitoring service to determine whether the first application in the online state is running normally. If the first application in the online state is running normally, the second application terminal and the second application are gently isolated. If the first application in the online state is running abnormally, the first application terminal and the first application are gently isolated.
4. A terminal device, characterized by comprising: The terminal device includes a memory, a processor, and an application lossless publishing program stored on the memory and executable on the processor, and the application lossless publishing program implements the steps of the application lossless publishing method of any one of claims 1-2 when executed by the processor.
5. A computer readable storage medium, characterized in that, The computer-readable storage medium stores an application lossless publishing program, and the application lossless publishing program implements the steps of the application lossless publishing method of any one of claims 1-2 when executed by the processor.
Citation Information
Patent Citations
Application program updating method, device, system and computer readable storage medium
CN110990039A
Application system automatic upgrading method and device
CN111367552A
Software version upgrading method and device
CN115378809A
System version issuing method and device
CN115774568A