CN102681781B - Method and device for cluster recombination - Google Patents

Method and device for cluster recombination Download PDF

Info

Publication number
CN102681781B
CN102681781B CN201210129145.2A CN201210129145A CN102681781B CN 102681781 B CN102681781 B CN 102681781B CN 201210129145 A CN201210129145 A CN 201210129145A CN 102681781 B CN102681781 B CN 102681781B
Authority
CN
China
Prior art keywords
node
pulled
current cluster
icon
cluster
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
CN201210129145.2A
Other languages
Chinese (zh)
Other versions
CN102681781A (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201210129145.2A priority Critical patent/CN102681781B/en
Publication of CN102681781A publication Critical patent/CN102681781A/en
Application granted granted Critical
Publication of CN102681781B publication Critical patent/CN102681781B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a method and device for cluster recombination, and belongs to the field of computers. The method includes firstly, recognizing all effective nodes meeting requirements for being added to a current cluster in a local area network, and displaying icons of all effective recognized nodes on a current visualized interface; and secondly, adding a dragged node to the current cluster according to dragging action of an icon of any node in all displayed effective nodes by a user. Nodes qualified to be added in the local area network can be automatically recognized and displayed on the visualized interface, operation intention of the user can be recognized directly according to the visualized interface, and further operation of the nodes can be achieved automatically, so that the complicated process of being added to the cluster of the nodes can be simplified, and efficiency of cluster recombination can be improved. In addition, user operation can be accepted directly through the visualized interface, interaction with the user can be increased, another management manner of cluster nodes is provided, so that user experience of a cluster management interface is improved, and maintenance cost of the cluster is reduced.

Description

A kind of method and device of cluster restructuring
Technical field
The present invention relates to computer realm, particularly a kind of method and device of cluster restructuring.
Background technology
In computer realm, there is a kind of HA (High Availability, high availability) software, by shortening the stop time causing because of daily servicing operation (plan) and the system crash (unplanned) that happens suddenly, with the availability of raising system and application as far as possible; And HA software is installed, configured on clustered node, make the co-ordination simultaneously of each node, the process that adds in node cluster or remove node is called as cluster restructuring, clustered deploy(ment) can effectively improve the availability of system, along with the development of computer realm, the application of cluster restructuring is also more and more extensive.
In existing cluster recombination form, take and add new node as example, first user revises the bottom communication configuration file of clustered node to be added, the communication network segment of this node and multicast address information are arranged to same trunking communication configuration consistency, in cluster configuration file, increase again newly added node information, start the HA software of node to be added, finally in cluster by order line or on interface, operation new node adition process, new node is carried out to purview certification, the node of having registered in configuration file is added to current cluster.
In realizing process of the present invention, inventor finds that prior art at least exists following problem:
First, node adition process needs manual modification configuration file at every turn, carries out the processes such as Authority Verification, and process is loaded down with trivial details, and automaticity is low, especially needs more new node to add fashionable, the low outstanding problem of efficiency; Secondly, while adding node by operation on interface, need multistep operation, layoutprocedure is efficient not and directly perceived, poor user experience; In addition, process is loaded down with trivial details higher to cluster administrator requirement, has indirectly increased the maintenance cost of cluster, and the market competitiveness of software fails fully to represent.
Summary of the invention
The loaded down with trivial details processes such as configuration while adding cluster in order to simplify node, deployment, checking, improve the efficiency of cluster restructuring, simultaneously, increase the clustered node way to manage with user interactions, the user who improves cluster management interface experiences, and reducing the maintenance cost of cluster, the embodiment of the present invention provides a kind of method and device of cluster restructuring.Described technical scheme is as follows:
On the one hand, provide a kind of method of cluster restructuring, described method comprises:
In identification LAN (Local Area Network), meet all effective node that adds current cluster, and the icon of described all effective nodes that Identification display goes out on current visualization interface;
Drag motions according to user to the icon of arbitrary node in the described all effective nodes that show, will be pulled node and be added described current cluster.
On the other hand, also provide a kind of device of cluster restructuring, described device comprises:
Identification module, meets for identifying all effective node that adds current cluster in LAN (Local Area Network);
Display module, for showing the icon of described all effective nodes that described identification module identifies on current visualization interface;
Add module, for the drag motions to the icon of the arbitrary node of described all effective nodes of described display module demonstration according to user, the described node that pulled is added to described current cluster.
The beneficial effect that technical scheme provided by the invention is brought is:
By meeting and add the node of condition and be presented on visualization interface in automatic identification LAN (Local Area Network), the drag motions Direct Recognition operation intention of user on visualization interface according to user again, then the operation of automatic complete paired node, reach the complicated processes when simplifying node and adding cluster, improve the object of the efficiency of cluster restructuring; , by accepting user at visualization interface, operate meanwhile, increased mutual with user, and then the way to manage of another clustered node is provided, the user that not only can improve cluster management interface experiences, and also can reduce the maintenance cost of cluster.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, below the accompanying drawing of required use during embodiment is described is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skills, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is the method flow diagram of a kind of cluster restructuring that provides of the embodiment of the present invention one;
Fig. 2 is the method flow diagram of a kind of cluster restructuring that provides of the embodiment of the present invention two;
Fig. 3 be the embodiment of the present invention two provide pull node schematic diagram;
Fig. 4 is the method flow diagram of a kind of cluster restructuring that provides of the embodiment of the present invention three;
Fig. 5 be the embodiment of the present invention three provide pull node schematic diagram;
Fig. 6 is the apparatus structure schematic diagram of a kind of cluster restructuring that provides of the embodiment of the present invention four;
Fig. 7 is the structural representation that adds module that the embodiment of the present invention four provides;
Fig. 8 is the apparatus structure schematic diagram of another cluster restructuring of providing of the embodiment of the present invention four;
Fig. 9 is the apparatus structure schematic diagram of another cluster restructuring of providing of the embodiment of the present invention four;
Figure 10 is the apparatus structure schematic diagram of the another kind of cluster restructuring that provides of the embodiment of the present invention four;
Figure 11 is the structural representation that removes module that the embodiment of the present invention four provides;
Figure 12 is the apparatus structure schematic diagram of the another kind of cluster restructuring that provides of the embodiment of the present invention four.
Embodiment
For making the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing, embodiment of the present invention is described further in detail.
Embodiment mono-
The present embodiment provides a kind of method of cluster restructuring, and referring to Fig. 1, the concrete steps of the method that the present embodiment provides comprise:
101: in identification LAN (Local Area Network), meet all effective node that adds current cluster, and the icon of all effective nodes that Identification display goes out on current visualization interface;
102: the drag motions according to user to the icon of arbitrary node in all effective node showing, will be pulled node and add current cluster.
Wherein, also shown the icon of existing node in current cluster on current visualization interface, the drag motions according to user to the icon of arbitrary node in all effective node showing, will be pulled node and be added current cluster, specifically comprise:
Detect user to the drag motions of the icon of arbitrary node in all effective node showing after, calculate the distance between the icon that is pulled arbitrary existing node in the icon of node and current cluster;
If the distance calculating is less than or equal to predetermined threshold value, this is pulled to node and added current cluster.
Further, will be pulled before node adds current cluster, also be comprised:
Whether prompting user will be pulled node adds in current cluster;
If not, the icon that is pulled node is back to origin-location;
If so, carry out and will be pulled the operation that node adds current cluster.
Further, will be pulled before node adds current cluster, also be comprised:
Verification is pulled the relation of whether having built up mutual trust between host node in node and current cluster;
If verification draws the relation of not building up mutual trust between node and host node that pulled, point out user's input validation password, according to user, input after correct authentication password sets up and pulled the mutual trust relation between node and host node, carry out and will be pulled the step that node adds current cluster; If password mistake, prompting mutual trust relation is set up unsuccessfully, and is returned to origin-location by towing node.
If verification draws, pulled the relation of having built up mutual trust between node and host node, carry out and will be pulled the step that node adds current cluster.
Further, will be pulled after node adds current cluster, also be comprised:
Detection is pulled on node, whether to be deployed with clustered software, and whether the version of clustered software is consistent with the version of the clustered software of current cluster deploy;
If being pulled node deploy has clustered software, and the version of this clustered software is consistent with the version of the clustered software of current cluster deploy, revise the clustered software relevant configuration that is pulled node, and the current state information of current cluster is synchronized to and is pulled node;
The version of the version of the clustered software of not disposed clustered software or deployment on node if pull and the clustered software of current cluster deploy is inconsistent, after being pulled the clustered software of the current cluster deploy of node deploy, modification is pulled the clustered software relevant configuration of node, and after being pulled the clustered software that starts deployment on node, the current state information of current cluster is synchronized to and is pulled node.
Further, to be pulled after node adds current cluster, the method that the present embodiment provides is also supported the step that it is removed from current cluster, the drag motions to the icon of arbitrary node in all effective nodes according to user, to be pulled after node adds current cluster, also be comprised:
According to user, to being pulled the drag motions of the icon of node, will be pulled node and be removed from current cluster.
Further, according to user, to being pulled the drag motions of the icon of node, will be pulled node and be removed from current cluster, specifically be comprised:
User detected to being pulled after the drag motions of icon of node, calculate the distance between the icon that is pulled arbitrary node in the icon of node and current cluster;
If the distance calculating is greater than predetermined threshold value, will be pulled node and be removed from current cluster.
In order to remove and to be pulled node from current cluster in the situation that user confirming, will be pulled before node removes from current cluster, also comprise:
Whether prompting user will be pulled node removes from current cluster;
If not, cancel and remove operation, and the icon that is pulled node is back to origin-location;
If so, carry out and will be pulled the operation that node removes from current cluster.
Further, will be pulled after node removes from current cluster, also be comprised:
Stop to be pulled and on node, move clustered software, and switched on the existing node in current cluster and move pulling the application moving on node.
It should be noted that, above-mentioned clustered software can be the available HA software of height, can be also other clustered softwares in computer realm, and the present embodiment is not specifically limited this.
The present embodiment supplying method, by meeting and add the node of condition and be presented on visualization interface in automatic identification LAN (Local Area Network), the drag motions Direct Recognition operation intention of user on visualization interface according to user again, then the operation of automatic complete paired node, reach and simplify that node adds, the complicated processes while removing cluster, improve the object of the efficiency of cluster restructuring; , by accepting user at visualization interface, operate meanwhile, increased mutual with user, and then the way to manage of another clustered node is provided, the user that not only can improve cluster management interface experiences, and also can reduce the maintenance cost of cluster.
The method providing in order more clearly to set forth above-described embodiment one, in conjunction with foregoing, the content of following embodiment bis-and embodiment tri-of next take is example, and the method for cluster restructuring is carried out to detailed illustrating, and refers to following embodiment bis-and embodiment tri-:
Embodiment bis-
The present embodiment provides a kind of method of cluster restructuring, for convenience of explanation, the present embodiment be take node a existing host node in current cluster, node b be current cluster to be added pulled node, clustered software is that high available HA software is example, and the method that the present embodiment is provided is illustrated.Referring to Fig. 2, the concrete steps of the method that the present embodiment provides comprise:
201: the HA software startup on node a, set up a cluster that comprises node a;
For this step, the present embodiment only be take current cluster, and only to have a node a be example, and the HA software startup on node a is set up the mode of a node cluster can pass through existing techniques in realizing, repeats no more herein.In practical application, a cluster can also comprise a plurality of nodes, the situation that comprises a plurality of nodes for cluster, using a node in a plurality of nodes in current cluster as DC (Designated Co-ordinator, the coordinator of appointment) host node, clustered software state on other nodes need to be synchronizeed with this host node, and about the selection principle of host node, the present embodiment is not specifically limited.
202: automatically identify and in LAN (Local Area Network), meet the node b that adds current cluster, and on current visualization interface, show the icon of node b;
Particularly, the present embodiment does not limit meeting the mode of the node b that adds current cluster in identification LAN (Local Area Network), equally not to showing that on current visualization interface the icon mode of node b limits.In practical application, the icon of each node has corresponding to the figure entitling of node separately, therefore, can show with the mode of node name the icon of node b.For there being a plurality of situations that meet the node that adds current cluster, each node icon can be presented on current visualization interface by ordered arrangement, its put in order can have multiple, such as sorting by modes such as distance, title or times, to this, the present embodiment is not specifically limited.
In addition, except show the icon of node b on visualization interface, also show the icon of existing node in cluster, so that follow-up, by visualized operation, realize cluster and recombinate.
203: detect user to the drag motions of the icon of node b after, the distance between the icon of computing node b and the icon of node a;
For this step, why detect the drag motions of user to node b, for the drag motions of node b being determined to user's operation is intended to by user, due on current visualization interface except showing the existing node of current cluster, the icon that has also shown node b to be added, can obtain thus the range information between each node icon on visualization interface, when user pulls the icon of node b, the positional information between the icon of other nodes that show on the icon of node b and visualization interface also changes thereupon.In user's operating aspect, if user wishes node b to add current cluster, only need the node a that the icon of node b is approached to current cluster by drag motions to trigger cluster reorganization operation.To this, user can have multiple to the drag operation mode of the icon of node b, and such as pull the icon of node b with mouse move operation or touch screen move operation etc., the mode that the present embodiment does not pull node b to user limits.
In order to determine that user adds node the operation intention of cluster, the method that the present embodiment provides detect user to the drag motions of the icon of node b after, distance between the icon of the icon of computing node b and node a, thus according to the distance calculating, determine whether node b to add current cluster.
About detecting the mode of drag motions and the mode of calculating distance, all can realize by existing detection technique and account form, the present embodiment is not specifically limited this.It should be noted that, when current cluster has a plurality of existing node, the value of range information has multiple, such as getting in node b icon and current cluster the minimum value of distance between all node icons, or get the distance between node b icon and host node icon, the adjust the distance value mode of information of the present embodiment is not specifically limited.
204: whether the distance that judgement calculates is less than or equal to predetermined threshold value, if so, performs step 205, otherwise, execution step 206;
Wherein, after the icon of node b is pulled, current visualization interface can be as shown in Figure 3, after if user pulls the icon of node b, distance between the icon of the icon of node b and node a is less than predetermined threshold value, it is the interface scope that the icon of node b falls into node a place cluster, can further determine that user wishes node b to add ingress a place cluster, to this, for whether the icon of clear and definite node b falls into current cluster wide after being pulled, whether the distance that needs judgement to calculate is less than or equal to predetermined threshold value.The present embodiment does not limit the concrete size of predetermined threshold value, for example, predetermined threshold value is set to 2 centimetres, if on current visualization interface, distance between the icon of the icon of node b and node a is less than 2 centimetres, decision node b falls into current cluster wide, and the operation that can determine user's drag motions is intended that wishes node b to add current cluster.
In actual applications, after distance between decision node b icon and node a icon is less than or equal to predetermined threshold value, in order accurately to confirm user's operation intention, whether can also eject prompting frame prompting user confirms node b to add present node cluster, if user clicks confirmation, continue to perform step 205, otherwise execution step 206.The mode that ejects prompting frame can realize according to the mode of existing ejection prompting frame, certainly, can also select other modes to point out user, and the present embodiment is not specifically limited this.
205: the relation of whether having built up mutual trust between check-node b and node a, if so, perform step 208, otherwise, execution step 207;
For this step, distance between the icon of above-mentioned steps 204 decision node b and the icon of node a is less than or equal to predetermined threshold value, can determine that user is added after the operation intention of current cluster, judge between the node b that node a in cluster and user will add whether set up mutual trust relation.Wherein, the present embodiment does not limit the concrete mutual trust relation of setting up between node a and node b, for example, this mutual trust relation can be set up by password authentification, the method of whether setting up mutual trust relation between decision node a and node b can be password authentification, also can be other verification methods, to this, the embodiment of the present invention be not specifically limited.
206: by the icon correcting action of node b, flow process finishes;
Particularly, because the distance of judging between the icon of node b and the icon of node a is greater than predetermined threshold value, can judge that user is added current cluster to the operation of node b, therefore, default user abandons node b to add the operation of current cluster, thereby can be by the icon correcting action of node b.Certainly, for user, the icon of node b is pulled, and the situation that the icon of node b after pulling and the distance between the icon of node a are greater than predetermined threshold value, except taking the processing mode of the icon correcting action of node b, can also select other processing modes, for example, keep pulling position afterwards etc., the present embodiment is not specifically limited this.
207: prompting user input validation password, and input after correct authentication password user, set up the mutual trust relation between node b and node a;
For this step, during prompting user input validation password, can eject the mode of Password Input frame, prompting user input validation password, certainly, can also take other prompting modes, and the present embodiment does not limit this.If user cancels input, default user is cancelled the operation that node b is added to present node cluster, returns to step 206.
After user's input validation password, the authentication password of user input is mated with pre-stored correct authentication password to judge that whether the authentication password that user inputs is correct, if the authentication password of user's input is correct, set up the mutual trust relation between node b and node a and node b is added to present node cluster, if the authentication password mistake of user's input, point out user to re-enter, until input after correct authentication password, set up the mutual trust relation between node b and node a.
208: on detection node b, whether be deployed with HA software, and whether the version of this HA software is consistent with the version of the HA software of current cluster deploy, if not, performs step 209, if so, performs step 210;
Particularly, on detection node b, whether be deployed with HA software, and whether the version of the version of this HA software and the HA software of current cluster deploy is when consistent, on first decision node b, whether be deployed with HA software, if disposed HA software on node b, then judge that whether this HA software is consistent with the HA software version of current cluster deploy.
209: after the HA software of the current cluster deploy of node b deploy, start the HA software of disposing, and revise after the HA software relevant configuration of node b on node b, the current state information of current cluster is synchronized to node b, flow process finishes.
For this step, no matter be on node b, not dispose HA software, or disposed HA software at node b, but the version of the HA software of the version of this HA software and current cluster deploy is inconsistent, in order to realize the synchronous of cluster interior nodes, all need to be at the HA software of the current cluster deploy of node b deploy.For example, all installation kits of the HA software on node a are synchronized on node b and are installed, while specifically installing, RPM (RedHat Package Manager, RedHat software package management tool) bag deployment way is similar with adopting, and repeats no more herein.After the HA software of the current cluster deploy of node b deploy, revise again the HA software relevant configuration on node b, and current cluster state information is synchronized to node b, complete the consistency operation that node b is added to current cluster, the picture mark position of node b on visualization interface also moves in the scope of node a place cluster thereupon simultaneously, so far, add the operating process of current cluster to finish node b.
Wherein, revise the HA software relevant configuration on node b, include but not limited to revise the HA configuration file on node b, make it to meet the node configuration requirement of current cluster, the present embodiment does not limit the revised context of HA software relevant configuration.
210: revise the HA software relevant configuration of node b, and the current state information of current cluster is synchronized to node b, flow process finishes.
Particularly, if be deployed with HA software on node b, and the version of this HA software is consistent with the version of the HA software of current cluster deploy, node b is being added after current cluster, directly revise the HA relevant configuration on node b, more current cluster state information is synchronized to node b.And while having a plurality of node in current cluster, the HA software installation kit of host node can be synchronized to node b, the position of node b icon moves in current cluster wide simultaneously.Wherein, revise the HA software relevant configuration on node b, include but not limited to revise the HA configuration file on node b, make it to meet the node configuration requirement of current cluster, the present embodiment does not limit the revised context of HA software relevant configuration.
As such scheme preferably, the node having configured in node cluster, existing nodal information record in cluster configuration file, after system is restarted next time, can give tacit consent to and join in this node cluster, and not need above-mentioned checking mutual trust relationship step directly to add when the node of existing information recording adds cluster next time in cluster configuration file.
In addition, it should be noted that, in the method that the present embodiment provides, user can once move a node icon, also can once move a plurality of icons, and concrete grammar and mobile individual node are similar, and this embodiment of the present invention is no longer repeated.
Embodiment of the present invention supplying method, by meeting and add the node of condition and be presented on visualization interface in automatic identification LAN (Local Area Network), the drag motions Direct Recognition operation intention of user on visualization interface according to user again, then automatically complete the operation that adds ingress, reach simplification node and add fashionable complicated processes, improve the object of the efficiency of cluster restructuring; , by accepting user at visualization interface, operate meanwhile, increased mutual with user, and then the way to manage of another clustered node is provided, the user that not only can improve cluster management interface experiences, and also can reduce the maintenance cost of cluster.
Embodiment tri-
The present embodiment provides a kind of method of cluster restructuring, for convenience of explanation, the present embodiment is on the basis of above-described embodiment two, take and from current cluster, remove node b as example, the method that the present embodiment is provided is elaborated, referring to Fig. 4, the concrete steps of the method that the present embodiment provides comprise:
401: detect user to the drag motions of node b after, the distance in the icon of computing node b and current cluster between the icon of arbitrary node;
Similar with the step 203 in embodiment bis-, when user pulls the icon of node b, the positional information between the icon of other nodes that show on the icon of node b and visualization interface also changes thereupon.Accordingly, if user wishes node b to remove from present node cluster, also only need, by drag motions, the icon of node b is triggered to cluster reorganization operation away from the node of current cluster.Same, user can have multiple to the drag operation mode of the icon of node b, and such as pull the icon of node b with mouse move operation or touch screen move operation etc., the mode that the present embodiment does not pull node b to user limits.
For the operation intention of determining that user removes node from cluster, the method that the present embodiment provides detect user to the drag motions of the icon of node b after, distance between the icon of the arbitrary node in the icon of computing node b and current cluster, thus according to the distance calculating, determine whether node b to remove from current cluster.
Same, similar with embodiment bis-steps 203, about detecting the mode of drag motions and the mode of calculating distance, all can realize by existing detection technique and account form, the present embodiment is not specifically limited this.It should be noted that, when present node cluster has a plurality of node, the value of range information has multiple, such as getting in node b icon and current cluster the minimum value of distance between all node icons, or get the distance between node b icon and host node a icon, the adjust the distance value mode of information of the present embodiment is not specifically limited.
402: whether the distance in the icon of decision node b and current cluster between the icon of arbitrary node is greater than predetermined threshold value, if so, performs step 403, otherwise, execution step 404;
Wherein, after the icon of node b is pulled, current visualization interface can be as shown in Figure 5, after if user pulls the icon of node b, distance between the icon of the icon of node b and node a is greater than predetermined threshold value, it is the interface scope that the icon of node b shifts out node a place cluster, can further determine that user wishes node b to remove from node a place node cluster, to this, for whether the icon of clear and definite node b shifts out current cluster wide after being pulled, whether the distance that needs judgement to calculate is greater than predetermined threshold value.The present embodiment does not limit the concrete size of predetermined threshold value, for example, predetermined threshold value is set to 2 centimetres, if on current visualization interface, distance between the icon of the icon of node b and node a is greater than 2 centimetres, decision node b shifts out current cluster wide, and the operation that can determine user's drag motions is intended that wishes node b to remove from current cluster.
In actual applications, after distance between decision node b icon and node a icon is greater than predetermined threshold value, in order accurately to confirm user's operation intention, whether can also eject prompting frame prompting user confirms node b to remove from present node cluster, if user clicks confirmation, continue to perform step 403, otherwise execution step 404.The mode that ejects prompting frame can realize according to the mode of existing ejection prompting frame, certainly, can also select other modes to point out user, and the present embodiment is not specifically limited this.
403: node b is removed from current cluster, and the HA software of the upper operation of Stop node b, the application of the upper operation of node b is switched on the existing node of current cluster, flow process finishes.
Will be by node b from current cluster removes definite user, in order not affect the application moving on node b, in the clustered software moving on Stop node b, take over the application moving on node b, and application is switched on the existing node of current cluster to operation with the operation that removes of complete paired node b.
In cluster, except node a and b, while also having other nodes, the application from node b upper connecting tube can be switched to node a, also application can be switched on other nodes, the present embodiment is not specifically limited this.
404: by the icon correcting action of node b, flow process finishes.
Particularly, similar with embodiment bis-, because the distance of judging between the icon of arbitrary node in the icon of node b and current cluster is less than or equal to predetermined threshold value, can judge that user is not that it is removed from current cluster to the operation of node b, therefore, default user is abandoned the operation that node b is removed from current cluster, thereby can be by the icon correcting action of node b.Same, for user, the icon of node b is pulled, and the distance in the icon of the node b after pulling and current cluster between the icon of arbitrary node is less than or equal to the situation of predetermined threshold value, except taking the processing mode of the icon correcting action of node b, can also select other processing modes, for example, keep pulling position afterwards etc., the present embodiment is not specifically limited this.
The present embodiment supplying method, by Direct Recognition operation intention of user on visualization interface, completes the operation that removes node then automatically, reaches the complicated processes when simplifying node and removing, and improves the object of the efficiency of cluster restructuring; , by directly accept user on visualization interface, operate meanwhile, increased mutual with user, and then the way to manage of another clustered node is provided, the user that not only can improve cluster management interface experiences, and also can reduce the maintenance cost of cluster.
Embodiment tetra-
The present embodiment provides the device of a kind of cluster restructuring, the method that this device is recombinated for the cluster of carrying out above-described embodiment one to embodiment tri-and providing.Referring to Fig. 6, the device that the present embodiment provides specifically comprises:
Identification module 601, meets for identifying all effective node that adds current cluster in LAN (Local Area Network);
Display module 602, for the icon of all effective nodes that Identification display module 601 identifies on current visualization interface;
Add module 603, for the drag motions to the icon of the arbitrary node of all effective node of display module 602 demonstrations according to user, will be pulled node and add current cluster.
Wherein, display module 602 is except the icon of all effective nodes for Identification display module 601 identifies on current visualization interface, and display module 602, also for showing the icon of the existing node of current cluster on current visualization interface;
In order to be determined operation intention of user by detecting user to pulling the drag motions of the icon of node, and user detected to being pulled after the drag motions of icon of node, by the distance of calculating between the icon pulled arbitrary existing node in the icon of node and current cluster, determine whether that quilt is pulled to node adds current cluster, referring to Fig. 7, add module 603, specifically comprise:
Detecting unit 6031, the drag motions for detection of user to the icon of arbitrary node in all effective nodes;
Computing unit 6032, at detecting unit 6031, detect user to the drag motions of the icon of the arbitrary node of all effective nodes after, calculate the distance between the icon pulled arbitrary existing node in the icon of node and current cluster;
Add unit 6033, while being less than or equal to predetermined threshold value for the distance calculating at computing unit 6032, will being pulled node and add current cluster.
Alternatively, for in the situation that user confirms, realize node and add current cluster, add unit 6033 will be pulled before node adds current cluster, this adds unit 6033 also for pointing out user whether will to be pulled the step that node adds current cluster; If not, the icon that is pulled node is back to origin-location; If so, carry out and will be pulled the operation that node adds current cluster.
Further, after the distance calculating at computing unit 6032 is less than or equal to predetermined threshold value, device also needs checking to be pulled the mutual trust relation between host node in node and current cluster, and in verification, go out to be pulled between node and host node, not build up mutual trust while being related to and point out user to set up mutual trust relation between node, to this, referring to Fig. 8, this device also comprises:
Correction verification module 604, for adding module 603 will be pulled before node adds current cluster, this is pulled the relation of whether having built up mutual trust between host node in node and current cluster verification;
Reminding module 605, if check out and pulled the relation of not building up mutual trust between node and host node for correction verification module 604, points out user's input validation password;
Set up module 606, for input correct authentication password according to user, set up the mutual trust relation between node and host node that pulled;
Add module 603, if pulled for correction verification module verification the relation of building up mutual trust between node and host node, or setting up after module 606 sets up and pulled the mutual trust relation between node and host node, will be pulled node and add current cluster.
Further, to add module 603 will be pulled node and add after cluster, in order realizing, to be pulled the state synchronized between other existing nodes in node and current cluster, referring to Fig. 9, this device also comprises:
Detection module 607, pulled on node, whether to be deployed with clustered software, and whether the version of clustered software is consistent with the version of the clustered software of current cluster deploy for adding module 603 will be pulled after node adds current cluster, detecting;
The first synchronization module 608, if pulled node deploy for detection module 607 detections, there is clustered software, and the version of clustered software is consistent with the version of the clustered software of current cluster deploy, revise the clustered software relevant configuration that is pulled node, and the current state information of current cluster is synchronized to this is pulled node;
The second synchronization module 609, if pulled the version of the version of the clustered software of not disposing clustered software or deployment on node and the clustered software of current cluster deploy for detection module 607 detections inconsistent, after being pulled the clustered software of the current cluster deploy of node deploy, pulled the clustered software that starts deployment on node, and revise and to be pulled after the clustered software relevant configuration of node, the current state information of current cluster is synchronized to this and is pulled node.
Further, this device not only can add current cluster by being pulled node, current cluster interior nodes can also be removed, and referring to Figure 10, this device also comprises:
Remove module 610, for adding module 603 will be pulled after node adds current cluster, according to user, to being pulled the drag motions of the icon of node, will be pulled node and remove from current cluster.
In order to be determined operation intention of user by detecting user to pulling the drag motions of the icon of node, and user detected to being pulled after the drag motions of icon of node, by the distance of calculating between the icon pulled arbitrary node in the icon of node and current cluster, determine whether that quilt is pulled to node to be removed from current cluster, referring to Figure 11, remove module 610, specifically comprise:
Detecting unit 6101, for detection of user to being pulled the drag motions of the icon of node;
Computing unit 6102, for detecting user to being pulled after the drag motions of icon of node, calculate the distance between the icon that is pulled arbitrary node in the icon of node and current cluster at detecting unit 6101;
Remove unit 6103, if the distance calculating for computing unit 6102 is greater than predetermined threshold value, will be pulled node and remove from current cluster.
For in the situation that user confirms, realize and from current cluster, remove the node being pulled, remove unit 6103, also for pointing out user whether will be pulled node, from current cluster, remove; If not, cancel and remove operation, and the icon that is pulled node is back to origin-location; If so, carry out and will be pulled the operation that node removes from current cluster.
Further, will be pulled node from current cluster removes removing unit 6103, referring to Figure 12, this device also comprises:
Processing module 611, is moved clustered software for pulling node after current cluster removes removing module 610, and stop to be pulled on node, and is switched on the existing node in current cluster and move pulling the application moving on node.
The present embodiment generator, by meeting and add the node of condition and be presented on visualization interface in automatic identification LAN (Local Area Network), the drag motions Direct Recognition operation intention of user on visualization interface according to user again, then the operation of automatic complete paired node, reach and simplify that node adds, the complicated processes while removing cluster, improve the object of the efficiency of cluster restructuring; , by accepting user at visualization interface, operate meanwhile, increased mutual with user, the user who has improved cluster management interface experiences, and can reduce the maintenance cost of cluster.
It should be noted that: the device of a kind of cluster restructuring that above-described embodiment provides is when adding or remove node, only the division with above-mentioned each functional module is illustrated, in practical application, can above-mentioned functions be distributed and by different functional modules, completed as required, the inner structure that is about to device is divided into different functional modules, to complete all or part of function described above.In addition, the device of a kind of cluster restructuring that above-described embodiment provides and the embodiment of the method for a kind of cluster restructuring belong to same design, and its specific implementation process refers to embodiment of the method, repeats no more here.
One of ordinary skill in the art will appreciate that all or part of step that realizes above-described embodiment can complete by hardware, also can come the hardware that instruction is relevant to complete by program, described program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium of mentioning can be ROM (read-only memory), disk or CD etc.
The foregoing is only preferred embodiment of the present invention, in order to limit the present invention, within the spirit and principles in the present invention not all, any modification of doing, be equal to replacement, improvement etc., within all should being included in protection scope of the present invention.

Claims (16)

1. a method for cluster restructuring, is characterized in that, described method comprises:
In identification LAN (Local Area Network), meet all effective node that adds current cluster, and on current visualization interface, show the icon of existing node in described current cluster and the icon of the described all effective nodes that identify, described current cluster is high availability HA cluster;
Drag motions according to user to the icon of arbitrary node in the described all effective nodes that show, will be pulled node and be added described current cluster;
Described according to user the drag motions to the icon of arbitrary node in the described all effective nodes that show, will be pulled node and be added described current cluster, specifically comprise:
Detect user to the drag motions of the icon of arbitrary node in the described all effective nodes that show after, calculate the distance between the icon that is pulled arbitrary existing node in the icon of node and described current cluster;
If the distance calculating is less than or equal to predetermined threshold value, the described node that pulled is added to described current cluster.
2. method according to claim 1, is characterized in that, describedly by described, is pulled before node adds described current cluster, also comprises:
Whether prompting user adds the described node that pulled in described current cluster;
If not, the described icon that is pulled node is back to origin-location;
If so, carry out the operation that is pulled node and add described current cluster by described.
3. method according to claim 1, is characterized in that, describedly by described, is pulled before node adds described current cluster, also comprises:
Described in verification, pulled the relation of whether having built up mutual trust between host node in node and described current cluster;
If verification draws the described relation of not building up mutual trust between node and described host node that pulled, point out user's input validation password, according to user, input after correct authentication password sets up the described mutual trust relation being pulled between node and described host node, carry out the step that is pulled node and add described current cluster by described;
If verification draws the described relation of having built up mutual trust between node and described host node that pulled, carry out the step that is pulled node and add described current cluster by described.
4. according to the method described in arbitrary claim in claims 1 to 3, it is characterized in that, describedly by described, pulled after node adds described current cluster, also comprise:
Detect describedly pulled on node, whether to be deployed with clustered software, and whether the version of described clustered software is consistent with the version of the clustered software of described current cluster deploy;
If described, pulled node deploy and had clustered software, and the version of described clustered software is consistent with the version of the clustered software of described current cluster deploy, revise the described clustered software relevant configuration that is pulled node, and the current state information of described current cluster is synchronized to and is describedly pulled node;
The version that is pulled the version of the clustered software of not disposing clustered software or deployment on node and the clustered software of described current cluster deploy if described is inconsistent, after the described clustered software that is pulled current cluster deploy described in node deploy, revise the described clustered software relevant configuration that is pulled node, and started after the clustered software of disposing described pull on node, the current state information of described current cluster is synchronized to and is describedly pulled node.
5. method according to claim 1, is characterized in that, described according to user the drag motions to the icon of arbitrary node in described all effective nodes, will be pulled after node adds described current cluster, also comprise:
According to user, to the described drag motions that is pulled the icon of node, the described node that pulled is removed from described current cluster.
6. method according to claim 5, is characterized in that, described according to user to the described drag motions that is pulled the icon of node, the described node that pulled is removed from described current cluster, specifically comprise:
Detect user to the drag motions of the described icon that is pulled node after, calculate the distance between the icon of arbitrary node in the described icon that is pulled node and described current cluster;
If the distance calculating is greater than predetermined threshold value, the described node that pulled is removed from described current cluster.
7. method according to claim 6, is characterized in that, describedly by described, is pulled before node removes from described current cluster, also comprises:
Whether prompting user removes the described node that pulled from described current cluster;
If not, cancel and remove operation, and the described icon that is pulled node is back to origin-location;
If so, carry out the operation that is pulled node and remove described from described current cluster.
8. according to the method described in arbitrary claim in claim 5 to 7, it is characterized in that, describedly by described, pulled after node removes from described current cluster, also comprise:
Stop at described being pulled and on node, move clustered software, and pulled the application moving on node and switch on the existing node in described current cluster and move described.
9. a device for cluster restructuring, is characterized in that, described device comprises:
Identification module, meets for identifying in LAN (Local Area Network) all effective node that adds current cluster, and described current cluster is high availability HA cluster;
Display module, for showing the existing icon of node of described current cluster and the icon of described all effective nodes that described identification module identifies on current visualization interface;
Add module, for the drag motions to the icon of the arbitrary node of described all effective nodes of described display module demonstration according to user, will be pulled node and add described current cluster;
The described module that adds, specifically comprises:
Detecting unit, the drag motions for detection of user to the icon of arbitrary node in described all effective nodes;
Computing unit, at described detecting unit, detect user to the drag motions of the icon of the arbitrary node of described all effective nodes after, calculate the distance between the icon pulled arbitrary existing node in the icon of node and described current cluster;
Add unit, while being less than or equal to predetermined threshold value for the distance calculating at described computing unit, the described node that pulled is added to described current cluster.
10. device according to claim 9, is characterized in that, described in add unit, also for pointing out user whether the described node that pulled to be added to described current cluster; If not, the described icon that is pulled node is back to origin-location; If so, carry out the operation that is pulled node and add described current cluster by described.
11. devices according to claim 9, is characterized in that, described device also comprises:
Correction verification module, for being pulled before node adds described current cluster described in the described module that adds, is pulled the relation of whether having built up mutual trust between host node in node and described current cluster described in verification;
Reminding module, if check out the described relation of not building up mutual trust between node and described host node that pulled for described correction verification module, points out user's input validation password;
Set up module, for input correct authentication password according to user, set up the described mutual trust relation being pulled between node and described host node;
The described module that adds, if for being pulled the relation of building up mutual trust between node and described host node described in described correction verification module verification, or set up after module sets up the described mutual trust relation being pulled between node and described host node described, the described node that pulled is added to described current cluster.
12. according to the device described in arbitrary claim in claim 9 to 11, it is characterized in that, described device also comprises:
Detection module, for being pulled after node adds described current cluster described in the described module that adds, detect describedly pulled on node, whether to be deployed with clustered software, and whether the version of described clustered software is consistent with the version of the clustered software of described current cluster deploy;
The first synchronization module, if detect the described node deploy that pulled for described detection module, there is clustered software, and the version of described clustered software is consistent with the version of the clustered software of described current cluster deploy, revise the described clustered software relevant configuration that is pulled node, and started after the clustered software of disposing described pull on node, the current state information of described current cluster is synchronized to and is describedly pulled node;
The second synchronization module, if it is inconsistent to detect the described version that is pulled the version of the clustered software of not disposing clustered software or deployment on node and the clustered software of described current cluster deploy for described detection module, after the described clustered software that is pulled current cluster deploy described in node deploy, revise the described clustered software relevant configuration that is pulled node, and started after the clustered software of disposing described pull on node, the current state information of described current cluster is synchronized to and is describedly pulled node.
13. devices according to claim 9, is characterized in that, described device also comprises:
Remove module, for being pulled after node removes described current cluster described in the described module that removes, according to user, to the described drag motions that is pulled the icon of node, the described node that pulled is removed from described current cluster.
14. devices according to claim 13, is characterized in that, described in remove module, specifically comprise:
Detecting unit, for detection of user to the described drag motions that is pulled the icon of node;
Computing unit, at described detecting unit, detect user to the drag motions of the described icon that is pulled node after, calculate the distance between the icon of arbitrary node in the described icon that is pulled node and described current cluster;
Remove unit, if the distance calculating for described computing unit is greater than predetermined threshold value, the described node that pulled is removed from described current cluster.
15. devices according to claim 14, is characterized in that, described in remove unit, also for pointing out user whether the described node that pulled to be removed from described current cluster; If not, cancel and remove operation, and the described icon that is pulled node is back to origin-location; If so, carry out the operation that is pulled node and remove described from described current cluster.
16. according to claim 13 to the device described in arbitrary claim in 15, it is characterized in that, described device also comprises: processing module, for described remove module by the described node that pulled after described current cluster removes, stop at described being pulled and on node, move clustered software, and pulled the application moving on node and switch on the existing node in described current cluster and move described.
CN201210129145.2A 2012-04-27 2012-04-27 Method and device for cluster recombination Active CN102681781B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210129145.2A CN102681781B (en) 2012-04-27 2012-04-27 Method and device for cluster recombination

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210129145.2A CN102681781B (en) 2012-04-27 2012-04-27 Method and device for cluster recombination

Publications (2)

Publication Number Publication Date
CN102681781A CN102681781A (en) 2012-09-19
CN102681781B true CN102681781B (en) 2014-08-13

Family

ID=46813783

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210129145.2A Active CN102681781B (en) 2012-04-27 2012-04-27 Method and device for cluster recombination

Country Status (1)

Country Link
CN (1) CN102681781B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103888325A (en) * 2014-03-19 2014-06-25 宇龙计算机通信科技(深圳)有限公司 Device and method for achieving automatic grouping through access to local area network
CN106559332B (en) * 2016-11-03 2020-08-18 Tcl科技集团股份有限公司 Method and system for quickly establishing fully-connected server cluster
CN108880876A (en) * 2018-05-31 2018-11-23 郑州云海信息技术有限公司 Storage cluster dispositions method, device, equipment and computer readable storage medium
CN111061812B (en) * 2019-12-17 2022-09-02 江苏满运软件科技有限公司 Big data distributed storage method and device, electronic equipment and storage medium
CN112073301B (en) * 2020-08-31 2022-11-29 上海连尚网络科技有限公司 Method, device and computer readable medium for deleting chat group members
CN117716335A (en) * 2022-07-15 2024-03-15 京东方科技集团股份有限公司 Big data cluster deployment method and data processing method based on big data clusters
CN117716336A (en) * 2022-07-15 2024-03-15 京东方科技集团股份有限公司 Data processing method, device, equipment and medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6909696B1 (en) * 2000-01-21 2005-06-21 Verizon Corporate Services Group Inc. Systems and methods for visualizing a communications network
US8972899B2 (en) * 2009-02-10 2015-03-03 Ayasdi, Inc. Systems and methods for visualization of data analysis
CN101963978B (en) * 2010-09-21 2012-07-04 卓望数码技术(深圳)有限公司 Distributed database management method, device and system

Also Published As

Publication number Publication date
CN102681781A (en) 2012-09-19

Similar Documents

Publication Publication Date Title
CN102681781B (en) Method and device for cluster recombination
US10509551B2 (en) Icon management method, apparatus, and terminal
US10223103B2 (en) Rom flashing method and intelligent terminal
CN111080170B (en) Workflow modeling method and device, electronic equipment and storage medium
CN106713003A (en) Virtual node creating method and apparatus based on network topological diagram
CN104133581A (en) Physical object detection and touchscreen interaction
CN108196759A (en) Control figure calibration method and terminal
CN101587421A (en) Unlock method and system of touch panel, and touch panel device
CN106708597A (en) Method, device and system for creating cluster environment on the basis of Openstack
CN107765959A (en) Background application display methods and terminal
CN101882046A (en) Touch screen unlocking method and system thereof and touch screen device
CN104239142A (en) Method and device for quickly switching between double systems and terminal
CN106650490B (en) The login method and device of cloud account
CN105786606A (en) Data transferring method and system for intelligent terminals
CN104881236B (en) A kind of scribing line detection system and detection method based on USB interface capacitance touch screen
US20180012182A1 (en) Collaboration management system
CN111198686A (en) Programming method, device, equipment and computer readable storage medium
KR20150085667A (en) Temporary authentication method in case of failure in authentication using external authentication server and image forming apparatus performing the same
CN106310659A (en) Game display control method and game display control device
US20240176900A1 (en) Systems and methods for managing hardware privacy configuration in modern workspaces
CN107831981A (en) Terminal control method, device, terminal and computer-readable recording medium
CN105867831B (en) The operating method and system of a kind of touch-screen
CN106445378A (en) Display control method and device of touch menu, and touch display equipment
US11030006B2 (en) Apparatus and method of securely and efficiently interfacing with a cloud computing service
CN103176698A (en) Method and system for dynamically displaying implementation operation buttons on input method panel

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant