CN117579486A - Server upgrading method and device - Google Patents

Server upgrading method and device Download PDF

Info

Publication number
CN117579486A
CN117579486A CN202311287724.4A CN202311287724A CN117579486A CN 117579486 A CN117579486 A CN 117579486A CN 202311287724 A CN202311287724 A CN 202311287724A CN 117579486 A CN117579486 A CN 117579486A
Authority
CN
China
Prior art keywords
service program
version
message
user request
version service
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311287724.4A
Other languages
Chinese (zh)
Inventor
卢康乐
张继弢
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shandong Energy Chain Holding Co ltd
Original Assignee
Chezhubang Beijing 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 Chezhubang Beijing Technology Co Ltd filed Critical Chezhubang Beijing Technology Co Ltd
Priority to CN202311287724.4A priority Critical patent/CN117579486A/en
Publication of CN117579486A publication Critical patent/CN117579486A/en
Pending legal-status Critical Current

Links

Classifications

    • 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/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • H04L41/082Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a server upgrading method, which comprises the following steps: receiving a first user request sent by terminal equipment; transmitting the first user request to the first version service program and transmitting the first user request to the second version service program; wherein the second version of the service program is an upgraded version of the first version of the service program; receiving a first message returned by the first version service program and receiving a second message returned by the second version service program; comparing the first message with the second message to obtain a comparison result; and when the comparison result meets the preset condition, releasing the second version service program. When the server is updated, the invention can carry out full coverage detection on the new version service program, thereby reducing the risk of server updating. Meanwhile, the invention also discloses a server upgrading device.

Description

