CN105765908A - Method, client and system for multi-site automatic update - Google Patents

Method, client and system for multi-site automatic update Download PDF

Info

Publication number
CN105765908A
CN105765908A CN201480064008.2A CN201480064008A CN105765908A CN 105765908 A CN105765908 A CN 105765908A CN 201480064008 A CN201480064008 A CN 201480064008A CN 105765908 A CN105765908 A CN 105765908A
Authority
CN
China
Prior art keywords
client
information
management end
website
file
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201480064008.2A
Other languages
Chinese (zh)
Other versions
CN105765908B (en
Inventor
张奇
冯杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Feinno Communication Technology Co Ltd
Original Assignee
Beijing Feinno Communication 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 Feinno Communication Technology Co Ltd filed Critical Beijing Feinno Communication Technology Co Ltd
Publication of CN105765908A publication Critical patent/CN105765908A/en
Application granted granted Critical
Publication of CN105765908B publication Critical patent/CN105765908B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating

Abstract

Disclosed in the present invention are a method, client and system for a multi-site automatic update. The method of the present invention includes: obtaining update execution information of a management end, and parsing out client update information based on the update execution information; determining, according to a site naming principle and an application naming principle of a specification, the sites or services that need to be stopped, started or restarted in the client from the client update information; determining files that need to be updated from the client update information, performing update operation automatically in the order of stopping sites, stopping services, updating files, starting services and starting sites; after finishing the update operation, storing an update operation result locally and returning the update operation result to the management end. The solution of the present invention can solve problems in the prior art caused by manually updating the sites one by one, and guarantee the security, accuracy, and reliability of the multi-site automatic update while improving the work efficiency.

Description

Method, client and system for multi-site automatic update
The present invention relates to field of computer technology, more particularly to a kind of multi-site automatic update method, client and system for a kind of multi-site automatic update method, client and systems technology field.Background of invention is with the sustainable development of information age, the popularization of cluster, load-balancing technique, server develops into huge data center from several of initial stage, and network upgrade management also becomes increasingly sophisticated, and more new management overwhelming majority work is all manual at present.Even if a simple system variation or renewal, which are often required for operation maintenance personnel to log in every equipment one by one, carries out manual change, when number of devices is reached it is hundreds and thousands of when, its workload is big to well imagine.The Stability and dependability that workload updates when increasing also can be reduced gradually.
Updated at present for multi-site, most processing scheme is that operating personnel repeat the flow that single site updates operation, or write a script execution, but renewal wraps biography and still needs to operating personnel by platform operation, and when running into the multiple websites of a server disposition, still to perform stopping one by one manually, start the operation of website or service, operating efficiency is very low.The content of the invention is based on above mentioned problem, the embodiments of the invention provide a kind of multi-site automatic update method, client and system, with solve to need in the prior art one by one website be updated the problem of bringing manually.
According to one aspect of the present invention, the embodiments of the invention provide a kind of multi-site automatic update method, methods described includes:The renewal execution information of management end is obtained, and parses client fresh information according to this;According to the website nomenclature principle of specification, the website for needing to stop, starting or restart in client is judged from client fresh information;According to the application nomenclature principle of specification, the service for needing to stop, starting or restart in client is judged from client fresh information;The file that needs update is determined from client fresh information, the order for servicing, starting website according to stopping website, stopping service, more new file, startup performs to update automatically to be operated;After renewal operation terminates, renewal operating result is being locally stored and the renewal operating result is returned into management end.
Wherein, it is described to obtain the renewal execution information of management end, and parse client fresh information according to this and include: Obtain the grouping information and fresh information of management end;Wherein, the grouping information is the information that client is divided into some groups according to website or the difference of service by management end, and grouping information includes group names and client id list;The fresh information includes group names and the actual more new directory of client;By the way that client id is compared with the grouping information, the packet belonging to client is identified;Packet according to belonging to client parses client fresh information from the fresh information of management end.
Alternatively, methods described also includes:Before renewal operation is performed, the file for needing to update of packing obtains filing bag, and the backup information of the filing bag is being locally stored and the backup information is returned into management end.
Alternatively, methods described also includes:Obtain the rollback execution information of management end;Website or the service for needing to stop, starting or restart in client are judged from the rollback execution information;According to the rollback execution information, the backup information being locally stored is read, it would be desirable to which the content of rollback discharges the file that failure is updated for covering from the filing bag;According to stopping website, stop servicing, recovering the order execution rolling back action that file, startup serviced, started website;After rolling back action terminates, rolling back action result is returned into management end.
Alternatively, methods described also includes:After renewal operation terminates, the md5-challenge MD5 values of the file after updating are obtained from operating result is updated;The MD5 values are recorded in local file and return to the MD5 values to management end and are verified for management end to updating operating result.
Alternatively, methods described also includes:Obtain the deletion execution information of management end;According to the deletion execution information, the content information that client needs to delete is obtained;Deletion action is performed, and deletion action result is returned into management end.According to another aspect of the present invention, the embodiments of the invention provide a kind of client, including:Message processing module, for obtaining the renewal execution information of management end, and parses client fresh information according to this;Website control module, for the website nomenclature principle according to specification, judges the website for needing to stop, starting or restart in client from client fresh information;Service control module, for the application nomenclature principle according to specification, judges the service for needing to stop, starting or restart in client from client fresh information;Update module, for determining the file for needing to update from client fresh information, and according to stop website, stop service, more new file, start service, start website order perform automatically renewal operate, after renewal operation terminates, renewal operating result is being locally stored and the renewal operating result is returned into management end.
Wherein, described information processing module includes:Grouping information acquisition submodule, grouping information and fresh information for obtaining management end;Wherein, the grouping information is the information that client is divided into some groups according to website or the difference of service by management end, and grouping information includes group names and client id list;It is described more Fresh information includes group names and the actual more new directory of client;Packet compares submodule, for by the way that client id is compared with the grouping information, identifying the packet belonging to client;Analyzing sub-module, client fresh information is parsed for the packet according to belonging to client from the fresh information of management end.
Alternatively, the client also includes:Backup module, obtains filing bag for the file for needing to update of before renewal operation is performed, packing, and the backup information of the filing bag is being locally stored and the backup information is returned into management end.
Alternatively, described information processing module, is additionally operable to obtain the rollback execution information of management end;The website control module, is additionally operable to the website for judging to need to stop, starting or restart in client from the rollback execution information;The service control module, is additionally operable to the service for judging to need to stop, starting or restart in client from the rollback execution information;The client also includes:Roll-back module, for according to the rollback execution information, read the backup information being locally stored, the content for needing rollback is discharged to the file that failure is updated for covering from the filing bag, according to stopping website, stop servicing, recovering the order execution rolling back action that file, startup serviced, started website, after rolling back action terminates, rolling back action result is returned into management end.
Alternatively, the client also includes:Correction verification module, for updating after operation terminates, obtains the md5-challenge MD5 values of the file after updating from operating result is updated;The MD5 values are recorded in local file and return to the MD5 values to management end and are verified for management end to updating operating result.
Alternatively, described information processing module, is additionally operable to obtain the deletion execution information of management end;The client also includes:Removing module, for according to the deletion execution information, obtaining the content information that client needs to delete;Deletion action is performed, and deletion action result is returned into management end.
According to another aspect of the invention, the embodiments of the invention provide a kind of multi-site automatic update system, it is characterised in that including management end and at least one above-mentioned client;Wherein, the management end, for providing fresh information, grouping information and execution information to the client, and preserves operation note.Beneficial effects of the present invention are:Method, client and system that multi-site provided in an embodiment of the present invention is automatically updated, by the renewal execution information for obtaining management end, and client fresh information is parsed according to this, the client fresh information parsed can distinguish website, service and common content;Then according to specification website nomenclature principle and apply nomenclature principle, website and/or the service for needing to stop, starting or restart in client are judged from client fresh information, so as to accurately perform relevant action, it is ensured that it is abnormal that renewal process occurs without website;Then determine from client fresh information the file for needing to update, according to stop website, Stop service, more new file, startup is serviced, the order of startup website performs renewal operation automatically, it is ensured that multiple websites automatically updates in completion client safely, fast and accurately;After renewal operation terminates, update operating result and by the renewal operating result return management end being locally stored, there is trackability to update to operate.It follows that technical scheme can solve the problem that need in the prior art one by one website be updated the problem of bringing manually, improve operating efficiency while, it is ensured that security, accuracy and reliability that multiple websites are automatically updated.
Further, client can be divided into client in some groups, group to be generally load balancing configuration by management end according to website or the difference of service, and different packet more new contents is different;Management end to client by providing the fresh information with grouping information, and the content that can reduce fresh information is repeated, and realizes management end to the client of many set load balancing configurations while being updated operation, expands the quantity size for automatically updating website.
Described above is only the general introduction of technical solution of the present invention, in order to better understand the technological means of the present invention, and can be practiced according to the content of specification, and in order to which above and other objects of the present invention, feature and advantage can be become apparent, below especially exemplified by the embodiment of the present invention.Brief Description Of Drawings are by reading the detailed description of hereafter preferred embodiment, and various other advantages and benefit will be clear understanding for those of ordinary skill in the art.Accompanying drawing is only used for showing the purpose of preferred embodiment, and is not considered as limitation of the present invention.And in whole accompanying drawing, identical part is denoted by the same reference numerals.In the accompanying drawings:
Fig. 1 diagrammatically illustrates a kind of flow chart of multi-site automatic update method of the embodiment of the present invention;Fig. 2 diagrammatically illustrates multi-site automatic update system framework map provided in an embodiment of the present invention;Fig. 3 diagrammatically illustrates a kind of structure chart of client of the embodiment of the present invention;
Fig. 4 diagrammatically illustrates the structure chart of another client of the embodiment of the present invention
Fig. 5 diagrammatically illustrates the structured flowchart of multi-site automatic update system provided in an embodiment of the present invention.The exemplary embodiment of the disclosure is more fully described in the mode for implementing the present invention below with reference to accompanying drawings.Although showing the exemplary embodiment of the disclosure in accompanying drawing, it being understood, however, that may be realized in various forms the disclosure without that should be limited by embodiments set forth here.It is opposite to be able to be best understood from this there is provided these embodiments It is open, and can by the scope of the present disclosure completely convey to those skilled in the art.The major technique design of the present invention is, client is parsed according to the renewal execution information of management end can distinguish website, service and the client fresh information of common content, website nomenclature principle and service nomenclature principle according to specification, judge which website needs to stop in client from client fresh information, start, or the website restarted and/or service, according to stopping website, stop service, update client file, start service, the order for starting website performs renewal operation automatically, so as to accurately perform relevant action, ensure that renewal process occurs without website abnormal, so as to safety, quickly, multiple websites automatically updates in accurate completion client;After renewal terminates, update operating result and by the renewal operating result return management end being locally stored, there is trackability to update operation.The other present invention can also provide the renewal execution information with grouping information in management end, the content for reducing fresh information is repeated, management end is realized to the client of many set load balancing configurations while being updated operation, the quantity size for automatically updating website is expanded.Fig. 1 shows a kind of flow chart of just blunt multi-site automatic update method according to the embodiment of the present invention.As shown in Fig. 1, a kind of multi-site automatic update method provided in an embodiment of the present invention comprises the following steps:
Sl l, the renewal execution information for obtaining management end, and client fresh information is parsed according to this.
The operation of multi-site automatic update system needs management end and two roles of client, is provided by management end and updates execution information;Client obtains to update and backup, renewal is realized after execution information, rollback, the function such as restarts.
Client can also be divided into some groups by the client configured for load balancing, management end according to website or service differences, and construct grouping information file.Packet is to reduce duplicate contents.Grouping information is recorded in management end file, is basically unchanged with postponing, grouping information form:Group names, client id list.
For this management end to client send update execution information when, it is necessary to include group names.Management end can update group names, remaining automatically generates fresh information file for the structure of client physical directory according to specified more new file directory rule needed for such as first layer catalogue is entitled.The grouping information and fresh information are distributed to multiple client by management end in the lump when sending renewal execute instruction to client.
As shown in Fig. 2 Fig. 2 is multi-site automatic update system framework map provided in an embodiment of the present invention.Management end distributes grouping information and updates information to each controlled client, and these clients are divided into some groups according to website or service differences, and client needs the content updated different in different grouping.Grouping information includes group names and client id list, and fresh information includes group names and the actual more new directory of client.Each client in packet is obtained after the grouping information and fresh information of management end, by the way that self ID is compared with the grouping information, identifies the packet belonging to itself, and the packet according to belonging to itself from management end more Client fresh information is parsed in fresh information, then corresponding operating is locally executed in client.The information that the information of management end issue is returned with client can be realized by Open-Source Tools Saltstack.Renewal, backup can be realized automatically on the client according to the execution information of management end, rollback, deletion, the function such as verify, restart.
512nd, the website nomenclature principle according to specification, judges the website for needing to stop, starting or restart in client from client fresh information.
When disposing multiple websites in a client, website nomenclature principle of the client according to specification determines which website in client needs to stop, starting or restart, and perform relevant action from client fresh information.Wherein in website operating process is stopped, in addition it is also necessary to obtaining the process value for needing to stop website, the process value can be provided by management end in execution information.When many places content needs modification in website, set up and judge lock, prevent same website is performed a plurality of times from repeating.The execution operating result of website can individually return to management end in the form of list data structure as needed.
513rd, the service nomenclature principle according to specification, judges the service for needing to stop, starting or restart in client from client fresh information.
When a client provides a variety of services, application nomenclature principle of the client according to specification, the service entry for needing to stop, starting, restart in client is determined from client fresh information, the service can be Java applications, and the operation specified is performed, the result of execution can individually return to management end in list data structure form as needed.
Explanation:Above-mentioned steps S12 and S13 can be carried out simultaneously, the renewal execution information of management end can also simply mean to show that client stops, starting, restarting some or certain site or service, the renewal of client file it is not related to, now client needs individually to return to management end to website or the execution operating result of service.
514th, the file for needing to update is determined from client fresh information.
The client fresh information that client is generated according to the renewal execution information of management end, website, service and common content can be distinguished from client fresh information, the common content can be client file or configuration information, and client maintains associated stations and service automatically according to the client fresh information of generation.
In the client fresh information of generation, include the actual more new directory of client, client gets renewal source file, then the purpose file local to client is updated operation according to the actual more new directory from management end.
515th, according to stopping website, stopping service, more new file, the order execution renewal operation for starting service, starting website.
To ensure to update safety, the execution sequence of each website is followed successively by stopping website, stops service, updates File, startup service, startup website, if more new content does not include service or website, will not perform the stopping or startup of website or service.
When renewal execution information indicates to have multiple websites to need synchronized update in client, these multiple websites can independently, synchronously perform respective update and operate.
After S 16, renewal operation terminate, renewal operating result is being locally stored and the renewal operating result is returned into management end.
After renewal operation terminates, update operating result and return to management end, and the renewal operating result is being locally stored.Updating operating result record has specific website, and/or service, and/or client file is updated successfully or updated the content of failure.This pair updates operating result and is recorded and returned, and can make it that updating operation has trackability.
Client executing is preserved in management end and updates the result of operation, and is recorded in management end file according to operating personnel's information, operating time, operation content, operating result.In the embodiment of the method for the present invention, multi-site automatic update method of the invention can also include step:Before execution automatically updates operation, the file for needing to update of packing obtains filing bag, and the backup information of the filing bag is being locally stored and the backup information is returned into management end.
Client is received after the renewal execution information of management end, client fresh information is parsed from execution information is updated, the fileinfo for needing to update is determined from client fresh information again, before being changed to this document, first by the archive of needs variation to local backup, and the backup information of filing is being locally stored, backup information record has the filename that filing is wrapped, while backup information is returned into client.This method embodiment automated back-up file before client file renewal, it is ensured that the safety and reliability of multi-site automatic update method.In another embodiment of the method for the present invention, multi-site automatic update method of the invention can also include step:Obtain the rollback execution information of management end;Website or the service for needing to stop, starting or restart in client are judged from the rollback execution information;According to the rollback execution information, the backup information being locally stored is read, it would be desirable to which the content of rollback discharges the file that failure is updated for covering from the filing bag;According to stopping website, stop servicing, recovering the order execution rolling back action that file, startup serviced, started website;After rolling back action terminates, the rolling back action result is returned into management end.
When client executing updates operation failure, it can will also update operating result and return to management end, management end generates rollback execution information according to the renewal operating result for updating failure, and the rollback that client obtains management end is held After row information, local backup information is read, it would be desirable to which the content of rollback discharges and covered the file for updating failure from filing bag.Include website or service content in rollback execution information, website or the service for needing to stop, starting or restart in client are judged from the rollback execution information, then according to the order execution rolling back action that website, stopping service, recover file, startup service, startup website is stopped, to ensure the security of rolling back action;If rollback content does not include service or website, the stop and start of website or service will not performed.Rolling back action result needs to return to management end.This method embodiment provides a solution when being automatically updated unsuccessfully for multi-site, it is ensured that the stability and reliability of multi-site automatic update method.In the yet another method embodiment of the present invention, multi-site automatic update method of the invention can also include step:After renewal operation terminates, the md5-challenge MD5 values of the file after updating are obtained from operating result is updated;The MD5 values are recorded in local file and return to the MD5 values to management end and are verified for management end to updating operating result.
MD5 is Message-Digest Algorithm 5 (Message-Digest Algorithm 5), also known as digest algorithm, hash algorithm etc., for ensuring that information transfer is completely consistent.After client renewal operation terminates, the automatic MD5 values for obtaining client more new file are simultaneously recorded in local file, and file content form is " filename:MD5 ", every row one, while also returned to management end with the entitled key of file, MD5 for value dictionary type data.Management end is received after the MD5 values, and security, confidentiality checking and version detection are carried out to the more new content of client according to the MD5 values.This method embodiment obtains the MD5 values of more new file and returns to management end automatically after client file renewal, it is ensured that the security and integrality of multi-site automatic update method.In another embodiment of the method for the present invention, multi-site automatic update method of the invention can also include step:Obtain the deletion execution information of management end;According to the deletion execution information, the content information that client needs to delete is obtained;Deletion action is performed, and deletion action result is returned into management end.
For example after client executing, which updates, to be operated successfully, it can will update operating result and return to management end, management end deletes execution information according to the renewal operating result generation being updated successfully, client is obtained after the deletion execution information of management end, and the filing bag backed up before renewal operation is performed is deleted.This method embodiment provides a solution when being automatically updated successfully for multi-site, it is ensured that the integrality and security of multi-site automatic update method.Based on above method embodiment identical inventive concept, Fig. 3 shows according to embodiments of the present invention A kind of structure chart of client.As shown in figure 3, client 300 provided in an embodiment of the present invention, including:Message processing module 310, for obtaining the renewal execution information of management end, and parses client fresh information according to this;
Website control module 320, for the website nomenclature principle according to specification, judges the website for needing to stop, starting or restart in client from client fresh information;
Service control module 330, for the application nomenclature principle according to specification, judges the service for needing to stop, starting or restart in client from client fresh information;
Update module 340, for determining the file for needing to update from client fresh information, and according to stop website, stop service, more new file, start service, start website order perform automatically renewal operate, after renewal operation terminates, renewal operating result is being locally stored and the renewal operating result is returned into management end.In one embodiment of the invention, above- mentioned information processing module 310 provided in an embodiment of the present invention can include:
Grouping information acquisition submodule, grouping information and fresh information for obtaining management end;Wherein, the grouping information is the information that client is divided into some groups according to website or the difference of service by management end, and grouping information includes group names and client id list;The fresh information includes group names and the actual more new directory of client;
Packet compares submodule, for by the way that client id is compared with the grouping information, identifying the packet belonging to client;
Analyzing sub-module, client fresh information is parsed for the packet according to belonging to client from the fresh information of management end.In a product embodiments of the invention, referring to Fig. 4, further on the basis of the client terminal structure shown in Fig. 3, another client 400 provided in an embodiment of the present invention, in addition to:
Backup module 450, obtains filing bag for the file for needing to update of before renewal operation is performed, packing, and the backup information of the filing bag is being locally stored and the backup information is returned into management end.
In another product embodiments of the invention, referring also to Fig. 4, client 400 provided in an embodiment of the present invention, in addition to:
Roll-back module 460, for the rollback execution information according to management end, reads the backup information being locally stored, it would be desirable to which the content of rollback discharges the file that failure is updated for covering from filing bag;According to stopping website, stop servicing, recovering the order execution rolling back action that file, startup serviced, started website, rolling back action knot Shu Hou, management end is returned by rolling back action result.Wherein,
Above- mentioned information processing module 310, is additionally operable to obtain the rollback execution information of management end.
Above-mentioned website control module 320, is additionally operable to the website for judging to need to stop, starting or restart in client from the rollback execution information.
Above-mentioned service control module 330, is additionally operable to the service for judging to need to stop, starting or restart in client from the rollback execution information.
In another product embodiments of the invention, referring also to Fig. 4, client 400 provided in an embodiment of the present invention, in addition to:
Correction verification module 470, for updating after operation terminates, obtains the md5-challenge MD5 values of the file after updating from operating result is updated;The MD5 values are recorded in local file and return to the MD5 values to management end and are verified for management end to updating operating result.
In another product embodiments of the invention, referring also to Fig. 4, client 400 provided in an embodiment of the present invention, in addition to:
Removing module 480, for according to the deletion execution information, obtaining the content information that client needs to delete;Deletion action is performed, and deletion action result is returned into management end.Wherein,
Above- mentioned information processing module 310, is additionally operable to obtain the deletion execution information of management end.
The specific works mode of each module, may refer to the related content in the invention described above embodiment of the method, will not be repeated here in the client of product embodiments of the present invention.Based on above method embodiment identical inventive concept, Fig. 5 shows a kind of structured flowchart of multi-site automatic update system according to embodiments of the present invention.As shown in Fig. 5, the system that a kind of multi-site provided in an embodiment of the present invention is automatically updated, including management end 500 and at least one above-mentioned client( 1, 2, ...N );Wherein, the management end 500, for providing fresh information, grouping information and execution information to client, and preserves operation note.
The execution information of management end, including update execution information, rollback execution information, delete execution information etc., issued by the interactive interface of management end to client, given client end performs assigned operation.Automatically the renewal result performed, backup result, rollback result, MD5 values, deletion result are returned to management end by client, and these operation implementing results are recorded in management end file by management end.In summary, multi-site automatic update method provided in an embodiment of the present invention, client and system, by obtaining the renewal execution information of management end, and parse client fresh information, the client parsed according to this End fresh information can distinguish website, service and common content;Then according to specification website nomenclature principle and apply nomenclature principle, website and/or the service for needing to stop, starting or restart in client are judged from client fresh information, so as to accurately perform relevant action, it is ensured that it is abnormal that renewal process occurs without website;Then the file for needing to update is determined from client fresh information, the order for servicing, starting website according to stopping website, stopping service, more new file, startup performs to update automatically to be operated, it is ensured that multiple websites automatically updates in completion client safely, fast and accurately;After renewal operation terminates, update operating result and by the renewal operating result return management end being locally stored, there is trackability to update to operate.It follows that technical scheme can solve the problem that need in the prior art one by one website be updated the problem of bringing manually, improve operating efficiency while, also ensure that security, accuracy and reliability that multiple websites are automatically updated.
Further, client can be divided into client in some groups, group to be generally load balancing configuration by management end according to website or the difference of service, and different packet more new contents is different;Management end to client by providing the fresh information with grouping information, and the content that can reduce fresh information is repeated, and realizes management end to the client of many set load balancing configurations while being updated operation, expands the quantity size for automatically updating website.
Further, before execution automatically updates operation, packing needs the file updated to obtain filing bag, and the backup information of the filing bag is being locally stored and by the scheme of backup information return management end, the safety and reliability that multi-site is automatically updated is being ensure that.
Further, when client executing updates operation failure, by performing rolling back action, read local backup information, the content for needing rollback is discharged and covered from filing bag the file for updating and failing, rolling back action result returns to management end, a solution is provided when being automatically updated unsuccessfully for multi-site, it is ensured that the stability and reliability of multi-site automatic update method.
Further, after renewal operation terminates, information-digest algorithm MD5 values of the file after updating are obtained from operating result is updated;The MD5 values are recorded in local file and the MD5 values are returned to for management end to updating the scheme that operating result is verified to management end, it is ensured that the security and integrality of multi-site automatic update method.
Further, client obtains the content information that client needs to delete, performs deletion action according to the deletion execution information of management end, and deletion action result is returned to the scheme of management end, it is ensured that the integrality and security of multi-site automatic update method.It should be noted that: The all parts embodiment of the present invention can be realized with hardware, either realized or realized with combinations thereof with the software module run on one or more processor.It will be understood by those of skill in the art that microprocessor or digital signal processor can be used in practice(DSP) come some or all functions of some or all parts in realizing according to embodiments of the present invention.The present invention is also implemented as some or all equipment or program of device for performing method as described herein(For example, computer program and computer program product).Such program for realizing the present invention can be stored on a computer-readable medium, or can have the form of one or more signal.Such signal can be downloaded from internet website and obtained, and either provided or provided in any other form on carrier signal.
" one embodiment ", " embodiment " or " one or more embodiment " referred to herein is it is meant that special characteristic, structure or the characteristic described include at least one embodiment of the present invention in conjunction with the embodiments in.Further, it is noted that word example " in one embodiment " is not necessarily all referring to same embodiment here.
Furthermore, it should also be noted that the language used in this specification primarily to readable and teaching purpose and select, rather than selected to explain or limit subject of the present invention.Therefore, in the case of without departing from the scope and spirit of the appended claims, many modifications and changes will be apparent from for those skilled in the art.For the scope of the present invention, the disclosure done to the present invention is illustrative and not restrictive, and it is intended that the scope of the present invention be defined by the claims appended hereto.

Claims (12)

  1. Claims
    1st, a kind of multi-site automatic update method, it is characterised in that methods described includes:
    The renewal execution information of management end is obtained, and parses client fresh information according to this;
    According to the website nomenclature principle of specification, the website for needing to stop, starting or restart in client is judged from client fresh information;
    According to the application nomenclature principle of specification, the service for needing to stop, starting or restart in client is judged from client fresh information;
    The file that needs update is determined from client fresh information, the order for servicing, starting website according to stopping website, stopping service, more new file, startup performs to update automatically to be operated;
    After renewal operation terminates, renewal operating result is being locally stored and the renewal operating result is returned into management end.
    2nd, according to the method described in claim 1, it is characterised in that described to obtain the renewal execution information of management end, and client fresh information is parsed according to this include:
    Obtain the grouping information and fresh information of management end;Wherein, the grouping information is the information that client is divided into some groups according to website or the difference of service by management end, and grouping information includes group names and client id list;The fresh information includes group names and the actual more new directory of client;
    By the way that client id is compared with the grouping information, the packet belonging to client is identified;Packet according to belonging to client parses client fresh information from the fresh information of management end.
    3rd, method according to claim 1 or 2, it is characterised in that methods described also includes:Before execution automatically updates operation, the file for needing to update of packing obtains filing bag, and the backup information of the filing bag is being locally stored and the backup information is returned into management end.
    4th, method according to claim 3, it is characterised in that methods described also includes:
    Obtain the rollback execution information of management end;
    Website or the service for needing to stop, starting or restart in client are judged from the rollback execution information;
    According to the rollback execution information, the backup information being locally stored is read, it would be desirable to which the content of rollback discharges the file that failure is updated for covering from the filing bag;
    Serviced according to stopping website, stopping service, recovery file, startup, the order of startup website is performed back 5th, method according to claim 1 or 2, it is characterised in that methods described also includes:After renewal operation terminates, the md5-challenge MD5 values of the file after updating are obtained from operating result is updated;
    The MD5 values are recorded in local file and return to the MD5 values to management end and are verified for management end to updating operating result.
    6th, method according to claim 5, it is characterised in that methods described also includes:
    Obtain the deletion execution information of management end;
    According to the deletion execution information, the content information that client needs to delete is obtained;
    Deletion action is performed, and deletion action result is returned into management end.
    7th, a kind of client, it is characterised in that the client also includes:
    Message processing module, for obtaining the renewal execution information of management end, and parses client fresh information according to this;
    Website control module, for the website nomenclature principle according to specification, judges the website for needing to stop, starting or restart in client from client fresh information;
    Service control module, for the application nomenclature principle according to specification, judges the service for needing to stop, starting or restart in client from client fresh information;
    Update module, for determining the file for needing to update from client fresh information, and according to stop website, stop service, more new file, start service, start website order perform automatically renewal operate, after renewal operation terminates, renewal operating result is being locally stored and the renewal operating result is returned into management end.
    8th, client according to claim 7, it is characterised in that described information processing module includes:Grouping information acquisition submodule, grouping information and fresh information for obtaining management end;Wherein, the grouping information is the information that client is divided into some groups according to website or the difference of service by management end, and grouping information includes group names and client id list;The fresh information includes group names and the actual more new directory of client;
    Packet compares submodule, for by the way that client id is compared with the grouping information, identifying the packet belonging to client;
    Analyzing sub-module, client fresh information is parsed for the packet according to belonging to client from the fresh information of management end.
    9th, the client according to claim 7 or 8, it is characterised in that the client also includes:Backup module, is filed for the file for needing to update of before renewal operation is performed, packing Bag, is being locally stored the backup information of the filing bag and the backup information is returned into management end.
    10th, device according to claim 9, it is characterised in that
    Described information processing module, is additionally operable to obtain the rollback execution information of management end;
    The website control module, is additionally operable to the website for judging to need to stop, starting or restart in client from the rollback execution information;
    The service control module, is additionally operable to the service for judging to need to stop, starting or restart in client from the rollback execution information;
    The client also includes:
    Roll-back module, for according to the rollback execution information, read the backup information being locally stored, the content for needing rollback is discharged to the file that failure is updated for covering from the filing bag, according to stopping website, stop servicing, recovering the order execution rolling back action that file, startup serviced, started website, after rolling back action terminates, rolling back action result is returned into management end.
    11st, the client according to claim 7 or 8, it is characterised in that the client also includes:Correction verification module, for updating after operation terminates, obtains the md5-challenge MD5 values of the file after updating from operating result is updated;The MD5 values are recorded in local file and return to the MD5 values to management end and are verified for management end to updating operating result.
    12nd, client according to claim 7, it is characterised in that
    Described information processing module, is additionally operable to obtain the deletion execution information of management end;
    The client also includes:
    Removing module, for according to the deletion execution information, obtaining the content information that client needs to delete;Deletion action is performed, and deletion action result is returned into management end.
    13rd, a kind of multi-site automatic update system, it is characterised in that including the client described in management end and at least one claim any one of 7-12;Wherein, the management end, for providing fresh information, grouping information and execution information to the client, and preserves operation note.
CN201480064008.2A 2014-06-30 2014-06-30 A kind of multi-site automatic update method, client and system Active CN105765908B (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2014/081179 WO2016000137A1 (en) 2014-06-30 2014-06-30 Method, client and system for multi-site automatic update

Publications (2)

Publication Number Publication Date
CN105765908A true CN105765908A (en) 2016-07-13
CN105765908B CN105765908B (en) 2019-07-19

Family

ID=55018231

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201480064008.2A Active CN105765908B (en) 2014-06-30 2014-06-30 A kind of multi-site automatic update method, client and system

Country Status (2)

Country Link
CN (1) CN105765908B (en)
WO (1) WO2016000137A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111143295A (en) * 2019-11-14 2020-05-12 泰康保险集团股份有限公司 Policy information processing method, apparatus, device and storage medium

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110830554A (en) * 2019-10-14 2020-02-21 珠海金山网络游戏科技有限公司 Method and system for asynchronously and concurrently updating distributed node mirror image

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101212336A (en) * 2006-12-28 2008-07-02 上海广电Nec液晶显示器有限公司 Automatic software update method for client, auxiliary method and related device
US20110060793A1 (en) * 2009-09-10 2011-03-10 Motorola, Inc. Mobile Device and Method of Operating Same to Interface Content Provider Website
CN102004778A (en) * 2010-11-19 2011-04-06 清华大学 Text index online updating method in cloud environment
CN102479092A (en) * 2010-11-30 2012-05-30 中兴通讯股份有限公司 Method and device for updating patch of software system
CN103136013A (en) * 2011-12-01 2013-06-05 腾讯科技(深圳)有限公司 Method and system of software upgrade
CN103186468A (en) * 2013-04-10 2013-07-03 华为技术有限公司 Method and device for testing and verifying software upgrading accuracy

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2378349A (en) * 2001-07-28 2003-02-05 Dresdner Kleinwort Wasserstein A system for managing a computer network
CN101741905A (en) * 2009-11-30 2010-06-16 曙光信息产业(北京)有限公司 Rapid deployment method for cluster

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101212336A (en) * 2006-12-28 2008-07-02 上海广电Nec液晶显示器有限公司 Automatic software update method for client, auxiliary method and related device
US20110060793A1 (en) * 2009-09-10 2011-03-10 Motorola, Inc. Mobile Device and Method of Operating Same to Interface Content Provider Website
CN102004778A (en) * 2010-11-19 2011-04-06 清华大学 Text index online updating method in cloud environment
CN102479092A (en) * 2010-11-30 2012-05-30 中兴通讯股份有限公司 Method and device for updating patch of software system
CN103136013A (en) * 2011-12-01 2013-06-05 腾讯科技(深圳)有限公司 Method and system of software upgrade
CN103186468A (en) * 2013-04-10 2013-07-03 华为技术有限公司 Method and device for testing and verifying software upgrading accuracy

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111143295A (en) * 2019-11-14 2020-05-12 泰康保险集团股份有限公司 Policy information processing method, apparatus, device and storage medium
CN111143295B (en) * 2019-11-14 2024-01-30 泰康保险集团股份有限公司 Policy information processing method, device, equipment and storage medium

Also Published As

Publication number Publication date
WO2016000137A1 (en) 2016-01-07
CN105765908B (en) 2019-07-19

Similar Documents

Publication Publication Date Title
CN110569305B (en) Block synchronization method, device, medium and computing equipment
US11741046B2 (en) Method and apparatus for creating system disk snapshot of virtual machine
US10949401B2 (en) Data replication in site recovery environment
US20160098390A1 (en) Command history analysis apparatus and command history analysis method
CN110225078B (en) Application service updating method, system and terminal equipment
CN111124755A (en) Cluster node fault recovery method and device, electronic equipment and storage medium
WO2023040364A1 (en) Consensus method and apparatus, and blockchain system
CN112506702A (en) Data center disaster tolerance method, device, equipment and storage medium
CN106850724B (en) Data pushing method and device
CN111338834B (en) Data storage method and device
CN111240892A (en) Data backup method and device
US11409715B2 (en) Maintaining high-availability of a file system instance in a cluster of computing nodes
US8468386B2 (en) Detecting and recovering from process failures
US9031969B2 (en) Guaranteed in-flight SQL insert operation support during an RAC database failover
CN105765908A (en) Method, client and system for multi-site automatic update
CN108664255B (en) Software upgrading method and device
CN115080114B (en) Application program transplanting processing method, device and medium
CN110620800A (en) Method and device for synchronously processing configuration data of power secondary system across safety zones
WO2016180174A1 (en) Method and apparatus for synchronizing voice files
CN107239505B (en) Cluster mirror synchronization method and system
CN111970329A (en) Method, system, equipment and medium for deploying cluster service
CN115640170B (en) Big data synchronous backup and verification method
CN113704176B (en) File scanning method, device, electronic equipment and storage medium
CN115543585B (en) Enterprise number card data synchronization method, server and storage medium
CN113127054B (en) File processing method and related device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP02 Change in the address of a patent holder
CP02 Change in the address of a patent holder

Address after: Room 810, 8 / F, 34 Haidian Street, Haidian District, Beijing 100080

Patentee after: BEIJING D-MEDIA COMMUNICATION TECHNOLOGY Co.,Ltd.

Address before: 100089 Beijing city Haidian District wanquanzhuang Road No. 28 Wanliu new building 6 storey block A room 602

Patentee before: BEIJING D-MEDIA COMMUNICATION TECHNOLOGY Co.,Ltd.