CN106445593A - Gray level upgrading method and device in distributed system communication - Google Patents

Gray level upgrading method and device in distributed system communication Download PDF

Info

Publication number
CN106445593A
CN106445593A CN201610846349.6A CN201610846349A CN106445593A CN 106445593 A CN106445593 A CN 106445593A CN 201610846349 A CN201610846349 A CN 201610846349A CN 106445593 A CN106445593 A CN 106445593A
Authority
CN
China
Prior art keywords
daemon
communication
old
information
server
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201610846349.6A
Other languages
Chinese (zh)
Other versions
CN106445593B (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.)
Guangzhou Huaduo Network Technology Co Ltd
Original Assignee
Guangzhou Huaduo Network 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 Guangzhou Huaduo Network Technology Co Ltd filed Critical Guangzhou Huaduo Network Technology Co Ltd
Priority to CN201610846349.6A priority Critical patent/CN106445593B/en
Publication of CN106445593A publication Critical patent/CN106445593A/en
Application granted granted Critical
Publication of CN106445593B publication Critical patent/CN106445593B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates

Abstract

An embodiment of the invention discloses a gray level upgrading method and device in distributed system communication, and solves the technical problems that new and old daemons need to be upgraded, transition of the new and old daemons through gray level upgrading is not performed in the inter-node communication mode of a current distributed system, and consequently, the distributed system is faulted. The gray level upgrading method in distributed system communication includes the steps: registering new daemons when upgrading old daemons registered by at least two node servers; performing communication in the node servers by old daemon information; performing communication in the node servers by new daemon information when upgrading the node servers again.

Description

