CN107294781A - A kind of method and system of cluster configuration node failure transfer - Google Patents
A kind of method and system of cluster configuration node failure transfer Download PDFInfo
- Publication number
- CN107294781A CN107294781A CN201710522134.3A CN201710522134A CN107294781A CN 107294781 A CN107294781 A CN 107294781A CN 201710522134 A CN201710522134 A CN 201710522134A CN 107294781 A CN107294781 A CN 107294781A
- Authority
- CN
- China
- Prior art keywords
- node
- cluster
- configuration node
- configuration
- former
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
- H04L41/0654—Management of faults, events, alarms or notifications using network fault recovery
- H04L41/0668—Management of faults, events, alarms or notifications using network fault recovery by dynamic selection of recovery network elements, e.g. replacement by the most appropriate element after failure
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
Abstract
The invention discloses a kind of method of cluster configuration node failure transfer, methods described is included when former configuration node leaves cluster, the former configuration node chooses the line node for meeting preparatory condition as candidate's configuration node from cluster information database, the cluster information database is used for before the former configuration node leaves cluster, stores the state of each node in the cluster;Candidate's configuration node is initialized, as configuration node, to be managed each described node of the cluster;The method disclosed in the present, when configuration node leaves cluster, former configuration node can directly choose the line node for meeting preparatory condition as candidate's configuration node from database, and without selecting candidate's configuration node by complicated election contest mode, the step of simplifying option and installment node, so as to reduce the time changed used in configuration node;The invention also discloses a kind of cluster configuration node failure transfer system, equally with above-mentioned beneficial effect.
Description
Technical field
The present invention relates to server storage field, more particularly to a kind of transfer of cluster configuration node failure method and be
System.
Background technology
Currently, the requirement with all trades and professions for data-handling capacity is continuously increased, for the real-time of data processing
It is required that also in improper raising.Current, the group system typically from multinode is handled data, the multinode
Group system each node between cooperate, provide the user service as an entirety.In the cluster system of multinode
In system, it will usually be provided with a configuration node and whole cluster is managed, such as other nodes are added into the cluster,
Storage rear end disk is managed etc..In whole cluster, configuration node has permission to be operated to the resource in cluster,
And each node can only be operated to the running status of oneself.When the configuration node for some reason, for example occur therefore
Hinder or want offline maintenance etc., it is necessary to, it is necessary to select another node as new configuration node to whole collection when leaving cluster
Group is managed.
In the prior art, when need change configuration node when, be typically required by way of competition elect it is new
Configuration node, for example, first obtain No. ID of current each online node, then each relatively more described No. ID size, therefrom choose
No. ID minimum node is initialized finally by candidate's configuration node and matched somebody with somebody as new as candidate's configuration node
Put node.
But in the prior art, generally require to take some time during configuration node with changing, cause whole cluster to exist
Real-time during processing data is not high, the phenomenon of interim card often occurs.
The content of the invention
In view of this, can be with it is a primary object of the present invention to provide a kind of method of cluster configuration node failure transfer
Effectively reduce the time changed used in configuration node;Another object of the present invention is to provide a kind of cluster configuration node failure to turn
The system of shifting, can increase real-time of the cluster in processing data.
In order to solve the above-mentioned technical problem, it is described the invention provides a kind of method of cluster configuration node failure transfer
Method includes:
When former configuration node leaves cluster, the former configuration node is chosen from cluster information database meets default bar
The line node of part is used for each node in cluster described in real-time storage as candidate's configuration node, the cluster information database
State;
Candidate's configuration node is initialized, as configuration node, to carry out each described node of the cluster
Management.
Optionally, the former configuration node is chosen from cluster information database meets preparatory condition and online section
Point includes as candidate's configuration node:
The former configuration node inquires about the cache information of the cluster information database one by one;
The former configuration node regard inquire first line node as candidate's configuration node.
Optionally, methods described further comprises:
When the former configuration node leaves cluster, leave message is sent each to the cluster by the former configuration node
Individual node;
After candidate's configuration node is initialized with as configuration node, methods described further comprises:
The configuration node will initialize completion information and send to each described node of the cluster.
Optionally, all node configuration nodes are left in the former configuration node will notify cluster by event manager module
Cluster event, methods described further comprises:
The former configuration node abandons managing the authority of cluster.
Optionally, after candidate's configuration node is initialized with as configuration node, methods described is further
Including:
The configuration node rejoins the node of the cluster to be added in the cluster.
Present invention also offers a kind of system of cluster configuration node failure transfer, the system includes cluster and cluster is believed
Database is ceased, the cluster includes multiple nodes, wherein former configuration node is the node selected from multiple nodes, be used for
The cluster is managed, the cluster information database is used for the state of each node in cluster described in real-time storage;
When the former configuration node leaves the cluster, the former configuration node is used for from the cluster information database
The middle line node for meeting preparatory condition of choosing is as candidate's configuration node;
Candidate's configuration node is used to be initialized with as configuration node, to each described node of the cluster
It is managed.
Optionally, the former configuration node specifically for:
The cache information of the cluster information database is inquired about one by one;
It regard inquire first line node as candidate's configuration node.
Optionally, the former configuration node is additionally operable to:
When the former configuration node leaves cluster, the former configuration node is used to send leave message to the cluster
Each node;
After candidate's configuration node is initialized with as configuration node, the configuration node is additionally operable to:
Initialization is completed into information to send to each described node of the cluster.
Optionally, the former configuration node is additionally operable to:
Leave message is sent to each node of the cluster in the former configuration node, abandon managing cluster
Authority.
Optionally, the configuration node is additionally operable to:
The node of the cluster to be added is rejoined in the cluster.
A kind of method of cluster configuration node failure transfer provided by the present invention, it is former when configuration node leaves cluster
Configuration node can directly choose the line node for meeting preparatory condition as candidate's configuration node from database, and without passing through
Complicated election contest mode selects candidate's configuration node, and the step of simplifying selection prestowage node match somebody with somebody so as to reduce replacing
Put the time used in node.Present invention also offers a kind of system of cluster configuration node failure transfer, equally have with above-mentioned
Beneficial effect, will not be repeated here.
Brief description of the drawings
, below will be to embodiment or existing for the clearer explanation embodiment of the present invention or the technical scheme of prior art
The accompanying drawing used required in technology description is briefly described, it should be apparent that, drawings in the following description are only this hair
Some bright embodiments, for those of ordinary skill in the art, on the premise of not paying creative work, can be with root
Other accompanying drawings are obtained according to these accompanying drawings.
The flow chart for the first cluster configuration node failure transfer method that Fig. 1 is provided by the embodiment of the present invention;
The flow chart for second of cluster configuration node failure transfer method that Fig. 2 is provided by the embodiment of the present invention;
A kind of structured flowchart for cluster configuration node failure transfer system that Fig. 3 is provided by the embodiment of the present invention.
Embodiment
The core of the present invention is to provide a kind of method of cluster configuration node failure transfer.In the prior art, needs are worked as
When changing configuration node, it is typically required and new configuration node is elected by way of competition, for example, first obtains current online
No. ID of each node, then each relatively more described No. ID size is therefrom chosen No. ID minimum node and configured as candidate
Node, is initialized finally by candidate's configuration node and turns into new configuration node.It is above-mentioned to be sent out from former configuration node
Raw failure is to finally electing between new configuration node, it is necessary to by a large amount of steps, when this also takes substantial amounts of simultaneously
Between.And when electing new configuration node, it usually needs the business that whole cluster is carrying out is interrupted, so be may result in whole
Real-time of the individual cluster in processing data be not high, the phenomenon of interim card often occurs.
And the method for cluster configuration node failure transfer provided by the present invention, when configuration node leaves cluster, first wife
Meet preparatory condition and online node can directly be chosen as candidate's configuration node from database by putting node, and without
Candidate's configuration node is selected by complicated election contest mode, the step of simplifying selection prestowage node, so as to reduce more
Change the time used in configuration node.The process that the line node for meeting preparatory condition is chosen from database is to read currently in fact
The state of the node of each in cluster, and therefrom choose the line node for meeting preparatory condition.And read each in current cluster and save
The state of point from database equivalent to static file is read, and this process is very fast and does not consume the money of whole cluster substantially
Source.
In order that those skilled in the art more fully understand the present invention program, with reference to the accompanying drawings and detailed description
The present invention is described in further detail.Obviously, described embodiment is only a part of embodiment of the invention, rather than
Whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art are not making creative work premise
Lower obtained every other embodiment, belongs to the scope of protection of the invention.
It refer to Fig. 1, the stream for the first cluster configuration node failure transfer method that Fig. 1 is provided by the embodiment of the present invention
Cheng Tu, this method includes:
S101:When former configuration node leaves cluster, the former configuration node is chosen from cluster information database to be met
The line node of preparatory condition is used as candidate's configuration node.
In this step, the effect of the cluster is the business for providing user data processing, and wherein cluster includes many
Individual node, and former configuration node is the node selected from multiple nodes, it is used for the cluster as configuration node
It is managed.In whole cluster, only configuration node has permission operates to the resource of whole cluster, for example, save other
Point adds cluster, management to storing rear end disk etc..And remaining node in the cluster can only concept transfer itself shape
State, such as online or offline etc..
The cluster information database is used for before the former configuration node leaves cluster, is stored with the cluster each
The state of the state of individual node, wherein each node is that each node is sent out itself current state by respective synchronization module
Deliver to cluster information database.The state of each node includes the online situation of each node, can also include
Call number in the cluster of each node, the id of node in the cluster etc., it is not specifically limited herein.If cluster information number
According to the online situation that each node is only stored in storehouse, each corresponding node is only needed to will be certainly when reaching the standard grade and be offline
The online situation of body is sent to cluster information database;If except the online situation of each node in cluster information database, also
The call number in the cluster of each node, the id of node in the cluster etc. are stored, each node is accomplished by accordingly real-time
The state value of itself is sent to cluster information database by the synchronization module.
In this step, because the cluster information database is used for before the former configuration node leaves cluster,
Store the state of each node in the cluster, it is meant that when former configuration node is choosing node from cluster information database
When, cluster information database equivalent to each node state is obtained in advance, just without as prior art, working as needs
The state of each node is obtained when changing configuration node again, present invention thus simplifies the step of selection prestowage node, is reduced
Change the time used in configuration node.
In the present invention, in order to ensure the normal operation of whole cluster, it is necessary to ensure choose candidate's configuration node at least
It is online node, so just can guarantee that the node can fulfil the task of configuration node as early as possible, ensures that whole cluster is smooth
Operation business.
In this step, the line node of preparatory condition is met on specifically how to be chosen from cluster information database
As the process of candidate's configuration node, it will in the following embodiments be described in detail, will not be repeated here.
S102:Candidate's configuration node is initialized with as configuration node, to each described section of the cluster
Point is managed.
In this step, the process of the initialization is the equal of the process for obtaining configuration node authority, when candidate's configuration
Node has been carried out after initialization, equivalent to the authority for obtaining configuration node, and now configuration node could be fulfiled in the cluster
The management role that configuration node should be fulfiled, is managed to the cluster.Specific management role is done in detail in S101
Illustrate, will not be repeated here.
The method for a kind of cluster configuration node failure transfer that the embodiment of the present invention is provided, when configuration node leaves cluster
When, former configuration node directly can be chosen from database meets the line node of preparatory condition as candidate's configuration node, without
Candidate's configuration node is selected with by complicated election contest mode, the step of simplifying selection prestowage node, so as to reduce
Change the time used in configuration node.
In the present invention, the line node for meeting preparatory condition is chosen from cluster information database as candidate's configuration section
The mode of point has many kinds, will be described in detail in the following embodiments, and add some technical characteristics.
It refer to Fig. 2, the stream for second of cluster configuration node failure transfer method that Fig. 2 is provided by the embodiment of the present invention
Cheng Tu, this method includes:
S201:When former configuration node leaves cluster, the line node in cluster can all receive configuration node and leave cluster
Event information.
In this step, former configuration node is by being arranged on the synchronization module in former configuration node by the leave message
Each node into cluster is sent, after the node of each in cluster receives the leave message, it is meant that now need to change
Configuration node, and be configured without node in the period of configuration node changing and be managed to cluster really, now for
Do not allow the business handled by whole cluster not make a mistake, can interrupt the business performed by each node under normal circumstances.
In embodiments of the present invention, all can be by setting generally when the node of each in cluster needs to leave whole cluster
Leave message is sent into cluster each node by the synchronization module in each node, so in configuration node to whole cluster
When sending leave message, while also to oneself have sent the leave message, when configuration node receives leave message
When, it will usually whether be what oneself sent, if so, then performing subsequent step if first judging the leave message;If it is not, then travelling
The authority of configuration node allows the node for sending leave message to leave cluster.
S202:Former configuration node abandons managing the authority of cluster.
In this step, it is necessary to which the former configuration node abandons managing the authority of cluster.Because in embodiments of the present invention,
The former configuration node as a common node can also rejoin cluster in subsequent step, if now the node is gathered around
There is the authority of management cluster, equivalent to there are two configuration nodes fissure situation now easily occurs for whole cluster, can be to whole
Cluster causes great harm.
Under normal conditions, only after former configuration node abandons managing the authority of cluster, remaining node ability in cluster
Have the power to strive for the authority for managing cluster.
S203:Former configuration node inquires about the cache information of cluster information database one by one.
In this step, the state of each node is stored in each cache information in cluster information database in cluster
In, the state of more specifically each node is to be stored in the slow of the cluster information database with the static file of txt forms
Information is deposited, certainly, the state of each node can also be is stored in the slow of the cluster information database otherwise
Information is deposited, is not specifically limited herein.
S204:Former configuration node regard inquire first line node as candidate's configuration node.
In this step, first line node is determined according to the search order of former configuration node.First wife
Node is put when the cache information of the cluster information database is inquired about, will not be while obtaining all data, typically
Inquire about the cache information of the cluster information database one by one in a certain order, scene when being read similar to people,
Simply speed can be quickly in the state of each node in obtaining cluster for configuration node.
Certainly, except as candidate's configuration node, first line node can also be chosen into it according to the order of inquiry
His line node is not specifically limited herein as candidate's configuration node.Except determining that candidate matches somebody with somebody only according to search order
Node is put, other conditions can also be further added, for example, inquire first load condition value is less than and preset
Value line node as candidate's configuration node, because under normal circumstances, the workload for managing the business of whole cluster can be very
Greatly, if having chosen load condition value very high node as configuration node, it is easy to break down.Accordingly, believe in cluster
The load condition value of the node of each in cluster should be stored in breath database.Certainly, in addition to above-mentioned additional conditions, may be used also
To add other conditions, it is not specifically limited herein.
In this step, further omit each can be compared when configuration node is changed compared with prior art
The step of parameter of node, or only allow the parameter of each node to be made comparisons with a fixed parameter, so that further
The step of simplifying selection candidate's configuration node, reduces the time for changing configuration node.
S205:Candidate's configuration node is initialized, as configuration node, to be managed each node of cluster.
In this step, the process of the initialization is the equal of the process for obtaining configuration node authority, and detail is
It is described in detail in above-described embodiment S102, it is not reinflated herein to be described.
S206:Configuration node will initialize completion information and send to each node of cluster.
In this step, configuration node can will be initialized by the synchronization module being arranged in configuration node and complete information hair
Each node is delivered to, after the node of each in cluster, which receives the initialization, completes information, it is meant that initial work is
Complete, there is new node to be managed to whole cluster, the industry that now each node is interrupted between can continuing
Business.
S207:Configuration node rejoins the node of cluster to be added in cluster.
In embodiments of the present invention, the reason for former configuration node leaves cluster has many kinds, such as former configuration node occurs
Failure, it is also possible to which former configuration node needs to be serviced etc. reason, and the node of other in cluster is it can also happen that similar
Reason cause needs it is of short duration leave cluster.And after node maintenance has been got well, it is possible to rejoin cluster and continue executing with industry
Business.
In this step, after configuration node has just been changed, the configuration node can be further whole by managing
The authority of individual cluster, the cluster is rejoined by the node of the cluster to be added so that whole cluster can be faster
Processing business.
A kind of method for cluster configuration node failure transfer that the embodiment of the present invention is provided, can notify whole cluster to exist
Tentative business when configuration node is changed, to ensure to occur without apparent error during service operation;The embodiment of the present invention also enters one
The authority for allowing former configuration node to abandon managing cluster walked, to ensure when subsequently the node is added in cluster again, no
The situation of fissure occurs;The embodiment of the present invention further omit can also compare each section when configuration node is changed
The step of parameter of point, so as to reduce the time for changing configuration node;The embodiment of the present invention can also just change configuration
After node, the node of the cluster to be added is rejoined into the cluster so that whole cluster can be handled faster
Business.
A kind of cluster configuration node failure transfer system provided in an embodiment of the present invention is introduced below, is described below
The method that shifts of cluster configuration node failure of cluster configuration node failure transfer system and foregoing description can be mutually corresponding
Reference.
It refer to Fig. 3, a kind of structure for cluster configuration node failure transfer system that Fig. 3 is provided by the embodiment of the present invention
Block diagram, the system includes cluster 100 and cluster information database 200, and the cluster 100 includes multiple nodes, and wherein first wife puts
Node 101 is the node selected from multiple nodes, for being managed to the cluster 100, the cluster information number
It is used for according to storehouse 200 before the former configuration node 101 leaves cluster 100, stores the shape of each node in the cluster 100
State.
In embodiments of the present invention, the effect of the cluster 100 is the business for providing user data processing, is entirely being collected
In group 100, only configuration node has permission operates to the resource of whole cluster 100, for example, other nodes are added into cluster
100, management to storing rear end disk etc..And remaining node in cluster 100 can only concept transfer itself state, example
It is such as online or offline.
The cluster information database 200 is used for before the former configuration node 101 leaves cluster 100, and storage is
The state of each node in cluster 100 is stated, the state of wherein each node is that each node will be certainly by respective synchronization module
The current state of body is sent to cluster information database 200.Details on cluster information database 200 is above-mentioned
It is described in detail, is no longer repeated herein in embodiment.
In embodiments of the present invention, due to the cluster information database 200 be used for the former configuration node 101 from
Before opener group 100, the state of each node in the cluster is stored, it is meant that when former configuration node 101 is from cluster information
When choosing node in database 200, cluster information database 200 equivalent to each node state is obtained in advance, just not
With as prior art, the state of each node is obtained again when needing and changing configuration node, present invention thus simplifies choosing
The step of selecting prestowage node, reduces the time changed used in configuration node.
When the former configuration node 101 leaves cluster 100, the former configuration node 101 is used to send leave message
To each node of the cluster 100.
In embodiments of the present invention, former configuration node 101 is incited somebody to action by the synchronization module being arranged in former configuration node 101
The leave message sends into cluster 100 each node, after each node receives the leave message in cluster 100,
Mean now to need to change configuration node, now in order to not allow the business handled by whole cluster 100 to make a mistake, usual feelings
The business performed by each node can be interrupted under condition.
Leave message is sent to each node of the cluster 100 in the former configuration node 101, the first wife
Put the authority that node 101 is additionally operable to abandon managing cluster 100.
Under normal conditions, only after former configuration node 101 abandons managing the authority of cluster 100, its in cluster 100
Remaining node just has the power to strive for the authority of the management cluster 100.
When the former configuration node 101 leaves the cluster 100, the former configuration node 101 is used for from the cluster
The line node for meeting preparatory condition is chosen in information database 200 as candidate's configuration node 102.
More specifically, the former configuration node 101 specifically for:
The cache information of the cluster information database 200 is inquired about one by one.
It regard inquire first line node as candidate's configuration node 102.
In embodiments of the present invention, first line node is determined according to the search order of former configuration node 101
Fixed.Certainly, except as candidate's configuration node 102, first line node can also be chosen into it according to the order of inquiry
His line node is not specifically limited herein as candidate's configuration node 102.Except determining candidate only according to search order
Configuration node 102, can also further add other conditions, and details refer to above-described embodiment, not reinflated herein
Description.
Candidate's configuration node 102 is used to be initialized with as configuration node, to each institute of the cluster 100
Node is stated to be managed.
In embodiments of the present invention, the process of the initialization is the equal of the process for obtaining configuration node authority, specifically
Details is described in detail in the above-described embodiments, is no longer repeated herein.
After candidate's configuration node 102 is initialized with as configuration node, the configuration node is additionally operable to
Initialization is completed into information to send to each described node of the cluster 100.
In embodiments of the present invention, configuration node can will be initialized by the synchronization module being arranged in configuration node and completed
Information is sent to each node, after each node receives the initialization completion information in cluster 100, it is meant that initialization
Work has been completed, and now each node can continue interrupted business.
The configuration node is additionally operable to rejoin the node of the cluster 100 to be added in the cluster 100.
In embodiments of the present invention, after configuration node has just been changed, the configuration node can further pass through
The authority of whole cluster 100 is managed, the node of the cluster 100 to be added is rejoined into the cluster 100 so that be whole
Cluster 100 can processing business faster.
The cluster configuration node failure transfer system of the embodiment of the present invention is used to realize foregoing cluster configuration node failure
The visible cluster configuration section hereinbefore of embodiment in the method for transfer, therefore cluster configuration node failure transfer system
The embodiment part of point failure transfer method, will not be repeated here.
The embodiment of each in this specification is described by the way of progressive, what each embodiment was stressed be with it is other
Between the difference of embodiment, each embodiment same or similar part mutually referring to.For being filled disclosed in embodiment
For putting, because it is corresponded to the method disclosed in Example, so description is fairly simple, related part is referring to method part
Explanation.
Professional further appreciates that, with reference to the unit of each example of the embodiments described herein description
And algorithm steps, can be realized with electronic hardware, computer software or the combination of the two, in order to clearly demonstrate hardware and
The interchangeability of software, generally describes the composition and step of each example according to function in the above description.These
Function is performed with hardware or software mode actually, depending on the application-specific and design constraint of technical scheme.Specialty
Technical staff can realize described function to each specific application using distinct methods, but this realization should not
Think beyond the scope of this invention.
Directly it can be held with reference to the step of the method or algorithm that the embodiments described herein is described with hardware, processor
Capable software module, or the two combination are implemented.Software module can be placed in random access memory (RAM), internal memory, read-only deposit
Reservoir (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technology
In any other form of storage medium well known in field.
The method and system that cluster configuration node failure provided by the present invention is shifted are described in detail above.This
Apply specific case in text to be set forth the principle and embodiment of the present invention, the explanation of above example is only intended to
Help to understand method and its core concept of the invention.It should be pointed out that for those skilled in the art,
Without departing from the principles of the invention, some improvement and modification can also be carried out to the present invention, these are improved and modification also falls
Enter in the protection domain of the claims in the present invention.
Claims (10)
1. a kind of method of cluster configuration node failure transfer, it is characterised in that methods described includes:
When former configuration node leaves cluster, the former configuration node is chosen from cluster information database meets preparatory condition
Line node is used for before the former configuration node leaves cluster as candidate's configuration node, the cluster information database,
Store the state of each node in the cluster;
Candidate's configuration node is initialized, as configuration node, to manage each described node of the cluster
Reason.
2. according to the method described in claim 1, it is characterised in that the former configuration node is chosen from cluster information database
Meet the line node of preparatory condition includes as candidate's configuration node:
The former configuration node inquires about the cache information of the cluster information database one by one;
The former configuration node regard inquire first line node as candidate's configuration node.
3. according to the method described in claim 1, it is characterised in that methods described further comprises:
When the former configuration node leaves cluster, each node in the cluster receives the thing that configuration node leaves cluster
Part;
After candidate's configuration node is initialized with as configuration node, methods described further comprises:
The configuration node closes the initialization flow of cluster configuration node.
4. method according to claim 3, it is characterised in that each node in the cluster receives configuration node and left
After the event of cluster, methods described further comprises:
The former configuration node sets cluster to be in configuration node and elects the stage.
5. the method according to any one of Claims 1-4 claim, it is characterised in that when candidate's configuration node
Initialized so that after as configuration node, methods described further comprises:
The configuration node rejoins the node of the cluster to be added in the cluster.
6. a kind of system of cluster configuration node failure transfer, it is characterised in that the system includes cluster and cluster information number
According to storehouse, the cluster includes multiple nodes, wherein former configuration node is the node selected from multiple nodes, for institute
State cluster to be managed, the cluster information database is used for before the former configuration node leaves cluster, store the collection
The state of each node in group;
When the former configuration node leaves the cluster, the former configuration node is used to select from the cluster information database
The line node for meeting preparatory condition is taken as candidate's configuration node;
Candidate's configuration node is used to be initialized, as configuration node, to carry out each described node of the cluster
Management.
7. system according to claim 6, it is characterised in that the former configuration node specifically for:
The cache information of the cluster information database is inquired about one by one;
It regard inquire first line node as candidate's configuration node.
8. system according to claim 6, it is characterised in that the former configuration node is additionally operable to:
When the former configuration node leaves cluster, leave message is sent to each node of the cluster;
After candidate's configuration node is initialized with as configuration node, the configuration node is additionally operable to:
Initialization is completed into information to send to each described node of the cluster.
9. system according to claim 8, it is characterised in that the former configuration node is additionally operable to:
Leave message is sent to each node of the cluster in the former configuration node, abandon managing the power of cluster
Limit.
10. the system according to any one of claim 6 to 9 claim, it is characterised in that the configuration node is also used
In:
The node of the cluster to be added is rejoined in the cluster.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710522134.3A CN107294781B (en) | 2017-06-30 | 2017-06-30 | Method and system for cluster configuration node failover |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710522134.3A CN107294781B (en) | 2017-06-30 | 2017-06-30 | Method and system for cluster configuration node failover |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107294781A true CN107294781A (en) | 2017-10-24 |
CN107294781B CN107294781B (en) | 2021-06-29 |
Family
ID=60099555
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710522134.3A Active CN107294781B (en) | 2017-06-30 | 2017-06-30 | Method and system for cluster configuration node failover |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107294781B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108768729A (en) * | 2018-05-31 | 2018-11-06 | 郑州云海信息技术有限公司 | A kind of transfer method and device of the memory node based on HDFS clusters |
WO2023246168A1 (en) * | 2022-06-23 | 2023-12-28 | 华为云计算技术有限公司 | Micro-service migration method and apparatus, and computing device |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101958805A (en) * | 2010-09-26 | 2011-01-26 | 中兴通讯股份有限公司 | Terminal access and management method and system in cloud computing |
CN103580915A (en) * | 2013-09-26 | 2014-02-12 | 东软集团股份有限公司 | Method and device for determining main control node of trunking system |
CN106453656A (en) * | 2016-12-06 | 2017-02-22 | 东软集团股份有限公司 | Cluster host selection method and device |
US20170139789A1 (en) * | 2015-11-17 | 2017-05-18 | International Business Machines Corporation | Preventing split-brain scenario in a high-availability cluster |
CN106713056A (en) * | 2017-03-17 | 2017-05-24 | 郑州云海信息技术有限公司 | Method for selecting and switching standbys under distributed cluster |
-
2017
- 2017-06-30 CN CN201710522134.3A patent/CN107294781B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101958805A (en) * | 2010-09-26 | 2011-01-26 | 中兴通讯股份有限公司 | Terminal access and management method and system in cloud computing |
CN103580915A (en) * | 2013-09-26 | 2014-02-12 | 东软集团股份有限公司 | Method and device for determining main control node of trunking system |
US20170139789A1 (en) * | 2015-11-17 | 2017-05-18 | International Business Machines Corporation | Preventing split-brain scenario in a high-availability cluster |
CN106453656A (en) * | 2016-12-06 | 2017-02-22 | 东软集团股份有限公司 | Cluster host selection method and device |
CN106713056A (en) * | 2017-03-17 | 2017-05-24 | 郑州云海信息技术有限公司 | Method for selecting and switching standbys under distributed cluster |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108768729A (en) * | 2018-05-31 | 2018-11-06 | 郑州云海信息技术有限公司 | A kind of transfer method and device of the memory node based on HDFS clusters |
WO2023246168A1 (en) * | 2022-06-23 | 2023-12-28 | 华为云计算技术有限公司 | Micro-service migration method and apparatus, and computing device |
Also Published As
Publication number | Publication date |
---|---|
CN107294781B (en) | 2021-06-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110032571A (en) | Business flow processing method, apparatus, storage medium and calculating equipment | |
CN100556038C (en) | A kind of content distribution method based on outer condition trigger node action | |
CN106302702A (en) | Burst storage method, the Apparatus and system of data | |
CN105242983B (en) | A kind of date storage method and a kind of data storage management service device | |
CN107817947B (en) | Data storage method, device and system | |
CN107147724A (en) | A kind of information push method, server and computer-readable recording medium | |
CN106130972B (en) | resource access control method and device | |
CN104219069B (en) | access frequency control method, device and control system | |
CN101771723A (en) | Data synchronization method | |
CN106775936A (en) | The management method and device of a kind of virtual machine | |
CN108881512A (en) | Virtual IP address equilibrium assignment method, apparatus, equipment and the medium of CTDB | |
CN110020086A (en) | A kind of user draws a portrait querying method and device | |
CN110191160A (en) | A kind of concurrency control method and device | |
CN107294781A (en) | A kind of method and system of cluster configuration node failure transfer | |
CN107404541A (en) | A kind of method and system of peer-to-peer network transmission neighbor node selection | |
CN107633045A (en) | The statistical method and its system of tenant data capacity in a kind of cloud storage service | |
CN106294198B (en) | A kind of memory allocation method and method for releasing of (SuSE) Linux OS | |
CN107341056A (en) | A kind of method and device of the thread distribution based on NFS | |
CN106406764A (en) | A high-efficiency data access system and method for distributed SAN block storage | |
CN106528065A (en) | Thread obtaining method and device | |
CN106302709A (en) | A kind of method and system of network file management | |
CN109739903A (en) | A kind of generation method and relevant apparatus of ranking list data | |
CN105930178A (en) | Configurable parameter dynamic loading method and system | |
CN104536852B (en) | Data recovery method and device | |
CN105991571B (en) | A kind of information processing method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |