CN104580384A - Cluster management method and device - Google Patents
Cluster management method and device Download PDFInfo
- Publication number
- CN104580384A CN104580384A CN201410784239.2A CN201410784239A CN104580384A CN 104580384 A CN104580384 A CN 104580384A CN 201410784239 A CN201410784239 A CN 201410784239A CN 104580384 A CN104580384 A CN 104580384A
- Authority
- CN
- China
- Prior art keywords
- user
- cluster
- node
- nis
- management
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1095—Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
-
- 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/0695—Management of faults, events, alarms or notifications the faulty arrangement being the maintenance, administration or management system
Abstract
The invention discloses a cluster management method and device. The cluster management method comprises the following steps: configuring ssh/rsh for a root user of a cluster and logging in without a password after the ssh/rsh is configured for the root user; configuring an nfs shared directory for the cluster and setting the nfs shared directory as a master directory of the user. Through the cluster management method disclosed by the invention, the effects of more lightness, low cost and high simplicity in maintenance can be realized when the cluster management is performed.
Description
Technical field
The present invention relates to computer realm, specifically, relate to a kind of cluster management method and device.
Background technology
Computer cluster has been applied to social all trades and professions, and each field is also increasing to the demand of cluster.Cluster management is the unified management of the guarantee, particularly cluster user that cluster runs, the matter of utmost importance that will solve especially.At present, although there is multiple solution, these schemes all need more complicated configuration, need to build service node, and the setting of process main and subordinate node and switching problem, need professional to build environment in conjunction with multiple technologies.Based on needs multiple technologies, either party fault all can cause system to use, and when going wrong, is not easy investigation and solves.Due to user in service end unified management, have the risk of corrupted data, loss, need the measure (such as principal and subordinate's server, two-node cluster hot backup) carrying out row to reduce risk.Concerning a small-sized group of planes, cost can be significantly improved.
For the problem in correlation technique, at present effective solution is not yet proposed.
Summary of the invention
For the problem in correlation technique, the present invention proposes a kind of cluster management method and device.
Technical scheme of the present invention is achieved in that
According to an aspect of the present invention, a kind of cluster management method is provided.
This cluster management method comprises:
Configure ssh/rsh to the root user of described cluster, described root user configures after ssh/rsh without the need to password login;
To described cluster configuration nfs share directory, and described nfs share directory is set to user.home.
Wherein, all nodes of described cluster or part of nodes are preinstalled with the operating system of identical type.
Wherein, comprise further:
The user of the management node of described cluster is managed, wherein said management comprise following one of at least:
Delete user, amendment user, user right setting;
User profile is synchronized to the node of described cluster.
Wherein, comprise further:
The user profile of described management node is synchronized to nis service end;
Configure described nis service end;
Configure described nis client.
Wherein, comprise further:
The user profile of described nis service end is synchronized to described management node;
Described user profile is synchronized to the node of described cluster;
The node of described cluster is left nis territory.
According to a further aspect in the invention, additionally provide a kind of cluster management device, comprising:
First configuration module, for configuring ssh/rsh to the root user of described cluster, wherein, described root user configures after ssh/rsh without the need to password login;
Second configuration module, for described cluster configuration nfs share directory, and is set to user.home by described nfs share directory.
Wherein, all nodes of described cluster or part of nodes are preinstalled with the operating system of identical type.
This device, comprises further:
Administration module, the user for the management node to described cluster manages, wherein said management comprise following one of at least:
Delete user, amendment user, user right setting;
Synchronization module, for being synchronized to the node of described cluster by user profile.
Wherein, described synchronization module is further used for, and the user profile of described management node is synchronized to nis service end;
Described second configuration module is further used for, and configures described nis service end; And
Configure described nis client.
Wherein, this device can also comprise:
Remove module, for the node of described cluster is left nis territory;
Described synchronization module is further used for, and the user profile of described nis service end is synchronized to described management node; And
Described user profile is synchronized to the node of described cluster.
The present invention by above-mentioned collocation method can be implemented in carry out cluster management time lighter, cost is low and safeguard simple.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the flow chart of the cluster management method according to the embodiment of the present invention;
Fig. 2 to Fig. 7 is the indicative flowchart of the cluster management method according to the embodiment of the present invention;
Fig. 8 is the block diagram of the cluster management device according to the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, the every other embodiment that those of ordinary skill in the art obtain, all belongs to the scope of protection of the invention.
According to embodiments of the invention, provide a kind of cluster management method.
As shown in Figure 1, comprise according to the cluster management method of the embodiment of the present invention:
Step S101, configures ssh/rsh to the root user of cluster, and root user configures after ssh/rsh without the need to password login;
Step S103, to cluster configuration nfs share directory, and is set to user.home by nfs share directory.
Wherein, all nodes of cluster or part of nodes are preinstalled with the operating system of identical type.
Wherein, after configuring aforesaid operations step, " Local " pattern that can enter operates further to cluster, comprising:
The user of the management node of cluster is managed, wherein management comprise following one of at least:
Delete user, amendment user, user right setting;
User profile is synchronized to the node of cluster.
Wherein, Local pattern can also be switched to nis pattern by the present invention, and this operation comprises:
The user profile of management node is synchronized to nis service end;
Configuration nis service end;
Configuration nis client.
Wherein, nis pattern can also be switched to Local pattern by the present invention, and this operation comprises:
The user profile of nis service end is synchronized to management node;
User profile is synchronized to the node of cluster;
The node of cluster is left nis territory.
Technical scheme for a better understanding of the present invention, will set forth with a specific embodiment below.The indicative flowchart of cluster management method of the present invention under Local pattern as shown in Figure 2, first it should be noted that the application scenarios of this technology is as follows:
Cluster has pre-installed operating system of the same type, or major part has installed operating system of the same type.Linux operating system is broadly divided into two class series, the most of system except suse, such as Redhat, CentOs; This technology is to supporting that flock size is without clearly limiting, and the cluster meeting operating system call in theory can be supported.
Wherein, installation environment is as follows:
Environmental requirement is identical with traditional nis mode:
A) cluster has configured the ssh/rsh mode of root user without code entry;
B) cluster has configured nfs share directory as home directory.
Continue with reference to shown in Fig. 2, the flow process that the present invention carries out user management under Local pattern is as follows:
A) supervising network accessibility, ssh is connective
B) checking system consistency
C) local management is carried out to the system user of management node;
D) ssh of newly-built user is processed without code entry problem, process User Catalog rights concerns;
E) associated documents are synchronized to each node in cluster.
Wherein, when specifically managing user, the operation such as the present invention can modify to user, delete, synchronizing information, interpolation.Concrete steps flow process shows the process step adding user see Fig. 3 to Fig. 5, Fig. 3; Fig. 4 shows the process step deleted or revise user; Fig. 5 show carry out user synchronous time process step.
In addition, the present invention can also carry out the switching of various cluster management pattern, as Fig. 6 shows process step Local pattern being switched to nis pattern, wherein, cluster arbitrary node can be configured to nis server, the all user profile configured under Local pattern all will retain, without the need to reconfiguring.
As Fig. 7 shows process step nis pattern being switched to Local pattern, wherein, utilize the synchronizing function of this technology, by the system user file synchronization of nis server to management node, be synchronized to whole cluster by management node again, completely remain all nis users configured.
According to embodiments of the invention, additionally provide a kind of cluster management device.
As shown in Figure 8, comprise according to the cluster management device of the embodiment of the present invention:
First configuration module 81, for configuring ssh/rsh to the root user of cluster, wherein, root user configures after ssh/rsh without the need to password login;
Second configuration module 82, for cluster configuration nfs share directory, and is set to user.home by nfs share directory.
Wherein, all nodes of cluster or part of nodes are preinstalled with the operating system of identical type.
This device, comprises further:
Administration module (not shown), the user for the management node to cluster manages, wherein management comprise following one of at least:
Delete user, amendment user, user right setting;
Synchronization module (not shown), for being synchronized to the node of cluster by user profile.
Wherein, synchronization module is further used for, and the user profile of management node is synchronized to nis service end;
Second configuration 82 modules are further used for, configuration nis service end; And
Configuration nis client.
Wherein, this device can also comprise:
Remove module (not shown), for the node of cluster is left nis territory;
Synchronization module is further used for, and the user profile of nis service end is synchronized to management node; And
User profile is synchronized to the node of cluster.
To sum up, by means of technique scheme of the present invention, the present invention is based on nfs and the ssh configuration that Linux system is basic, user is reduced greatly for the Grasping level of technical requirement, improve Consumer's Experience, without the need to arranging to each computing node, all functions can be completed simple and convenient at management node, interactive and running background two kinds of modes can be provided, user can control flow in real time, also can automation carry out, the similar single-set operation of overall flow, meet the operating habit of legacy user, and can well compatible nis mode, can the realization of simple and fast and traditional nis way to manage mutually switch, and retain user data, almost without overhead, under simplifying nis pattern, user configures, under this technology eliminates nis pattern, domestic consumer configures the process of ssh/rsh without code entry, reduce clustering fault to the impact of cluster, ensure that in running, task is unaffected, thus substantially increase the stability of cluster.
These are only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.
Claims (10)
1. a cluster management method, is characterized in that, comprising:
Configure ssh/rsh to the root user of described cluster, described root user configures after ssh/rsh without the need to password login;
To described cluster configuration nfs share directory, and described nfs share directory is set to user.home.
2. management method according to claim 1, is characterized in that, all nodes of described cluster or part of nodes are preinstalled with the operating system of identical type.
3. management method according to claim 1, is characterized in that, comprises further:
The user of the management node of described cluster is managed, wherein said management comprise following one of at least:
Delete user, amendment user, user right setting;
User profile is synchronized to the node of described cluster.
4. management method according to claim 3, is characterized in that, comprises further:
The user profile of described management node is synchronized to nis service end;
Configure described nis service end;
Configure described nis client.
5. management method according to claim 4, is characterized in that, comprises further:
The user profile of described nis service end is synchronized to described management node;
Described user profile is synchronized to the node of described cluster;
The node of described cluster is left nis territory.
6. a cluster management device, is characterized in that, comprising:
First configuration module, for configuring ssh/rsh to the root user of described cluster, wherein, described root user configures after ssh/rsh without the need to password login;
Second configuration module, for described cluster configuration nfs share directory, and is set to user.home by described nfs share directory.
7. device according to claim 6, is characterized in that, all nodes of described cluster or part of nodes are preinstalled with the operating system of identical type.
8. device according to claim 6, is characterized in that, comprises further:
Administration module, the user for the management node to described cluster manages, wherein said management comprise following one of at least:
Delete user, amendment user, user right setting;
Synchronization module, for being synchronized to the node of described cluster by user profile.
9. device according to claim 8, is characterized in that, described synchronization module is further used for, and the user profile of described management node is synchronized to nis service end;
Described second configuration module is further used for, and configures described nis service end; And
Configure described nis client.
10. device according to claim 9, is characterized in that, comprising:
Remove module, for the node of described cluster is left nis territory;
Described synchronization module is further used for, and the user profile of described nis service end is synchronized to described management node; And
Described user profile is synchronized to the node of described cluster.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410784239.2A CN104580384A (en) | 2014-12-16 | 2014-12-16 | Cluster management method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410784239.2A CN104580384A (en) | 2014-12-16 | 2014-12-16 | Cluster management method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN104580384A true CN104580384A (en) | 2015-04-29 |
Family
ID=53095542
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410784239.2A Pending CN104580384A (en) | 2014-12-16 | 2014-12-16 | Cluster management method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104580384A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108270556A (en) * | 2016-12-30 | 2018-07-10 | 北京国双科技有限公司 | The login method and device of terminal |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1442580A2 (en) * | 2001-11-02 | 2004-08-04 | Neoteris, Inc. | Method and system for providing secure access to resources on private networks |
CN102970376A (en) * | 2012-12-05 | 2013-03-13 | 曙光信息产业(北京)有限公司 | Cluster configuration method and device |
CN102970375A (en) * | 2012-12-05 | 2013-03-13 | 曙光信息产业(北京)有限公司 | Cluster configuration method and device |
CN104166595A (en) * | 2014-08-20 | 2014-11-26 | 浪潮电子信息产业股份有限公司 | Method for Materials Studio parallel computing scheduling in large-scale cluster |
-
2014
- 2014-12-16 CN CN201410784239.2A patent/CN104580384A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1442580A2 (en) * | 2001-11-02 | 2004-08-04 | Neoteris, Inc. | Method and system for providing secure access to resources on private networks |
CN102970376A (en) * | 2012-12-05 | 2013-03-13 | 曙光信息产业(北京)有限公司 | Cluster configuration method and device |
CN102970375A (en) * | 2012-12-05 | 2013-03-13 | 曙光信息产业(北京)有限公司 | Cluster configuration method and device |
CN104166595A (en) * | 2014-08-20 | 2014-11-26 | 浪潮电子信息产业股份有限公司 | Method for Materials Studio parallel computing scheduling in large-scale cluster |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108270556A (en) * | 2016-12-30 | 2018-07-10 | 北京国双科技有限公司 | The login method and device of terminal |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Mayer et al. | Fogstore: Toward a distributed data store for fog computing | |
CN106331098B (en) | Server cluster system | |
CN105204812B (en) | A kind of multiple solutions display & control system and its integrated approach based on plug-in unit | |
EP2675127B1 (en) | Method and device for automatically migrating system configuration item | |
CN108259175B (en) | Distributed password service method and system | |
CN102866998A (en) | Centralized password management method and centralized password management system in synchronous system | |
CN103617255B (en) | A kind of business datum for power information system exchanges and synchronizes system and method | |
CN104243515A (en) | Method and device for processing configuration information | |
CN102394873A (en) | Authority management system of track traffic integration monitoring and method thereof | |
US9933830B2 (en) | Validating power paths to IT equipment | |
CN104252397A (en) | Realizing method for supporting automatic backup of cloud platform user file | |
CN103036934A (en) | Wide area network clustered deployment system and method based on mirror image | |
CN103475734A (en) | Linux cluster user backup migration method | |
CN106850269A (en) | A kind of management system of cloud platform | |
WO2019076236A1 (en) | Data synchronization method and device, super controller, domain controller, and storage medium | |
CN104363306A (en) | Private cloud management control method for enterprise | |
CN102843432B (en) | Network communication system applicable to sharing and synchronous updating of data at multiple clients | |
CN103986789A (en) | Method for realizing dual redundant of NFS (network file system) nodes in HADOOP HA (home address) cluster based on NFS | |
CN110113406A (en) | Based on distributed calculating service cluster frame | |
CN105429995A (en) | Openflow-based dynamic security isolation system and method for private cloud network | |
CN105069152A (en) | Data processing method and apparatus | |
US20180352037A1 (en) | Method and device for managing sessions | |
CN102970376A (en) | Cluster configuration method and device | |
CN110764918A (en) | Method for managing main nodes in container cluster | |
CN105262800A (en) | Access control method and system for cluster NAS file system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20150429 |
|
RJ01 | Rejection of invention patent application after publication |