CN105765908B - A kind of multi-site automatic update method, client and system - Google Patents

A kind of multi-site automatic update method, client and system Download PDF

Info

Publication number
CN105765908B
CN105765908B CN201480064008.2A CN201480064008A CN105765908B CN 105765908 B CN105765908 B CN 105765908B CN 201480064008 A CN201480064008 A CN 201480064008A CN 105765908 B CN105765908 B CN 105765908B
Authority
CN
China
Prior art keywords
client
information
updating
update
site
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.)
Active
Application number
CN201480064008.2A
Other languages
Chinese (zh)
Other versions
CN105765908A (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

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The present invention discloses a kind of multi-site automatic update method, client and system.The method comprise the steps that obtaining the update execution information of management end, and client more new information is parsed according to this;According to the website nomenclature principle of specification and using nomenclature principle, judge to need stopping, starting or the website restarted or service in client from client more new information;The file for needing to update is determined from client more new information, is executed update automatically according to the sequence that stopping website, stopping service, update file, starting serviced, started website and is operated;After updating operation, update operating result is being locally stored and the update operating result is returned into management end.The solution of the present invention be able to solve need in the prior art one by one website be updated the problem of bringing manually, while improving working efficiency, ensure that the safety, accuracy and reliability that multiple websites automatically update.

Description

Multi-site automatic updating method, client and system
Technical Field
The invention relates to the technical field of computers, in particular to a multi-site automatic updating method, a client and a system.
Background
With the continuous development of the information age and the popularization of the clustering and load balancing technology, servers are developed into huge data centers from a plurality of initial servers, the updating management of websites becomes increasingly complex, and most of the current updating management work is manually operated. Even if a simple system change or update usually requires the operation and maintenance personnel to log in each equipment one by one for manual change, when the number of the equipment reaches hundreds of thousands, the workload is large and conceivable. The stability and reliability of the update gradually decrease as the workload increases.
At present, for multi-site updating, most processing schemes are that an operator repeatedly executes a flow of single-site updating operation or writes a script for execution, but updating packet uploading still requires the operator to perform one-by-one operation, and when a server deploys multiple sites, the operator still needs to manually perform operations of stopping and starting the sites or services one by one, so that the working efficiency is very low.
Disclosure of Invention
Based on the above problems, embodiments of the present invention provide a method, a client, and a system for multi-site automatic update, so as to solve the problem in the prior art that the update needs to be performed manually on site by site.
According to an aspect of the present invention, an embodiment of the present invention provides a multi-site automatic update method, where the method includes: acquiring update execution information of a management terminal, and analyzing client update information according to the update execution information; according to a standard site naming principle, judging sites needing to be stopped, started or restarted in the client from the client updating information; judging the service needing to be stopped, started or restarted in the client from the client updating information according to a standard application naming principle; determining files needing to be updated from the client updating information, and automatically executing updating operation according to the sequence of stopping the website, stopping service, updating the files, starting service and starting the website; and after the updating operation is finished, locally storing an updating operation result and returning the updating operation result to the management end.
The acquiring of the update execution information of the management terminal and the analyzing of the client update information according to the update execution information of the management terminal include:
acquiring grouping information and updating information of a management end; the grouping information is information obtained by dividing a client into a plurality of groups by a management terminal according to the difference of sites or services, and comprises a grouping name and a client ID list; the update information comprises a group name and a client actual update directory; identifying the group to which the client belongs by comparing the client ID with the group information; and analyzing the client updating information from the updating information of the management terminal according to the group to which the client belongs.
Optionally, the method further comprises: before the updating operation is executed, the files needing to be updated are packaged to obtain an archive package, the backup information of the archive package is stored locally, and the backup information is returned to the management end.
Optionally, the method further comprises: obtaining rollback execution information of a management end; judging sites or services which need to be stopped, started or restarted in the client from the rollback execution information; according to the rollback execution information, reading locally stored backup information, and releasing the content needing rollback from the archive package for covering files which fail to be updated; performing rollback operation according to the sequence of stopping the site, stopping service, recovering the file, starting service and starting the site; and after the rollback operation is finished, returning the rollback operation result to the management end.
Optionally, the method further comprises: after the updating operation is finished, acquiring the information-summary algorithm MD5 value of the updated file from the updating operation result; and recording the MD5 value in a local file and returning the MD5 value to the management end for the management end to check the result of the updating operation.
Optionally, the method further comprises: acquiring deletion execution information of a management end; acquiring content information to be deleted by the client according to the deletion execution information; and executing the deleting operation and returning the deleting operation result to the management end.
According to another aspect of the present invention, an embodiment of the present invention provides a client, including: the information processing module is used for acquiring the update execution information of the management terminal and analyzing the client update information according to the update execution information; the site control module is used for judging sites needing to be stopped, started or restarted in the client from the client updating information according to a standard site naming principle; the service control module is used for judging the services which need to be stopped, started or restarted in the client from the client updating information according to a standard application naming principle; and the updating module is used for determining files needing to be updated from the client updating information, automatically executing updating operation according to the sequence of stopping the website, stopping the service, updating the files, starting the service and starting the website, and locally storing the updating operation result and returning the updating operation result to the management terminal after the updating operation is finished.
Wherein the information processing module includes: the grouping information acquisition submodule is used for acquiring the grouping information and the updating information of the management terminal; the grouping information is information obtained by dividing a client into a plurality of groups by a management terminal according to the difference of sites or services, and comprises a grouping name and a client ID list; the update information comprises a group name and a client actual update directory; the grouping comparison submodule is used for identifying the grouping to which the client belongs by comparing the client ID with the grouping information; and the analysis submodule is used for analyzing the client updating information from the updating information of the management terminal according to the group to which the client belongs.
Optionally, the client further includes: and the backup module is used for packing the files needing to be updated to obtain an archive package before the update operation is executed, locally storing the backup information of the archive package and returning the backup information to the management terminal.
Optionally, the information processing module is further configured to obtain rollback execution information of the management end; the station control module is further configured to determine a station that needs to be stopped, started, or restarted in the client from the rollback execution information; the service control module is also used for judging the service which needs to be stopped, started or restarted in the client from the rollback execution information; the client further comprises: and the rollback module is used for reading the backup information stored locally according to the rollback execution information, releasing the content needing to be rolled back from the filing package to cover the file failed in updating, executing the rollback operation according to the sequence of stopping the site, stopping the service, recovering the file, starting the service and starting the site, and returning the rollback operation result to the management end after the rollback operation is finished.
Optionally, the client further includes: the verification module is used for acquiring the information-summary algorithm MD5 value of the updated file from the updating operation result after the updating operation is finished; and recording the MD5 value in a local file and returning the MD5 value to the management end for the management end to check the result of the updating operation.
Optionally, the information processing module is further configured to acquire deletion execution information of the management end; the client further comprises: the deleting module is used for acquiring content information needing to be deleted by the client according to the deleting execution information; and executing the deleting operation and returning the deleting operation result to the management end.
According to a further aspect of the present invention, an embodiment of the present invention provides a multi-site automatic update system, which is characterized by including a management end and at least one client end described above; the management terminal is used for providing the update information, the grouping information and the execution information for the client terminal and storing the operation record.
The invention has the beneficial effects that: according to the method, the client and the system for multi-site automatic updating, provided by the embodiment of the invention, the updating execution information of the management terminal is obtained, the updating information of the client is analyzed according to the updating execution information of the management terminal, and the analyzed updating information of the client can distinguish sites, services and common contents; then, according to the standard site naming principle and the application naming principle, the sites and/or services which need to be stopped, started or restarted in the client are judged from the client updating information, so that the related actions are accurately executed, and the condition that the sites are abnormal in the updating process is ensured; determining files needing to be updated from the client updating information, and automatically executing updating operation according to the sequence of stopping the sites, stopping service, updating the files, starting service and starting the sites, so that the automatic updating of a plurality of sites on the client is safely, quickly and accurately completed; after the updating operation is finished, the updating operation result is stored locally and returned to the management end, so that the updating operation has traceability. Therefore, the technical scheme of the invention can solve the problem caused by the fact that the stations are manually updated one by one in the prior art, and the safety, the accuracy and the reliability of automatic updating of a plurality of stations are ensured while the working efficiency is improved.
Furthermore, the management end can divide the clients into a plurality of groups according to the difference of sites or services, the clients in the group are mostly in load balancing configuration, and the updating contents of different groups are different; the management terminal provides the update information with the grouping information to the client terminal, so that the content repetition of the update information can be reduced, the simultaneous update operation of a plurality of sets of client terminals with load balancing configuration by the management terminal is realized, and the quantity and the scale of automatic update sites are enlarged.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
FIG. 1 is a flow chart that schematically illustrates a method for multi-site automatic update, in accordance with an embodiment of the present invention;
FIG. 2 is a diagram schematically illustrating a multi-site automatic update system architecture provided by an embodiment of the present invention;
FIG. 3 schematically illustrates a block diagram of a client in accordance with an embodiment of the present invention;
FIG. 4 schematically illustrates a block diagram of another client in accordance with an embodiment of the present invention;
fig. 5 is a block diagram schematically illustrating a multi-site automatic update system according to an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
The method has the main technical conception that the client analyzes client update information capable of distinguishing sites, services and common contents according to update execution information of a management end, judges which sites in the client need to be stopped, started or restarted and/or services from the client update information according to a standard site naming principle and a service naming principle, and automatically executes update operation according to the sequence of stopping the sites, stopping the services, updating client files, starting the services and starting the sites, so that related actions are accurately executed, the condition that the sites are abnormal in the update process is ensured, and the automatic update of a plurality of sites on the client is safely, quickly and accurately completed; after the updating is finished, the updating operation result is stored locally and returned to the management end, so that the updating operation has traceability. In addition, the invention can also provide the updating execution information with the grouping information at the management end, reduce the content repetition of the updating information, realize that the management end simultaneously updates a plurality of sets of clients with load balancing configuration, and enlarge the quantity and the scale of the automatic updating sites.
Fig. 1 is a flowchart illustrating a multi-site automatic update method according to an embodiment of the present invention. As shown in fig. 1, a method for multi-site automatic update provided in an embodiment of the present invention includes the following steps:
and S11, acquiring the update execution information of the management terminal, and analyzing the client update information according to the update execution information.
The multi-site automatic updating system needs two roles of a management end and a client end when running, and the management end provides updating execution information; and the client side obtains the update execution information and then realizes the functions of backup, update, rollback, restart and the like.
For the client side with load balancing configuration, the management side can also divide the client side into a plurality of groups according to site or service difference and construct a grouping information file. Grouping is to reduce duplicate content. The grouping information is recorded in a management end file, basically unchanged after configuration, and the grouping information format is as follows: group name, client ID list.
Therefore, when the management end sends update execution information to the client, the management end needs to include a group name. The management end can automatically generate the update information file according to the specified update file directory rule, for example, the first-layer directory name is the name of the required update group, and the rest is the structure of the actual directory of the client. When the management end sends an update execution instruction to the client, the management end distributes the grouping information and the update information to a plurality of clients.
As shown in fig. 2, fig. 2 is a structural diagram of a multi-site automatic updating system according to an embodiment of the present invention. The management end distributes the grouping information and the updating information to each controlled client, the clients are divided into a plurality of groups according to site or service difference, and the content of the clients needing to be updated in different groups is different. The grouping information includes a grouping name and a client ID list, and the update information includes a grouping name and a client actual update directory. After each client in the group acquires the group information and the update information of the management terminal, the group to which the client belongs is identified by comparing the ID of the client with the group information, the update information of the client is analyzed from the update information of the management terminal according to the group to which the client belongs, and then corresponding operation is executed locally at the client.
The information released by the management terminal and the information returned by the client terminal can be realized by an open source tool Saltstack. The functions of updating, backup, rollback, deletion, verification, restart and the like can be automatically realized on the client according to the execution information of the management terminal.
And S12, judging the sites which need to be stopped, started or restarted in the client from the client updating information according to the standard site naming principle.
When a plurality of sites are deployed on one client, the client judges which sites on the client need to be stopped, started or restarted from the client updating information according to the standard site naming principle, and executes related actions. In the process of stopping the operation of the site, a process value of the site to be stopped needs to be acquired, and the process value can be provided by the management end in the execution information. When a plurality of contents in the site need to be modified, a judgment lock is established, and the same site is prevented from executing repeated operation for many times. The execution operation result of the station can be independently returned to the management end in the form of a list data structure according to the requirement.
And S13, judging the service which needs to be stopped, started or restarted in the client from the client updating information according to the standard service naming principle.
When one client provides multiple services, the client judges service items needing to be stopped, started and restarted on the client from client updating information according to a standard application naming principle, the service can be Java application, specified operation is executed, and the executed result can be independently returned to a management terminal in a list data structure form according to the requirement.
Description of the drawings: the above steps S12 and S13 may be performed simultaneously, and the update execution information of the management end may only indicate that the client stops, starts, or restarts a certain site or service, and does not relate to updating the client file, at which time the execution operation result of the client on the site or service needs to be returned to the management end separately.
And S14, determining the files needing to be updated from the client updating information.
The client side generates client side updating information according to the updating execution information of the management side, sites, services and common contents can be distinguished from the client side updating information, the common contents can be client side files or configuration information, and the client side automatically maintains related sites and services according to the generated client side updating information.
The generated client update information includes an actual update directory of the client, and the client acquires an update source file from the management terminal according to the actual update directory and then performs an update operation on a local destination file of the client.
And S15, executing the updating operation according to the sequence of stopping the site, stopping the service, updating the file, starting the service and starting the site.
In order to ensure the updating safety, the execution sequence of each site is sequentially stop, service stop, file updating, service starting and site starting, and if the updating content does not comprise the service or the site, the stop or the start of the site or the service is not executed.
When the update execution information indicates that a plurality of sites on the client need synchronous update, the plurality of sites can independently and synchronously execute respective update operations.
And S16, after the updating operation is finished, locally storing the updating operation result and returning the updating operation result to the management end.
And after the updating operation is finished, returning an updating operation result to the management end, and locally storing the updating operation result. The result of the update operation records the content of the success or failure of the update of the specific site, and/or service, and/or the client file. The update operation result is recorded and returned, so that the update operation has traceability.
And the management end stores the result of the updating operation executed by the client and records the result in a management end file according to the operator information, the operation time, the operation content and the operation result.
In an embodiment of the method of the present invention, the multi-site automatic updating method of the present invention may further include the steps of: before the automatic updating operation is executed, the files needing to be updated are packaged to obtain an archive package, the backup information of the archive package is stored locally, and the backup information is returned to the management terminal.
The method comprises the steps that after a client receives update execution information of a management end, the client update information is analyzed from the update execution information, file information needing to be updated is determined from the client update information, before the file is changed, the file needing to be changed is firstly filed to a local backup, the filed backup information is stored locally, the backup information records the file name of a filing package, and meanwhile, the backup information is returned to the client. The embodiment of the method automatically backs up the files before the files of the client are updated, so that the safety and reliability of the multi-site automatic updating method are ensured.
In another embodiment of the present invention, the multi-site automatic updating method further includes: obtaining rollback execution information of a management end; judging sites or services which need to be stopped, started or restarted in the client from the rollback execution information; according to the rollback execution information, reading locally stored backup information, and releasing the content needing rollback from the archive package for covering files which fail to be updated; performing rollback operation according to the sequence of stopping the site, stopping service, recovering the file, starting service and starting the site; and after the rollback operation is finished, returning the rollback operation result to the management end.
When the client fails to execute the updating operation, the updating operation result is returned to the management end, the management end generates rollback execution information according to the updating operation result which fails to update, and after the client acquires the rollback execution information of the management end, the client reads the local backup information, releases the content which needs to be rolled back from the filing package and covers the file which fails to update. The rollback execution information contains site or service contents, sites or services needing to be stopped, started or restarted in the client are judged from the rollback execution information, and then rollback operation is executed according to the sequence of stopping the sites, stopping the services, recovering files, starting the services and starting the sites, so that the safety of the rollback operation is ensured; if the rollback content does not include the service or the site, the stop and start of the site or the service are not executed. The rollback operation result needs to be returned to the management side. The embodiment of the method provides a solution for the failure of the multi-site automatic updating, and ensures the stability and reliability of the multi-site automatic updating method.
In another embodiment of the present invention, the multi-site automatic updating method further includes: after the updating operation is finished, acquiring the information-summary algorithm MD5 value of the updated file from the updating operation result; and recording the MD5 value in a local file and returning the MD5 value to the management end for the management end to check the result of the updating operation.
MD5, Message-Digest Algorithm 5, also known as Digest Algorithm, hash Algorithm, etc., is used to ensure the integrity and consistency of information transmission. After the update operation of the client is finished, the MD5 value of the client update file is automatically obtained and recorded in the local file, and the file content format is "file name: MD5 ", one for each row, and also returns dictionary type data with the file name as key and MD5 as value to the management side. And after receiving the MD5 value, the management terminal performs security and confidentiality verification and version detection on the updated content of the client according to the MD5 value. According to the embodiment of the method, the MD5 value of the updated file is automatically acquired after the file of the client is updated and returned to the management terminal, so that the safety and integrity of the multi-site automatic updating method are guaranteed.
In another embodiment of the present invention, the multi-site automatic updating method further includes: acquiring deletion execution information of a management end; acquiring content information to be deleted by the client according to the deletion execution information; and executing the deleting operation and returning the deleting operation result to the management end.
For example, after the client executes the update operation successfully, the update operation result is returned to the management end, the management end generates deletion execution information according to the update operation result which is updated successfully, and after the client acquires the deletion execution information of the management end, the client deletes the archive package which is backed up before the update operation is executed. The embodiment of the method provides a solution for the successful multi-site automatic updating, and ensures the integrity and the safety of the multi-site automatic updating method.
Based on the same inventive concept as the above method embodiment, fig. 3 shows a structure diagram of a client according to an embodiment of the present invention. As shown in fig. 3, a client 300 provided in an embodiment of the present invention includes:
the information processing module 310 is configured to obtain update execution information of the management end, and analyze client update information according to the update execution information;
the site control module 320 is configured to determine, from the client update information, a site that needs to be stopped, started, or restarted in the client according to a standard site naming principle;
the service control module 330 is configured to determine, from the client update information, a service that needs to be stopped, started, or restarted in the client according to a canonical application naming principle;
and the updating module 340 is configured to determine a file to be updated from the client update information, automatically perform an updating operation according to the sequence of stopping a site, stopping a service, updating the file, starting the service, and starting the site, and after the updating operation is finished, locally store an updating operation result and return the updating operation result to the management end.
In an embodiment of the present invention, the information processing module 310 provided in the embodiment of the present invention may include:
the grouping information acquisition submodule is used for acquiring the grouping information and the updating information of the management terminal; the grouping information is information obtained by dividing a client into a plurality of groups by a management terminal according to the difference of sites or services, and comprises a grouping name and a client ID list; the update information comprises a group name and a client actual update directory;
the grouping comparison submodule is used for identifying the grouping to which the client belongs by comparing the client ID with the grouping information;
and the analysis submodule is used for analyzing the client updating information from the updating information of the management terminal according to the group to which the client belongs.
In an embodiment of the product of the present invention, referring to fig. 4, further based on the client structure shown in fig. 3, another client 400 provided in the embodiment of the present invention further includes:
the backup module 450 is configured to, before performing the update operation, pack the file to be updated to obtain an archive package, store the backup information of the archive package locally, and return the backup information to the management end.
In another product embodiment of the present invention, still referring to fig. 4, a client 400 provided in an embodiment of the present invention further includes:
the rollback module 460 is configured to read locally stored backup information according to rollback execution information of the management end, and release content that needs to be rolled back from the archive package to be used for covering files that fail to be updated; and performing rollback operation according to the sequence of stopping the site, stopping the service, recovering the file, starting the service and starting the site, and returning the rollback operation result to the management end after the rollback operation is finished. Wherein,
the information processing module 310 is further configured to obtain rollback execution information of the management end.
The station control module 320 is further configured to determine a station that needs to be stopped, started, or restarted in the client from the rollback execution information.
The service control module 330 is further configured to determine a service that needs to be stopped, started, or restarted in the client from the rollback execution information.
In yet another product embodiment of the present invention, still referring to fig. 4, a client 400 provided in an embodiment of the present invention further includes:
the checking module 470 is configured to, after the update operation is finished, obtain an information-summary algorithm MD5 value of the updated file from the update operation result; and recording the MD5 value in a local file and returning the MD5 value to the management end for the management end to check the result of the updating operation.
In another embodiment of the present invention, still referring to fig. 4, a client 400 provided in this embodiment of the present invention further includes:
a deleting module 480, configured to obtain content information that needs to be deleted by the client according to the deletion execution information; and executing the deleting operation and returning the deleting operation result to the management end. Wherein,
the information processing module 310 is further configured to obtain deletion execution information of the management end.
The specific working modes of the modules in the client according to the embodiment of the present invention may refer to the related contents in the above embodiment of the method of the present invention, and are not described herein again.
Based on the same inventive concept as the above method embodiment, fig. 5 shows a block diagram of a multi-site automatic update system according to an embodiment of the present invention. As shown in fig. 5, the system for multi-site automatic update according to the embodiment of the present invention includes a management end 500 and at least one of the above-mentioned clients (1,2, … N); the management terminal 500 is configured to provide update information, grouping information, and execution information to the client, and store an operation record.
The execution information of the management terminal comprises updating execution information, rollback execution information, deleting execution information and the like, and is issued to the client terminal through the interactive interface of the management terminal, and the client terminal is appointed to execute appointed operation. The client returns the automatically executed updating result, backup result, rollback result, MD5 value and deletion result to the management end, and the management end records the operation execution results in the management end file.
In summary, according to the multi-site automatic update method, the client and the system provided by the embodiment of the present invention, by acquiring the update execution information of the management end and analyzing the update information of the client accordingly, the update information of the client can distinguish sites, services and general contents; then, according to the standard site naming principle and the application naming principle, the sites and/or services which need to be stopped, started or restarted in the client are judged from the client updating information, so that the related actions are accurately executed, and the condition that the sites are abnormal in the updating process is ensured; determining files needing to be updated from the client updating information, and automatically executing updating operation according to the sequence of stopping the sites, stopping service, updating the files, starting service and starting the sites, so that the automatic updating of a plurality of sites on the client is safely, quickly and accurately completed; after the updating operation is finished, the updating operation result is stored locally and returned to the management end, so that the updating operation has traceability. Therefore, the technical scheme of the invention can solve the problem caused by the fact that the stations are manually updated one by one in the prior art, and the safety, the accuracy and the reliability of automatic updating of a plurality of stations are ensured while the working efficiency is improved.
Furthermore, the management end can divide the clients into a plurality of groups according to the difference of sites or services, the clients in the group are mostly in load balancing configuration, and the updating contents of different groups are different; the management terminal provides the update information with the grouping information to the client terminal, so that the content repetition of the update information can be reduced, the simultaneous update operation of a plurality of sets of client terminals with load balancing configuration by the management terminal is realized, and the quantity and the scale of automatic update sites are enlarged.
Furthermore, before the automatic updating operation is executed, the files needing to be updated are packaged to obtain the archive package, the backup information of the archive package is stored locally, and the backup information is returned to the management end, so that the safety and reliability of multi-site automatic updating can be ensured.
Furthermore, when the client fails to execute the updating operation, the rollback operation is executed, the local backup information is read, the content needing to be rolled back is released from the filing package and covers the file which fails to be updated, and the rollback operation result is returned to the management terminal, so that a solution is provided for the multi-site automatic updating failure, and the stability and reliability of the multi-site automatic updating method are ensured.
Further, after the updating operation is finished, obtaining the information-summary algorithm MD5 value of the updated file from the updating operation result; and the MD5 value is recorded in a local file, and the MD5 value is returned to the management terminal to be used for the management terminal to check the updating operation result, so that the safety and the integrity of the multi-site automatic updating method are ensured.
Furthermore, the client acquires the content information to be deleted by the client according to the deletion execution information of the management terminal, executes the deletion operation, and returns the deletion operation result to the management terminal, thereby ensuring the integrity and the safety of the multi-site automatic updating method.
It should be noted that:
the various component embodiments of the invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art will appreciate that a microprocessor or Digital Signal Processor (DSP) may be used in practice to implement some or all of the functionality of some or all of the components in accordance with embodiments of the present invention. The present invention may also be embodied as apparatus or device programs (e.g., computer programs and computer program products) for performing a portion or all of the methods described herein. Such programs implementing the present invention may be stored on computer-readable media or may be in the form of one or more signals. Such a signal may be downloaded from an internet website or provided on a carrier signal or in any other form.
Reference herein to "one embodiment," "an embodiment," or "one or more embodiments" means that a particular feature, structure, or characteristic described in connection with the embodiment is included in at least one embodiment of the invention. Moreover, it is noted that instances of the word "in one embodiment" are not necessarily all referring to the same embodiment.
Moreover, it should also be noted that the language used in the specification has been principally selected for readability and instructional purposes, and may not have been selected to delineate or circumscribe the inventive subject matter. Accordingly, many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the appended claims. The present invention has been disclosed in an illustrative rather than a restrictive sense, and the scope of the present invention is defined by the appended claims.

Claims (11)

1. A multi-site automatic update method, the method comprising:
acquiring update execution information of a management end, and analyzing client update information capable of distinguishing sites, services and common contents according to the update execution information;
judging sites needing to be stopped, started or restarted in the client from client updating information according to a standard site naming principle, wherein a plurality of sites are deployed on the client;
judging the service needing to be stopped, started or restarted in the client from the client updating information according to a standard application naming principle;
determining files needing to be updated from the client updating information, and automatically executing updating operation according to the sequence of stopping the website, stopping service, updating the files, starting service and starting the website;
after the updating operation is finished, locally storing an updating operation result and returning the updating operation result to the management end;
the obtaining of the update execution information of the management terminal and the analyzing of the client update information according to the update execution information of the management terminal include:
acquiring grouping information and updating information of a management end; the grouping information is information obtained by dividing a client into a plurality of groups by a management terminal according to the difference of sites or services, and comprises a grouping name and a client ID list; the update information comprises a group name and a client actual update directory;
identifying the group to which the client belongs by comparing the client ID with the group information;
and analyzing the client updating information from the updating information of the management terminal according to the group to which the client belongs.
2. The method of claim 1, further comprising:
before the automatic updating operation is executed, the files needing to be updated are packaged to obtain an archive package, the backup information of the archive package is stored locally, and the backup information is returned to the management terminal.
3. The method of claim 2, further comprising:
obtaining rollback execution information of a management end;
judging sites or services which need to be stopped, started or restarted in the client from the rollback execution information;
according to the rollback execution information, reading locally stored backup information, and releasing the content needing rollback from the archive package for covering files which fail to be updated;
performing rollback operation according to the sequence of stopping the site, stopping service, recovering the file, starting service and starting the site;
and after the rollback operation is finished, returning the rollback operation result to the management end.
4. The method of claim 1, further comprising:
after the updating operation is finished, acquiring the information-summary algorithm MD5 value of the updated file from the updating operation result;
and recording the MD5 value in a local file and returning the MD5 value to the management end for the management end to check the result of the updating operation.
5. The method of claim 4, further comprising:
acquiring deletion execution information of a management end;
acquiring content information to be deleted by the client according to the deletion execution information;
and executing the deleting operation and returning the deleting operation result to the management end.
6. A client, the client comprising:
the information processing module is used for acquiring the update execution information of the management terminal and analyzing the client update information capable of distinguishing sites, services and common contents according to the update execution information;
the system comprises a site control module, a site management module and a site management module, wherein the site control module is used for judging sites needing to be stopped, started or restarted in a client from client updating information according to a standard site naming principle, and a plurality of sites are deployed on the client;
the service control module is used for judging the services which need to be stopped, started or restarted in the client from the client updating information according to a standard application naming principle;
the updating module is used for determining files needing to be updated from the client updating information, automatically executing updating operation according to the sequence of stopping the website, stopping service, updating the files, starting service and starting the website, and after the updating operation is finished, locally storing the updating operation result and returning the updating operation result to the management end;
the information processing module includes:
the grouping information acquisition submodule is used for acquiring the grouping information and the updating information of the management terminal; the grouping information is information obtained by dividing a client into a plurality of groups by a management terminal according to the difference of sites or services, and comprises a grouping name and a client ID list; the update information comprises a group name and a client actual update directory;
the grouping comparison submodule is used for identifying the grouping to which the client belongs by comparing the client ID with the grouping information;
and the analysis submodule is used for analyzing the client updating information from the updating information of the management terminal according to the group to which the client belongs.
7. The client of claim 6, further comprising:
and the backup module is used for packing the files needing to be updated to obtain an archive package before the update operation is executed, locally storing the backup information of the archive package and returning the backup information to the management terminal.
8. The client of claim 7,
the information processing module is also used for acquiring rollback execution information of the management terminal;
the station control module is further configured to determine a station that needs to be stopped, started, or restarted in the client from the rollback execution information;
the service control module is also used for judging the service which needs to be stopped, started or restarted in the client from the rollback execution information;
the client further comprises:
and the rollback module is used for reading the backup information stored locally according to the rollback execution information, releasing the content needing to be rolled back from the filing package to cover the file failed in updating, executing the rollback operation according to the sequence of stopping the site, stopping the service, recovering the file, starting the service and starting the site, and returning the rollback operation result to the management end after the rollback operation is finished.
9. The client of claim 6, further comprising:
the verification module is used for acquiring the information-summary algorithm MD5 value of the updated file from the updating operation result after the updating operation is finished;
and recording the MD5 value in a local file and returning the MD5 value to the management end for the management end to check the result of the updating operation.
10. The client of claim 6,
the information processing module is also used for acquiring the deletion execution information of the management terminal;
the client further comprises:
the deleting module is used for acquiring content information needing to be deleted by the client according to the deleting execution information; and executing the deleting operation and returning the deleting operation result to the management end.
11. A multi-site automatic update system, comprising a management side and at least one client side according to any one of claims 6 to 10; the management terminal is used for providing the update information, the grouping information and the execution information for the client terminal and storing the operation record.
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 CN105765908A (en) 2016-07-13
CN105765908B true 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)