Server upgrading method and device
The application is a divisional application of China patent application with the name of 'a server upgrading method and device' which is filed by China patent office, application number 202011447179.7 and 11 days in year 2020.
Technical Field
The present invention relates to the field of internet technologies, and in particular, to a method and an apparatus for upgrading a server.
Background
In recent years, with the development of internet technology, internet companies are increasing, and the internet companies generally provide network services to users by using servers, and server upgrades are often the job to which each internet company is faced.
Server upgrades generally refer to version upgrades to related service programs on a server. Neither the original internet company nor the large internet company can predict the influence of version upgrades.
Currently, when upgrading a server, gray level release is generally adopted, and then problems in a new version program are found according to feedback of a user or feedback of a tester. However, users and testers generally find problems through naked eyes, and the problems cannot be covered, so that the risk of upgrading the server is high and errors are easy to occur.
Disclosure of Invention
The embodiment of the application solves the technical problems that all the problems in the new version program cannot be covered by the server upgrading method in the prior art, the upgrading risk is high and errors are easy to occur by providing the server upgrading method and the device, achieves the technical effects of fully covering the problems in the new version program, reducing the upgrading risk and reducing the error probability.
In a first aspect, the present application provides, by an embodiment of the present application, the following technical solutions:
a server upgrade method, comprising:
receiving a first user request sent by terminal equipment;
transmitting the first user request to a first version service program and transmitting the first user request to a second version service program; wherein the second version service program is an upgraded version of the first version service program;
receiving the first message returned by the first version service program and receiving the second message returned by the second version service program;
comparing the first message with the second message to obtain a comparison result;
and when the comparison result meets the preset condition, releasing the second version service program.
Preferably, the sending the first user request to the second version service program includes:
copying the first user request to obtain a second user request;
and sending the second user request to a second version service program.
Preferably, the receiving the first user request sent by the terminal device includes:
and receiving the first user request sent by a specific terminal device, wherein the specific terminal device corresponds to a specific user, the specific user is a user with the frequency of using a preset application program exceeding a preset frequency in a preset time period, and the preset application program corresponds to the first version service program.
Preferably, the first user request carries an identity token, and before the first user request is sent to the first version service program and the first user request is sent to the second version service program, the method further includes:
extracting the identity token from the first user request;
based on the identity token, carrying out identity verification on the terminal equipment;
after passing the authentication, the steps of sending the first user request to a first version service program and sending the first user request to a second version service program are performed.
Preferably, the comparing the first message with the second message to obtain a comparison result includes:
and comparing the first message with the second message word by word to obtain a comparison result.
Preferably, after comparing the first message with the second message to obtain a comparison result, the method further includes:
extracting abnormal information from the comparison result;
and displaying the abnormal information in a project large disc mode.
Preferably, after comparing the first message with the second message to obtain a comparison result, the method further includes:
and storing the comparison result in a preset document database.
Preferably, said issuing said second version service program includes:
gray level release is carried out on the second version service program; or (b)
Performing rolling release on the second version service program; or (b)
And performing blue-green release on the second version service program.
Preferably, the method is applied in a gateway.
Based on the same inventive concept, in a second aspect, the present application provides the following technical solutions through an embodiment of the present application:
a server upgrade apparatus, comprising:
a first receiving unit, configured to receive a first user request sent by a terminal device;
a transmitting unit configured to transmit the first user request to a first version service program and transmit the first user request to a second version service program; wherein the second version service program is an upgraded version of the first version service program;
the second receiving unit is used for receiving a first message returned by the first version service program and receiving a second message returned by the second version service program;
the comparison unit is used for comparing the first message with the second message to obtain a comparison result;
and the release unit is used for releasing the second version service program when the comparison result meets the preset condition.
Preferably, the transmitting unit is specifically configured to:
copying the first user request to obtain a second user request; and sending the second user request to a second version service program.
Preferably, the first receiving unit is specifically configured to:
and receiving the first user request sent by a specific terminal device, wherein the specific terminal device corresponds to a specific user, the specific user is a user with the frequency of using a preset application program exceeding a preset frequency in a preset time period, and the preset application program corresponds to the first version service program.
Preferably, the device further comprises:
a first extracting unit, configured to extract the identity token from the first user request, where the first user request carries the identity token;
the verification unit is used for carrying out identity verification on the terminal equipment based on the identity token; and after the authentication is passed, calling the sending unit to execute the steps of sending the first user request to a first version service program and sending the first user request to a second version service program.
Preferably, the alignment unit is specifically configured to:
and comparing the first message with the second message word by word to obtain a comparison result.
Preferably, the device further comprises:
the second extraction unit is used for extracting abnormal information from the comparison result after comparing the first message with the second message to obtain the comparison result;
the display unit is used for displaying the abnormal information in a mode of a project big disc.
Preferably, the device further comprises:
and the storage unit is used for storing the comparison result in a preset document database after comparing the first message with the second message to obtain the comparison result.
Preferably, the issuing unit is specifically configured to:
gray level release is carried out on the second version service program; or performing rolling release on the second version service program; or performing blue-green release on the second version service program.
Based on the same inventive concept, in a third aspect, the present application provides the following technical solutions through an embodiment of the present application:
a server upgrade apparatus comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing any of the method steps of the first aspect described above when the program is executed.
Based on the same inventive concept, in a fourth aspect, the present application provides the following technical solutions according to an embodiment of the present application:
a computer readable storage medium having stored thereon a computer program which, when executed by a processor, performs any of the method steps of the first aspect as described above.
One or more technical solutions provided in the embodiments of the present application at least have the following technical effects or advantages:
in an embodiment of the present application, a server upgrade method is disclosed, including: receiving a first user request sent by terminal equipment; transmitting the first user request to a first version service program and transmitting the first user request to a second version service program; wherein the second version service program is an upgraded version of the first version service program; receiving the first message returned by the first version service program and receiving the second message returned by the second version service program; comparing the first message with the second message to obtain a comparison result; and when the comparison result meets the preset condition, releasing the second version service program. Because the first message and the second message are compared, both the visual problem and the non-visual problem can be covered, and the full coverage of the problem is realized. Therefore, the method solves the technical problems that the server upgrading method in the prior art cannot cover all the new version programs, has high upgrading risk and is easy to make mistakes, realizes the full coverage of the problems in the new version programs, reduces the upgrading risk and reduces the technical effect of the error probability.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a block diagram of a server upgrade system according to an embodiment of the present application;
FIG. 2 is a flowchart of a method for upgrading a server according to an embodiment of the present application;
FIG. 3 is a block diagram of a server upgrade apparatus according to an embodiment of the present application;
FIG. 4 is a block diagram of a server upgrade apparatus according to an embodiment of the present application;
fig. 5 is a block diagram of a computer-readable storage medium according to an embodiment of the present application.
Detailed Description
The embodiment of the application solves the technical problems that all problems in a new version program cannot be checked by the server upgrading method in the prior art, the upgrading risk is high and errors are easy to occur, realizes the full coverage of the problems in the new version program, reduces the upgrading risk and reduces the technical effect of error probability.
The technical scheme of the embodiment of the application aims to solve the technical problems, and the overall thought is as follows:
a server upgrade method, comprising: receiving a first user request sent by terminal equipment; transmitting the first user request to a first version service program and transmitting the first user request to a second version service program; wherein the second version service program is an upgraded version of the first version service program; receiving a first message returned by the first version service program and receiving a second message returned by the second version service program; comparing the first message with the second message to obtain a comparison result; and when the comparison result meets the preset condition, releasing the second version service program. Because the first message and the second message are compared, both the visual problem and the non-visual problem can be covered, and the full coverage of the problem is realized. Therefore, the method solves the technical problems that the server upgrading method in the prior art cannot cover all the new version programs, has high upgrading risk and is easy to make mistakes, realizes the full coverage of the problems in the new version programs, reduces the upgrading risk and reduces the technical effect of the error probability.
In order to better understand the above technical solutions, the following detailed description will refer to the accompanying drawings and specific embodiments.
First, the term "and/or" appearing herein is merely an association relationship describing associated objects, meaning that there may be three relationships, e.g., a and/or B, may represent: a exists alone, A and B exist together, and B exists alone. In addition, the character "/" herein generally indicates that the front and rear associated objects are an "or" relationship.
Example 1
The present embodiment provides a server upgrade system, as shown in fig. 1, including: terminal equipment, gateway and server. Wherein the gateway is an optional device, not a necessary device.
Terminal equipment refers to user side equipment capable of networking, for example: PC (Personal Computer ), smart phone, tablet, smart television, etc. A preset Application program is installed on the terminal device, and the user can enjoy the corresponding service through the preset Application program, and the preset Application program can be App (Application), an applet or a program/plug-in running on a browser. Generally, the number of terminal devices is determined by the number of users of the preset application program, and the more the number of users, the more the terminal devices. The preset application program is specifically any application program which needs to be used in a networking mode.
The server refers to a network side device corresponding to the preset application program, and specifically, a service program corresponding to the preset application program is deployed on the server, and is used for providing network services for the preset application program. Generally, the number of servers is determined by the size of the traffic data, and the larger the data size, the more servers are needed, and at this time, a plurality of servers may be used to form a server cluster.
In this embodiment, two versions of service programs (i.e., a first version service program and a second version service program) are deployed on a server, wherein the first version service program is an old version and the second version service program is an upgraded (new) version of the first version service program, and the second version service program is used to upgrade the server. However, new versions of service programs often suffer from some unknown drawbacks (bugs), both middleware upgrades, or DB (database) version upgrades, or component version upgrades, which are risky. Therefore, before the new version is formally released, the stability of the new version needs to be tested.
In the implementation process, the first version service program and the second version service program can be deployed on the same server or on different servers.
And the gateway is positioned between the server and the terminal equipment and is used for converting a communication protocol, so that the terminal equipment and the server are connected, and the terminal equipment and the server can normally communicate. Meanwhile, the gateway also has a safety protection function so as to prevent the terminal equipment from network attack.
In a specific implementation process, the server or the gateway can execute the method in the second embodiment (i.e. the server upgrading method), so that the second version service program is tested, and the second version service program is released when the test passes (i.e. step S105), so that the full coverage test of the problems in the new version program (i.e. the second version service program) is realized, the upgrading risk is reduced, and the error probability is reduced. For the specific implementation process of the server upgrade method, please refer to the second embodiment, and the description thereof is omitted.
Example two
The embodiment provides a server upgrading method which can be applied to a server (namely, program codes corresponding to the method are deployed on the server); or, the method can also be applied to the gateway (namely, the program code corresponding to the method is deployed in the gateway); as shown in fig. 2, the method includes:
step S101: and receiving a first user request sent by the terminal equipment.
In an implementation, the preset application provides many services, some of which require networked access to the server. For example, a query service, an order service, a payment service, etc., all require the terminal device to transmit a user request (i.e., a first user request) to the server based on the user's operation.
For example, taking a preset application as an online fueling application (e.g., "bolus oil" App), it provides online inquiry services, online ordering services, online payment services, etc. The online query service specifically comprises the following steps: inquiring the positions of nearby gas stations, inquiring the oil price of each gas station, inquiring historical orders, inquiring new/second-hand prices, and the like; the online ordering service specifically comprises the following steps: purchasing vehicle insurance on line, purchasing fuel cards on line, purchasing automobile supplies on line, etc.; the online payment service specifically includes: post-fueling cell phone payment, post-online purchase of fueling cards cell phone payment, and the like. These services are all required to be completed with the server, and the terminal device (e.g., smart phone) of the user is required to send a user request (i.e., first user request) to the server based on the operation of the user.
In a specific implementation process, when the terminal device sends the first user request to the server, the first user request may be obtained through a gateway or a test module disposed on the server.
In the embodiment, aiming at the preset application programs (such as 'oil clusters') with larger number of users, the user requests (namely, the first user requests) from the whole network users are adopted to test the new version service program (namely, the second version service program), so that the sources of the test data are wider and more various, the required results of all the test environments can be almost obtained, the complete coverage of the test environments is realized, and the defects in the new version service program (namely, the second version service program) can be found as soon as possible.
Step S102: transmitting the first user request to the first version service program and transmitting the first user request to the second version service program; wherein the second version of the service program is an upgraded version of the first version of the service program.
As an alternative embodiment, when sending the first user request to the second version service program, the first user request may be copied, the second user request may be obtained, and then the second user request may be sent to the second version service program. Here, the first user request and the second user request are identical and may include all of the content in the Http request, except that the first user request is used to test a first version of the service (i.e., an old version of the service) and the second user request is used to test a second version of the service (i.e., a new version of the service).
As an alternative embodiment, the first user request further carries an identity token, and before step S102, the method further includes: extracting an identity token from the first user request; based on the identity token, carrying out identity verification on the terminal equipment; after the authentication is passed, step S102 is performed.
In the implementation process, for each registered user, the server sends a corresponding identity token to the terminal device in advance, so that the user is a legal user. Preferably, the identity token has a validity period, and if the validity period is exceeded, the identity token fails and a new identity token needs to be provided to the user again by the server. Therefore, the risk that a hacker disguises as a legal user can be reduced, the accuracy of the test data is ensured, and the accuracy of the test result is improved.
In the implementation process, when the user at the terminal device side is authenticated, if the authentication is passed, step S102 is performed (i.e., the first user request is sent to the first version service program and the first user request is sent to the second version service program).
In an implementation, after the first user request is sent to the first version service program, the first version service program responds to the first user request and generates a first message.
In a specific implementation process, the first version service program is an old version service program and is deployed on a server.
In a specific implementation, the first version service program may generate the first message based on the first user request accessing the online service database and responding. The online service database stores data materials of all users corresponding to the preset application program. And after the first version service program may further need to return the first message to the terminal device, so that after the preset application program on the terminal device obtains the first message, the current operation (for example, inquiry operation, or order-making operation, or payment operation, etc.) executed by the user is completed.
In an implementation, after the first user request is sent to the second version service program, the second version service program responds to the first user request and generates a second message.
The first version service program and the second version service program are deployed on the server, and the second version service program is an upgrade version of the first version service program.
In the implementation process, the second version service program is a new version service program, and the first version service program and the second version service program can be deployed on the same server or on different servers.
In an implementation, the second version service program may generate the second message based on the first user request accessing the online service database and in response, similar to the first version service program. The online service database stores data materials of all users corresponding to the preset application program. Note that: the second message is used for testing the second version service program, and the second message does not need to be returned to the terminal equipment so as not to cause interference to the user.
Step S103: and receiving a first message returned by the first version service program and receiving a second message returned by the second version service program.
In the implementation process, after the first version service program generates a first message based on a first user request, acquiring the first message; likewise, after the second version application generates the second message based on the first user request, the second message is obtained.
Step S104: and comparing the first message with the second message to obtain a comparison result.
In the specific implementation process, after the first message and the second message are obtained, the first message and the second message can be compared word by word, so that a comparison result is obtained.
In general, for small upgrades, most of the functions in the first version service program and the second version service program are the same, and for unmodified functions, the messages generated by the first version service program and the second version service program should be the same in response to the same user request. However, if there is a defect in the updated second version service program, the same message cannot be generated.
Here, the first message and the second message can be automatically compared word by word through the program, and each place with the difference is found out, so that the stability of the second version service program can be accurately judged.
Conventionally, a manual method has been generally adopted, and has the disadvantage that only visual portions visible to the naked eye can be detected, and some non-visual portions cannot be detected. In this application, the first message and the second message are compared (and compared word by word). Thus, for some non-visualized parts, defects can be found, so that the whole coverage of the problem is realized.
As an alternative embodiment, after step S104, further includes:
extracting abnormal information from the comparison result; and displaying the abnormal information in a project large disc mode.
In the specific implementation process, after a comparison result is obtained, abnormal information can be extracted from the comparison result, wherein the abnormal information refers to inconsistent comparison information, then the abnormal information is sent to the designated equipment, and the designated equipment is controlled to display the abnormal information in a mode of a project large disc. Wherein the designated device may be a developer/tester's computer and/or a smart phone.
In the specific implementation process, the abnormal information is displayed in a project large disc mode, the display effect is more visual, research and development/testing personnel can conveniently and quickly check the abnormal information, and program codes of the second version service program are arranged, so that defects (Bug) can be quickly found.
As an alternative embodiment, after step S104, further includes: and saving the comparison result in a preset document database.
In the specific implementation process, a key can be obtained from the key server for each comparison result, then the comparison result is encrypted based on the key, and then the encrypted result is stored in a preset document database, so that the information security is ensured.
Step S105: and when the comparison result meets the preset condition, releasing the second version service program.
In a specific implementation process, the preset condition may be set manually, for example, the comparison result is that no abnormal information exists, or when a defect (Bug) is removed after the analysis of the abnormal information, the second version service program test is passed, and the second version service program may be issued.
In a specific implementation, when the second version service program is released, gray release, rolling release, blue-green release, or the like can be adopted. The specific release manner of the second version service program is not specifically limited in this embodiment.
As an alternative embodiment, considering that some user requests cannot be repeatedly executed, if the first version service program and the second version service program are executed separately, that is, repeatedly executed twice, an accident may occur. For example, for an order operation or a payment operation, if performed repeatedly twice, it may be possible to order twice or pay twice, which is a serious accident. In order to avoid this, a full amount of on-line service data (corresponding to the full amount of on-line service data being backed up) may be forged in advance, and the forged on-line service data is specially used for the second version service program to perform the test, so in step S102, the second version service program may access the forged on-line service data and obtain the second message when responding to the first user request, without accessing the real on-line service data, thereby avoiding modification of the real on-line service data and avoiding occurrence of an accident.
As an alternative embodiment, step S101 includes:
and receiving a first user request sent by a specific terminal device, wherein the specific terminal device corresponds to a specific user, and the specific user is a user with the frequency of using a preset application program exceeding a preset frequency in a preset time period, and the preset application program corresponds to the first version service program.
Wherein the service data used by the second version service program in response to the first user request is fake service data corresponding to the specific user.
In the specific implementation process, if the whole online service data is forged, the data volume is too large, the cost is high, and the storage resource is wasted. In order to reduce the cost, a part of specific users can be screened out from the whole network users, the part of specific users can be users with the frequency of the preset application program exceeding the preset frequency in the preset time period (in short, the specific users are users with higher frequency of the preset application program in recent use), only the online service data of the part of specific users are forged, and the forged total online service data is not needed, so that the cost is reduced, and the consumption of storage resources is reduced. Therefore, in step S101, only the first user request sent by the specific user needs to be received.
For example, the preset time period may be: last 3 days, or last 5 days, or last week, etc.; the specific value of the preset time period can be flexibly set according to actual conditions, and is not particularly limited herein.
For example, the preset frequency may be: 3 times/day, or 5 times/day, or 10 times/day, etc.; the specific value of the preset frequency can be flexibly set according to actual conditions, and is not particularly limited herein.
The technical scheme in the embodiment of the application at least has the following technical effects or advantages:
in an embodiment of the present application, a server upgrade method is disclosed, including: receiving a first user request sent by terminal equipment; transmitting the first user request to a first version service program and transmitting the first user request to a second version service program; wherein the second version service program is an upgraded version of the first version service program; receiving the first message returned by the first version service program and receiving the second message returned by the second version service program; comparing the first message with the second message to obtain a comparison result; and when the comparison result meets the preset condition, releasing the second version service program. Because the first message and the second message are compared, both the visual problem and the non-visual problem can be covered, and the full coverage of the problem is realized. Therefore, the method solves the technical problems that the server upgrading method in the prior art cannot cover all the new version programs, has high upgrading risk and is easy to make mistakes, realizes the full coverage of the problems in the new version programs, reduces the upgrading risk and reduces the technical effect of the error probability.
Example III
Based on the same inventive concept, as shown in fig. 3, the present embodiment provides a server upgrade apparatus 200, including:
a first receiving unit 201, configured to receive a first user request sent by a terminal device;
a transmitting unit 202, configured to transmit the first user request to a first version service program, and transmit the first user request to a second version service program; wherein the second version service program is an upgraded version of the first version service program;
a second receiving unit 203, configured to receive the first message returned by the first version service program and receive the second message returned by the second version service program;
a comparison unit 204, configured to compare the first message and the second message to obtain a comparison result;
and the publishing unit 205 is configured to publish the second version service program when the comparison result meets a preset condition.
As an alternative embodiment, the sending unit 202 is specifically configured to:
copying the first user request to obtain a second user request; and sending the second user request to a second version service program.
As an alternative embodiment, the first receiving unit 201 is specifically configured to:
and receiving the first user request sent by a specific terminal device, wherein the specific terminal device corresponds to a specific user, the specific user is a user with the frequency of using a preset application program exceeding a preset frequency in a preset time period, and the preset application program corresponds to the first version service program.
As an alternative embodiment, the apparatus 200 further comprises:
a first extracting unit, configured to extract the identity token from the first user request, where the first user request carries the identity token;
the verification unit is used for carrying out identity verification on the terminal equipment based on the identity token; and after the authentication is passed, calling the sending unit to execute the steps of sending the first user request to a first version service program and sending the first user request to a second version service program.
As an alternative embodiment, the alignment unit 206 is specifically configured to:
and comparing the first message with the second message word by word to obtain a comparison result.
As an alternative embodiment, the apparatus 200 further comprises:
the second extraction unit is used for extracting abnormal information from the comparison result after comparing the first message with the second message to obtain the comparison result;
the display unit is used for displaying the abnormal information in a mode of a project big disc.
As an alternative embodiment, the apparatus 200 further comprises:
and the storage unit is used for storing the comparison result in a preset document database after comparing the first message with the second message to obtain the comparison result.
As an alternative embodiment, the issue unit 207 is specifically configured to:
gray level release is carried out on the second version service program; or performing rolling release on the second version service program; or performing blue-green release on the second version service program.
Since the server upgrade apparatus described in this embodiment is an apparatus for implementing the server upgrade method in the first embodiment of the present application, based on the server upgrade method described in the first embodiment of the present application, those skilled in the art can understand the specific implementation of the server upgrade apparatus of this embodiment and various modifications thereof, so how the server upgrade apparatus implements the method in the first embodiment of the present application will not be described in detail herein. The device used by those skilled in the art to implement the method for upgrading a server in the embodiments of the present application falls within the scope of protection intended by the present application.
The technical scheme in the embodiment of the application at least has the following technical effects or advantages:
in an embodiment of the present application, a server upgrade apparatus is disclosed, including: a first receiving unit, configured to receive a first user request sent by a terminal device; a transmitting unit configured to transmit the first user request to a first version service program and transmit the first user request to a second version service program; wherein the second version service program is an upgraded version of the first version service program; the second receiving unit is used for receiving the first message returned by the first version service program and receiving the second message returned by the second version service program; the comparison unit is used for comparing the first message with the second message to obtain a comparison result; and the release unit is used for releasing the second version service program when the comparison result meets the preset condition. Because the first message and the second message are compared, both the visual problem and the non-visual problem can be covered, and the full coverage of the problem is realized. Therefore, the method solves the technical problems that the server upgrading method in the prior art cannot cover all the new version programs, has high upgrading risk and is easy to make mistakes, realizes the full coverage of the problems in the new version programs, reduces the upgrading risk and reduces the technical effect of the error probability.
Example IV
Based on the same inventive concept, as shown in fig. 4, the present embodiment provides a server upgrade apparatus 300, including a memory 310, a processor 320, and a computer program 311 stored in the memory 310 and capable of running on the processor 320, where the processor 320 can implement the following method when executing the program 311:
receiving a first user request sent by terminal equipment; transmitting the first user request to a first version service program and transmitting the first user request to a second version service program; wherein the second version service program is an upgraded version of the first version service program; receiving the first message returned by the first version service program and receiving the second message returned by the second version service program; comparing the first message with the second message to obtain a comparison result; and when the comparison result meets the preset condition, releasing the second version service program.
In a specific implementation process, the processor 320 may also implement the method steps of any of the foregoing embodiments when executing the program 311.
Example five
Based on the same inventive concept, as shown in fig. 5, the present embodiment provides a computer-readable storage medium 400, on which a computer program 411 is stored, which program 411, when executed by a processor, can implement the following method:
receiving a first user request sent by terminal equipment; transmitting the first user request to a first version service program and transmitting the first user request to a second version service program; wherein the second version service program is an upgraded version of the first version service program; receiving the first message returned by the first version service program and receiving the second message returned by the second version service program; comparing the first message with the second message to obtain a comparison result; and when the comparison result meets the preset condition, releasing the second version service program.
In a specific implementation, the program 411 may also implement the method steps of any of the above embodiments when executed by a processor.
It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. It is therefore intended that the following claims be interpreted as including the preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various modifications and variations can be made to the present invention without departing from the spirit or scope of the invention. Thus, it is intended that the present invention also include such modifications and alterations insofar as they come within the scope of the appended claims or the equivalents thereof.

Claims (10)

1. A method for upgrading a server, comprising:
determining a specific user, and backing up online service data corresponding to the specific user to obtain fake service data corresponding to the specific user;
receiving a first user request sent by terminal equipment;
transmitting the first user request to a first version service program, and transmitting the first user request to a second version service program when a user corresponding to the first user request belongs to the specific user; wherein the second version service program is an upgraded version of the first version service program;
receiving a first message returned by the first version service program, and receiving a second message returned by the second version service program after the first version service program requests to access the fake service data and responds;
comparing the first message with the second message to obtain a comparison result;
and when the comparison result meets the preset condition, releasing the second version service program, wherein the preset condition comprises that when the function requested by the first user request is the function of which the second version service program is not modified relative to the first version service program, the first message is identical to the second message.
2. The method of claim 1, wherein the sending the first user request to a second version service program comprises:
copying the first user request to obtain a second user request;
and sending the second user request to a second version service program.
3. The method of claim 1, wherein,
the specific user is a user who uses a preset application program in a preset time period, wherein the frequency of the preset application program exceeds a preset frequency, and the preset application program corresponds to the first version service program.
4. The method of claim 1, wherein the first user request carries an identity token, and further comprising, prior to said sending the first user request to a first version service, and said sending the first user request to a second version service:
extracting the identity token from the first user request;
based on the identity token, carrying out identity verification on the terminal equipment;
after passing the authentication, the steps of sending the first user request to a first version service program and sending the first user request to a second version service program are performed.
5. The method of claim 1, wherein comparing the first message and the second message to obtain a comparison result comprises:
and comparing the first message with the second message word by word to obtain a comparison result.
6. The method of claim 1, further comprising, after comparing the first message with the second message to obtain a comparison result:
extracting abnormal information from the comparison result;
and displaying the abnormal information in a project large disc mode.
7. The method of claim 1, further comprising, after comparing the first message with the second message to obtain a comparison result:
and storing the comparison result in a preset document database.
8. A server upgrade apparatus, comprising:
a first receiving unit, configured to receive a first user request sent by a terminal device;
a transmitting unit configured to transmit the first user request to a first version service program and transmit the first user request to a second version service program; wherein the second version service program is an upgraded version of the first version service program;
the second receiving unit is used for receiving a first message returned by the first version service program and receiving a second message returned by the second version service program;
the comparison unit is used for comparing the first message with the second message to obtain a comparison result;
and the release unit is used for releasing the second version service program when the comparison result meets the preset condition.
9. A server upgrade apparatus comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor is operable to perform the method steps of any one of claims 1 to 7 when the program is executed.
10. A computer readable storage medium, on which a computer program is stored, characterized in that the program, when being executed by a processor, is adapted to carry out the method steps of any one of claims 1 to 7.
CN202311287724.4A 2020-12-11 2020-12-11 Server upgrading method and device Pending CN117579486A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311287724.4A CN117579486A (en) 2020-12-11 2020-12-11 Server upgrading method and device

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202311287724.4A CN117579486A (en) 2020-12-11 2020-12-11 Server upgrading method and device
CN202011447179.7A CN112636954B (en) 2020-12-11 2020-12-11 Server upgrading method and device

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
CN202011447179.7A Division CN112636954B (en) 2020-12-11 2020-12-11 Server upgrading method and device

