CN109032643A - The method and apparatus of software upgrading - Google Patents

The method and apparatus of software upgrading Download PDF

Info

Publication number
CN109032643A
CN109032643A CN201810837430.7A CN201810837430A CN109032643A CN 109032643 A CN109032643 A CN 109032643A CN 201810837430 A CN201810837430 A CN 201810837430A CN 109032643 A CN109032643 A CN 109032643A
Authority
CN
China
Prior art keywords
server
software
business
sent
edition number
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
CN201810837430.7A
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.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and 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 Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201810837430.7A priority Critical patent/CN109032643A/en
Publication of CN109032643A publication Critical patent/CN109032643A/en
Pending legal-status Critical Current

Links

Classifications

    • 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
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The embodiment of the present application provides a kind of method and apparatus of software upgrading, this method comprises: the software of the second edition number is sent to second server, so that the software upgrading of the first version number of installation is the software of the second edition number by second server;Test case corresponding with the type of the software is sent to second server, so that second server uses the software of the testing case second edition number;Test result is obtained from second server;If the test result instruction test passes through, determine whether second server can be normally carried out business, if so, the software of the second edition number is sent to each third server, so that the software upgrading of the first version number of installation is the software of the second edition number by each third server;Second server and each third server are the server in same data center's hardware system.The application, which reduces software upgrading, influences the risk of entire data center's hardware system offer infrastructure service.

Description