The method and device of gray scale upgrading in a kind of communication of distributed system
Technical field
The present invention relates to communication technical field, the method for gray scale upgrading and dress in more particularly, to a kind of communication of distributed system Put.
Background technology
Distributed system (distributed system) is built upon the software system on network.Exactly because software Characteristic, so distributed system has cohesion and the transparency of height.Therefore, the difference between network and distributed system More it is high layer software (particularly operating system), rather than hardware.Cohesion refers to each database distribution node High degree of autonomy, has local data base management system.The transparency refers to that each database distribution node comes to the application of user Say it is all transparent, do not see local or long-range.In distributed data base system, the imperceptible data of user is distribution , that is, user is not necessary to know whether relation is split, has or not copy, data is stored in which website and affairs are held on which website Row etc..
Cloth system is a computer system being made up of the process resource of multiple interconnections, and they are in whole system It is performed in unison with same task it is simply that the cluster of a lot of machine composition, by network service each other, the angle taken under control Color may be different, jointly complete the system of same thing.And be by by toward an intermediary sevices registration between each network node The information of oneself, such as serial number, title, address, weight etc..Get the information of other nodes from this intermediary sevices simultaneously, from And find other network nodes thus carrying out with believing, and this intermediary sevices we be referred to as " discovery node " service.
Gray scale upgrading is taking over seamlessly, when the client of some servers will be upgraded, at this moment when a kind of upgrading Must first upgrade one of client, as test, errorless to guarantee to upgrade. that is Servers-all is asynchronous more New upgrading. (being specifically for example that Guangdong updates). after the completion of upgrading. other regional servers of upgrading again.
Communication mode between current distributed system interior joint is complex, for example, directly pass through " discovery node " mutually Service (abbreviation daemon) gets the communication requisite information (title, address, weight etc.) of other side, is then communicated, or Be according to daemon to the conduct an election mode of (as maximum sequence number or minmal sequence number) of information communicate.
But when there is new and old daemon, need to carry out the upgrading of new and old daemon, save in current distributed system Communication mode between point not over gray scale upgrade excessively new and old daemon, thus result in the skill that distributed system breaks down Art problem.
Content of the invention
In a kind of communication of distributed system provided in an embodiment of the present invention, the method and device of gray scale upgrading, solves presence During new and old daemon, need to carry out the upgrading of new and old daemon, the communication mode between current distributed system interior joint does not have Upgraded excessively new and old daemon by gray scale, thus result in the technical problem that distributed system breaks down.
The method of gray scale upgrading in a kind of communication of distributed system provided in an embodiment of the present invention, including:
When at least two node servers of upgrading register old daemon, carry out the registration of new daemon;
Communicated in node server described at least two by using described old daemon information;
Again described in upgrading at least two during node server, by using described new daemon information at least two institutes State in node server and communicated.
Alternatively, carry out communication in node server described at least two by using described new daemon information concrete Including:
When the principal communication of node server described at least two takes node server and changes, close described new daemon note Corresponding master election during volume, corresponding master election when being registered using described old daemon;
After determining that presently described principal communication takes the upgrading of node server the whole network, send notification to the described principal communication clothes of the whole network When master election corresponding during former described old daemon registration is switched to described new daemon registration by node server simultaneously Corresponding master election;
Communicated in node server described at least two by using described new daemon information.
Alternatively, carry out communication in node server described at least two by using described new daemon information concrete Including:
When described node server is two, two described node servers are entered by described new daemon information mutually Row communication obtains mutual phase information.
Alternatively, carry out communication in node server described at least two by using described new daemon information concrete Including:
When described node server is three, primary nodal point server updating is to be believed using described new daemon simultaneously Breath and described old daemon information are so that described primary nodal point server is by described new daemon information and secondary nodal point service Device communicates, and described secondary nodal point server communication is by described old daemon information and described primary nodal point server communication;
Divided to current 3rd node server according to described new daemon acquisition of information by described primary nodal point server The described old daemon information of the secondary nodal point server joined;
Described 3rd node server is changed to simultaneously compatible described new daemon and described old daemon so that described Two node server communications are communicated with described 3rd node server by described old daemon information.
Alternatively, described 3rd node server is changed to simultaneously compatible described new daemon and described old daemon, makes Obtain after described secondary nodal point server communication is communicated with described 3rd node server by described old daemon information and also wrap Include:
The communication of described secondary nodal point server and described primary nodal point server and described 3rd node server is cut It is changed to and is communicated by described new daemon information, and close described secondary nodal point server and use with other node servers Described old daemon information communication.
The device of gray scale upgrading in a kind of communication of distributed system provided in an embodiment of the present invention, including:
First upgrade unit, when registering old daemon at least two node servers of upgrading, carries out new daemon's Registration;
First communication unit, for entering in node server described at least two by using described old daemon information Row communication;
Upgrade communication unit, for upgrade again node server described at least two when, by using described new Daemon information is communicated in node server described at least two.
Alternatively, upgrade communication unit specifically includes:
First election subelement, for upgrade again node server described at least two when, and described at least two When the principal communication of node server takes node server change, close corresponding master election during described new daemon registration, Corresponding master election when being registered using described old daemon;
Second election subelement, for determine presently described principal communication take node server the whole network upgrading after, send notify Take node server to the described principal communication of the whole network simultaneously by master election switching corresponding during former described old daemon registration Corresponding master election when registering for described new daemon;
First upgrade communication subelement, for by using described new daemon information in node serve described at least two Communicated in device.
Alternatively, upgrade communication unit specifically includes:
Second upgrade communication subelement, for upgrade again node server described at least two when, and work as described node When server is two, two described node servers carry out communication acquisition by described new daemon information mutually and mutually believe Breath.
Alternatively, upgrade communication unit specifically includes:
3rd upgrade communication subelement, for upgrade again node server described at least two when, and work as described node When server is three, primary nodal point server updating is simultaneously using described new daemon information and described old daemon letter Breath is so that described primary nodal point server is by described new daemon information and secondary nodal point server communication, described second section Point server communication is by described old daemon information and described primary nodal point server communication;
Acquisition of information subelement, for by described primary nodal point server according to described new daemon acquisition of information to work as The described old daemon information of the secondary nodal point server of front 3rd node server distribution;
4th upgrade communication subelement, for by described 3rd node server be changed to simultaneously compatible described new daemon and Described old daemon is so that described secondary nodal point server communication is by described old daemon information and described 3rd node serve Device communicates.
Alternatively, upgrade communication unit also includes:
5th upgrade communication subelement, for by described secondary nodal point server and described primary nodal point server and described The communication of the 3rd node server is switched to and is communicated by described new daemon information, and closes described secondary nodal point service The communication of the described old daemon information that device is used with other node servers.
As can be seen from the above technical solutions, the embodiment of the present invention has advantages below:
The method and device of gray scale upgrading in a kind of communication of distributed system provided in an embodiment of the present invention, wherein, distribution In the communication of formula system, the method for gray scale upgrading includes:When at least two node servers of upgrading register old daemon, carry out new The registration of daemon;Communicated at least two node servers by using old daemon information;Upgrade again at least During two node servers, communicated at least two node servers by using new daemon information.The present embodiment In, when registering old daemon by least two node servers of upgrading, carry out the registration of new daemon;By using old Daemon information is communicated at least two node servers;Upgrade again at least two node servers when, by making Communicated at least two node servers with new daemon information, solve when there is new and old daemon, need to carry out The upgrading of new and old daemon, the communication mode between current distributed system interior joint is upgraded excessively new and old not over gray scale Daemon, thus result in the technical problem that distributed system breaks down.
Brief description
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing Have technology description in required use accompanying drawing be briefly described it should be apparent that, drawings in the following description be only this Some embodiments of invention, for those of ordinary skill in the art, without having to pay creative labor, also may be used So that other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is an embodiment of the method for gray scale upgrading in a kind of communication of distributed system provided in an embodiment of the present invention Schematic flow sheet;
Fig. 2 is another enforcement of the method for gray scale upgrading in a kind of communication of distributed system provided in an embodiment of the present invention The schematic flow sheet of example;
Fig. 3 is an embodiment of the device of gray scale upgrading in a kind of communication of distributed system provided in an embodiment of the present invention Structural representation;
Fig. 4 is another enforcement of the device of gray scale upgrading in a kind of communication of distributed system provided in an embodiment of the present invention The structural representation of example;
Fig. 5 to Figure 11 is application examples schematic diagram.
Specific embodiment
In a kind of communication of distributed system provided in an embodiment of the present invention, the method and device of gray scale upgrading, solves presence During new and old daemon, need to carry out the upgrading of new and old daemon, the communication mode between current distributed system interior joint does not have Upgraded excessively new and old daemon by gray scale, thus result in the technical problem that distributed system breaks down.
For enabling the goal of the invention of the present invention, feature, advantage more obvious and understandable, below in conjunction with the present invention Accompanying drawing in embodiment, is clearly and completely described it is clear that disclosed below to the technical scheme in the embodiment of the present invention Embodiment be only a part of embodiment of the present invention, and not all embodiment.Based on the embodiment in the present invention, this area All other embodiment that those of ordinary skill is obtained under the premise of not making creative work, broadly falls into present invention protection Scope.
Refer to Fig. 1, of the method for gray scale upgrading in a kind of communication of distributed system provided in an embodiment of the present invention Embodiment includes:
101st, when upgrading at least two node server registers old daemon, carry out the registration of new daemon;
When there is new and old daemon, need during the upgrading carrying out new and old daemon it is necessary first to upgrading at least two sections When point server registers old daemon, carry out the registration of new daemon.
102nd, communicated at least two node servers by using old daemon information;
When at least two node servers of upgrading register old daemon, after carrying out the registration of new daemon, need logical Cross and communicated at least two node servers using old daemon information.
103rd, upgrade again at least two node servers when, take at least two nodes by using new daemon information Communicated in business device.
After being communicated at least two node servers by using old daemon information, need to upgrade again During at least two node servers, communicated at least two node servers by using new daemon information.
In the present embodiment, when registering old daemon by least two node servers of upgrading, carry out the note of new daemon Volume;Communicated at least two node servers by using old daemon information;At least two nodes of upgrading again take Business device when, communicated at least two node servers by using new daemon information, solve exist new and old During daemon, need to carry out the upgrading of new and old daemon, the communication mode between current distributed system interior joint not over The gray scale excessively new and old daemon of upgrading, thus result in the technical problem that distributed system breaks down.
The above is that the process to the method for gray scale upgrading in communication of distributed system is described in detail, below will be to each Embodiment is described in detail, and refers to Fig. 2, gray scale liter in a kind of communication of distributed system provided in an embodiment of the present invention Another embodiment of the method for level includes:
201st, when upgrading at least two node server registers old daemon, carry out the registration of new daemon;
When there is new and old daemon, needing during the upgrading carrying out new and old daemon it is necessary first to start new daemon, rising When level at least two node server registers old daemon, carry out the registration of new daemon.
202nd, communicated at least two node servers by using old daemon information;
When at least two node servers of upgrading register old daemon, after carrying out the registration of new daemon, need logical Cross and communicated at least two node servers using old daemon information.
As shown in figure 5, the gray scale upgrading scheme of communication mode 1 is in two stages:First stage starts new daemon first, leads to Cross upgrade node server A, B program while registering old, register new daemon, but still or with old daemon obtain To communicate to information.(this when does not have timing requirements, arbitrarily upgrades).
203rd, upgrade again at least two node servers when, when the principal communication of at least two node servers take node clothes When business device changes, close corresponding master election, corresponding master when registering during new daemon registration using old daemon Election;
After being communicated at least two node servers by using old daemon information, need to upgrade again During at least two node servers, when the principal communication of at least two node servers takes node server and changes, close new Corresponding master election during daemon registration, corresponding master election when being registered using old daemon.
204th, after determining that current principal communication takes the upgrading of node server the whole network, the principal communication sending notification to the whole network takes node Server corresponding master when corresponding master election switches to new daemon registration when registering former daemon simultaneously Election;
When upgrade again at least two node servers when, when the principal communication of at least two node servers takes node serve When device changes, close corresponding master election during new daemon registration, corresponding master choosing when registering using old daemon It is thus necessary to determine that after currently principal communication takes the upgrading of node server the whole network, the principal communication sending notification to the whole network takes node after act Server corresponding master when corresponding master election switches to new daemon registration when registering former daemon simultaneously Election.
205th, communicated at least two node servers by using new daemon information;
After determining that current principal communication takes the upgrading of node server the whole network, the principal communication sending notification to the whole network takes node clothes When former daemon is registered by business device simultaneously, corresponding master elects corresponding master choosing when switching to new daemon registration After act, need to be communicated at least two node servers by using new daemon information.
Step 203 to 205, as shown in Figure 7 and Figure 8, the gray scale upgrading scheme of the A of communication mode and step 201 and 202 1 Sample, and the first stage of B as step 201 and 202, when having arrived second stage, because electoral package is according to daemon The information getting to communicate to elect master, registers two daemon now, that can cause two sets of electoral packages simultaneously, Two master can be selected, this business can go wrong, so during this time, need when second stage is upgraded B increases the election after the first new daemon of closing registration of control command acquiescence, using the election of old daemon.Then the whole network upgrading B Afterwards using order notify the whole network B switch simultaneously daemon election, by old be switched to new.
206th, when node server is two, two node servers carry out communication by new daemon information mutually and obtain Take mutual phase information;
After being communicated at least two node servers by using old daemon information, need to take when node When business device is two, two node servers carry out communication by new daemon information mutually and obtain mutual phase information.
Step 206, as shown in fig. 6, then second stage, upgrade node server A, B program use new daemon again The information getting is not come to communicate (this when has timing requirements, arbitrarily upgrades).
207th, when node server is three, by primary nodal point server updating be simultaneously using new daemon information and Old daemon information is so that primary nodal point server is by new daemon information and secondary nodal point server communication, secondary nodal point Server communication is by old daemon information and primary nodal point server communication;
After being communicated at least two node servers by using old daemon information, need to take when node When business device is three, primary nodal point server updating is simultaneously so that the using new daemon information and old daemon information One node server passes through old by new daemon information and secondary nodal point server communication, secondary nodal point server communication Daemon information and primary nodal point server communication.
208th, pass through primary nodal point server according to new daemon acquisition of information to current 3rd node server distribution The old daemon information of secondary nodal point server;
When node server is three, primary nodal point server updating is simultaneously using new daemon information and old So that primary nodal point server is by new daemon information and secondary nodal point server communication, secondary nodal point takes daemon information After business device communication is by old daemon information and primary nodal point server communication, need by primary nodal point server according to new The old daemon information of the secondary nodal point server to current 3rd node server distribution for the daemon acquisition of information.
209th, by the 3rd node server be changed to simultaneously compatible new daemon and old daemon so that secondary nodal point server Communication is communicated with the 3rd node server by old daemon information;
When by primary nodal point server according to new daemon acquisition of information to the of current 3rd node server distribution After the old daemon information of two node servers, need for the 3rd node server to be changed to compatible new daemon and old simultaneously Daemon is so that secondary nodal point server communication is communicated with the 3rd node server by old daemon information.
210th, the communication of secondary nodal point server and primary nodal point server and the 3rd node server is switched to and pass through New daemon information is communicated, and closes the old daemon information that secondary nodal point server is used with other node servers Communication.
When by the 3rd node server be changed to simultaneously compatible new daemon and old daemon so that secondary nodal point server leads to After letter is communicated with the 3rd node server by old daemon information, need secondary nodal point server and primary nodal point service The communication of device and the 3rd node server is switched to and is communicated by new daemon information, and close secondary nodal point server with The communication of the old daemon information that other node servers use.
To 210, A first, B, C are required for the first stage gray scale upgrading through solution one to step 207, after having upgraded Now A, B, C are still and are communicated (as Fig. 9) using old daemon, and first A being upgraded to second stage can be according to C distribution The daemon information communication new or still old to judge use of B information, then C being made into can simultaneously compatible new and old two kinds of B Registration, B is as the second stage of solution 1.Upgrading sequential is that first upgrading A or C (as Figure 10), because the second-order in B Can there are two kinds of nodes relying on new and old daemon respectively during section upgrading meeting to occur, in order to ensure the high availability of service. A, C must compatible two kinds of nodes simultaneously, finally upgrade B.(because after the B that first upgrades, B goes to register with C, and C will be new B Daemon information distributes to A, and A uses old daemon communication, because service is reconstruct replacement, new and old incompatible has punching Prominent), one kind complicated case that Figure 11 occurs when being and finally upgrade B.
Refer to Fig. 3, the one of the device of gray scale upgrading in a kind of communication of distributed system providing in the embodiment of the present invention Individual embodiment includes:
First upgrade unit 301, when registering old daemon at least two node servers of upgrading, carries out new daemon Registration;
First communication unit 302, for being led at least two node servers by using old daemon information Letter;
Upgrade communication unit 303, for upgrade again at least two node servers when, by using new daemon information At least two node servers are communicated.
In the present embodiment, when old daemon is registered by the first upgrade unit 301 upgrading at least two node server, enter The registration of the new daemon of row;First communication unit 302 enters at least two node servers by using old daemon information Row communication;Upgrade communication unit 303 upgrade again at least two node servers when, by using new daemon information at least Communicated in two node servers, solve when there is new and old daemon, need to carry out the upgrading of new and old daemon, at present Distributed system interior joint between communication mode not over gray scale upgrade excessively new and old daemon, thus result in distributed The technical problem of system malfunctions.
The above is that each unit to the device of gray scale upgrading in communication of distributed system is described in detail, below will be right Each subelement is described in detail, and refers to Fig. 4, gray scale in a kind of communication of distributed system providing in the embodiment of the present invention Another embodiment of the device of upgrading includes:
First upgrade unit 401, when registering old daemon at least two node servers of upgrading, carries out new daemon Registration;
First communication unit 402, for being led at least two node servers by using old daemon information Letter;
Upgrade communication unit 403, for upgrade again at least two node servers when, by using new daemon information At least two node servers are communicated.
Upgrade communication unit 403 specifically includes:
First election subelement 4031, for upgrade again at least two node servers when, and when at least two nodes When the principal communication of server takes node server change, close corresponding master election during new daemon registration, using old Corresponding master election during daemon registration;
Second election subelement 4032, for determine current principal communication take node server the whole network upgrading after, send notify Take corresponding master election when former daemon is registered by node server simultaneously to the principal communication of the whole network to switch to newly Corresponding master election during daemon registration;
First upgrade communication subelement 4033, for by using new daemon information at least two node servers Communicated.
Second upgrade communication subelement 4034, for upgrade again at least two node servers when, and work as node serve When device is two, two node servers carry out communication by new daemon information mutually and obtain mutual phase information.
3rd upgrade communication subelement 4035, for upgrade again at least two node servers when, and work as node serve When device is three, primary nodal point server updating is simultaneously so that first using new daemon information and old daemon information Node server passes through old daemon by new daemon information and secondary nodal point server communication, secondary nodal point server communication Information and primary nodal point server communication;
Acquisition of information subelement 4036, for by primary nodal point server according to new daemon acquisition of information to current The old daemon information of the secondary nodal point server of three node server distribution;
4th upgrade communication subelement 4037, for being changed to compatible new daemon and old simultaneously by the 3rd node server Daemon is so that secondary nodal point server communication is communicated with the 3rd node server by old daemon information.
5th upgrade communication subelement 4038, for by secondary nodal point server and primary nodal point server and the 3rd node The communication of server is switched to and is communicated by new daemon information, and closes secondary nodal point server and other node serve The communication of the old daemon information that device uses.
In the present embodiment, when old daemon is registered by the first upgrade unit 401 upgrading at least two node server, enter The registration of the new daemon of row;First communication unit 402 enters at least two node servers by using old daemon information Row communication;Upgrade communication unit 403 upgrade again at least two node servers when, by using new daemon information at least Communicated in two node servers, solve when there is new and old daemon, need to carry out the upgrading of new and old daemon, at present Distributed system interior joint between communication mode not over gray scale upgrade excessively new and old daemon, thus result in distributed The technical problem of system malfunctions.
Those skilled in the art can be understood that, for convenience and simplicity of description, the system of foregoing description, Device and the specific work process of unit, may be referred to the corresponding process in preceding method embodiment, will not be described here.
It should be understood that disclosed system in several embodiments provided herein, apparatus and method are permissible Realize by another way.For example, device embodiment described above is only schematically, for example, described unit Divide, only a kind of division of logic function, actual can have other dividing mode when realizing, for example multiple units or assembly Can in conjunction with or be desirably integrated into another system, or some features can be ignored, or does not execute.Another, shown or The coupling each other discussing or direct-coupling or communication connection can be by some interfaces, the indirect coupling of device or unit Close or communicate to connect, can be electrical, mechanical or other forms.
The described unit illustrating as separating component can be or may not be physically separate, show as unit The part showing can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple On NE.The mesh to realize this embodiment scheme for some or all of unit therein can be selected according to the actual needs 's.
In addition, can be integrated in a processing unit in each functional unit in each embodiment of the present invention it is also possible to It is that unit is individually physically present it is also possible to two or more units are integrated in a unit.Above-mentioned integrated list Unit both can be to be realized in the form of hardware, it would however also be possible to employ the form of SFU software functional unit is realized.
If described integrated unit is realized and as independent production marketing or use using in the form of SFU software functional unit When, can be stored in a computer read/write memory medium.Based on such understanding, technical scheme is substantially The part in other words prior art being contributed or all or part of this technical scheme can be in the form of software products Embody, this computer software product is stored in a storage medium, including some instructions with so that a computer Equipment (can be personal computer, server, or network equipment etc.) executes the complete of each embodiment methods described of the present invention Portion or part steps.And aforesaid storage medium includes:USB flash disk, portable hard drive, read only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD etc. are various can store journey The medium of sequence code.
The above, above example only in order to technical scheme to be described, is not intended to limit;Although with reference to front State embodiment the present invention has been described in detail, it will be understood by those within the art that:It still can be to front State the technical scheme described in each embodiment to modify, or equivalent is carried out to wherein some technical characteristics;And these Modification or replacement, do not make the essence of appropriate technical solution depart from the spirit and scope of various embodiments of the present invention technical scheme.