Publications (1)

Publication Number Publication Date
CN117579486A true CN117579486A (en) 2024-02-20

Family

ID=75310271

Family Applications (2)

Application Number Title Priority Date Filing Date
CN202011447179.7A Active CN112636954B (en) 2020-12-11 2020-12-11 Server upgrading method and device
CN202311287724.4A Pending CN117579486A (en) 2020-12-11 2020-12-11 Server upgrading method and device

Family Applications Before (1)

Application Number Title Priority Date Filing Date
CN202011447179.7A Active CN112636954B (en) 2020-12-11 2020-12-11 Server upgrading method and device

Country Status (1)

Country Link
CN (2) CN112636954B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113489788B (en) * 2021-07-06 2024-01-30 广州华多网络科技有限公司 Data route control and data analysis processing method and device, equipment and medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9459860B2 (en) * 2014-04-30 2016-10-04 Paypal, Inc. Mixed mode session management
CN104993946B (en) * 2015-06-01 2019-04-05 华为技术有限公司 Appraisal procedure, the device and system of gray scale publication
CN107809445A (en) * 2016-08-31 2018-03-16 阿里巴巴集团控股有限公司 Service request handling system, method and apparatus
CN110806971A (en) * 2019-09-25 2020-02-18 上海艾融软件股份有限公司 Version testing method and device and electronic equipment
CN110737548B (en) * 2019-10-28 2022-06-10 聚好看科技股份有限公司 Data request method and server