The method and apparatus of software upgrading
Technical field
The invention relates to computer technology more particularly to a kind of method and apparatus of software upgrading.
Background technique
The change of data center's hardware system shows as science operation, i.e. data center's hardware system part for including more Or whole servers do identical change operation, such as BIOS upgrading change, BMC firmware upgrade change, operating system nucleus version The upgrading of this or driver change etc..
Currently, needing software or hardware to be changed when the change of a certain software of data center's hardware system or hardware As soon as after new version is successfully tested under the enterprising line of server of data center's hardware system, being changed to institute's some need Server change, there are the risks that the infrastructure service of data center's hardware system can not be normally carried out.
Summary of the invention
The embodiment of the present application provides a kind of method and apparatus of software upgrading, and reducing software change influences in entire data The risk of heart hardware system offer infrastructure service.
In a first aspect, the embodiment of the present application provides a kind of method of software upgrading, it is applied to first server, comprising:
The software of the second edition number is sent to second server, so that the second server is by the first version of installation Number software upgrading be the second edition number software;
Test case corresponding with the type of the software is sent to the second server, so that second clothes Business device uses the software of the second edition number described in the testing case;
Test result is obtained from the second server;
If the test result instruction test passes through, determine whether the second server can be normally carried out business, if It is that the software of the second edition number is then sent to each third server, so that each third server is by described the of installation The software upgrading of one version number is the software of the second edition number;The second server and each third server are same Server in one data central hardware system.
In a kind of possible design, by the software of the second edition number be sent to second server before, further includes:
Obtain the respective machine information of each server that data center's hardware system includes;The machine information includes The corresponding manufacturer of each software installed in the version number for each software installed in server and server;
It determines the software for being equipped with the first version number in data center's hardware system and the software is corresponding Manufacturer is that any server of default production firm is the second server.
In a kind of possible design, after determining the second server, further includes:
Solicited message is sent to the second server;The solicited message is used to indicate the second server and stops just In each business of progress.
In a kind of possible design, further includes: after the second server stops ongoing each business, from institute State second server obtain and save the second server configuration information and each respective business datum of the business;
If the test result instruction test passes through, the method also includes:
The business datum of the configuration information of the second server and each business is sent to the second server, So that the second server is configured according to the configuration information recovery, and restore each according to each business datum The business.
In a kind of possible design, whether the determination second server can be normally carried out business, comprising:
If can receive the first feedback information at interval of the second preset duration in the first preset duration, it is determined that described Second server can be normally carried out business;First feedback information indicates that the second server can be normally carried out industry Business;
Alternatively,
If not receiving the second feedback information in third preset duration, it is determined that the second server can normally into Industry business;Second feedback information indicates that the second server can not be normally carried out business.
In a kind of possible design, if test result instruction test does not pass through, sent out to the second server Send the first control information;The first control information indicates the second server according to the configuration information and each business Data, the state before being rolled back to the software upgrading.
In a kind of possible design, however, it is determined that the second server can not be normally carried out business, then to described Two servers send the second control information;The second control information indicate the second server according to the configuration information and Each business datum, the state before being rolled back to the software upgrading.
Second aspect, the embodiment of the present application provide a kind of method of software upgrading, are applied to second server, comprising:
The software of the second edition number is obtained from first server, and is by the software upgrading of the first version number of installation The software of the second edition number;
Test case corresponding with the type of the software is obtained from first server, and is surveyed using the test case Try the software of the second edition number;
Test result is sent to the first server;
If the test result instruction test passes through, detect whether second server can be normally carried out business.
The third aspect, the embodiment of the present application provide a kind of device of software upgrading, comprising:
Sending module, for the software of the second edition number to be sent to second server, so that the second server will The software upgrading of the first version number of installation is the software of the second edition number;
The sending module, for test case corresponding with the type of the software to be sent to the second service Device, so that software of the second server using the second edition number described in the testing case;
Module is obtained, for obtaining test result from the second server;
Determining module determines whether the second server can be just if passing through for test result instruction test Often carry out business;
The sending module is also used to if it is determined that the second server can be normally carried out business, then by the second edition Number software be sent to each third server so that each third server by the software of the first version number of installation more It is newly the software of the second edition number;The second server and the second server are same data center's hardware system Server in system.
In a kind of possible design, the acquisition module is also used to: the software of the second edition number is being sent to second Before server, the respective machine information of each server that data center's hardware system includes is obtained;The machine information Version number and the interior corresponding manufacturer of each software installed of server including each software installed in server;
It determines the software for being equipped with the first version number in data center's hardware system and the software is corresponding Manufacturer is that any server of default production firm is the second server.
In a kind of possible design, the sending module is also used to:
After determining the second server, solicited message is sent to the second server;The solicited message is used Stop ongoing each business in the instruction second server.
In a kind of possible design, the acquisition module is also used to: being stopped in the second server ongoing After each business, obtained from the second server and save the second server configuration information and each business it is respective Business datum;
If the test result instruction test passes through, the sending module is also used to:
The business datum of the configuration information of the second server and each business is sent to the second server, So that the second server is configured according to the configuration information recovery, and restore each according to each business datum The business.
In a kind of possible design, the determining module is specifically used for:
If can receive the first feedback information at interval of the second preset duration in the first preset duration, it is determined that described Second server can be normally carried out business;First feedback information indicates that the second server can be normally carried out industry Business;
Alternatively,
If not receiving the second feedback information in third preset duration, it is determined that the second server can normally into Industry business;Second feedback information indicates that the second server can not be normally carried out business.
Fourth aspect, the embodiment of the present application provide a kind of device of software upgrading, comprising:
Module is obtained, for obtaining the software of the second edition number from first server, and by the first version number of installation The software upgrading is the software of the second edition number;
The acquisition module, for obtaining test case corresponding with the type of the software from first server, and Using the software of the second edition number described in the testing case;
Sending module, for sending test result to the first server;
Detection module, if for the test result instruction test pass through, detect the software upgrading device whether Business can be normally carried out.
5th aspect, the embodiment of the present application provide a kind of server, comprising: processor, the processor and memory coupling It closes;
The memory is used for, and stores computer program;
The processor is used for, and calls the computer program stored in the memory, to realize first aspect and On the one hand method described in any possible design.
6th aspect, the embodiment of the present application provides a kind of readable storage medium storing program for executing, including program or instruction, when described program or When instruction is run on computers, method described in first aspect and any possible design of first aspect is performed.
7th aspect, the embodiment of the present application provide a kind of server, comprising: processor, the processor and memory coupling It closes;
The memory is used for, and stores computer program;
The processor is used for, and calls the computer program stored in the memory, to realize second aspect and Method described in the two any possible designs of aspect.
Eighth aspect, the embodiment of the present application provide a kind of readable storage medium storing program for executing, including program or instruction, when described program or When instruction is run on computers, method described in second aspect and any possible design of second aspect is performed.
The method of the software upgrading of the present embodiment needs the service in data center's hardware system of the software to update Under the enterprising line of device test and line on test, and when under line test and line on test test pass through after, just in others The update that the software is carried out on the server in data center's hardware system for needing to update, reducing software upgrading influences entirely The risk of data center's hardware system offer infrastructure service.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is this Shen Some embodiments please for those of ordinary skill in the art without any creative labor, can be with It obtains other drawings based on these drawings.
Fig. 1 is system architecture diagram provided by the embodiments of the present application;
Fig. 2 is the interaction figure of the method for software upgrading provided by the embodiments of the present application;
Fig. 3 is the structural schematic diagram one of the device of software upgrading provided by the embodiments of the present application;
Fig. 4 is the structural schematic diagram two of the device of software upgrading provided by the embodiments of the present application;
Fig. 5 is the structural schematic diagram one of server provided by the embodiments of the present application
Fig. 6 is the structural schematic diagram two of server provided by the embodiments of the present application.
Specific embodiment
To keep the purposes, technical schemes and advantages of the embodiment of the present application clearer, below in conjunction with the embodiment of the present application In attached drawing, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described embodiment is Some embodiments of the present application, instead of all the embodiments.Based on the embodiment in the application, those of ordinary skill in the art Every other embodiment obtained without creative efforts, shall fall in the protection scope of this application.
Fig. 1 is system architecture diagram provided by the embodiments of the present application;Referring to Fig. 1, which includes: for software upgrading Server 11 and data central hardware system 12;
Wherein, data center's hardware system 12 includes multiple servers, for providing infrastructure service for business.
Illustrate the method for software upgrading provided by the present application using specific embodiment below.In the following embodiments, it uses It is known as first server in the server of software upgrading.
Fig. 2 is the interaction figure of the method for software upgrading provided by the embodiments of the present application, as shown in Fig. 2, the side of the present embodiment Method may include:
Step S101, the software of the second edition number is sent to second server by first server;
Step S102, the software upgrading of the first version number of installation is the software of the second edition number by second server;
Step S103, test case corresponding with the type of the software is sent to second server by first server;
Step S104, second server is according to the software of the testing case second edition number;
Step S105, test result is sent to first server by second server;
If test result instruction test does not pass through, 106~step S107 is thened follow the steps, if test result instruction test is logical It crosses, thens follow the steps S108;
Step S106, first server sends the first control information to second server;First control information instruction second Server is rolled back to the state of the software before changing according to configuration information and each business datum;
Step S107, second server is rolled back to the state before the software upgrading;
Step S108, first server determines whether second server can be normally carried out business;
If second server can be normally carried out business, S109~step S110 is thened follow the steps, if second server is not It can be normally carried out business, then follow the steps S111~step S112;
Step S109, the software of the second edition number is sent to each third server by first server;
Step S110, the software upgrading of the first version number of installation is the software of the second edition number by third server;
Step S111, first server sends the second control information to second server;Second control information instruction second Server is rolled back to the state of the software before changing according to configuration information and each business datum;
Step S112, second server control second server is rolled back to the state of the software before changing.
Specifically, the second server in the present embodiment and each third server belong to same data center's hardware system In server.
For example, a certain software there is a problem, need to be updated to the software of more highest version, then user can pass through ancillary equipment User interface input test instruction, include in test instruction software to be updated version number and software to be updated it is corresponding Manufacturer;After ancillary equipment gets test instruction, test request is generated, tests the version number in asking including software to be updated And the corresponding manufacturer of software to be updated;Test request is sent to first server by ancillary equipment.
First server receives test request, obtains each server that data center's hardware system includes according to test request Respective machine information, machine information are as shown in table 1:
Table 1
After getting the respective machine information of each server that data center's hardware system includes, first server according to Each machine information determines second server from each server that data center's hardware system includes.
Specifically, the machine information for each server that data center's hardware system includes, the software in machine information are matched Confidence breath includes the corresponding factory of each software installed in the version number and server for each software installed in respective server Quotient;Then according to each machine information, second server is determined from each server that data center's hardware system includes, comprising:
It determines the software for being equipped with first version number in data center's hardware system and the corresponding manufacturer of software is default life Any server for producing manufacturer is second server.Software herein is software to be updated, and first version number is to test Please in include software to be updated version number.Wherein, the production firm for the software that production firm is first version number is preset, It is also the production firm of the software of the second edition number;In other words, the production firm that production firm is software to be updated is preset.
First server is according to each machine information of acquisition, from the version number for being equipped with software to be updated and software to be updated For at least one server of first version number (version number for the software to be updated for namely including in test request) with Machine chooses a server as second server.At least one server is the server in data center's hardware system.
After first server determines second server, solicited message is sent to second server;Solicited message instruction second Server stops ongoing each business;After second server receives solicited message, stop ongoing each business, and It is sent to first server and requests successful message.If after second server receives solicited message, being not off and carrying out Each business process, then second server to first server send request failure news.
If first server receives the successful message of request, first server obtains from second server and saves the The business datum of the configuration information of two servers and above-mentioned each business.Wherein, configuration information includes the CPU information of second server (such as CPU model), hard disk information, firmware version number etc..
First server is after saving the business datum of configuration information and each business of second server, by the second edition number Software be sent to second server;The software upgrading of the first version number of installation is the soft of the second edition number by second server Part.The second edition number herein is higher than first version number, and the software of first version number and the software of the second edition number are same Software, and production firm is identical, only version number is different.
It, can be to the first clothes after the software of the first version number of installation is changed to the software of the second edition number by second server Business device sends the message being updated successfully, and first server is after receiving the message being updated successfully, according to the soft of the second edition number The type of part determines the test case used.If the type than the software of the second edition number is functional form software, it is determined that adopt With function test case, if the type of the software of the second edition number is performance type software, it is determined that using performance test case etc. Deng.
The test case corresponding with the type of the software of the second edition number determined is sent to by first server Two servers, second server receive test case, and according to the software of the testing case second edition number.The process belongs to Test process under the line of the software of the second edition number.
Test result to after the software test of the second edition number, is sent to the using test case by second server One server;If the software test of the test result instruction second edition number passes through, first server determines that second server is It is no to be normally carried out business.If test result instruction test does not pass through, first server sends first to second server Control information;First control information instruction second server is rolled back to software to be updated according to configuration information and each business datum State before update.
Specifically, if test result instruction test passes through, first server is matched the second server stored before The business datum of confidence breath and each business is sent to second server;After second server receives, according to configuration information recovery The configuration of second server, and according to ongoing each business before the business datum of each business recovery stopping business.Herein The configuration of recovery second server refer to the software in addition to the second edition number, others configuration full recoveries are at the software upgrading Preceding configuration.It is understood that if the software upgrading of the first version number of installation is the second edition number by second server During software, do not have an impact other configurations, then does not have to the configuration for restoring second server, if second server will pacify During the software upgrading of the first version number of dress is the software of the second edition number, other configurations are influenced, then have been needed Restore the configuration of second server.
Wherein it is determined that whether second server can be normally carried out business, comprising:
If can receive the first feedback information at interval of the second preset duration in the first preset duration, it is determined that second Server can be normally carried out business;First feedback information instruction second server can be normally carried out business;Wherein, first is pre- If duration can be also 48h etc., the second preset duration can be 1h, 2h etc. for for 24 hours.
Alternatively,
If not receiving the second feedback information in third preset duration, it is determined that second server can be normally carried out industry Business;Second feedback information instruction second server can not be normally carried out business.Wherein, third preset duration can be for 24 hours, may be used also For 48h etc..
Above-mentioned the second feedback information and third feedback information can be second server transmission, be also possible to others What equipment was sent.Concretely: after second server passes through the software test of the second edition number, second server can be detected certainly Whether body can be normally carried out business, can be at interval of preset duration to first server if business can be normally carried out by detecting The second feedback information is sent, correspondingly, if first server can connect in the first preset duration at interval of the second preset duration Receive the first feedback information, it is determined that second server can be normally carried out business.In other words, second server is detecting certainly When body can not be normally carried out business, the second feedback information just is sent to server, correspondingly, if first server is in third The second feedback information is not received in preset duration, it is determined that second server can be normally carried out business.
I.e. in second server recovery configuring, after restoring each business, second server restarts race business, that is, Second server by the software upgrading of first version number be the second edition number software after, into the line to the software on test step Suddenly, can business be normally carried out after the software upgrading of first version number is the software of the second edition number by second server, Business is normally carried out whether will affect second server when determining that the software of the second edition number is run on line;If second service Device can be normally carried out business after the software upgrading of first version number is the software of the second edition number, illustrate the soft of the second edition number Part does not influence second server and is normally carried out business, solves the bug of the software of first version number, it may also be said to the second edition number Software really pass through test.If second server cannot after the software upgrading of first version number is the software of the second edition number It is normally carried out business, illustrates that the software impact second server of the second edition number is normally carried out business, and the unresolved second edition Number the bug of software there is new bug in other words, it may also be said to the software of the second edition number is not over test.
Even second server can not be normally carried out business, then send the second control information to second server;Second Control state of the information instruction second server according to configuration information and each business datum, before being rolled back to software upgrading to be updated.
Further, if first server determines that second server is updated to second from first version number in software to be updated After version number, it is normally carried out business, starts to be updated the software for the first version number installed in each third server;Third Server is the server for being equipped with the software of first version number, and third server is to pacify in data center's hardware system in other words Server that is equipped with software to be updated but not being second server;That is soft from needs more fresh target in the present embodiment An optional server test on test and line under line to the target software of top version number in the server of part, when under line Test and line on test test pass through after, just others need to update target software servers on carry out target software Update, reduce software upgrading and influence entire data center's hardware system the risk of infrastructure service is provided.
And in the prior art, after being successfully tested under the target software line to top version number, just directly in other needs The update that target software is carried out on the server of target software is updated, if to service under scene on the target software line of top version number The business of device has and influences (do not eliminate the bug of the software of first version number or introduce new bug), then institute's some need is more The server of fresh target software cannot proceed normally business, therefore will affect entire data center after target software update Hardware system provides infrastructure service.
Specifically, the process that the software for the first version number installed in each third server is updated can be the following two kinds Process.
A kind of achievable process are as follows: first server is determining that second server can be normally carried out after software upgrading After business, according to the machine information obtained in the above process, determines in data center's hardware system and first version number is installed Software and the corresponding manufacturer of the software are that the server of default production firm is third server.Third server may have more It is a, it is also possible to there is 1, it is also possible to be not present.
After first server determines each third server, solicited message is sent to each third server;Solicited message instruction Third server stops ongoing each business;After each third server receives solicited message, stop ongoing each Business, and sent to first server and request successful message.If being not off just after third server receives solicited message In the process of each business of progress, then each third server sends request failure news to first server.
If third server receives the successful message of request, first server is obtained and is saved from each third server The business datum of the configuration information of each third server and above-mentioned each business.Wherein, configuration information includes the CPU of third server Information (such as CPU model), hard disk information, firmware version number etc..
First server is after saving the business datum of configuration information and each business of each third server, by the second edition Number software be sent to each third server;The software upgrading of the first version number of installation is the second edition by each third server Number software.The second edition number herein is higher than first version number, and the software of first version number and the software of the second edition number are Same software, only version number is different.
Each third server by the software upgrading of the first version number of installation be the second edition number software after, can be to first Server sends the message being updated successfully, and first server is after receiving the message being updated successfully, and first server is by before The configuration information of each third server and the business datum of each business of storage are sent to each third server;Each third server After receiving, according to the respective configuration of configuration information recovery, and according to the business datum of each business restore stopping business before just In each business of progress.The configuration of recovery third server herein refers to the software in addition to the second edition number, others configuration Full recovery is at the configuration before the software upgrading.It is understood that if third server is by the soft of the first version number of installation During part is updated to the software of the second edition number, do not have an impact other configurations, then does not have to restore third server Configuration, if third server by the software upgrading of the first version number of installation be the second edition number software during, influence Other configurations have been arrived, then have needed to restore the configuration of third server.
Another achievable process are as follows: user can input Disposition Instructions by the user interface of ancillary equipment, and deployment refers to Version number's (above-mentioned first version number) and the corresponding manufacturer of software to be updated in order including software to be updated is (above-mentioned The corresponding manufacturer of the software of first version number or the corresponding manufacturer of software of the second edition number);Ancillary equipment gets deployment After instruction, deployment request is generated, disposes version number and the corresponding factory of software to be updated in asking including software to be updated Quotient;Deployment request is sent to first server by ancillary equipment.
First server receives deployment request, each server for including according to deployment request data center hardware system Respective machine information.Subsequent process is same as above achievable process in one, and details are not described herein again.
The method of the software upgrading of the present embodiment needs the service in data center's hardware system of the software to update Under the enterprising line of device test and line on test, and when under line test and line on test test pass through after, just in others The update that the software is carried out on the server in data center's hardware system for needing to update, reducing software upgrading influences entirely The risk of data center's hardware system offer infrastructure service.
It should be understood that magnitude of the sequence numbers of the above procedures are not meant that the order of the execution order, the execution of each process is suitable Sequence should be determined by its function and internal logic, and the implementation process without coping with the embodiment of the present application constitutes any restriction.
Fig. 3 is the structural schematic diagram one of the device of software upgrading provided by the embodiments of the present application, as shown in figure 3, this implementation The device of example may include: sending module 31, obtain module 32 and determining module 33.
Sending module 31, for the software of the second edition number to be sent to second server, so that the second server It is the software of the second edition number by the software upgrading of the first version number of installation;
The sending module 31, for test case corresponding with the type of the software to be sent to second clothes Business device, so that software of the second server using the second edition number described in the testing case;
Module 32 is obtained, for obtaining test result from the second server;
Determining module 33 determines that the second server whether can if passing through for test result instruction test It is normally carried out business;
The sending module 31 is also used to if it is determined that the second server can be normally carried out business, then by the second edition This number software is sent to each third server, so that each third server is by the software of the first version number of installation It is updated to the software of the second edition number;The second server and each third server are that the same data center is hard Server in part system.
The device of the present embodiment can be used for executing the technical solution of first server in above method embodiment, in fact Existing principle is similar with technical effect, and details are not described herein again.
In a kind of possible design, the acquisition module 32 is also used to: in being sent to the software of the second edition number Before second server, the respective machine information of each server that data center's hardware system includes is obtained;The machine Information includes the corresponding manufacturer of each software installed in the version number and server for each software installed in server;
It determines the software for being equipped with the first version number in data center's hardware system and the software is corresponding Manufacturer is that any server of default production firm is the second server.
In a kind of possible design, the sending module 31 is also used to:
After determining the second server, solicited message is sent to the second server;The solicited message is used Stop ongoing each business in the instruction second server.
In a kind of possible design, the acquisition module 31 is also used to: being carried out in second server stopping Each business after, obtained from the second server and the configuration information for saving the second server and each business respectively Business datum;
If the test result instruction test passes through, the sending module 31 is also used to:
The business datum of the configuration information of the second server and each business is sent to the second server, So that the second server is configured according to the configuration information recovery, and restore each according to each business datum The business.
In a kind of possible design, the determining module 33 is specifically used for:
If can receive the first feedback information at interval of the second preset duration in the first preset duration, it is determined that described Second server can be normally carried out business;First feedback information indicates that the second server can be normally carried out industry Business;
Alternatively,
If not receiving the second feedback information in third preset duration, it is determined that the second server can normally into Industry business;Second feedback information indicates that the second server can not be normally carried out business.
In a kind of possible design, the sending module 31 is also used to: if test result instruction test is obstructed It crosses, then sends the first control information to the second server;The first control information indicate the second server according to The configuration information and each business datum, the state before being rolled back to the software upgrading.
In a kind of possible design, the sending module 31 is also used to: if it is determined that the second server can not be just Business is often carried out, then sends the second control information to the second server;Second control information instruction, second clothes State of the business device according to the configuration information and each business datum, before being rolled back to the software upgrading.
The device of the present embodiment can be used for executing the technical solution of first server in above method embodiment, in fact Existing principle is similar with technical effect, and details are not described herein again.
Fig. 4 is the structural schematic diagram two of the device of software upgrading provided by the embodiments of the present application, as shown in figure 3, this implementation The device of example may include: to obtain module 41, sending module 42 and detection module 43.
Module 41 is obtained, for obtaining the software of the second edition number from first server, and by the first version number of installation The software upgrading be the second edition number software;
The acquisition module 41, for obtaining test case corresponding with the type of the software from first server, And using the software of the second edition number described in the testing case;
Sending module 42, for sending test result to the first server;
Detection module 43, if passing through for test result instruction test, the device for detecting the software upgrading is It is no to be normally carried out business.
The device of the present embodiment can be used for executing the technical solution of second server in above method embodiment, in fact Existing principle is similar with technical effect, and details are not described herein again.
Fig. 5 is the structural schematic diagram one of server provided by the embodiments of the present application, comprising: including processor 51, memory 52 and communication bus 53, communication bus 53 is used for the connection of each electronic device, wherein
The memory 52 is used for, and stores computer program;
The processor 53 is used for, and calls the computer program stored in the memory, to realize that the above method is implemented The corresponding method of first server in example.
The embodiment of the present application provides a kind of readable storage medium storing program for executing, including program or instruction, when described program or instruction are being counted When running on calculation machine, the corresponding method of first server is performed in above method embodiment.
Fig. 6 is the structural schematic diagram two of server provided by the embodiments of the present application, comprising: including processor 61, memory 62 and communication bus 63, communication bus 63 is used for the connection of each electronic device;Wherein,
The memory 62 is used for, and stores computer program;
The processor 61 is used for, and calls the computer program stored in the memory, to realize that the above method is implemented The corresponding method of second server in example.
The embodiment of the present application provides a kind of readable storage medium storing program for executing, including program or instruction, when described program or instruction are being counted When running on calculation machine, the corresponding method of second server is performed in above method embodiment.
Those of ordinary skill in the art will appreciate that: realize that all or part of the steps of above-mentioned each method embodiment can lead to The relevant hardware of program instruction is crossed to complete.Program above-mentioned can be stored in a computer readable storage medium.The journey When being executed, execution includes the steps that above-mentioned each method embodiment to sequence;And storage medium above-mentioned include: ROM, RAM, magnetic disk or The various media that can store program code such as person's CD.
Finally, it should be noted that the above various embodiments is only to illustrate the technical solution of the application, rather than its limitations;To the greatest extent Pipe is described in detail the application referring to foregoing embodiments, those skilled in the art should understand that: its according to So be possible to modify the technical solutions described in the foregoing embodiments, or to some or all of the technical features into Row equivalent replacement;And these are modified or replaceed, each embodiment technology of the application that it does not separate the essence of the corresponding technical solution The range of scheme.

