CN108804121A - Method for edition management, device, medium in distributed system and electronic equipment - Google Patents
Method for edition management, device, medium in distributed system and electronic equipment Download PDFInfo
- Publication number
- CN108804121A CN108804121A CN201810524926.9A CN201810524926A CN108804121A CN 108804121 A CN108804121 A CN 108804121A CN 201810524926 A CN201810524926 A CN 201810524926A CN 108804121 A CN108804121 A CN 108804121A
- Authority
- CN
- China
- Prior art keywords
- distributed
- node
- version
- update packet
- target
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/71—Version control; Configuration management
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Information Transfer Between Computers (AREA)
- Stored Programmes (AREA)
Abstract
An embodiment of the present invention provides a kind of applied to the method for edition management of distributed system, device, computer-readable medium and electronic equipment.Method for edition management suitable at least one of distributed system distributed node includes:The information that target software needs the target version updated is obtained, and obtains and is capable of providing the distributed node list that the packet of the update to the target version is downloaded;The update packet is downloaded from the target distribution formula node in the distributed node list;Based on the update packet downloaded from the target distribution formula node, the target software is updated.The technical solution of the embodiment of the present invention solves the problems, such as all distributed nodes performance bottleneck all caused by obtaining update packet in single or fixed update packet issue source, simultaneously because without manually being disposed, therefore a large amount of human cost is also saved, effectively increases the software deployment efficiency in large scale distributed system.
Description
Technical field
The present invention relates to computer and fields of communication technology, in particular to a kind of version applied to distributed system
This management method, device, computer-readable medium and electronic equipment.
Background technology
Provide high concurrent information service when, often use Distributed system design, with by multiple servers come
Dispersion performance pressure.But with the increase of traffic pressure, the number of servers in distributed system can also continue to increase deployment, and
And every server is required for installation service software, and constantly updated with the exploitation of system.
When server number of units reaches certain amount, the distribution of service software will become extremely difficult with mapping out the work.Than
Such as in one has the application service of mass users, the deployment quantity of server is likely to be breached hundreds and thousands of, if passing through tradition
The artificial mode by platform deployment services software, then the workload disposed is very huge, be difficult not only be rapidly completed, and
And also error-prone.A kind of deployment scheme is proposed in the related technology, and the program is mainly by each in distributed system
Server downloads update packet from the same distribution apparatus (such as storage device or version management server), is then based on update
Packet carries out deployment update, and this mode is the problem is that when the number of servers in distributed node is more, all from same
Update packet is obtained in a distribution apparatus can lead to limited performance, less efficient.
Therefore, the software deployment efficiency how improved in distributed system becomes technical problem urgently to be resolved hurrily.
It should be noted that information is only used for reinforcing the reason of the background to the present invention disclosed in above-mentioned background technology part
Solution, therefore may include the information that those of ordinary skill in the art are not constituted with the known prior art.
Invention content
The embodiment of the present invention is designed to provide a kind of method for edition management, device, meter applied to distributed system
Calculation machine readable medium and electronic equipment, and then overcome software deployment in distributed system less efficient at least to a certain extent
Problem.
Other characteristics and advantages of the present invention will be apparent from by the following detailed description, or partially by the present invention
Practice and acquistion.
According to a first aspect of the embodiments of the present invention, a kind of method for edition management applied to distributed system is provided,
The method for edition management is suitable at least one of distributed system distributed node, the method for edition management packet
It includes:The information that target software needs the target version updated is obtained, and is capable of providing from the acquisition of version management server to institute
State the distributed node list that the update packet of target version is downloaded;Target distribution formula from the distributed node list
The update packet is downloaded in node;It is soft to the target based on the update packet downloaded from the target distribution formula node
Part is updated.
In some embodiments of the invention, aforementioned schemes are based on, the update being capable of providing to the target version is obtained
The distributed node list being downloaded is wrapped, including:The distributed node list is obtained to the transmission of version management server
Take request;The version management server is received according to the distributed node list for obtaining request and returning.
In some embodiments of the invention, aforementioned schemes are based on, are divided from the target in the distributed node list
Before downloading the update packet in cloth node, further include:According to each distributed node in the distributed node list
Address information, the nearest distributed node of chosen distance is as the target distribution formula node.
In some embodiments of the invention, aforementioned schemes, the version management applied to distributed system are based on
Method further includes:If downloading the update Bao Yi of the update packet failure or download from the target distribution formula node
Often, then other distributed nodes is selected to download the update packet from the distributed node list.
In some embodiments of the invention, aforementioned schemes, the version management applied to distributed system are based on
Method further includes:If downloading the update Bao Yi of the update packet failure or download from the target distribution formula node
Often, then the target distribution formula node is deleted from the distributed node list.
In some embodiments of the invention, aforementioned schemes, the version management applied to distributed system are based on
Method further includes:If downloaded from all distributed nodes in the distributed node list failure of update packet or
The update packet downloaded is abnormal, then reacquires the distributed node list.
In some embodiments of the invention, it is also wrapped after being updated to the target software based on aforementioned schemes
It includes:The update packet is stored, and is sent to version management server and is capable of providing the notification message that the update packet is downloaded, so as to
The version management server distributes the distributed node list to other distributed nodes.
In some embodiments of the invention, aforementioned schemes are based on, target software is obtained and needs the target version updated
Information, including:It obtains the target software and needs newer version list;According to each version for including in the version list
This issuing time sequence, obtains the information of each version, and as the information of the target version successively.
In some embodiments of the invention, aforementioned schemes are based on, the target software is obtained and needs newer version column
Table, including:The inquiry request of the version for the target software is sent to version management server;Receive the version management
Server is directed to the version list that the inquiry request returns.
According to a second aspect of the embodiments of the present invention, a kind of method for edition management applied to distributed system is provided,
The method for edition management suitable for the version management server that is connected with each distributed node the distributed system,
The method for edition management includes:It obtains and is capable of providing at least one distributed section that the packet of the update to target software is downloaded
The information of point;If receiving the download for wrapping the update that the first distributed node in the distributed system is sent to ask
Ask, then according to the information of at least one distributed node to first distributed node distribution be capable of providing to it is described more
Newly wrap the distributed node list being downloaded;The distributed node list is sent to first distributed node, with
So that first distributed node is based on the distributed node list and downloads the update packet.
In some embodiments of the invention, aforementioned schemes, the version management applied to distributed system are based on
Method further includes:If receiving the update that is capable of providing that the second distributed node in the distributed system is sent to wrap
The notification message of download then records the information of second distributed node.
In some embodiments of the invention, aforementioned schemes, the version management applied to distributed system are based on
Method further includes:If getting the target software needs the update packet verified, specified point into the distributed system
Cloth node sends verification notice, so that the specified distributed node needs the update packet verified to verify to described;If
The notification message that the update packet verified to the needs that the specified distributed node is sent is verified is received, then is changed
The state of the update packet for needing to verify, the information of the update packet after state change is obtained so as to other distributed nodes.
According to a third aspect of the embodiments of the present invention, a kind of method for edition management applied to distributed system is provided,
Specified distributed node of the method for edition management suitable for the distributed system, the method for edition management include:
Target software is obtained from version management server needs the update packet verified;Update packet is verified;If to described
Update packet is verified, then sending the notice being modified to the state of the update packet to the version management server disappears
Breath, in order to the information of update packet of other distributed nodes after obtaining state change in the version management server.
In some embodiments of the invention, aforementioned schemes, the version management applied to distributed system are based on
Method further includes:If being verified to update packet, the target software is updated according to update packet, and
The update packet is stored, in order to provide the download service of the update packet to other distributed nodes.
According to a fourth aspect of the embodiments of the present invention, a kind of edition management device applied to distributed system is provided,
The edition management device is suitable at least one of distributed system distributed node, the edition management device packet
It includes:Acquiring unit needs the information of the target version updated for obtaining target software, and is obtained from version management server
It is capable of providing the distributed node list that the update packet to the target version is downloaded;Download unit, for from described point
The update packet is downloaded in target distribution formula node in cloth node listing;Updating unit, for being based on from the target point
The update packet downloaded in cloth node, is updated the target software.
According to a fifth aspect of the embodiments of the present invention, a kind of edition management device applied to distributed system is provided,
The edition management device suitable for the version management server that is connected with each distributed node the distributed system,
The edition management device includes:Acquiring unit, for obtain be capable of providing to target software update packet be downloaded to
The information of a few distributed node;Allocation unit, for the target distribution formula node in receiving the distributed system
Send when asking the download of the update packet, according to the information of at least one distributed node to the target distribution
The distribution of formula node is capable of providing the distributed node list being downloaded to the update packet;Transmission unit, for described will divide
Cloth node listing is sent to the target distribution formula node, so that the target distribution formula node is based on the distributed node
The update packet is downloaded in list.
According to a sixth aspect of the embodiments of the present invention, a kind of edition management device applied to distributed system is provided,
Specified distributed node of the edition management device suitable for the distributed system, the edition management device include:
Acquiring unit needs the update packet verified for obtaining target software from version management server;Authentication unit, for institute
Update packet is stated to be verified;Transmission unit, for when being verified to update packet, being sent out to the version management server
The notification message that is modified of state to the update packet is sent, in order to which other distributed nodes are from the version management service
The information of the update packet after state change is obtained in device.
According to a seventh aspect of the embodiments of the present invention, a kind of computer-readable medium is provided, computer is stored thereon with
Program realizes the version management applied to distributed system as in the preceding embodiment when described program is executed by processor
Method.
According to a eighth aspect of the embodiments of the present invention, a kind of electronic equipment is provided, including:One or more processors;
Storage device, for storing one or more programs, when one or more of programs are held by one or more of processors
When row so that one or more of processors realize the version pipe applied to distributed system as in the preceding embodiment
Reason method.
In the technical solution that some embodiments of the present invention are provided, the mesh updated is needed by obtaining target software
Mark the information of version, and obtain the distributed node list that is downloaded of update packet being capable of providing to target software, with from this
Update packet is downloaded in target distribution formula node in distributed node list so that in a distributed system, distributed node can
From download software upgrading packet in other distributed nodes that update packet is downloaded is capable of providing, to solve all distributed nodes all
The performance bottleneck problem caused by obtaining update packet in single or fixed update packet issue source, simultaneously because without artificial
It is disposed manually, therefore also saves a large amount of human cost, effectively increase the software portion in large scale distributed system
Affix one's name to efficiency.
It should be understood that above general description and following detailed description is only exemplary and explanatory, not
It can the limitation present invention.
Description of the drawings
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the present invention
Example, and be used to explain the principle of the present invention together with specification.It should be evident that the accompanying drawings in the following description is only the present invention
Some embodiments for those of ordinary skill in the art without creative efforts, can also basis
These attached drawings obtain other attached drawings.In the accompanying drawings:
Fig. 1 diagrammatically illustrates the method for edition management according to an embodiment of the invention applied to distributed system
Flow chart;
Fig. 2 diagrammatically illustrates the version management side applied to distributed system according to another embodiment of the invention
The flow chart of method;
Fig. 3 diagrammatically illustrates the version management side applied to distributed system according to still another embodiment of the invention
The flow chart of method;
Fig. 4 diagrammatically illustrates the Organization Chart of distributed system according to an embodiment of the invention;
Fig. 5 diagrammatically illustrates the version management side applied to distributed system according to still a further embodiment
The flow chart of method;
Fig. 6 diagrammatically illustrates the edition management device according to an embodiment of the invention applied to distributed system
Block diagram;
Fig. 7 diagrammatically illustrates the version management applied to distributed system according to another embodiment of the invention and fills
The block diagram set;
Fig. 8 diagrammatically illustrates the version management applied to distributed system according to still another embodiment of the invention and fills
The block diagram set;
Fig. 9 shows the structural schematic diagram of the computer system of the electronic equipment suitable for being used for realizing the embodiment of the present invention.
Specific implementation mode
Example embodiment is described more fully with reference to the drawings.However, example embodiment can be with a variety of shapes
Formula is implemented, and is not understood as limited to example set forth herein;On the contrary, thesing embodiments are provided so that the present invention will more
Fully and completely, and by the design of example embodiment comprehensively it is communicated to those skilled in the art.
In addition, described feature, structure or characteristic can be incorporated in one or more implementations in any suitable manner
In example.In the following description, many details are provided to fully understand the embodiment of the present invention to provide.However,
It will be appreciated by persons skilled in the art that technical scheme of the present invention can be put into practice without one or more in specific detail,
Or other methods, constituent element, device, step may be used etc..In other cases, it is not shown in detail or describes known side
Method, device, realization or operation are to avoid fuzzy each aspect of the present invention.
Block diagram shown in attached drawing is only functional entity, not necessarily must be corresponding with physically separate entity.
I.e., it is possible to realize these functional entitys using software form, or realized in one or more hardware modules or integrated circuit
These functional entitys, or these functional entitys are realized in heterogeneous networks and/or processor device and/or microcontroller device.
Flow chart shown in attached drawing is merely illustrative, it is not necessary to including all content and operation/step,
It is not required to execute by described sequence.For example, some operation/steps can also decompose, and some operation/steps can close
And or part merge, therefore the sequence actually executed is possible to be changed according to actual conditions.
Fig. 1 diagrammatically illustrates the method for edition management according to an embodiment of the invention applied to distributed system
Flow chart, which is suitable at least one of distributed system distributed node, for example can be adapted for
Any one of distributed system distributed node.
As shown in Figure 1, the method for edition management according to an embodiment of the invention applied to distributed system, including
Following steps S110, step S120 and step S130, are illustrated individually below:
Step S110 obtains the information that target software needs the target version updated, and obtains and be capable of providing to described
The distributed node list that the update packet of target version is downloaded.
In one embodiment of the invention, target software can be obtained and need newer version list, then basis should
The issuing time sequence for each version for including in version list, successively using each version for including in version list as described in
Target version.I.e. in an embodiment of the present invention, can be needed to include in newer version list according to target software is each
Version is successively updated target software.
It in one embodiment of the invention, can be from distributed node to version management for above-mentioned version list
Server sends the inquiry request of the version for the target software, then receives the version management server and is looked into for described
Ask the version list that request returns.I.e. in an embodiment of the present invention, distributed node can be from version management server
Middle inquiry target software needs newer version list.
In addition, in one embodiment of the invention, distributed node can also be sent to version management server to institute
The acquisition request of distributed node list is stated, and then receives the version management server according to the institute for obtaining request and returning
State distributed node list.I.e. in an embodiment of the present invention, version management server can to need update target software version
This distributed node distribution is capable of providing the distributed node list that update packet is downloaded, in order to which distributed node is needing more
When fresh target software, can according to version management server distribute distributed node list come download update packet, solve from
Performance bottleneck problem caused by update is wrapped is obtained in single or fixed update packet issue source.
Step S120 downloads the update packet from the target distribution formula node in the distributed node list.
It in one embodiment of the invention, can be according to the address of each distributed node in distributed node list
Information, the nearest distributed node of chosen distance can be accelerated as above-mentioned target distribution formula node under update packet in this way
Rate is carried, and then software deployment efficiency can be improved.
Step S130, based on the update packet downloaded from the target distribution formula node, to the target software into
Row update.
The technical solution of embodiment illustrated in fig. 1 makes in a distributed system, and distributed node can be from being capable of providing more
Software upgrading packet is downloaded in other distributed nodes that new packet is downloaded, solves all distributed nodes all from single or fixed
Performance bottleneck problem caused by obtaining update packet in packet issue source is updated, simultaneously because without manually being disposed,
Therefore a large amount of human cost is also saved, effectively increases the software deployment efficiency in large scale distributed system.
Technical solution based on embodiment illustrated in fig. 1, in one embodiment of the invention, if from above-mentioned target distribution
The update packet downloaded the update packet failure in formula node or downloaded is abnormal, then is selected from the distributed node list
It selects other distributed nodes and downloads the update packet.The technical solution of the embodiment to download from target distribution formula node
After update packet failure, update packet can be downloaded from other distributed nodes according to distributed node list.Wherein, it is selecting
It, can also be according to the closer distributed node of chosen distance, to accelerate the downloading rate of update packet when other distributed nodes.
In one embodiment of the invention, if downloaded from the target distribution formula node failure of update packet or
The update packet downloaded is abnormal, then deletes the target distribution formula node from the distributed node list.The implementation
The technical solution of example makes it possible to the update packet exception deleted download update packet failure from distributed node list or provided
Distributed node, to realize cleaning to distributed node list.Wherein, it may be unsuccessfully that cannot connect to download update packet
The target distribution formula node or the target distribution formula node cannot provide the download etc. of update packet;The update packet of download is abnormal
May be update is imperfect or update packet verification is abnormal etc..
Based on aforementioned schemes, in one embodiment of the invention, if from all distributions in distributed node list
The update packet downloaded the update packet failure in node or downloaded is abnormal, then can reacquire the distribution
Node listing, for example the message that request distributes distributed node list is sent to version management server, then receive version pipe
Manage the distributed node list redistributed that server returns.
Based on aforementioned schemes, in one embodiment of the invention, after being updated to target software, can also deposit
The update packet is stored up, and is sent to version management server and is capable of providing the notification message that the update packet is downloaded, so as to described
Version management server distributes the distributed node list to other distributed nodes.In this embodiment, when some point
Cloth node is sent to version management server to be capable of providing after the notification message that update packet is downloaded, and version management server can
With can be to the update packet of the target version because usually considering whether to increase to the distributed node according to distance etc.
The distributed node list downloaded is provided, is used to download update packet to distribute to other distributed nodes.
Fig. 2 diagrammatically illustrates the version management side applied to distributed system according to another embodiment of the invention
The flow chart of method, the method for edition management take suitable for the version management being connected with each distributed node distributed system
Business device.
As shown in Fig. 2, the method for edition management applied to distributed system according to another embodiment of the invention, packet
Following steps S210, step S220 and step S230 are included, is illustrated individually below:
In step S210, obtains and be capable of providing at least one distributed section that the packet of the update to target software is downloaded
The information of point.
In one embodiment of the invention, when the distributed node in distributed system is updating completion to target software
Later, update packet can be stored, and is sent a notification message to version management server, when version management server receives distribution
The second distributed node in formula system (second distributed node can be any distributed node in distributed system)
When what is sent is capable of providing the notification message of the update packet download, the information of the distributed node can be recorded, to get
The information for the distributed node being downloaded to update packet can be provided.
In step S220, if receive that the first distributed node in the distributed system sends to the update
The download of packet is asked, then can be carried to first distributed node distribution according to the information of at least one distributed node
For the distributed node list being downloaded to the update packet.
In one embodiment of the invention, it when distributing distributed node list, can be carried out based on distance
Distribution, can also be allocated based on the quality of network state, to improve the downloading rate of update packet.First distributed node
It can be any one distributed node in distributed system.
In step S230, the distributed node list is sent to first distributed node, so that described
One distributed node is based on the distributed node list and downloads the update packet.
The technical solution of embodiment illustrated in fig. 2 so that in a distributed system version management server can be to distribution
Node distribution provides the update distributed node list that packet is downloaded, in order to from the distributed node in the distributed node list
Middle download software upgrading packet solves all distributed nodes and obtains update packet all from single or fixed update packet issue source
Caused by performance bottleneck problem, simultaneously because without manually being disposed, thus also save a large amount of manpower at
This, effectively increases the software deployment efficiency in large scale distributed system.
Technical solution based on embodiment illustrated in fig. 2, in one embodiment of the invention, if version management server obtains
It gets target software and needs the update packet verified, then specified distributed node transmission verification that can be into distributed system is logical
Know, so that the specified distributed node needs the update packet verified to verify to described, when version management server receives
When wrapping the notification message being verified to the update verified to the needs that the specified distributed node is sent, it can change
The state of the update packet for needing to verify, the information of the update packet after state change is obtained so as to other distributed nodes.
In this embodiment, the verification to update packet may be implemented in the specified distributed node in distributed system, in turn
So that version management server when issuing new software upgrading packet, can again be issued later by specified distributed node verification,
It avoids publication improper update packet and the software upgrading in distributed system is caused exception occur.
Fig. 3 diagrammatically illustrates the version management side applied to distributed system according to still another embodiment of the invention
The flow chart of method, specified distributed node of the method for edition management suitable for distributed system.
As shown in figure 3, the method for edition management applied to distributed system according to still another embodiment of the invention, packet
Following steps S310, step S320 and step S330 are included, is illustrated individually below:
In step S310, the update packet that target software needs are verified is obtained from version management server.
It in one embodiment of the invention, can after version management server gets the update packet for needing to verify
It is sent a notification message with the specified distributed node into distributed system, and then the specified distributed node can be from version pipe
The update packet for needing to verify is obtained in reason server.
In step s 320, update packet is verified.
In one embodiment of the invention, verification is carried out to update packet to may include the integrality for verifying update packet, test
Whether the function of card update packet is normal etc..
In step S330, if being verified to update packet, sent to the version management server to described
The notification message that the state of update packet is modified, in order to which other distributed nodes are obtained from the version management server
The information of update packet after state change.
The technical solution of embodiment illustrated in fig. 3 allow the specified distributed node in distributed system to update wrap into
Row verification, so that version management server when issuing new software upgrading packet, can be verified by specified distributed node
It issues again later, avoids publication improper update packet and the software upgrading in distributed system is caused exception occur.
Technical solution based on embodiment illustrated in fig. 3, in one embodiment of the invention, if testing above-mentioned update packet
Card passes through, then can be updated to target software according to update packet, and store the update and wrap, in order to other distributions
Node provides the download service of the update packet.I.e. in this embodiment, on the one hand specify distributed node can be to update
The later update target software being verified is wrapped, to ensure that target software can keep newest version;On the other hand, it specifies and divides
Cloth node storage update packet, can also realize to other distributed nodes and provide the update function that packet is downloaded, and then can solve
Certainly all distributed nodes performance bottleneck problem all caused by obtaining update packet in single or fixed update packet issue source.
Above respectively from the common distributed node of distributed system (i.e. different from other distributions of specified distributed node
Node), the angle of version management server and specified distributed node carries out the version management scheme of the embodiment of the present invention
It illustrates, below in conjunction with Fig. 4 and Fig. 5, interactive process and specific implementation logic between above-mentioned three are described in detail.For just
In distinguishing and illustrating, in introduction below, using version management server as software package information management server, specified distribution
Node is that version verification application server, common distributed node are to illustrate for application server.
As shown in figure 4, in one embodiment of the invention, distributed system includes a software package management server
(M), a version verification application server (A0) and several application servers (A1-An).
Wherein, software package management server (M) (includes basic installation kit and update for the installation kit of management objectives software
Packet etc.) version information etc. of target software that possesses of information, the Application Server information of registration, each application server.It needs
Illustrate, which can be any required application software for carrying out version management, for example can be shown in Fig. 4
Destination software systems (S) etc..
Version authentication server (A0) can be distributed system production environment in the application service disposed of First
Device, function include:Whether the deployment for verifying the software upgrading packet of a new version in production environment is correct;For other application
Server provides retrieval, the download etc. of software upgrading package informatin.Meanwhile version authentication server (A0) is also the in production environment
One server that new version download can be provided.It should be noted that in one embodiment of the invention, the version service for checking credentials
Device (A0) can run release maintenance program (P), with soft to be provided for other application server based on the release maintenance program (P)
Part updates retrieval, the download etc. of package informatin.
Application server (A1-An) is the other application server in production environment, and the function of these servers includes:Fortune
The above-mentioned destination software systems (S) of row;The retrieval of software upgrading package informatin is provided for other servers, is downloaded.Similarly, at this
In one embodiment of invention, application server (A1-An) can also run the release maintenance program in the embodiment of the present invention
(P), the retrieval of software upgrading package informatin is provided for other servers, download to be based on the release maintenance program (P).
It should be noted that:In an embodiment of the present invention, all application servers in distributed system remove with it is specific
Except the relevant specific configuration of server, the software function run is isomorphism, and deployment is identical.Meanwhile institute in Fig. 4
The solid line with the arrow shown indicates that the acquisition process of partial software update packet, dotted line with the arrow indicate that version registration disappears with notice
The process of breath, will not be described in detail below.
System architecture based on shown in Fig. 4, in one embodiment of the invention, a complete software deployment management week
Phase includes following several processes:Software package management server, application server registers, verification and publication are set, version propagate with
Breeding.Implementation step is described in detail separately below.
1, setting software package management server (M)
Software package management server (M) is a software package management system provided in the embodiment of the present invention, is used for
The version information of software upgrading packet is provided to other application server, downloads the services such as software upgrading packet.Specifically, software package
Following function may be implemented in management server (M):
1.1, destination software systems (S), unique mark, the title etc. of setting destination software systems (S) are defined.
1.2, the systematic parameter configuration set of destination software systems (S) is safeguarded.In one embodiment of the invention, it configures
Item set can be indicated in a manner of " key-value pair ".
1.3, the registration of other application server (Ax), maintenance application server list are received, and inquiry service is provided.Its
In, other application server (Ax) can be based on the release maintenance program (P) installed thereon from trend software package management server
(M) it is registered.
1.4, it safeguards the software version that other application server (Ax) is currently running, and inquiry service is provided.These information
It can be carried out from trend software package management server (M) by the release maintenance program (P) installed on other application server (Ax)
Registration.
1.5, it safeguards the version list of issued destination software systems (S) and inquiry service is provided, it is issued
The version list of destination software systems (S) may include the following contents:Software version number;Lists of documents;Update increases or deletes
Destination software systems (S) systematic parameter configuration set;The update bag-like state of issued destination software systems (S).
In one embodiment of the invention, software version number can pass through ordered sequence value, such as integer, decimal form
To indicate.Lists of documents may include processing sequence, filename, file size, file verification value and document handling modus etc.,
In, document handling modus includes replicating file, deleting file, additional file, as modes such as script execution.Update bag-like state packet
Include it is to be verified, issued, cancelled.
2, new opplication server registration
When an application server (An) is added into distributed system, this can be installed and be run to this application server
Release maintenance Agent (P) in inventive embodiments, in the new opplication server registration stage, release maintenance Agent (P)
Course of work principle it is as follows:
Release maintenance Agent (P) 2.1, is installed on new opplication server (An).
In one embodiment of the invention, release maintenance Agent (P) maintains the parameter list of present application server,
Including but not limited to:Mark, title of book server etc.;Whether book server is authentication server, is defaulted as "No";Software package
The service interface address information of management server (M);Need the system banner of destination software systems (S) safeguarded;It is run
For business service system in deployment, required specific configuration item set related with book server, configuration item set can be with
The mode of " key-value pair " indicates;The business service system run in deployment, match by the general of required distributed system
Item set is set, configuration item set can be indicated in a manner of " key-value pair ".
In one embodiment of the invention, release maintenance Agent (P) to other server providing services include but
It is not limited to:The service interface address information of software package management server (M);The destination software systems that book server is possessed
(S) information inquiry, the information are identical as the information stored in software package management server (M);The finger of destination software systems (S)
Determine the download service of version updating packet;Application server address (Ai) set that book server once accessed and available.
Wherein, available application server address (Ai) refers to the application clothes that update packet installation was once successfully downloaded and completed to book server
It is engaged in device address (Ai).
2.2, start release maintenance Agent (P), release maintenance Agent (P) is according to the software package management configured
The service interface address information of server (M), access software packet management server (M) are registered to software package management server (M)
Book server can send mark, the book server (An) of book server (An) in registration to software package management server (M)
Whether be the release maintenance Agent (P) run in authentication server and book server (An) address.
2.3, software package management server (M) registers the information of this server in the database.
Above-mentioned steps are led to, a new application server is automatically added in the server group inventory of distributed system,
This is one of the Information base of subsequent automated deployment management.
In one embodiment of the invention, it needs that a version verification application service is at least arranged in a distributed system
Device (A0), whether for the release maintenance Agent (P) on version verification application server (A0), it " is verification that can be arranged
Server " mark is "true".Version verification application server (A0) has more functions than common application server, will be rear
It is illustrated in continuous step.
3, verification and publication
When a new version (Sn) of destination software systems (S) prepares publication, the skill in the embodiment of the present invention can be used
Art scheme is as follows to realize the automatically dispose of all application servers, the process of verification and publication:
3.1, prepare the new version update packet of destination software systems (S), which may include software version number;Update
The hash check value of packet;File process inventory;This version needs update, increases or delete destination software systems (S) when issuing
Systematic parameter configuration set;Update bag-like state (being specially " to be verified " state).
In one embodiment of the invention, software version number can pass through ordered sequence value, such as integer, decimal form
To indicate.File process inventory may include file process sequence, filename, file size and document handling modus etc., wherein
Document handling modus includes replicating file, deleting file, additional file, as modes such as script execution.
Above-mentioned software publication collection definition includes that this version is issued, required to be executed on application server (Ax)
All actions.
3.2, it in software package management server (M), registers in the information of this update packet, including above-mentioned update packet
Hold.In one embodiment of the invention, the information of update packet can be registered by way of relational data.
3.3, it uploads in update packet to software package management server (M).Wherein, the content for including in update packet is to issue
File set, and definition document handling modus.Zip compress modes etc. can be used in the mode that update packet is packaged.
3.4, verification application server (A0) the newest update packet version number that notice has been registered for.
3.5, verification application server (A0) asks available software version list to software package management server (M).It obtains
The information content obtained is identical as software version list above-mentioned.
3.6, verification application server (A0) is stateful not by order traversal institute of version number to available software version list
For the project of " cancellation ", since first is more than the project for the current version number that book server records, cycle executes following mistake
Journey:It is defined according to the colophon, corresponding update packet is downloaded from software package management server (M);Verify the update packet
Integrality;According to the definition of update packet, defined deployment action is executed.
In one embodiment of the invention, the configuration that deployment action defined in executing mainly carries out parameter item is replaced
It changes.Particularly, it (is answered for version verification in the embodiment of the present invention for being labeled as the server of " version verification application server "
With server A 0), can also defined deployment action be executed to the update packet that state is " waiting to be verified ".
3.7, etc. after updates to newest verification version, whether the publication of verification destination software systems (S) succeeds, function
It is whether normal.Wherein, whether the publication Yu functional verification of destination software systems (S) correctly belong to the duty of destination software systems (S)
It blames, is not specifically addressed in the embodiment of the present invention.
3.8, it after the new version update packet on version verification application server (A0) is proved to be successful, is taken in software package management
Business device (M) changes the state of the update packet, is changed to " publication " from " to be verified ".
4, version is propagated and is bred
After the update coating of a new version is labeled as " publication " state, the update of all application servers can open
Begin.Update is completed by the service between server, and for an application server (Ai) therein, detailed process is as schemed
Shown in 5, include the following steps:
Step S501, release maintenance Agent (P) inquire destination software systems (S) to software package management server (M)
Information.
In one embodiment of the invention, the release maintenance Agent (P) on application server (Ai) can be with institute
The destination software systems (S) of configuration are identified as parameter, to software package management server (M) inquiry destination software systems (S)
Information, to obtain the version list of issued destination software systems (S).
Step S502 obtains the version list of announced destination software systems (S).
Step S503 is found first and is more than book server by each version in version number's order traversal version list
The version of the current version number of record, cycle execute following steps:
Step S504 judges whether " nearest available server inventory " is empty, if so, thening follow the steps S505;Otherwise,
Execute step S506.It should be noted that it is above-mentioned be capable of providing under update packet to be somebody's turn to do " nearest available server inventory "
The distributed node list of load.
Step S505 initiates to ask, it is desirable that offer can be supported to download the version updating to software package management server (M)
The server inventory (i.e. distributed node list) of packet, is then back to step S504.
In one embodiment of the invention, application server (Ai) can be initiated to ask to software package management server (M)
Ask, for example, using goal systems mark, version number be used as parameter, it is desirable that provide can support download the version updating packet server it is clear
It is single.Software package management server (M) provides parameter as condition using application server (Ai), selects the clothes for being capable of providing the update packet
Business device address, and select and recorded with the most similar preceding n server in request server address, return to application server (Ai).
Step S506 presses address phase approximately principle from " nearest available server inventory ", selects first server.
Step S507 accesses the address of the server of selection, and the update packet of the version is downloaded from the server of selection.
Step S508, judges whether the server of selection unreachable or whether the server can not provide the update of the version
Packet, if so, thening follow the steps S509;Otherwise, step S510 is executed.
Step S509 deletes the server from " nearest available server inventory ", is then back to step S504.
Step S510 judges whether the integrality for the update packet downloaded is normal, if so, thening follow the steps S511;Otherwise, it holds
Row step S509.
Step S511, the update packet based on download execute update deployment action.
Step S512, judges whether deployment succeeds, if so, thening follow the steps S514;Otherwise, step S513 is executed.
Step S513, application server (Ai) reports error message to software package management server (M), and then software is assured
Reason server (M) can record this failure, and send and notify to maintenance personnel, in order to manpower intervention processing.
Step S514 preserves the update APMB package of the version, prepares to provide download service to other servers.
Step S515, application server (Ai) can support that this is soft to software package management server (M) registration the machine
The download of part version.
The working mechanism of above-described embodiment through the invention can form self pipe of each server in distributed system
Reason, automatic registration, automatic deployment and the autonomous system mutually serviced.Meanwhile the loading source for updating packet is no longer unique software
Packet management server (M), greatly reduces the service pressure of software package management server (M), realizes between application server
Mutual discovery, provide update packet mutually, it is ensured that the update of new version is wrapped and can be spread apart in a manner of series, is solved
Server disposition pressure under huge size.
Technical solution based on previous embodiment, the embodiment of the present invention also provide transition scheme and spy in the case of multi version
The relevant configuration scheme for determining application server, is illustrated individually below:
5, the transition scheme in the case of multi version
In distributed system environment, if software systems are updated to new version by a part of application server, and
Another part also operates on old software version, then will produce the inconsistent problem of logic, system is caused to go out in operation
Existing mistake.
It to solve the above-mentioned problems, in an embodiment of the present invention, can be in exploitation and deployment using the journey of multi version
The method of sequence parallel processing.One common example is by the software deployment of different editions in different service paths, simultaneously
Service is provided.Such as:
http://api.demo.com/deomserver/v1.1/test.svc
http://api.demo.com/deomserver/v1.2/test.svc
It is mutually compatible with client release by accessing since the version of visitor's client of destination software systems (S) is different
Service path.Such as v1.0 editions client-side program can access v1.1 editions services, and v2.0 editions client-side program can visit
Ask v1.2 editions services.When the client of v2.0 accesses the v1.2 services disposed, the service of destination software systems (S)
The equipment such as gateway, load balancing will can access on the server for being routed to and having been able to provide v1.2 editions services automatically.Due to
Completing the release maintenance Agent (P) of the server end of deployment can register from trend software package management server (M), therefore complete
It is complete to route required information automatically at this.
In addition, if the logic of legacy version has been proved to have significant problem and must stop servicing, then can pass through
Publication script defines to delete the service of indicated release, to prevent mistake sprawling.
6, the relevant configuration scheme of specific application servers
In one embodiment of the invention, the running environment of application deployment is typically not on different server nodes
The same, it needs to use different operating parameters, and the publication of batch exists when handling the personalized question of each server
It is difficult.Therefore, the embodiment of the present invention provides support scheme for the relevant configuration of particular server:It is disposed in particular server
When installation, following configuration item set is configured in release maintenance Agent (P):Specific configuration related with book server
The generic configuration item set (C2) of item set (C1) and destination software systems (S).
Configuration item set can be configured in a manner of " key-value pair ", this configuration item is integrated into release maintenance Agent
(P) it executes in software upgrading, can be incorporated in script, or definition pre-processes the parametrization of file, realizes different clothes
The individual character configuration of business device.
For example, following individual cultivation item is defined in when server is established in C1:
Serverid=12345
A file in publication packet is defined as " perform script ", and content can be as follows:
Cp*~/app/server { { serverid } }/{ { version } }/
Wherein, { { serverid } } is the reference of the serverid configuration items in gathering (C1), another is exemplified
Variable version is built-in variable, indicates the version number of the update packet.
This script before execution, can carry out Text Pretreatment by release maintenance Agent (P), draw to variable therein
With being replaced, { { serverid } } is replaced by its value " 12345 ", and the script eventually formed is:Cp*~/app/
Server12345/v1.2/, the script after the completion of replacing can be executed really.
The case where another common situation is according to book server, modifies to the setting in text configuration file.
The text file that release maintenance Agent (P) can be designed as specifying in supporting to wrap update carries out variable modification.Such as more
Web, xml document etc. in new packet can also quote with above-mentioned form in configuration item the variable in (C1).
It should be noted that for the processing side of the variable in the generic configuration item set (C2) of destination software systems (S)
Formula is repeated no more with above-mentioned identical.
The technical solution of the above embodiment of the present invention solves service arrangement efficiency, performance in large scale distributed system
With cost problem.This is because the scale with distributed system is increasing, number of servers is more and more, for each service
The workload of device deployment installation software and more new version is also increasing, if in a manner of manually disposing, working efficiency will
The needs being gradually unable to meet production, and need to expend huge human cost, while with the expansion of level of effort, error
Probability it is also increasing.For in the system of single issue source, if the quantity of application server reach thousands of, even on
At ten thousand, incident is the performance bottleneck of single-point issue source.
And the technical solution of the embodiment of the present invention realizes self of server using the update packet service between server
Management, and the server by being updated successfully provides update packet more new demand servicing for other servers, and then original can eliminated
While the performance pressures of beginning issue source, the efficiency of software deployment is improved, and the time complexity of this strategy is logarithmic
, i platforms server can be bred with averagely every server to calculate, the time that primary deployment is completed is:
T=logi N*t
Wherein, T is the duration of version deployment, and N is number of servers, and t is the duration for completing an automatic deployment.
Based on known to above-mentioned analysis:When the scale exponentially formula of server increases, it is only wired to dispose the required time
The increase of property.Therefore the technical solution of the embodiment of the present invention efficiently solves performance bottleneck that is single or fixing issue source scheme and asks
Topic, saved it is a large amount of safeguard human cost, improve the deployment efficiency of large-scale distributed software systems.
The device of the invention embodiment introduced below can be used for executing the above-mentioned distributed system that is applied to of the present invention
Method for edition management.
Fig. 6 diagrammatically illustrates the edition management device according to an embodiment of the invention applied to distributed system
Block diagram, which is suitable at least one of distributed system distributed node, for example can be adapted for point
Any one of cloth system distributed node.
With reference to shown in Fig. 6, the edition management device according to an embodiment of the invention applied to distributed system
600, including:Acquiring unit 602, download unit 604 and updating unit 606.
Wherein, acquiring unit 602 is used to obtain the information that target software needs the target version updated, and obtaining can
The distributed node list that update packet to the target version is downloaded is provided;Download unit 604 is used for from the distribution
The update packet is downloaded in target distribution formula node in formula node listing;Updating unit 606 is used to be based on from the target point
The update packet downloaded in cloth node, is updated the target software.
Fig. 7 diagrammatically illustrates the version management applied to distributed system according to another embodiment of the invention and fills
The block diagram set, the edition management device is suitable for the version management service that is connected with each distributed node distributed system
Device.
With reference to shown in Fig. 7, the edition management device applied to distributed system according to another embodiment of the invention
700, including:Acquiring unit 702, allocation unit 704 and transmission unit 706.
Wherein, acquiring unit 702 be used to obtain be capable of providing update to target software wrap be downloaded it is at least one
The information of distributed node;Allocation unit 704 is sent for the first distributed node in receiving the distributed system
When asking the download of the update packet, distributed saved to described first according to the information of at least one distributed node
Point distribution is capable of providing the distributed node list being downloaded to the update packet;Transmission unit 706 is used for the distribution
Formula node listing is sent to first distributed node, so that first distributed node is arranged based on the distributed node
Table downloads the update packet.
Fig. 8 diagrammatically illustrates the version management applied to distributed system according to still another embodiment of the invention and fills
The block diagram set, specified distributed node of the edition management device suitable for distributed system.
With reference to shown in Fig. 8, the edition management device applied to distributed system according to still another embodiment of the invention
800, including:Acquiring unit 802, authentication unit 804 and transmission unit 806.
Wherein, acquiring unit 802 needs the update packet verified for obtaining target software from version management server;It tests
Card unit 804 is used to verify update packet;Transmission unit 806 is used for when being verified to update packet, to
The version management server sends the notification message being modified to the state of the update packet, in order to other distributed sections
The information of update packet of the point after obtaining state change in the version management server.
Due to each function module of the edition management device applied to distributed system of example embodiments of the present invention
It is corresponding in the example embodiment of the method for edition management of distributed system the step of with above application, therefore for apparatus of the present invention
Undisclosed details in embodiment please refers to the implementation of the above-mentioned method for edition management applied to distributed system of the invention
Example.
Below with reference to Fig. 9, it illustrates the computer systems 900 suitable for the electronic equipment for realizing the embodiment of the present invention
Structural schematic diagram.The computer system 900 of electronic equipment shown in Fig. 9 is only an example, should not be to the embodiment of the present invention
Function and use scope bring any restrictions.
As shown in figure 9, computer system 900 includes central processing unit (CPU) 901, it can be read-only according to being stored in
Program in memory (ROM) 902 or be loaded into the program in random access storage device (RAM) 903 from storage section 908 and
Execute various actions appropriate and processing.In RAM 903, it is also stored with various programs and data needed for system operatio.CPU
901, ROM 902 and RAM 903 are connected with each other by bus 904.Input/output (I/O) interface 905 is also connected to bus
904。
It is connected to I/O interfaces 905 with lower component:Importation 906 including keyboard, mouse etc.;It is penetrated including such as cathode
The output par, c 907 of spool (CRT), liquid crystal display (LCD) etc. and loud speaker etc.;Storage section 908 including hard disk etc.;
And the communications portion 909 of the network interface card including LAN card, modem etc..Communications portion 909 via such as because
The network of spy's net executes communication process.Driver 910 is also according to needing to be connected to I/O interfaces 905.Detachable media 911, such as
Disk, CD, magneto-optic disk, semiconductor memory etc. are mounted on driver 910, as needed in order to be read from thereon
Computer program be mounted into storage section 908 as needed.
Particularly, according to an embodiment of the invention, it may be implemented as computer above with reference to the process of flow chart description
Software program.For example, the embodiment of the present invention includes a kind of computer program product comprising be carried on computer-readable medium
On computer program, which includes the program code for method shown in execution flow chart.In such reality
It applies in example, which can be downloaded and installed by communications portion 909 from network, and/or from detachable media
911 are mounted.When the computer program is executed by central processing unit (CPU) 901, executes and limited in the system of the application
Above-mentioned function.
It should be noted that computer-readable medium shown in the present invention can be computer-readable signal media or meter
Calculation machine readable storage medium storing program for executing either the two arbitrarily combines.Computer readable storage medium for example can be --- but not
Be limited to --- electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor system, device or device, or arbitrary above combination.Meter
The more specific example of calculation machine readable storage medium storing program for executing can include but is not limited to:Electrical connection with one or more conducting wires, just
It takes formula computer disk, hard disk, random access storage device (RAM), read-only memory (ROM), erasable type and may be programmed read-only storage
Device (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-ROM), light storage device, magnetic memory device,
Or above-mentioned any appropriate combination.In the present invention, can be any include computer readable storage medium or storage journey
The tangible medium of sequence, the program can be commanded the either device use or in connection of execution system, device.And at this
In invention, computer-readable signal media may include in a base band or as the data-signal that a carrier wave part is propagated,
Wherein carry computer-readable program code.Diversified forms may be used in the data-signal of this propagation, including but unlimited
In electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be that computer can
Any computer-readable medium other than storage medium is read, which can send, propagates or transmit and be used for
By instruction execution system, device either device use or program in connection.Include on computer-readable medium
Program code can transmit with any suitable medium, including but not limited to:Wirelessly, electric wire, optical cable, RF etc. or above-mentioned
Any appropriate combination.
Flow chart in attached drawing and block diagram, it is illustrated that according to the system of various embodiments of the invention, method and computer journey
The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation
A part for a part for one module, program segment, or code of table, above-mentioned module, program segment, or code includes one or more
Executable instruction for implementing the specified logical function.It should also be noted that in some implementations as replacements, institute in box
The function of mark can also occur in a different order than that indicated in the drawings.For example, two boxes succeedingly indicated are practical
On can be basically executed in parallel, they can also be executed in the opposite order sometimes, this is depended on the functions involved.Also it wants
It is noted that the combination of each box in block diagram or flow chart and the box in block diagram or flow chart, can use and execute rule
The dedicated hardware based systems of fixed functions or operations is realized, or can use the group of specialized hardware and computer instruction
It closes to realize.
Being described in unit involved in the embodiment of the present invention can be realized by way of software, can also be by hard
The mode of part realizes that described unit can also be arranged in the processor.Wherein, the title of these units is in certain situation
Under do not constitute restriction to the unit itself.
As on the other hand, present invention also provides a kind of computer-readable medium, which can be
Included in electronic equipment described in above-described embodiment;Can also be individualism, and without be incorporated the electronic equipment in.
Above computer readable medium carries one or more program, when the electronics is set by one for said one or multiple programs
When standby execution so that the electronic equipment realizes the version management side applied to distributed system as described in above-described embodiment
Method.
For example, the electronic equipment may be implemented as shown in Figure 1:Step S110 obtains target software and needs more
The information of the target version newly arrived, and obtain and be capable of providing the distributed node that the packet of the update to the target version is downloaded
List;Step S120 downloads the update packet from the target distribution formula node in the distributed node list;Step
S130 is updated the target software based on the update packet downloaded from the target distribution formula node.
For another example, each step as shown in Figures 2 to 5 may be implemented in the electronic equipment.
It should be noted that although being referred to several modules or list for acting the equipment executed in above-detailed
Member, but this division is not enforceable.In fact, according to the embodiment of the present invention, it is above-described two or more
The feature and function of module either unit can embody in a module or unit.Conversely, an above-described mould
Either the feature and function of unit can be further divided into and embodied by multiple modules or unit block.
Through the above description of the embodiments, those skilled in the art is it can be readily appreciated that example described herein is implemented
Mode can also be realized by software realization in such a way that software is in conjunction with necessary hardware.Therefore, according to the present invention
The technical solution of embodiment can be expressed in the form of software products, the software product can be stored in one it is non-volatile
Property storage medium (can be CD-ROM, USB flash disk, mobile hard disk etc.) in or network on, including some instructions are so that a calculating
Equipment (can be personal computer, server, touch control terminal or network equipment etc.) is executed according to embodiment of the present invention
Method.
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to its of the present invention
Its embodiment.This application is intended to cover the present invention any variations, uses, or adaptations, these modifications, purposes or
Person's adaptive change follows the general principle of the present invention and includes undocumented common knowledge in the art of the invention
Or conventional techniques.The description and examples are only to be considered as illustrative, and true scope and spirit of the invention are by following
Claim is pointed out.
It should be understood that the invention is not limited in the precision architectures for being described above and being shown in the accompanying drawings, and
And various modifications and changes may be made without departing from the scope thereof.The scope of the present invention is limited only by the attached claims.
Claims (14)
1. a kind of method for edition management applied to distributed system, which is characterized in that the method for edition management is suitable for institute
At least one of distributed system distributed node is stated, the method for edition management includes:
The information that target software needs the target version updated is obtained, and is capable of providing from the acquisition of version management server to institute
State the distributed node list that the update packet of target version is downloaded;
The update packet is downloaded from the target distribution formula node in the distributed node list;
Based on the update packet downloaded from the target distribution formula node, the target software is updated.
2. the method for edition management according to claim 1 applied to distributed system, which is characterized in that from described point
Before downloading the update packet in target distribution formula node in cloth node listing, the method for edition management further includes:
According to the address information of each distributed node in the distributed node list, the nearest distributed section of chosen distance
Point is used as the target distribution formula node.
3. the method for edition management according to claim 2 applied to distributed system, which is characterized in that further include:
If the update packet downloaded the update packet failure from the target distribution formula node or downloaded is abnormal, from institute
It states and other distributed nodes is selected to download the update packet in distributed node list.
4. the method for edition management according to claim 3 applied to distributed system, which is characterized in that further include:
If the update packet downloaded the update packet failure from the target distribution formula node or downloaded is abnormal, by institute
Target distribution formula node is stated to delete from the distributed node list.
5. the method for edition management according to claim 3 applied to distributed system, which is characterized in that further include:
If downloading what the update was wrapped unsuccessfully or downloaded from all distributed nodes in the distributed node list
The update packet is abnormal, then reacquires the distributed node list.
6. the method for edition management according to claim 1 applied to distributed system, which is characterized in that the mesh
After mark software is updated, the method for edition management further includes:
The update packet is stored, and is sent to version management server and is capable of providing the notification message that the update packet is downloaded, with
Toilet states version management server and distributes the distributed node list to other distributed nodes.
7. the method for edition management according to any one of claim 1 to 6 applied to distributed system, feature exists
In, the information that target software needs the target version updated is obtained, including:
The target software, which is obtained, from the version management server needs newer version list;
According to the issuing time for each version for including in version list sequence, the letter of each version is obtained successively
Breath, and as the information of the target version.
8. a kind of method for edition management applied to distributed system, which is characterized in that the method for edition management be suitable for
The version management server that each distributed node in the distributed system is connected, the method for edition management include:
Obtain the information for being capable of providing at least one distributed node that the packet of the update to target software is downloaded;
If receiving the download request to the update packet that the first distributed node in the distributed system is sent, root
According at least one distributed node information to first distributed node distribution be capable of providing to it is described update wrap into
The distributed node list that row is downloaded;
The distributed node list is sent to first distributed node, so that first distributed node is based on institute
It states distributed node list and downloads the update packet.
9. the method for edition management according to claim 8 applied to distributed system, which is characterized in that further include:
If receiving the update that is capable of providing that the second distributed node in the distributed system is sent wraps the logical of download
Know message, then records the information of second distributed node.
10. the method for edition management according to claim 8 applied to distributed system, which is characterized in that further include:
If getting the target software needs the update packet verified, the specified distributed node into the distributed system
Verification notice is sent, so that the specified distributed node needs the update packet verified to verify to described;
If receiving the notification message that the update packet verified to the needs that the specified distributed node is sent is verified,
The state for then changing the update packet for needing to verify, the letter of the update packet after state change is obtained so as to other distributed nodes
Breath.
11. a kind of edition management device applied to distributed system, which is characterized in that the edition management device is suitable for institute
At least one of distributed system distributed node is stated, the edition management device includes:
Acquiring unit needs the information of the target version updated for obtaining target software, and is obtained from version management server
It takes and is capable of providing the distributed node list that the packet of the update to the target version is downloaded;
Download unit, for downloading the update packet from the target distribution formula node in the distributed node list;
Updating unit, for based on the update packet downloaded from the target distribution formula node, to the target software into
Row update.
12. a kind of edition management device applied to distributed system, which is characterized in that the edition management device be suitable for
The version management server that each distributed node in the distributed system is connected, the edition management device include:
Acquiring unit wraps at least one distributed node being downloaded for obtaining to be capable of providing to the update of target software
Information;
Allocation unit, in receiving the distributed system target distribution formula node send to it is described update packet
When downloading request, it is capable of providing pair to target distribution formula node distribution according to the information of at least one distributed node
The distributed node list that the update packet is downloaded;
Transmission unit, for the distributed node list to be sent to the target distribution formula node, so that the target point
Cloth node is based on the distributed node list and downloads the update packet.
13. a kind of computer-readable medium, is stored thereon with computer program, which is characterized in that described program is held by processor
The method for edition management applied to distributed system as described in any one of claims 1 to 10 is realized when row.
14. a kind of electronic equipment, which is characterized in that including:
One or more processors;
Storage device, for storing one or more programs, when one or more of programs are by one or more of processing
When device executes so that one or more of processors are realized is applied to distribution as described in any one of claims 1 to 10
The method for edition management of formula system.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810524926.9A CN108804121A (en) | 2018-05-28 | 2018-05-28 | Method for edition management, device, medium in distributed system and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810524926.9A CN108804121A (en) | 2018-05-28 | 2018-05-28 | Method for edition management, device, medium in distributed system and electronic equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108804121A true CN108804121A (en) | 2018-11-13 |
Family
ID=64090632
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810524926.9A Pending CN108804121A (en) | 2018-05-28 | 2018-05-28 | Method for edition management, device, medium in distributed system and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108804121A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109862102A (en) * | 2019-02-25 | 2019-06-07 | 交通银行股份有限公司 | A kind of more copy concurrent control systems of distributed data, server and method |
CN111310260A (en) * | 2020-01-21 | 2020-06-19 | 中国建筑股份有限公司 | BIM (building information modeling) model version storage conversion method based on distributed storage architecture |
CN112035129A (en) * | 2020-07-27 | 2020-12-04 | 成都安易迅科技有限公司 | Method and device for driver installation and upgrade and computer equipment |
CN112114939A (en) * | 2020-09-04 | 2020-12-22 | 青岛海信网络科技股份有限公司 | Distributed system deployment equipment and method |
CN113342852A (en) * | 2021-06-09 | 2021-09-03 | 上海万物新生环保科技集团有限公司 | Method and equipment for realizing distributed configuration |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1790266A (en) * | 2004-12-14 | 2006-06-21 | 微软公司 | Method and system for downloading updates |
CN101227335A (en) * | 2008-01-25 | 2008-07-23 | 中兴通讯股份有限公司 | Method for upgrading software version of network cell device |
CN102055785A (en) * | 2009-11-09 | 2011-05-11 | 杭州华三通信技术有限公司 | Online upgrade method for distributed system, distributed system and equipment |
CN103034512A (en) * | 2012-11-28 | 2013-04-10 | 北京奇虎科技有限公司 | Method and device for updating programs |
US20140173588A1 (en) * | 2012-12-14 | 2014-06-19 | Samsung Electronics Co., Ltd. | Software update service method and apparatus for mobile terminal |
CN104780189A (en) * | 2014-01-13 | 2015-07-15 | 中兴通讯股份有限公司 | Software upgrading method and software upgrading device |
CN105763369A (en) * | 2016-02-04 | 2016-07-13 | 湖南长城信息金融设备有限责任公司 | Terminal equipment remote software version distribution method and system |
-
2018
- 2018-05-28 CN CN201810524926.9A patent/CN108804121A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1790266A (en) * | 2004-12-14 | 2006-06-21 | 微软公司 | Method and system for downloading updates |
CN101227335A (en) * | 2008-01-25 | 2008-07-23 | 中兴通讯股份有限公司 | Method for upgrading software version of network cell device |
CN102055785A (en) * | 2009-11-09 | 2011-05-11 | 杭州华三通信技术有限公司 | Online upgrade method for distributed system, distributed system and equipment |
CN103034512A (en) * | 2012-11-28 | 2013-04-10 | 北京奇虎科技有限公司 | Method and device for updating programs |
US20140173588A1 (en) * | 2012-12-14 | 2014-06-19 | Samsung Electronics Co., Ltd. | Software update service method and apparatus for mobile terminal |
CN104780189A (en) * | 2014-01-13 | 2015-07-15 | 中兴通讯股份有限公司 | Software upgrading method and software upgrading device |
CN105763369A (en) * | 2016-02-04 | 2016-07-13 | 湖南长城信息金融设备有限责任公司 | Terminal equipment remote software version distribution method and system |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109862102A (en) * | 2019-02-25 | 2019-06-07 | 交通银行股份有限公司 | A kind of more copy concurrent control systems of distributed data, server and method |
CN109862102B (en) * | 2019-02-25 | 2022-01-28 | 交通银行股份有限公司 | Distributed data multi-copy concurrency control system, server and method |
CN111310260A (en) * | 2020-01-21 | 2020-06-19 | 中国建筑股份有限公司 | BIM (building information modeling) model version storage conversion method based on distributed storage architecture |
CN112035129A (en) * | 2020-07-27 | 2020-12-04 | 成都安易迅科技有限公司 | Method and device for driver installation and upgrade and computer equipment |
CN112114939A (en) * | 2020-09-04 | 2020-12-22 | 青岛海信网络科技股份有限公司 | Distributed system deployment equipment and method |
CN113342852A (en) * | 2021-06-09 | 2021-09-03 | 上海万物新生环保科技集团有限公司 | Method and equipment for realizing distributed configuration |
CN113342852B (en) * | 2021-06-09 | 2023-06-30 | 上海万物新生环保科技集团有限公司 | Method and equipment for realizing distributed configuration |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108804121A (en) | Method for edition management, device, medium in distributed system and electronic equipment | |
CN107666525B (en) | Method and device for IP allocation of cluster container | |
CN109120678A (en) | The method and apparatus of service tray for distributed memory system | |
US8788565B2 (en) | Dynamic and distributed queueing and processing system | |
CN109683826A (en) | Expansion method and device for distributed memory system | |
JP4907876B2 (en) | Method for communicating metadata corresponding to software updates | |
CN109697075A (en) | File updating method, system and device | |
CN109862065A (en) | Document down loading method, device and electronic equipment | |
CN103024052B (en) | Realize the system and method that browser data synchronizes | |
CN109391664A (en) | System and method for the deployment of more cluster containers | |
US11755461B2 (en) | Asynchronous consumer-driven contract testing in micro service architecture | |
CN108733380A (en) | Using dispositions method and device | |
CN108737270A (en) | A kind of method for managing resource and device of server cluster | |
CN108733476A (en) | A kind of method and apparatus executing multitask | |
CN108874528A (en) | Distributed task scheduling storage system and distributed task scheduling storage/read method | |
CN109995866A (en) | Distributed document method of calibration, device, computer installation and storage medium | |
CN103229143B (en) | ISP in the framework of the network-oriented service with expansible and customizable computing engines | |
CN105515872A (en) | Method, apparatus and system for updating configuration information | |
CN109150608A (en) | Interface service upgrade method and system for voice dialogue platform | |
CN110032544A (en) | The right management method and its cloud data-storage system of cloud service | |
US8863133B2 (en) | License management in a cluster environment | |
CN113630310A (en) | Distributed high-availability gateway system | |
CN111666079B (en) | Method, apparatus, system, device and computer readable medium for software upgrade | |
CN109873731A (en) | Test method, device and system | |
CN110457380A (en) | A kind of data-storage system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20181113 |
|
RJ01 | Rejection of invention patent application after publication |