Also Published As

Publication number Publication date
CN112636954B (en) 2023-10-31
CN112636954A (en) 2021-04-09

Similar Documents

Publication Publication Date Title
KR102340474B1 (en) System, method and computer program for data scrapping using script engine
CN108243404B (en) Method, device and equipment for verifying binding state of mobile phone number
JP6707586B2 (en) Data scraping system, method, and computer program using script engine
KR20180113229A (en) Loan service providing method using black chain and system performing the same
CN109145590A (en) A kind of function hook detection method, detection device and computer-readable medium
CN112907243B (en) Block chain transaction auditing method and device
CN107896227A (en) Data calling method and device and equipment data cloud platform
CN104464114A (en) System and method for managing and monitoring safety of application of financial terminals
CN112636954B (en) Server upgrading method and device
CN109271190A (en) A kind of device updating method and embedded device
RU2745340C2 (en) Virtual marketplace for distributed tools in an enterprise environment
CN107277108B (en) Method, device and system for processing messages at nodes of block chain
CN113592625A (en) Credit report generation method and device and electronic equipment
CN112085611A (en) Asynchronous data verification method and device, electronic equipment and storage medium
US20020095606A1 (en) Method and apparatus for delivering software applications as services over the internet using a transaction-based utility model
CN116501929A (en) Electronic certificate generation method and device and electronic equipment
CN113596600B (en) Security management method, device, equipment and storage medium for live broadcast embedded program
KR101651586B1 (en) System for managing security vulnerability found from step developing system to step operating system
CN114417061A (en) Enterprise electronic data management method and system
CN114240436A (en) Electronic certificate verification and cancellation method and device, computer equipment and storage medium
CN110796436A (en) Process management system, method, device and readable medium for shared office
CN111652539A (en) Abnormal event monitoring method, device and system
EP2521088A1 (en) System for automated control of data of documents, authenticity of documents and their electronic archiving
CN109460651A (en) The login method and device of billing system
CN113159768B (en) Transaction certificate storage method, device and equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20240415

Address after: Room 2101, Block B, Platinum Plaza, 5-15 Wenling Road, Laoshan District, Qingdao City, Shandong Province, 266100

Applicant after: Shandong Energy Chain Holding Co.,Ltd.

Country or region after: China

Address before: Building 7, Yard 1, Yaojiayuan South Road, Chaoyang District, Beijing, 100123, 5th Floor, Zone G

Applicant before: CHEZHUBANG (BEIJING) TECHNOLOGY Co.,Ltd.

Country or region before: China