Claims (18)

1. a kind of method of software upgrading, which is characterized in that be applied to first server, comprising:
The software of the second edition number is sent to second server, so that the second server is by the first version number of installation Software upgrading is the software of the second edition number;
Test case corresponding with the type of the software is sent to the second server, so that the second server Using the software of the second edition number described in the testing case;
Test result is obtained from the second server;
If the test result instruction test passes through, determine whether the second server can be normally carried out business, if so, The software of the second edition number is sent to each third server, so that each third server is by the first version of installation Number software upgrading be the second edition number software;The second server and each third server are same number According to the server in central hardware system.
2. the method according to claim 1, wherein the software of the second edition number is sent to second server Before, further includes:
Obtain the respective machine information of each server that data center's hardware system includes;The machine information includes service The corresponding manufacturer of each software installed in the version number for each software installed in device and server;
Determine the software that the first version number is equipped in data center's hardware system and the corresponding manufacturer of the software It is the second server to preset any server of production firm.
3. according to the method described in claim 2, it is characterized in that, after determining the second server, further includes:
Solicited message is sent to the second server;The solicited message be used to indicate the second server stop into Capable each business.
4. according to the method described in claim 3, it is characterized by further comprising:
After the second server stops ongoing each business, is obtained from the second server and save described second The configuration information of server and each respective business datum of the business;
If the test result instruction test passes through, the method also includes:
The business datum of the configuration information of the second server and each business is sent to the second server, so that The second server is configured according to the configuration information recovery, and restores each industry according to each business datum Business.
5. according to the method described in claim 4, it is characterized in that, the determination second server whether can normally into Industry business, comprising:
If can receive the first feedback information at interval of the second preset duration in the first preset duration, it is determined that described second Server can be normally carried out business;First feedback information indicates that the second server can be normally carried out business;
Alternatively,
If not receiving the second feedback information in third preset duration, it is determined that the second server can be normally carried out industry Business;Second feedback information indicates that the second server can not be normally carried out business.
6. according to the method described in claim 4, it is characterized in that, if test result instruction test does not pass through, to institute It states second server and sends the first control information;The first control information indicates that the second server matches confidence according to described Breath and each business datum, the state before being rolled back to the software upgrading.
7. according to the method described in claim 4, it is characterized in that, however, it is determined that the second server can not be normally carried out industry Business then sends the second control information to the second server;The second control information indicate the second server according to The configuration information and each business datum, the state before being rolled back to the software upgrading.
8. a kind of method of software upgrading, which is characterized in that be applied to second server, comprising:
The software of the second edition number is obtained from first server, and is described by the software upgrading of the first version number of installation The software of the second edition number;
Test case corresponding with the type of the software is obtained from first server, and uses the testing case institute State the software of the second edition number;
Test result is sent to the first server;
If the test result instruction test passes through, detect whether second server can be normally carried out business.
9. a kind of device of software upgrading characterized by comprising
Sending module, for the software of the second edition number to be sent to second server, so that the second server will be installed First version number software upgrading be the second edition number software;
The sending module, for test case corresponding with the type of the software to be sent to the second server, So that software of the second server using the second edition number described in the testing case;
Module is obtained, for obtaining test result from the second server;
Determining module, if for the test result instruction test pass through, determine the second server whether can normally into Industry business;
The sending module is also used to if it is determined that the second server can be normally carried out business, then by the second edition number Software is sent to each third server, so that the software upgrading of the first version number of installation is by each third server The software of the second edition number;The second server and the second server are in same data center's hardware system Server.
10. device according to claim 9, which is characterized in that the acquisition module is also used to:
Before the software of the second edition number is sent to second server, obtain that data center's hardware system includes is each The respective machine information of server;The machine information includes version number and the server for each software installed in server The corresponding manufacturer of each software of interior installation;
Determine the software that the first version number is equipped in data center's hardware system and the corresponding manufacturer of the software It is the second server to preset any server of production firm.
11. device according to claim 10, the sending module, are also used to:
After determining the second server, solicited message is sent to the second server;The solicited message is for referring to Show that the second server stops ongoing each business.
12. device according to claim 11, which is characterized in that the acquisition module is also used to:
After the second server stops ongoing each business, is obtained from the second server and save described second The configuration information of server and each respective business datum of the business;
If the test result instruction test passes through, the sending module is also used to:
The business datum of the configuration information of the second server and each business is sent to the second server, so that The second server is configured according to the configuration information recovery, and restores each described according to each business datum Business.
13. device according to claim 12, which is characterized in that the determining module is specifically used for:
If can receive the first feedback information at interval of the second preset duration in the first preset duration, it is determined that described second Server can be normally carried out business;First feedback information indicates that the second server can be normally carried out business;
Alternatively,
If not receiving the second feedback information in third preset duration, it is determined that the second server can be normally carried out industry Business;Second feedback information indicates that the second server can not be normally carried out business.
14. a kind of device of software upgrading characterized by comprising
Module is obtained, for obtaining the software of the second edition number from first server, and described in the first version number by installation Software upgrading is the software of the second edition number;
The acquisition module for obtaining test case corresponding with the type of the software from first server, and uses The software of the second edition number described in the testing case;
Sending module, for sending test result to the first server;
Detection module, if passing through for test result instruction test, whether the device for detecting the software upgrading can It is normally carried out business.
15. a kind of server characterized by comprising processor, the processor are coupled with memory;
The memory is used for, and stores computer program;
The processor is used for, and calls the computer program stored in the memory, to realize any institute of claim 1~7 The method stated.
16. a kind of readable storage medium storing program for executing, which is characterized in that including program or instruction, when described program or instruct on computers When operation, any method of claim 1~7 is performed.
17. a kind of server characterized by comprising processor, the processor are coupled with memory;
The memory is used for, and stores computer program;
The processor is used for, and calls the computer program stored in the memory, to realize side according to any one of claims 8 Method.
18. a kind of readable storage medium storing program for executing, which is characterized in that including program or instruction, when described program or instruct on computers When operation, method according to any one of claims 8 is performed.
CN201810837430.7A 2018-07-26 2018-07-26 The method and apparatus of software upgrading Pending CN109032643A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810837430.7A CN109032643A (en) 2018-07-26 2018-07-26 The method and apparatus of software upgrading

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810837430.7A CN109032643A (en) 2018-07-26 2018-07-26 The method and apparatus of software upgrading

