CN104539670A - Cluster management method and device - Google Patents

Cluster management method and device Download PDF

Info

Publication number
CN104539670A
CN104539670A CN201410784727.3A CN201410784727A CN104539670A CN 104539670 A CN104539670 A CN 104539670A CN 201410784727 A CN201410784727 A CN 201410784727A CN 104539670 A CN104539670 A CN 104539670A
Authority
CN
China
Prior art keywords
node
user profile
cluster
user
module
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201410784727.3A
Other languages
Chinese (zh)
Other versions
CN104539670B (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.)
Zhongke Shuguang International Information Industry Co ltd
Dawning Information Industry Co Ltd
Original Assignee
Dawning Information Industry Beijing 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 Dawning Information Industry Beijing Co Ltd filed Critical Dawning Information Industry Beijing Co Ltd
Priority to CN201410784727.3A priority Critical patent/CN104539670B/en
Publication of CN104539670A publication Critical patent/CN104539670A/en
Application granted granted Critical
Publication of CN104539670B publication Critical patent/CN104539670B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network

Abstract

The invention discloses a cluster management method and device. The cluster management method includes the steps that a user is established according to management nodes; user information is synchronized to a node where a shared disk of clusters is located; a disk quota is set for the shared disk; the user information is synchronized to a preassigned node. Through the method, a local disk quota management strategy can be supported besides an overall disk quota management strategy, user disk quota can be set individually on an assigned node, and therefore the flexibility of a systematic management method is greatly enhanced.

Description

Cluster management method and device
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.The disk shared is indispensable, just needs the control carrying out authority accordingly.The appearance of cloud, a large amount of, complicated customer relationship is had higher requirement to disk allocation.
At present, Disk Quotas controls based on user and user's group.Mostly existing user management mode is centralized, for nis, user profile is present in service node, can only carry out unified management to cluster, particular arrangement (i.e. the Disk Quotas restriction of support node local user) can not be carried out, underaction for single or multiple node.
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, greatly can improve the flexibility of cluster management.
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:
Management node creates user;
User profile is synchronized to the node at the shared disk place of described cluster;
Disk Quotas is arranged to shared disk;
Described user profile is synchronized to described preassigned node.
Wherein, comprise further:
From described cluster, user profile is filtered out according to presetting rule;
The user profile filtered out is distributed to preassigned unenforced node in described cluster, described unenforced node is specify the node not needing to be configured in advance;
By the described described unenforced node of user profile write filtered out.
Wherein, comprise further:
From described cluster, user profile is filtered out according to presetting rule;
The user profile filtered out is distributed to infirm node in described cluster, described infirm node is running but needing the node that termination configures;
The user profile of described infirm node is deleted.
In addition, each node in described cluster intercoms mutually.
In addition, user rs authentication is not needed between each node in described cluster.
According to a further aspect in the invention, additionally provide a kind of cluster management device, comprising:
Creation module, creates user for management node;
First synchronization module, for being synchronized to the node at the shared disk place of described cluster by user profile;
Module is set, for arranging Disk Quotas to shared disk;
Second synchronization module, for being synchronized to described preassigned node by described user profile.
Wherein, this device comprises further:
Screening module, for filtering out user profile according to presetting rule from described cluster;
Distribution module, for the user profile filtered out being distributed to preassigned unenforced node in described cluster, described unenforced node is specify the node not needing to be configured in advance;
Writing module, for writing described unenforced node by the described user profile filtered out.
Wherein, this device comprises further:
Removing module, for deleting the user profile of described infirm node;
Wherein, described distribution module is further used for, screening module according to preset rule from described cluster, filter out user profile after, the user profile filtered out is distributed to infirm node in described cluster by described distribution module, and described infirm node is running but needing the node that termination configures.
In addition, each node in described cluster intercoms mutually.
In addition, user rs authentication is not needed between each node in described cluster.
The present invention can be implemented in outside overall distributed disk management strategy by said method, supports local distributed disk management strategy, can arrange separately user disk quota, considerably increase the flexibility of method for managing system to specified node.
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. 4 is the indicative flowchart of the cluster management method according to the embodiment of the present invention;
Fig. 5 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, management node creates user;
Step S103, is synchronized to the node at the shared disk place of cluster by user profile;
Step S105, arranges Disk Quotas to shared disk;
Step S107, is synchronized to preassigned node by user profile.
The global policies that above-mentioned steps can realize Disk Quotas controls and local policy control, can also comprise to strengthen flexibility of the present invention further:
From cluster, user profile is filtered out according to presetting rule;
The user profile filtered out is distributed to preassigned unenforced node in cluster, unenforced node is specify the node not needing to be configured in advance;
The user profile filtered out is write unenforced node.
And, comprise further:
From cluster, user profile is filtered out according to presetting rule;
The user profile filtered out is distributed to infirm node in cluster, infirm node is running but needing the node that termination configures;
The user profile of infirm node is deleted.
In addition, each node in cluster intercoms mutually.
In addition, user rs authentication is not needed between each node in cluster.
Technical scheme for a more clear understanding of the present invention, to be described with specific embodiment below, please refer to shown in Fig. 2, Fig. 2 shows the Disk Quotas strategy setting flow process of the present invention local or the overall situation, " preassigned node (node comprises all types) " technical terms hereinafter can be understood as the node of specifying according to the actual requirements, such as choose when needing part of nodes to be configured, or when needing all configurations select.
For local Disk Quotas strategy setting, in whole cluster, namely only need part of nodes to come into force, its flow process is as follows:
A) management node creates user;
B) user is synchronized to shared disk place node;
C) Disk Quotas is set;
D) simultaneous user is to specified node.
Be more than the step of local Disk Quotas strategy setting, when needing current local policy to upgrade to global policies, Fig. 3 shows the flow process that local policy upgrades to global policies, and its concrete steps are as follows:
A) user's associated documents are filtered out;
B) dispatch user information is to local policy Pending The Entry Into Force node;
C) be added into user file by after user profile process, avoid affecting existing local policy.
When needing current global policies to be downgraded to local policy, Fig. 4 shows the flow process that global policies is downgraded to local policy, and its step is as follows:
A) user's associated documents are filtered out;
B) dispatch user information to local policy does not come into force node;
C) delete after user profile process from user's associated documents.
In addition, during in order to ensure that cluster environment fluctuates, proper communication between node, the correct onset of Disk Quotas strategy: the present invention has the relevant information of user due to each node, in therefore running, the user rs authentication of task does not limit by network.
According to embodiments of the invention, additionally provide a kind of cluster management device, as shown in Figure 5, this device comprises:
Creation module 51, creates user for management node;
First synchronization module 52, for being synchronized to the node at the shared disk place of cluster by user profile;
Module 53 is set, for arranging Disk Quotas to shared disk;
Second synchronization module 54, for being synchronized to preassigned node by user profile.
Wherein, this device comprises further:
Screening module (not shown), for filtering out user profile according to presetting rule from cluster;
Distribution module (not shown), for the user profile filtered out being distributed to preassigned unenforced node in cluster, unenforced node is specify the node not needing to be configured in advance;
Writing module (not shown), for writing unenforced node by the user profile filtered out.
Wherein, this device comprises further:
Removing module (not shown), for deleting the user profile of infirm node;
Wherein, distribution module is further used for, screening module according to preset rule from cluster, filter out user profile after, the user profile filtered out is distributed to infirm node in cluster by distribution module, infirm node be running but needs stop configure node.
In addition, each node in cluster intercoms mutually.
In addition, user rs authentication is not needed between each node in cluster.
To sum up, by means of technique scheme of the present invention, can be implemented in outside overall distributed disk management strategy, support local distributed disk management strategy, user disk quota can be set separately to specified node, and the switching of local policy and global policies can be realized, considerably increase the flexibility of method for managing system, and when cluster environment fluctuates, do not affect running of task, ensure the normal onset of Disk Quotas strategy, 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:
Management node creates user;
User profile is synchronized to the node at the shared disk place of described cluster;
Disk Quotas is arranged to described shared disk;
Described user profile is synchronized to described preassigned node.
2. management method according to claim 1, is characterized in that, comprises further:
From described cluster, user profile is filtered out according to presetting rule;
The user profile filtered out is distributed to preassigned unenforced node in described cluster, described unenforced node is specify the node not needing to be configured in advance;
By the described described unenforced node of user profile write filtered out.
3. management method according to claim 1, is characterized in that, comprises further:
From described cluster, user profile is filtered out according to presetting rule;
The user profile filtered out is distributed to infirm node in described cluster, described infirm node is running but needing the node that termination configures;
The user profile of described infirm node is deleted.
4. management method according to claim 1, is characterized in that, each node in described cluster intercoms mutually.
5. management method according to claim 1, is characterized in that, does not need user rs authentication between each node in described cluster.
6. a cluster management device, is characterized in that, comprising:
Creation module, creates user for management node;
First synchronization module, for being synchronized to the node at the shared disk place of described cluster by user profile;
Module is set, for preassigned Node configuration Disk Quotas;
Second synchronization module, for being synchronized to described preassigned node by described user profile.
7. device according to claim 6, is characterized in that, comprises further:
Screening module, for filtering out user profile according to presetting rule from described cluster;
Distribution module, for the user profile filtered out being distributed to preassigned unenforced node in described cluster, described unenforced node is specify the node not needing to be configured in advance;
Writing module, for writing described unenforced node by the described user profile filtered out.
8. device according to claim 6, is characterized in that, comprises further:
Removing module, for deleting the user profile of described infirm node;
Wherein, described distribution module is further used for, screening module according to preset rule from described cluster, filter out user profile after, the user profile filtered out is distributed to infirm node in described cluster by described distribution module, and described infirm node is running but needing the node that termination configures.
9. device according to claim 6, is characterized in that, each node in described cluster intercoms mutually.
10. device according to claim 6, is characterized in that, does not need user rs authentication between each node in described cluster.
CN201410784727.3A 2014-12-16 2014-12-16 cluster management method and device Active CN104539670B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410784727.3A CN104539670B (en) 2014-12-16 2014-12-16 cluster management method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410784727.3A CN104539670B (en) 2014-12-16 2014-12-16 cluster management method and device