Claims (10)

1. a kind of method that in communication of distributed system, gray scale is upgraded is it is characterised in that include:
When at least two node servers of upgrading register old daemon, carry out the registration of new daemon;
Communicated in node server described at least two by using described old daemon information;
Again described in upgrading at least two during node server, saving described at least two by using described new daemon information Communicated in point server.
2. in communication of distributed system according to claim 1 the method for gray scale upgrading it is characterised in that by using institute State new daemon information and carry out communication in node server described at least two and specifically include:
When the principal communication of node server described at least two takes node server and changes, when closing described new daemon registration Corresponding master election, corresponding master election when being registered using described old daemon;
After determining that presently described principal communication takes the upgrading of node server the whole network, the described principal communication sending notification to the whole network takes node Server corresponds to when master election corresponding during former described old daemon registration being switched to described new daemon registration simultaneously Master election;
Communicated in node server described at least two by using described new daemon information.
3. in communication of distributed system according to claim 1 the method for gray scale upgrading it is characterised in that by using institute State new daemon information and carry out communication in node server described at least two and specifically include:
When described node server is two, two described node servers are led to by described new daemon information mutually Letter obtains mutual phase information.
4. in communication of distributed system according to claim 3 the method for gray scale upgrading it is characterised in that by using institute State new daemon information and carry out communication in node server described at least two and specifically include:
When described node server is three, by primary nodal point server updating be simultaneously using described new daemon information and Described old daemon information is so that described primary nodal point server is led to secondary nodal point server by described new daemon information Letter, described secondary nodal point server communication is by described old daemon information and described primary nodal point server communication;
By described primary nodal point server according to described new daemon acquisition of information to current 3rd node server distribution The described old daemon information of secondary nodal point server;
Described 3rd node server is changed to simultaneously compatible described new daemon and described old daemon so that described second section Point server communication is communicated with described 3rd node server by described old daemon information.
5. in communication of distributed system according to claim 4 the method for gray scale upgrading it is characterised in that by the described 3rd Node server is changed to simultaneously compatible described new daemon and described old daemon so that described secondary nodal point server communication leads to Cross after described old daemon information is communicated with described 3rd node server and also include:
The communication of described secondary nodal point server and described primary nodal point server and described 3rd node server is switched to Communicated by described new daemon information, and closed the institute that described secondary nodal point server is used with other node servers State the communication of old daemon information.
6. the device that in a kind of communication of distributed system, gray scale is upgraded is it is characterised in that include:
First upgrade unit, when registering old daemon at least two node servers of upgrading, carries out the registration of new daemon;
First communication unit, for being led in node server described at least two by using described old daemon information Letter;
Upgrade communication unit, for upgrade again node server described at least two when, believe by using described new daemon Breath is communicated in node server described at least two.
7. in communication of distributed system according to claim 6 the device of gray scale upgrading it is characterised in that upgrade communication list Unit specifically includes:
First election subelement, for upgrade again node server described at least two when, and when node described at least two When the principal communication of server takes node server change, close corresponding master election during described new daemon registration, use Corresponding master election during described old daemon registration;
Second election subelement, for determining that presently described principal communication takes after the upgrading of node server the whole network, sends notification to complete The described principal communication of net takes node server and master election corresponding during former described old daemon registration is switched to institute simultaneously State corresponding master election during new daemon registration;
First upgrade communication subelement, for by using described new daemon information in node server described at least two Communicated.
8. in communication of distributed system according to claim 6 the device of gray scale upgrading it is characterised in that upgrade communication list Unit specifically includes:
Second upgrade communication subelement, for upgrade again node server described at least two when, and work as described node serve When device is two, two described node servers carry out communication by described new daemon information mutually and obtain mutual phase information.
9. in communication of distributed system according to claim 8 the device of gray scale upgrading it is characterised in that upgrade communication list Unit specifically includes:
3rd upgrade communication subelement, for upgrade again node server described at least two when, and work as described node serve When device is three, primary nodal point server updating is simultaneously using described new daemon information and described old daemon information, Make described primary nodal point server by described new daemon information and secondary nodal point server communication, described secondary nodal point clothes Business device communication is by described old daemon information and described primary nodal point server communication;
Acquisition of information subelement, for by described primary nodal point server according to described new daemon acquisition of information to current The described old daemon information of the secondary nodal point server of three node server distribution;
4th upgrade communication subelement, for being changed to simultaneously compatible described new daemon and described by described 3rd node server Old daemon is so that described secondary nodal point server communication is led to described 3rd node server by described old daemon information Letter.
10. in communication of distributed system according to claim 9 the device of gray scale upgrading it is characterised in that upgrade communication Unit also includes:
5th upgrade communication subelement, for by described secondary nodal point server and described primary nodal point server and the described 3rd The communication of node server is switched to and is communicated by described new daemon information, and close described secondary nodal point server with The communication of the described old daemon information that other node servers use.
CN201610846349.6A 2016-09-22 2016-09-22 Method and device for gray scale upgrading in distributed system communication Active CN106445593B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610846349.6A CN106445593B (en) 2016-09-22 2016-09-22 Method and device for gray scale upgrading in distributed system communication

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610846349.6A CN106445593B (en) 2016-09-22 2016-09-22 Method and device for gray scale upgrading in distributed system communication