Publications (1)

Publication Number Publication Date
CN109032643A true CN109032643A (en) 2018-12-18

Family

ID=64645781

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810837430.7A Pending CN109032643A (en) 2018-07-26 2018-07-26 The method and apparatus of software upgrading

Country Status (1)

Country Link
CN (1) CN109032643A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112685287A (en) * 2020-11-30 2021-04-20 青岛海尔科技有限公司 Product data testing method and device, storage medium and electronic device
CN115378809A (en) * 2022-08-18 2022-11-22 中国建设银行股份有限公司 Software version upgrading method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104978191A (en) * 2015-06-24 2015-10-14 小米科技有限责任公司 Application deployment method and server
CN105607936A (en) * 2015-12-25 2016-05-25 北京奇虎科技有限公司 Server version updating method and device
CN107391156A (en) * 2017-07-31 2017-11-24 成都华为技术有限公司 Method, management node and service node for distributed system transmission services
CN108268266A (en) * 2016-12-29 2018-07-10 中移(苏州)软件技术有限公司 A kind of upgrade method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104978191A (en) * 2015-06-24 2015-10-14 小米科技有限责任公司 Application deployment method and server
CN105607936A (en) * 2015-12-25 2016-05-25 北京奇虎科技有限公司 Server version updating method and device
CN108268266A (en) * 2016-12-29 2018-07-10 中移(苏州)软件技术有限公司 A kind of upgrade method and device
CN107391156A (en) * 2017-07-31 2017-11-24 成都华为技术有限公司 Method, management node and service node for distributed system transmission services

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112685287A (en) * 2020-11-30 2021-04-20 青岛海尔科技有限公司 Product data testing method and device, storage medium and electronic device
CN112685287B (en) * 2020-11-30 2023-11-28 青岛海尔科技有限公司 Product data testing method and device, storage medium and electronic device
CN115378809A (en) * 2022-08-18 2022-11-22 中国建设银行股份有限公司 Software version upgrading method and device
CN115378809B (en) * 2022-08-18 2024-04-26 中国建设银行股份有限公司 Software version upgrading method and device

