CN106445593B - Method and device for gray scale upgrading in distributed system communication - Google Patents

Method and device for gray scale upgrading in distributed system communication Download PDF

Info

Publication number
CN106445593B
CN106445593B CN201610846349.6A CN201610846349A CN106445593B CN 106445593 B CN106445593 B CN 106445593B CN 201610846349 A CN201610846349 A CN 201610846349A CN 106445593 B CN106445593 B CN 106445593B
Authority
CN
China
Prior art keywords
daemon
node
information
old
communication
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610846349.6A
Other languages
Chinese (zh)
Other versions
CN106445593A (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

Images

Classifications

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

Abstract

The embodiment of the invention discloses a method and a device for gray scale upgrading in distributed system communication, which solve the technical problem that when new and old daemons exist, the new and old daemons need to be upgraded, and the communication mode between nodes in the existing distributed system does not excessively upgrade the new and old daemons through gray scale, so that the distributed system fails. The method for upgrading the gray scale in the distributed system communication comprises the following steps: when at least two node servers are upgraded to register the old daemon, registering a new daemon; communicating in at least two node servers by using old daemon information; and when the at least two node servers are upgraded again, communicating in the at least two node servers by using the new daemon information.

Description

Method and device for gray scale upgrading in distributed system communication
Technical Field
The invention relates to the technical field of communication, in particular to a method and a device for gray scale upgrading in distributed system communication.
Background
Distributed systems (distributed systems) are software systems built on top of a network. It is the nature of software that the distributed system is highly cohesive and transparent. Thus, the distinction between a network and a distributed system is more in the high-level software (specifically the operating system) than in the hardware. Cohesiveness means that each database distribution node is highly autonomous and has a local database management system. Transparency means that each database distribution node is transparent to the user's application, not seen locally or remotely. In a distributed database system, a user does not feel that data is distributed, i.e., the user does not have to know whether a relationship is split, whether there is a copy, where data is stored, and on which site a transaction is executed, etc.
A distributed system is a computer system composed of a plurality of interconnected processing resources, which cooperatively execute the same task under the control of the whole system, namely a cluster composed of a plurality of machines, and the system has different roles and can jointly complete the same thing by means of network communication among the machines. The network nodes are connected by registering their own information, such as serial number, name, address, weight, etc., to an intermediary service. Meanwhile, the information of other nodes is acquired from the intermediary service, so that other network nodes are discovered and the information is sent to the intermediary service, and the intermediary service is called as a 'discovery node' service.
The gray scale upgrade is smooth switching during upgrade, when the clients of some servers need to be upgraded, one of the clients needs to be upgraded firstly as a test to ensure that the upgrade is correct, namely all the servers are updated asynchronously (for example, the servers are updated only in the Guangdong).
The communication mode between nodes in the current distributed system is complex, for example, the nodes directly acquire necessary communication information (name, address, weight, etc.) of each other through a "discovery node" service (daemon for short) and then communicate, or the nodes communicate in a mode of electing (such as maximum serial number or minimum serial number) according to the information given by daemon.
However, when a new daemon and an old daemon exist, the new daemon and the old daemon need to be upgraded, and the communication mode between nodes in the existing distributed system does not excessively upgrade the new daemon and the old daemon through gray scale, so that the technical problem that the distributed system fails is caused.
Disclosure of Invention
The method and the device for gray scale upgrading in distributed system communication provided by the embodiment of the invention solve the technical problem that when new and old daemons exist, the new and old daemons need to be upgraded, and the communication mode between nodes in the existing distributed system does not excessively upgrade the new and old daemons through gray scale, so that the distributed system fails.
The method for upgrading the gray scale in the communication of the distributed system provided by the embodiment of the invention comprises the following steps:
when at least two node servers are upgraded to register the old daemon, registering a new daemon;
communicating in at least two of the node servers by using the old daemon information;
and when at least two node servers are upgraded again, communicating in the at least two node servers by using the new daemon information.
Optionally, the performing communication in at least two of the node servers by using the new daemon information specifically includes:
when the main communication service node servers of at least two node servers are changed, closing the master election corresponding to the new daemon registration, and using the master election corresponding to the old daemon registration;
after the current master communication service node server is determined to be upgraded in the whole network, a notice is sent to the master communication service node server in the whole network, and meanwhile, the master election corresponding to the old daemon registration is switched to the master election corresponding to the new daemon registration;
communicating in at least two of the node servers by using the new daemon information.
Optionally, the performing communication in at least two of the node servers by using the new daemon information specifically includes:
and when the number of the node servers is two, the two node servers communicate with each other through the new daemon information to acquire mutual information.
Optionally, the performing communication in at least two of the node servers by using the new daemon information specifically includes:
when the number of the node servers is three, upgrading a first node server to simultaneously use the new daemon information and the old daemon information, so that the first node server communicates with a second node server through the new daemon information, and the second node server communicates with the first node server through the old daemon information;
acquiring the old daemon information of a second node server distributed by a current third node server according to the new daemon information by the first node server;
and changing the third node server to be compatible with the new daemon and the old daemon at the same time, so that the second node server communicates with the third node server through the old daemon information.
Optionally, after changing the third node server to be compatible with the new daemon and the old daemon at the same time, so that the second node server communication communicates with the third node server through the old daemon information, the method further includes:
and switching the communication between the second node server and the first node server and the communication between the second node server and the third node server to the communication through the new daemon information, and closing the communication between the second node server and the old daemon information used by other node servers.
The device for upgrading the gray scale in the distributed system communication provided by the embodiment of the invention comprises:
the first upgrading unit is used for performing registration of a new daemon when at least two node servers register old daemon;
a first communication unit for performing communication in at least two of the node servers by using the old daemon information;
and the upgrading communication unit is used for communicating in the at least two node servers by using the new daemon information when the at least two node servers are upgraded again.
Optionally, the upgrading the communication unit specifically includes:
the first election subunit is used for closing the master election corresponding to the new daemon registration when the node servers of the at least two node servers are upgraded again and changing the main communication service node servers of the at least two node servers, and using the master election corresponding to the old daemon registration;
the second election subunit is used for sending a notification to the main communication service node servers of the whole network after the current main communication service node servers are upgraded in the whole network, and simultaneously switching the master election corresponding to the old daemon registration into the master election corresponding to the new daemon registration;
a first upgrade communication subunit configured to communicate among at least two of the node servers by using the new daemon information.
Optionally, the upgrading the communication unit specifically includes:
and the second upgrading communication subunit is used for communicating the two node servers through the new daemon information to acquire mutual information when the number of the node servers is two and at least two node servers are upgraded again.
Optionally, the upgrading the communication unit specifically includes:
a third upgrade communication subunit, configured to, when at least two node servers are upgraded again and when there are three node servers, upgrade a first node server to use the new daemon information and the old daemon information at the same time, so that the first node server communicates with a second node server through the new daemon information, and the second node server communicates with the first node server through the old daemon information;
an information obtaining subunit, configured to obtain, by the first node server, the old daemon information of the second node server allocated by the current third node server according to the new daemon information;
and the fourth upgrading communication subunit is used for changing the third node server to be compatible with the new daemon and the old daemon at the same time, so that the second node server communicates with the third node server through the old daemon information.
Optionally, upgrading the communication unit further comprises:
and the fifth upgrade communication subunit is configured to switch the communication between the second node server and the first node server and the communication between the second node server and the third node server to be performed through the new daemon information, and close the communication between the second node server and the old daemon information used by another node server.
According to the technical scheme, the embodiment of the invention has the following advantages:
the embodiment of the invention provides a method and a device for gray scale upgrading in distributed system communication, wherein the method for gray scale upgrading in distributed system communication comprises the following steps: when at least two node servers are upgraded to register the old daemon, registering a new daemon; communicating in at least two node servers by using old daemon information; and when the at least two node servers are upgraded again, communicating in the at least two node servers by using the new daemon information. In this embodiment, when an old daemon is registered by upgrading at least two node servers, a new daemon is registered; communicating in at least two node servers by using old daemon information; when the at least two node servers are upgraded again, the new daemon information is used for communicating in the at least two node servers, and the technical problem that when new daemon exists, the new daemon and the old daemon need to be upgraded, and the communication mode among the nodes in the existing distributed system does not excessively upgrade the new daemon and the old daemon through gray scale, so that the distributed system breaks down is solved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without inventive exercise.
Fig. 1 is a schematic flowchart of an embodiment of a method for upgrading a gray scale in distributed system communication according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of another embodiment of a method for upgrading a gray scale in distributed system communication according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of an embodiment of a device for upgrading a gray scale in distributed system communication according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of another embodiment of a device for upgrading a gray scale in distributed system communication according to an embodiment of the present invention;
fig. 5 to 11 are application illustration views.
Detailed Description
The method and the device for gray scale upgrading in distributed system communication provided by the embodiment of the invention solve the technical problem that when new and old daemons exist, the new and old daemons need to be upgraded, and the communication mode between nodes in the existing distributed system does not excessively upgrade the new and old daemons through gray scale, so that the distributed system fails.
In order to make the objects, features and advantages of the present invention more obvious and understandable, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is obvious that the embodiments described below are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, an embodiment of a method for upgrading a gray scale in distributed system communication according to the present invention includes:
101. when at least two node servers are upgraded to register the old daemon, registering a new daemon;
when a new daemon and an old daemon exist and need to be upgraded, registration of the new daemon is performed when at least two node servers need to be upgraded to register the old daemon.
102. Communicating in at least two node servers by using old daemon information;
when registering an old daemon by upgrading at least two node servers, after registering a new daemon, communication needs to be performed in the at least two node servers by using old daemon information.
103. And when the at least two node servers are upgraded again, communicating in the at least two node servers by using the new daemon information.
When at least two node servers need to be upgraded again after communication is performed in the at least two node servers by using the old daemon information, communication is performed in the at least two node servers by using the new daemon information.
In this embodiment, when an old daemon is registered by upgrading at least two node servers, a new daemon is registered; communicating in at least two node servers by using old daemon information; when the at least two node servers are upgraded again, the new daemon information is used for communicating in the at least two node servers, and the technical problem that when new daemon exists, the new daemon and the old daemon need to be upgraded, and the communication mode among the nodes in the existing distributed system does not excessively upgrade the new daemon and the old daemon through gray scale, so that the distributed system breaks down is solved.
With reference to fig. 2, another embodiment of the method for upgrading a gray scale in distributed system communication according to an embodiment of the present invention includes:
201. when at least two node servers are upgraded to register the old daemon, registering a new daemon;
when a new daemon and an old daemon exist and need to be upgraded, the new daemon needs to be started first, and when at least two node servers are upgraded and the old daemon is registered, the new daemon is registered.
202. Communicating in at least two node servers by using old daemon information;
when registering an old daemon by upgrading at least two node servers, after registering a new daemon, communication needs to be performed in the at least two node servers by using old daemon information.
As shown in fig. 5, the gray scale upgrading scheme of the communication mode 1 includes two stages: first, a new daemon is started in the first stage, and the upgrade node server A, B registers the old daemon and registers the new daemon at the same time, but the old daemon still acquires information to communicate. (there is no timing requirement at this time, upgrade at will).
203. When the at least two node servers are upgraded again, when the main communication server node servers of the at least two node servers are changed, closing the master election corresponding to the new daemon registration, and using the master election corresponding to the old daemon registration;
when the at least two node servers need to be upgraded again after the communication is carried out in the at least two node servers by using the old daemon information, when the main communication service node servers of the at least two node servers are changed, the corresponding master election in the registration of the new daemon is closed, and the corresponding master election in the registration of the old daemon is used.
204. After the current master communication service node server is determined to be upgraded in the whole network, a notice is sent to the master communication service node server in the whole network, and meanwhile, the master election corresponding to the registration of the old daemon is switched to the master election corresponding to the registration of the new daemon;
when the at least two node servers are upgraded again, when the main communication service node servers of the at least two node servers are changed, the corresponding master election during the registration of the new daemon is closed, after the corresponding master election during the registration of the old daemon is used, after the whole network upgrading of the current main communication service node server needs to be determined, a notification is sent to the main communication service node servers of the whole network, and meanwhile the corresponding master election during the registration of the old daemon is switched to the corresponding master election during the registration of the new daemon.
205. Communicating in at least two node servers by using the new daemon information;
when the current master communication service node server is determined to be upgraded in the whole network, a notification is sent to the master communication service node server in the whole network, and after the master election corresponding to the registration of the old daemon is switched to the master election corresponding to the registration of the new daemon, the communication needs to be carried out in at least two node servers by using the new daemon information.
In steps 203 to 205, as shown in fig. 7 and 8, the grayscale upgrading scheme of the communication mode a is the same as steps 201 and 202, while the first stage of B is the same as steps 201 and 202, when the second stage is reached, because the election scheme elects a master according to the information acquired by the daemon to communicate, two daemon are registered at the same time, which results in two sets of election schemes, two masters will be selected, which is a problem, so that in this time, it is necessary to add a control command to B to default to close the election after registering a new daemon and use the election of the old daemon during the second stage upgrading. And then, after the whole network B is upgraded, the whole network B is informed of switching daemon election at the same time by using a command, and the whole network B is switched from the old network to the new network.
206. When the number of the node servers is two, the two node servers communicate with each other through the new daemon information to acquire mutual information;
after communication is performed in at least two node servers by using the old daemon information, it is necessary that when there are two node servers, the two node servers communicate with each other through the new daemon information to acquire mutual information.
Step 206, as shown in fig. 6, then in the second phase, the upgrade node server A, B program communicates again using the information obtained by the new daemon (this time there is no timing requirement, upgrade is done at will).
207. When the number of the node servers is three, the first node server is upgraded to use the new daemon information and the old daemon information at the same time, so that the first node server is communicated with the second node server through the new daemon information, and the second node server is communicated with the first node server through the old daemon information;
when it is necessary to upgrade the first node server to simultaneously use the new daemon information and the old daemon information when three node servers are required after communication is performed in at least two node servers by using the old daemon information, so that the first node server communicates with the second node server through the new daemon information, and the second node server communicates with the first node server through the old daemon information.
208. Acquiring old daemon information of a second node server distributed by a current third node server according to the new daemon information by the first node server;
when the number of the node servers is three, the first node server is upgraded to use the new daemon information and the old daemon information at the same time, so that the first node server is communicated with the second node server through the new daemon information, and after the second node server is communicated with the first node server through the old daemon information, the first node server needs to acquire the old daemon information of the second node server distributed by the current third node server according to the new daemon information.
209. Changing the third node server to be compatible with the new daemon and the old daemon at the same time, so that the second node server communicates with the third node server through the old daemon information;
after the first node server acquires the old daemon information of the second node server distributed by the current third node server according to the new daemon information, the third node server needs to be changed to be compatible with the new daemon and the old daemon at the same time, so that the second node server communicates with the third node server through the old daemon information.
210. And switching the communication between the second node server and the first node server and the communication between the second node server and the third node server to the communication through the new daemon information, and closing the communication between the second node server and the old daemon information used by other node servers.
When the third node server is changed to be compatible with the new daemon and the old daemon at the same time, after the second node server communicates with the third node server through the old daemon information, the communication between the second node server and the first node server and the communication between the second node server and the third node server need to be switched to be communicated through the new daemon information, and the communication between the second node server and the old daemon information used by other node servers is closed.
In steps 207 to 210, first, a, B, and C all need to undergo the first-stage gray scale upgrade of solution one, after the upgrade, the a, B, and C still use the old daemon communication (as shown in fig. 9), in the second stage, the a is upgraded to the one that can judge whether to use the new or old daemon information communication according to the B information allocated by the C, and then the C is changed to be compatible with the new and old B registrations at the same time, and the B is the same as the second stage of solution 1. The upgrade sequence is to upgrade a or C first (as shown in fig. 10), because there are two nodes respectively depending on the old and new daemon during the second stage upgrade of B, in order to guarantee high availability of service. A and C are compatible with two nodes at the same time, and B is upgraded finally. (since B is upgraded first and then registered with C, C will assign the new daemon information of B to a, whereas a uses the old daemon communication, and since the service is reconfiguration, there will be conflicts between new and old incompatibilities). fig. 11 is the most complex situation that will occur when B is upgraded last.
Referring to fig. 3, an embodiment of a device for upgrading a gray scale in distributed system communication according to the present invention includes:
a first upgrading unit 301, configured to perform registration of a new daemon when at least two node servers register an old daemon;
a first communication unit 302 for performing communication in at least two node servers by using old daemon information;
an upgrade communication unit 303 configured to communicate among the at least two node servers by using the new daemon information when the at least two node servers are upgraded again.
In this embodiment, when upgrading at least two node servers to register an old daemon by the first upgrading unit 301, registering a new daemon; the first communication unit 302 performs communication in at least two node servers by using old daemon information; when the upgrade communication unit 303 upgrades the at least two node servers again, the new daemon information is used to communicate among the at least two node servers, so that the technical problem that when new and old daemon exist, the new and old daemon need to be upgraded, and the communication mode among nodes in the existing distributed system does not excessively upgrade the new and old daemon through gray scale, so that the distributed system fails is solved.
In the above, each unit of the apparatus for upgrading the gray scale in the distributed system communication is described in detail, and in the following, each sub-unit is described in detail, referring to fig. 4, another embodiment of the apparatus for upgrading the gray scale in the distributed system communication provided in the embodiment of the present invention includes:
a first upgrading unit 401, configured to perform registration of a new daemon when at least two node servers register an old daemon;
a first communication unit 402 for performing communication in at least two node servers by using old daemon information;
an upgrade communication unit 403, configured to communicate among the at least two node servers by using the new daemon information when the at least two node servers are upgraded again.
The upgrade communication unit 403 specifically includes:
a first election subunit 4031, configured to, when the at least two node servers are upgraded again, and when the primary communication service node server of the at least two node servers changes, close the master election corresponding to the new daemon registration, and use the master election corresponding to the old daemon registration;
a second election subunit 4032, configured to determine that the current master communication service node server is upgraded in the whole network, and send a notification to the master communication service node server in the whole network, and simultaneously switch the master election corresponding to the old daemon registration to the master election corresponding to the new daemon registration;
a first upgrade communication subunit 4033 for communicating in at least two node servers by using the new daemon information.
And a second upgrade communication subunit 4034, configured to, when at least two node servers are upgraded again, and when there are two node servers, perform communication between the two node servers through the new daemon information to obtain mutual information.
A third upgrade communication subunit 4035, configured to, when at least two node servers are upgraded again and when there are three node servers, upgrade the first node server to use the new daemon information and the old daemon information at the same time, so that the first node server communicates with the second node server through the new daemon information, and the second node server communicates with the first node server through the old daemon information;
an information obtaining subunit 4036, configured to obtain, by the first node server, the old daemon information of the second node server allocated by the current third node server according to the new daemon information;
a fourth upgrade communication subunit 4037, configured to change the third node server to be compatible with the new daemon and the old daemon at the same time, so that the second node server communicates with the third node server through the old daemon information.
And a fifth upgrade communication subunit 4038, configured to switch communication between the second node server and the first node server and communication between the second node server and the third node server to be performed through the new daemon information, and close communication between the second node server and the old daemon information used by the other node servers.
In this embodiment, when the first upgrade unit 401 upgrades at least two node servers to register an old daemon, registration of a new daemon is performed; the first communication unit 402 performs communication in at least two node servers by using old daemon information; when the upgrade communication unit 403 upgrades the at least two node servers again, the new daemon information is used for communicating in the at least two node servers, so that the technical problem that when new and old daemon exist, the new and old daemon need to be upgraded, and the communication mode between nodes in the existing distributed system does not excessively upgrade the new and old daemon through gray scale, so that the distributed system fails is solved.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A method for upgrading gray scale in distributed system communication is characterized by comprising the following steps:
when at least two node servers are upgraded to register old daemon, registering new daemon, wherein the daemon is a discovery node service, the discovery node service is used for registering own information of a plurality of network nodes to an intermediary service, and meanwhile, acquiring information of other nodes from the intermediary service to discover the intermediary service for communication of other network nodes;
communicating in at least two of the node servers by using the old daemon information;
and when at least two node servers are upgraded again, communicating in the at least two node servers by using the new daemon information.
2. The method for upgrading gray scales in distributed system communication according to claim 1, wherein the communicating in at least two of the node servers by using the new daemon information specifically comprises:
when the main communication service node servers of at least two node servers are changed, closing the master election corresponding to the new daemon registration, and using the master election corresponding to the old daemon registration;
after the current master communication service node server is determined to be upgraded in the whole network, a notice is sent to the master communication service node server in the whole network, and meanwhile, the master election corresponding to the old daemon registration is switched to the master election corresponding to the new daemon registration;
communicating in at least two of the node servers by using the new daemon information.
3. The method for upgrading gray scales in distributed system communication according to claim 1, wherein the communicating in at least two of the node servers by using the new daemon information specifically comprises:
and when the number of the node servers is two, the two node servers communicate with each other through the new daemon information to acquire mutual information.
4. The method for upgrading gray scales in distributed system communication according to claim 3, wherein the communicating in at least two of the node servers by using the new daemon information specifically comprises:
when the number of the node servers is three, upgrading a first node server to simultaneously use the new daemon information and the old daemon information, so that the first node server communicates with a second node server through the new daemon information, and the second node server communicates with the first node server through the old daemon information;
acquiring the old daemon information of a second node server distributed by a current third node server according to the new daemon information by the first node server;
and changing the third node server to be compatible with the new daemon and the old daemon at the same time, so that the second node server communicates with the third node server through the old daemon information.
5. The method for upgrading gray scales in distributed system communication according to claim 4, wherein the third node server is modified to be compatible with the new daemon and the old daemon at the same time, so that after the second node server communication communicates with the third node server through the old daemon information, the method further comprises:
and switching the communication between the second node server and the first node server and the communication between the second node server and the third node server to the communication through the new daemon information, and closing the communication between the second node server and the old daemon information used by other node servers.
6. An apparatus for upgrading gray scale in distributed system communication, comprising:
the system comprises a first upgrading unit, a second upgrading unit and a third upgrading unit, wherein the first upgrading unit is used for upgrading old daemons registered by at least two node servers, the new daemons are registered, the daemons serve as discovery node services, the discovery node services register own information to an intermediary service for a plurality of network nodes respectively, and meanwhile, the information of other nodes is acquired from the intermediary service so as to discover the intermediary service for the communication of other network nodes;
a first communication unit for performing communication in at least two of the node servers by using the old daemon information;
and the upgrading communication unit is used for communicating in the at least two node servers by using the new daemon information when the at least two node servers are upgraded again.
7. The apparatus for performing gray-scale upgrade in distributed system communication according to claim 6, wherein the upgrading communication unit specifically includes:
the first election subunit is used for closing the master election corresponding to the new daemon registration when the node servers of the at least two node servers are upgraded again and changing the main communication service node servers of the at least two node servers, and using the master election corresponding to the old daemon registration;
the second election subunit is used for sending a notification to the main communication service node servers of the whole network after the current main communication service node servers are upgraded in the whole network, and simultaneously switching the master election corresponding to the old daemon registration into the master election corresponding to the new daemon registration;
a first upgrade communication subunit configured to communicate among at least two of the node servers by using the new daemon information.
8. The apparatus for performing gray-scale upgrade in distributed system communication according to claim 6, wherein the upgrading communication unit specifically includes:
and the second upgrading communication subunit is used for communicating the two node servers through the new daemon information to acquire mutual information when the number of the node servers is two and at least two node servers are upgraded again.
9. The apparatus for performing gray-scale upgrade in distributed system communication according to claim 8, wherein the upgrading communication unit specifically includes:
a third upgrade communication subunit, configured to, when at least two node servers are upgraded again and when there are three node servers, upgrade a first node server to use the new daemon information and the old daemon information at the same time, so that the first node server communicates with a second node server through the new daemon information, and the second node server communicates with the first node server through the old daemon information;
an information obtaining subunit, configured to obtain, by the first node server, the old daemon information of the second node server allocated by the current third node server according to the new daemon information;
and the fourth upgrading communication subunit is used for changing the third node server to be compatible with the new daemon and the old daemon at the same time, so that the second node server communicates with the third node server through the old daemon information.
10. The apparatus for upgrading the gray scale in the distributed system communication according to claim 9, wherein the upgrading communication unit further comprises:
and the fifth upgrade communication subunit is configured to switch the communication between the second node server and the first node server and the communication between the second node server and the third node server to be performed through the new daemon information, and close the communication between the second node server and the old daemon information used by another node server.
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 CN106445593A (en) 2017-02-22
CN106445593B true 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 (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100353710C (en) * 2004-06-16 2007-12-05 华为技术有限公司 Upgradable communication system and method for upgrading communication system
CN100527081C (en) * 2005-05-24 2009-08-12 中国银联股份有限公司 Computer processing system for implementing data update and data updating method
CN101217678B (en) * 2007-12-28 2011-08-24 华为技术有限公司 System upgrade method, system and device
CN101227428B (en) * 2008-01-30 2011-12-07 中兴通讯股份有限公司 Application server and remote control method thereof
CN101741894B (en) * 2008-11-26 2012-09-19 中国移动通信集团公司 Upgrade method for distributed system and upgrade scheduling node and system
CN105100232B (en) * 2015-07-14 2016-08-17 焦点教育科技有限公司 A kind of method of the serve end program smooth upgrade of continual service
CN105187410A (en) * 2015-08-18 2015-12-23 深圳市雪球科技有限公司 Application self-upgrading method and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Also Published As

Publication number Publication date
CN106445593A (en) 2017-02-22

Similar Documents

Publication Publication Date Title
CN110365502B (en) Service upgrade management method, device and storage medium
CN101384985B (en) SAS zone group permission table version identifiers
CN108156236A (en) Service request processing method, device, computer equipment and storage medium
CN108023765A (en) Device firmware upgrade method, apparatus and storage medium
CN110032393A (en) A kind of micro services dissemination method, device, equipment and medium
CN105531688A (en) Providing services as resources for other services
CN106484321A (en) A kind of date storage method and data center
CN106648679B (en) Version management method for structured data
CN113961312A (en) Target service deployment method and device and electronic equipment
CN109977099A (en) Database portion arranging method, user equipment, storage medium and device
US20170280313A1 (en) Method and Apparatus for Determining Roaming Status of Terminal, Terminal, and Server
CN113127023B (en) Service upgrading method, device and system
CN114675987A (en) Cache data processing method and device, computer equipment and storage medium
CN106603125A (en) Method and device of realizing data interaction with Bluetooth device
CN105634635B (en) A kind of methods, devices and systems of shared RTC
CN106445593B (en) Method and device for gray scale upgrading in distributed system communication
US11288018B2 (en) Method and system for deploying a virtual distributed unit on a network device
CN103685405B (en) Network service system and the method updating firmware thereof
CN115390939B (en) Service processing method and system
CN110795118A (en) Cloud platform upgrading tool and upgrading method
CN112749147A (en) Method and device for merging and migrating data tables in database
CN106851616B (en) Network service state updating method and device
CN109224451A (en) Development of games method, equipment and storage medium based on block chain subchain
WO2015192298A1 (en) Telecommunication device and method for updating software in a telecommunication device
CN108882268B (en) Method and device for updating device configuration

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