Publications (2)

Publication Number Publication Date
CN106445593A true CN106445593A (en) 2017-02-22
CN106445593B CN106445593B (en) 2020-02-18

Family

ID=58166467

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610846349.6A Active CN106445593B (en) 2016-09-22 2016-09-22 Method and device for gray scale upgrading in distributed system communication

Country Status (1)

Country Link
CN (1) CN106445593B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1710864A (en) * 2004-06-16 2005-12-21 华为技术有限公司 Upgradable communication system and method for upgrading communication system
CN1869933A (en) * 2005-05-24 2006-11-29 中国银联股份有限公司 Computer processing system for implementing data update and data updating method
CN101217678A (en) * 2007-12-28 2008-07-09 华为技术有限公司 System upgrade method, system and device
CN101227428A (en) * 2008-01-30 2008-07-23 中兴通讯股份有限公司 Application server and remote control method thereof
CN101741894A (en) * 2008-11-26 2010-06-16 中国移动通信集团公司 Upgrade method for distributed system and upgrade scheduling node and system
WO2012142854A1 (en) * 2011-04-18 2012-10-26 北京新媒传信科技有限公司 Application service platform system and implementation method thereof
CN103888281A (en) * 2012-12-21 2014-06-25 腾讯科技(北京)有限公司 Server gray scale upgrading method and apparatus, and corresponding gray scale upgrading server
CN104572222A (en) * 2015-02-02 2015-04-29 深圳市新联锋科技有限公司 Main program upgrading method and device for supporting upgrading of main program
CN105100232A (en) * 2015-07-14 2015-11-25 焦点科技股份有限公司 Smooth upgrade method for server end program without interrupting service
CN105187410A (en) * 2015-08-18 2015-12-23 深圳市雪球科技有限公司 Application self-upgrading method and system

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1710864A (en) * 2004-06-16 2005-12-21 华为技术有限公司 Upgradable communication system and method for upgrading communication system
CN1869933A (en) * 2005-05-24 2006-11-29 中国银联股份有限公司 Computer processing system for implementing data update and data updating method
CN101217678A (en) * 2007-12-28 2008-07-09 华为技术有限公司 System upgrade method, system and device
CN101227428A (en) * 2008-01-30 2008-07-23 中兴通讯股份有限公司 Application server and remote control method thereof
CN101741894A (en) * 2008-11-26 2010-06-16 中国移动通信集团公司 Upgrade method for distributed system and upgrade scheduling node and system
WO2012142854A1 (en) * 2011-04-18 2012-10-26 北京新媒传信科技有限公司 Application service platform system and implementation method thereof
CN103283209A (en) * 2011-04-18 2013-09-04 北京新媒传信科技有限公司 Application service platform system and implementation method thereof
CN103888281A (en) * 2012-12-21 2014-06-25 腾讯科技(北京)有限公司 Server gray scale upgrading method and apparatus, and corresponding gray scale upgrading server
CN104572222A (en) * 2015-02-02 2015-04-29 深圳市新联锋科技有限公司 Main program upgrading method and device for supporting upgrading of main program
CN105100232A (en) * 2015-07-14 2015-11-25 焦点科技股份有限公司 Smooth upgrade method for server end program without interrupting service
CN105187410A (en) * 2015-08-18 2015-12-23 深圳市雪球科技有限公司 Application self-upgrading method and system