Families Citing this family (2)

* 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
CN111143295B (en) * 2019-11-14 2024-01-30 泰康保险集团股份有限公司 Policy information processing method, device, equipment and storage medium

Citations (5)

* 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
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 (3)

* 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
US8589516B2 (en) * 2009-09-10 2013-11-19 Motorola Mobility Llc Method and system for intermediating content provider website and mobile device
CN101741905A (en) * 2009-11-30 2010-06-16 曙光信息产业(北京)有限公司 Rapid deployment method for cluster

Patent Citations (5)

* 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
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

Also Published As

Publication number Publication date
WO2016000137A1 (en) 2016-01-07
CN105765908A (en) 2016-07-13

Similar Documents

Publication Publication Date Title
US8225281B1 (en) Automated baseline deployment system
CN102736978B (en) A kind of method and device detecting the installment state of application program
US8627146B2 (en) Model-based testing of an application program under test
US8661418B2 (en) Setting program, workflow creating method, and work flow creating apparatus
CN103077108B (en) A kind of method and system browser collapse being carried out to early warning
US20150324246A1 (en) Correlation of source code with system dump information
US9892122B2 (en) Method and apparatus for determining a range of files to be migrated
US7913233B2 (en) Performance analyzer
US20160098390A1 (en) Command history analysis apparatus and command history analysis method
US20150154097A1 (en) System and method for automated testing
US11782800B2 (en) Methods to automatically correct and improve system recovery and replication processes
CN112860645A (en) Processing method and device for offline compressed file, computer equipment and medium
CN117370203B (en) Automatic test method, system, electronic equipment and storage medium
CN107124335A (en) One kind is based on cloud sea operating system platform test method and system
US9483485B1 (en) Restore database from backup system where full and incremental backups are performed simultaneously
CN105765908B (en) A kind of multi-site automatic update method, client and system
CN102929733B (en) Method and device for processing error files and client-side equipment
CN111737349B (en) Data consistency verification method and device
CN111694724B (en) Test method and device of distributed form system, electronic equipment and storage medium
KR20150124653A (en) System for monitoring and controling electric power system for process verification
CN110618884A (en) Fault monitoring method, virtualized network function module manager and storage medium
CN107239505B (en) Cluster mirror synchronization method and system
JP5592828B2 (en) Patch impact analysis apparatus, method and program
CN113157528A (en) Operation change monitoring method and device based on big data service cloud
JP2005250819A (en) Replication db consistency confirmation method

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.