Publications (2)

Publication Number Publication Date
CN104539670A true CN104539670A (en) 2015-04-22
CN104539670B CN104539670B (en) 2018-09-18

Family

ID=52855137

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410784727.3A Active CN104539670B (en) 2014-12-16 2014-12-16 cluster management method and device

Country Status (1)

Country Link
CN (1) CN104539670B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090119304A1 (en) * 2002-01-30 2009-05-07 Red Hat, Inc. Metadata structures and related locking techniques to improve performance and scalability in a cluster file system
CN101799797A (en) * 2010-03-05 2010-08-11 中国人民解放军国防科学技术大学 Dynamic allocation method of user disk quota in distributed storage system
CN102904948A (en) * 2012-09-29 2013-01-30 南京云创存储科技有限公司 Super-large-scale low-cost storage system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090119304A1 (en) * 2002-01-30 2009-05-07 Red Hat, Inc. Metadata structures and related locking techniques to improve performance and scalability in a cluster file system
CN101799797A (en) * 2010-03-05 2010-08-11 中国人民解放军国防科学技术大学 Dynamic allocation method of user disk quota in distributed storage system
CN102904948A (en) * 2012-09-29 2013-01-30 南京云创存储科技有限公司 Super-large-scale low-cost storage system

Also Published As

Publication number Publication date
CN104539670B (en) 2018-09-18

Similar Documents

Publication Publication Date Title
CN102752675B (en) Method for realizing ONU (Optical Network Unit) service automatic opening on OLT (Optical Line Terminal) equipment
CN105184144B (en) A kind of multisystem right management method
CN103516529A (en) Management method, device and system of configuration files
CN102497280B (en) Distributed system and method thereof for realizing management
CN102567675A (en) User authority management method and system in business system
CN105553741A (en) Automatic deployment method for application system based on cloud computing
CN111176788A (en) Method and system for deploying main nodes of Kubernetes cluster
CN104243515A (en) Method and device for processing configuration information
CN103067212B (en) Based on capability set template, ONU is carried out the method for dynamic management
CN103152197A (en) Rule set arranging processing method and device and cluster data system
CN109743202B (en) Data management method, device and equipment and readable storage medium
CN106126977A (en) A kind of efficient electronic document permission inheritance and transmission method
CN105809021A (en) Method and device for distributing user permissions
CN101616024A (en) The method and system of a kind of service fulfillment/blocking-up
EP1924033B1 (en) Method and apparatus for implementing a layer1 virtual private network l1 vpn
CN102819914A (en) Invoice distribution system and method of invoice distribution system
CN108062225B (en) Method for issuing application cluster by multi-template combination
CN106599718A (en) Control method and device for information access permission
CN104539670A (en) Cluster management method and device
CN109982172B (en) PON access system subframe cascading system and method
CN111131529B (en) Method, device and storage medium for centralized management of address pools
CN107276835A (en) A kind of clustered deploy(ment) collocation method and system
CN111093121A (en) Method for automatically configuring ONU QINQ in EPON system
CN100459519C (en) Method for controlling power of data management
CN106571943A (en) Distributed-type configuration cluster capacity-expanding method and device

Legal Events

Date Code Title Description
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20181213

Address after: 100193 No. 36 Building, No. 8 Hospital, Wangxi Road, Haidian District, Beijing

Patentee after: Zhongke Shuguang International Information Industry Co.,Ltd.

Address before: 100193 No. 36 Building, No. 8 Hospital, Wangxi Road, Haidian District, Beijing

Patentee before: Dawning Information Industry (Beijing) Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20220727

Address after: 266000 room 211, zone a, software park, No. 169, Songling Road, Laoshan District, Qingdao City, Shandong Province

Patentee after: Zhongke Shuguang International Information Industry Co.,Ltd.

Patentee after: DAWNING INFORMATION INDUSTRY Co.,Ltd.

Address before: 100193 No. 36 Building, No. 8 Hospital, Wangxi Road, Haidian District, Beijing

Patentee before: Zhongke Shuguang International Information Industry Co.,Ltd.

TR01 Transfer of patent right