Also Published As

Publication number Publication date
CN106445593B (en) 2020-02-18

Similar Documents

Publication Publication Date Title
CN111371627B (en) Method for setting multiple IPs (Internet protocol) in Kubernetes through Pod
EP3291499B1 (en) Method and apparatus for network service capacity expansion
CN105701159B (en) A kind of data synchronization unit and method
CN108259200B (en) A kind of physical network function PNF moving method and relevant device
CN102495739B (en) Data compatible method and system as well as inter-plate message method and system
CN104769886A (en) Adding device-wide capabilities and parameters to split-architecture devices
CN112416969B (en) Parallel task scheduling system in distributed database
CN105119736A (en) Data check method and device in network function virtualization architecture
CN107092491A (en) A kind of configuring load application method and system
CN112948063A (en) Cloud platform creation method and device, cloud platform and cloud platform implementation system
CN108319492A (en) Reset the method, apparatus and system of physical machine
CN106982133A (en) A kind of method, equipment and system for changing Microsoft Loopback Adapter configuration information
CN113127023B (en) Service upgrading method, device and system
CN104394016A (en) ISSU (In-Service Software Upgrade) method and system
CN106385330A (en) Network function virtualization composer realization method and device
CN106161603A (en) A kind of method of networking, equipment and framework
CN105930178A (en) Configurable parameter dynamic loading method and system
CN106919426A (en) A kind of method of multipath server FPGA version synchronizations
CN114650223A (en) Network configuration method and device of Kubernetes cluster and electronic equipment
CN110417882A (en) The determination method, apparatus and storage medium of host node
CN109462507A (en) Configure update method, device, system and electronic equipment
CN103684720B (en) A kind of system of selection of active and standby service unit and device
CN102468978B (en) Service configuration method and device
CN108089968A (en) A kind of method of host's machine monitoring virtual-machine data storehouse state
CN106445593A (en) Gray level upgrading method and device in distributed system communication

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