Similar Documents

Publication Publication Date Title
EP3076641B1 (en) Method for detecting whether hardware of intelligent terminal is running abnormally and intelligent terminal
JP2004334869A (en) Diagnosis and solution of computer problem by program, and automatic report and updating thereof
CN105094895B (en) A kind of method and device for installing more video drivers
CN109243425A (en) Speech recognition test method, device, system, computer equipment and storage medium
US7734956B2 (en) Process management system
CN105760247A (en) System and method for processing hard disk faults
CN104737134A (en) System and method for operating system agnostic hardware validation
CN103677870A (en) System upgrading method and system upgraded by means of method
CN106095621A (en) The restoration methods of Launcher operation exception and system in a kind of Android system
CN109032643A (en) The method and apparatus of software upgrading
US8949588B1 (en) Mobile telephone as bootstrap device
CN106021024B (en) A kind of user terminal stops response reminding method and user terminal
US7734902B2 (en) Addition of a hardware component to a running system
US7627789B2 (en) Polymorphic management of embedded devices using web interfaces
US7475164B2 (en) Apparatus, system, and method for automated device configuration and testing
CN104298618B (en) The command handling method and device of a kind of intelligent terminal
CN105824649A (en) Method and device for determining whether installation of driver application program is successful and electronic equipment
US7996707B2 (en) Method to recover from ungrouped logical path failures
CN104407808A (en) Method and device for writing in data
CN109634782B (en) Method and device for detecting system robustness, storage medium and terminal
CN114647531B (en) Failure solving method, failure solving system, electronic device, and storage medium
CN103235728B (en) The installation method of preset third-party application and device in Android terminal
CN113190491B (en) Serial port information display method, system and medium
CN101158920B (en) Method and apparatus for detecting fault of operating system
US10599412B2 (en) Operating system installation on a computing device with multiple redundant drives

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20181218