CN112003739A - Method, system, terminal and storage medium for creating user automatic quota - Google Patents

Method, system, terminal and storage medium for creating user automatic quota Download PDF

Info

Publication number
CN112003739A
CN112003739A CN202010778051.2A CN202010778051A CN112003739A CN 112003739 A CN112003739 A CN 112003739A CN 202010778051 A CN202010778051 A CN 202010778051A CN 112003739 A CN112003739 A CN 112003739A
Authority
CN
China
Prior art keywords
user
quota
information
creating
unit
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
Application number
CN202010778051.2A
Other languages
Chinese (zh)
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.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202010778051.2A priority Critical patent/CN112003739A/en
Publication of CN112003739A publication Critical patent/CN112003739A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0876Aspects of the degree of configuration automation
    • H04L41/0886Fully automatic configuration
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0631Management of faults, events, alarms or notifications using root cause analysis; using analysis of correlation between notifications, alarms or events based on decision criteria, e.g. hierarchy, tree or time analysis
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0889Techniques to speed-up the configuration process

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Automation & Control Theory (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention provides a method, a system, a terminal and a storage medium for creating an automatic quota of a user, wherein the method comprises the following steps: starting a quota function at the cluster node; creating a user by specifying a user ID; extracting user information according to the user ID; and writing the set quota information and quota adjustment rules into the attributes of the creating user and the related user group according to the user information. The method can finish the configuration of the quota of the Beegfs as a part of the user attribute when the cluster creates the user, can set the dynamic adjustment proportion of the user quota, and is convenient for the maintenance management of the Beegfs file system and the user management of the cluster.

Description

Method, system, terminal and storage medium for creating user automatic quota
Technical Field
The invention relates to the technical field of storage systems, in particular to a method, a system, a terminal and a storage medium for creating an automatic quota for a user.
Background
Generally, a Beegfs file system is deployed, if a quota function needs to be started, quota configuration needs to be manually performed on old users and user groups after the file system deployment is completed, a Beegfs server and a Beegfs client need to be operated, a configuration method is complex and prone to errors, a new user cannot configure a quota when the new user is created, automatic adjustment cannot be performed according to actual conditions during later use, and usability is poor.
Disclosure of Invention
In view of the foregoing deficiencies of the prior art, the present invention provides a method, a system, a terminal and a storage medium for creating an automatic quota for a user, so as to solve the foregoing technical problems.
In a first aspect, the present invention provides a method for creating a user automatic quota, including:
starting a quota function at the cluster node;
creating a user by specifying a user ID;
extracting user information according to the user ID;
and writing the set quota information and quota adjustment rules into the attributes of the creating user and the related user group according to the user information.
Further, the creating a user by specifying a user ID includes:
acquiring user attribute information before executing a user creating instruction, and judging whether a user ID exists according to the attribute information:
if yes, ignoring the user creating instruction, and judging whether quota information exists in the corresponding user group:
and if so, loading the current user group quota information.
Further, the quota adjusting rule includes:
and limiting the proportion of the dynamic adjustable quota to the user quota.
Further, the method further comprises:
setting a user quota use condition detection period;
and periodically detecting the space utilization rate of the user according to the detection period, and judging whether the space utilization rate reaches a quota alarm threshold of the user:
and if so, generating alarm information and pushing the alarm information to a user according to the user information.
In a second aspect, the present invention provides a system for creating a user automatic quota, including:
the function starting unit is configured to start a quota function at the cluster node;
a user creating unit configured to create a user by specifying a user ID;
an information extraction unit configured to extract user information according to the user ID;
and the quota writing unit is configured and used for writing the set quota information and quota adjusting rules into the attributes of the creating user and the related user group according to the user information.
Further, the user creating unit includes:
the attribute judging module is configured to acquire user attribute information before executing a user creating instruction and judge whether a user ID exists according to the attribute information;
the quota judging module is configured to ignore the user creating instruction and judge whether quota information exists in a corresponding user group if the user ID exists;
and the quota loading module is configured and used for loading the quota information of the current user group if the quota information exists.
Further, the quota adjusting rule includes:
and limiting the proportion of the dynamic adjustable quota to the user quota.
Further, the system further comprises:
the period setting unit is configured for setting a user quota use condition detection period;
the regular detection unit is configured to regularly detect the space utilization rate of the user according to the detection period and judge whether the space utilization rate reaches a quota alarm threshold of the user;
and the alarm notification unit is configured and used for generating alarm information if the space utilization rate reaches a quota alarm threshold of a user, and pushing the alarm information to the user according to the user information.
In a third aspect, a terminal is provided, including:
a processor, a memory, wherein,
the memory is used for storing a computer program which,
the processor is used for calling and running the computer program from the memory so as to make the terminal execute the method of the terminal.
In a fourth aspect, a computer storage medium is provided having stored therein instructions that, when executed on a computer, cause the computer to perform the method of the above aspects.
The beneficial effect of the invention is that,
according to the method, the system, the terminal and the storage medium for creating the user automatic quota, provided by the invention, through a script command mode, when a new user is created, the quota is used as a part of user attributes, the user quota is synchronously and automatically completed when the new user is created, the dynamic adjustment proportion of the user quota can be set, the quota size can be rapidly adjusted, when a running program is detected, the adjustment of the user quota can be completed by inputting the space size or the adjustment proportion, the user quota alarm setting is supported, and a user quota alarm notification is supported to be sent by an email. The method can finish the configuration of the quota of the Beegfs as a part of the user attribute when the cluster creates the user, can set the dynamic adjustment proportion of the user quota, and is convenient for the maintenance management of the Beegfs file system and the user management of the cluster.
In addition, the invention has reliable design principle, simple structure and very wide application prospect.
Drawings
In order to more clearly illustrate the embodiments or technical solutions in the prior art of the present invention, the drawings used in the description of the embodiments or prior art will be briefly described below, and it is obvious for those skilled in the art that other drawings can be obtained based on these drawings without creative efforts.
FIG. 1 is a schematic flow diagram of a method of one embodiment of the invention.
FIG. 2 is a schematic flow diagram of a method of one embodiment of the invention.
FIG. 3 is a schematic block diagram of a system of one embodiment of the present invention.
Fig. 4 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
Detailed Description
In order to make those skilled in the art better understand the technical solution of the present invention, the technical solution in the embodiment of the present invention will be clearly and completely described below with reference to the drawings in the embodiment of the present invention, and it is obvious that the described embodiment is only a part of the embodiment of the present invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
FIG. 1 is a schematic flow diagram of a method of one embodiment of the invention. Where the fig. 1 executive principal may be a system that creates an automatic quota for a user.
As shown in fig. 1, the method 100 includes:
step 110, starting a quota function at the cluster node;
step 120, creating a user by specifying a user ID;
step 130, extracting user information according to the user ID;
and step 140, writing the set quota information and quota adjustment rule into the attributes of the creating user and the related user group according to the user information.
Specifically, referring to fig. 2, the method for creating an automatic quota for a user includes:
and S1, starting a quota function at the cluster node.
And carrying out system environment check on the nodes, judging whether the opening conditions are met, if the conditions are passed normally, executing the quota check on the management nodes, carrying out quota check before configuration, and if the quota configuration is not opened in the first configuration, opening the quota configuration.
S2, create a user by specifying a user ID.
Checking a created user strategy, creating a user by a mode of appointing a user id, acquiring attribute information of the user, ignoring the creation if the user exists, and loading quota information of the current user group if the user group already exists, and prompting whether to modify.
And S3, extracting the user information according to the user ID.
And calling corresponding user information according to the user ID, such as the information of the user group ID, the storage pool, the user contact information and the like.
And S4, writing the set quota information and quota adjustment rule into the attributes of the creating user and the related user group according to the user information.
And according to the user information obtained in the step S3, writing preset quota information into the attributes of the user and the user group through a Beegfs-ctl command, and configuring the user to automatically detect the quota use condition every day. Meanwhile, a user quota dynamic adjustment proportion is set according to the overall situation of the disk, the user is allowed to dynamically adjust the quota to 10% of the user quota to the maximum extent, and the reminding time is set.
S5, running a confirmation checking program, automatically detecting the space utilization rate of the user, configuring a space utilization warning threshold of the user, and configuring the quota warning notification information according to the user information in the configuration document (namely once the space utilization of the user exceeds the warning threshold, the warning information is pushed to the user according to the user information). Synchronizing user information to all nodes of the cluster, completing creation of a user, outputting user quota information, and updating a command to a system.
As shown in fig. 3, the system 300 includes:
a function starting unit 310 configured to start a quota function at a cluster node;
a user creating unit 320 configured to create a user by specifying a user ID;
an information extraction unit 330 configured to extract user information according to the user ID;
and a quota writing unit 340 configured to write the set quota information and quota adjustment rule into the attributes of the creating user and the related user group according to the user information.
Optionally, as an embodiment of the present invention, the user creating unit includes:
the attribute judging module is configured to acquire user attribute information before executing a user creating instruction and judge whether a user ID exists according to the attribute information;
the quota judging module is configured to ignore the user creating instruction and judge whether quota information exists in a corresponding user group if the user ID exists;
and the quota loading module is configured and used for loading the quota information of the current user group if the quota information exists.
Optionally, as an embodiment of the present invention, the quota adjusting rule includes:
and limiting the proportion of the dynamic adjustable quota to the user quota.
Optionally, as an embodiment of the present invention, the system further includes:
the period setting unit is configured for setting a user quota use condition detection period;
the regular detection unit is configured to regularly detect the space utilization rate of the user according to the detection period and judge whether the space utilization rate reaches a quota alarm threshold of the user;
and the alarm notification unit is configured and used for generating alarm information if the space utilization rate reaches a quota alarm threshold of a user, and pushing the alarm information to the user according to the user information.
Fig. 4 is a schematic structural diagram of a terminal 400 according to an embodiment of the present invention, where the terminal 400 may be configured to execute the method for creating an automatic quota for a user according to the embodiment of the present invention.
Among them, the terminal 400 may include: a processor 410, a memory 420, and a communication unit 430. The components communicate via one or more buses, and those skilled in the art will appreciate that the architecture of the servers shown in the figures is not intended to be limiting, and may be a bus architecture, a star architecture, a combination of more or less components than those shown, or a different arrangement of components.
The memory 420 may be used for storing instructions executed by the processor 410, and the memory 420 may be implemented by any type of volatile or non-volatile storage terminal or combination thereof, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk. The executable instructions in memory 420, when executed by processor 410, enable terminal 400 to perform some or all of the steps in the method embodiments described below.
The processor 410 is a control center of the storage terminal, connects various parts of the entire electronic terminal using various interfaces and lines, and performs various functions of the electronic terminal and/or processes data by operating or executing software programs and/or modules stored in the memory 420 and calling data stored in the memory. The processor may be composed of an Integrated Circuit (IC), for example, a single packaged IC, or a plurality of packaged ICs connected with the same or different functions. For example, the processor 410 may include only a Central Processing Unit (CPU). In the embodiment of the present invention, the CPU may be a single operation core, or may include multiple operation cores.
A communication unit 430, configured to establish a communication channel so that the storage terminal can communicate with other terminals. And receiving user data sent by other terminals or sending the user data to other terminals.
The present invention also provides a computer storage medium, wherein the computer storage medium may store a program, and the program may include some or all of the steps in the embodiments provided by the present invention when executed. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM) or a Random Access Memory (RAM).
Therefore, in the invention, by means of a script command, when a new user is created, the quota is used as a part of the user attribute, the user quota is synchronously and automatically completed when the new user is created, the dynamic adjustment proportion of the user quota can be set, the quota size can be quickly adjusted, when the running program is detected, the user quota adjustment can be completed by inputting the space size or the adjustment proportion, the user quota alarm setting is supported, and the user quota alarm notification is supported to be sent by the mail. According to the method and the device, when the user is created in the cluster, the quota of the beegfs is used as a part of the user attribute, the dynamic adjustment proportion of the user quota can be set, the maintenance management of the beegfs file system and the user management of the cluster are facilitated, the technical effect which can be achieved by the embodiment can be referred to the description above, and the details are not repeated.
Those skilled in the art will readily appreciate that the techniques of the embodiments of the present invention may be implemented as software plus a required general purpose hardware platform. Based on such understanding, the technical solutions in the embodiments of the present invention may be embodied in the form of a software product, where the computer software product is stored in a storage medium, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and the like, and the storage medium can store program codes, and includes instructions for enabling a computer terminal (which may be a personal computer, a server, or a second terminal, a network terminal, and the like) to perform all or part of the steps of the method in the embodiments of the present invention.
The same and similar parts in the various embodiments in this specification may be referred to each other. Especially, for the terminal embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant points can be referred to the description in the method embodiment.
In the embodiments provided in the present invention, it should be understood that the disclosed system and method can be implemented in other ways. For example, the above-described system embodiments are merely illustrative, and for example, the division of the units is only one logical functional division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, systems or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
Although the present invention has been described in detail by referring to the drawings in connection with the preferred embodiments, the present invention is not limited thereto. Various equivalent modifications or substitutions can be made on the embodiments of the present invention by those skilled in the art without departing from the spirit and scope of the present invention, and these modifications or substitutions are within the scope of the present invention/any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. A method of creating a user automatic quota, comprising:
starting a quota function at the cluster node;
creating a user by specifying a user ID;
extracting user information according to the user ID;
and writing the set quota information and quota adjustment rules into the attributes of the creating user and the related user group according to the user information.
2. The method of claim 1, wherein creating the user by specifying the user ID comprises:
acquiring user attribute information before executing a user creating instruction, and judging whether a user ID exists according to the attribute information:
if yes, ignoring the user creating instruction, and judging whether quota information exists in the corresponding user group:
and if so, loading the current user group quota information.
3. The method of claim 1, wherein the quota adjusting rule comprises:
and limiting the proportion of the dynamic adjustable quota to the user quota.
4. The method of claim 1, further comprising:
setting a user quota use condition detection period;
and periodically detecting the space utilization rate of the user according to the detection period, and judging whether the space utilization rate reaches a quota alarm threshold of the user:
and if so, generating alarm information and pushing the alarm information to a user according to the user information.
5. A system for creating a user-automated quota, comprising:
the function starting unit is configured to start a quota function at the cluster node;
a user creating unit configured to create a user by specifying a user ID;
an information extraction unit configured to extract user information according to the user ID;
and the quota writing unit is configured and used for writing the set quota information and quota adjusting rules into the attributes of the creating user and the related user group according to the user information.
6. The system of claim 5, wherein the user creation unit comprises:
the attribute judging module is configured to acquire user attribute information before executing a user creating instruction and judge whether a user ID exists according to the attribute information;
the quota judging module is configured to ignore the user creating instruction and judge whether quota information exists in a corresponding user group if the user ID exists;
and the quota loading module is configured and used for loading the quota information of the current user group if the quota information exists.
7. The system of claim 5, wherein the quota adjusting rule comprises:
and limiting the proportion of the dynamic adjustable quota to the user quota.
8. The system of claim 8, further comprising:
the period setting unit is configured for setting a user quota use condition detection period;
the regular detection unit is configured to regularly detect the space utilization rate of the user according to the detection period and judge whether the space utilization rate reaches a quota alarm threshold of the user;
and the alarm notification unit is configured and used for generating alarm information if the space utilization rate reaches a quota alarm threshold of a user, and pushing the alarm information to the user according to the user information.
9. A terminal, comprising:
a processor;
a memory for storing instructions for execution by the processor;
wherein the processor is configured to perform the method of any one of claims 1-4.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1-4.
CN202010778051.2A 2020-08-05 2020-08-05 Method, system, terminal and storage medium for creating user automatic quota Pending CN112003739A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010778051.2A CN112003739A (en) 2020-08-05 2020-08-05 Method, system, terminal and storage medium for creating user automatic quota

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010778051.2A CN112003739A (en) 2020-08-05 2020-08-05 Method, system, terminal and storage medium for creating user automatic quota

Publications (1)

Publication Number Publication Date
CN112003739A true CN112003739A (en) 2020-11-27

Family

ID=73463484

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010778051.2A Pending CN112003739A (en) 2020-08-05 2020-08-05 Method, system, terminal and storage medium for creating user automatic quota

Country Status (1)

Country Link
CN (1) CN112003739A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115242818A (en) * 2022-07-22 2022-10-25 济南浪潮数据技术有限公司 Quota management method, device, equipment and medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110968260A (en) * 2018-09-30 2020-04-07 北京国双科技有限公司 Quota adjustment processing method and device and computer equipment
CN111459881A (en) * 2020-03-27 2020-07-28 苏州浪潮智能科技有限公司 Directory file quota setting method and system for distributed file storage system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110968260A (en) * 2018-09-30 2020-04-07 北京国双科技有限公司 Quota adjustment processing method and device and computer equipment
CN111459881A (en) * 2020-03-27 2020-07-28 苏州浪潮智能科技有限公司 Directory file quota setting method and system for distributed file storage system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115242818A (en) * 2022-07-22 2022-10-25 济南浪潮数据技术有限公司 Quota management method, device, equipment and medium

Similar Documents

Publication Publication Date Title
US11349767B2 (en) Device and method for disabling a WLAN hotspot based on data traffic value
CN104461631B (en) A kind of system OTA upgrade methods and device
CN109976926B (en) Method, circuit, terminal and storage medium for shielding, restarting and protecting update process of BMC
WO2019140739A1 (en) Method for determining return visits to client, and electronic apparatus and computer-readable storage medium
CN108664521B (en) Method and device for providing serial number, electronic equipment and readable storage medium
CN112463239A (en) BIOS and BMC interaction option default value modification method, system, terminal and storage medium
CN112653591B (en) Method, system, terminal and storage medium for balancing speed of line concentration cable
CN110673867A (en) CPLD online upgrading method, device and system
CN111181774A (en) High-availability method, system, terminal and storage medium for MapReduce task
CN111949518A (en) Method, system, terminal and storage medium for generating fault detection script
CN112001602A (en) Power grid operation ticket generation method, system, terminal and storage medium
CN112463195B (en) Method, system, terminal and storage medium for cluster grouping online upgrade
CN111147331A (en) Server network card interaction test method, system, terminal and storage medium
CN112003739A (en) Method, system, terminal and storage medium for creating user automatic quota
CN111176897A (en) Closed BIOS self-repairing method, system, terminal and storage medium
CN114416883A (en) Block chain light node data synchronization method, device, equipment and readable storage medium
CN112003730A (en) Method, system, terminal and storage medium for rapid cluster deployment
CN111062503A (en) Power grid monitoring alarm processing method, system, terminal and storage medium
CN105912431A (en) Reboot testing method of server, server, control device and system
CN110703988B (en) Storage pool creating method, system, terminal and storage medium for distributed storage
CN113238778B (en) Method, system, equipment and medium for upgrading BIOS firmware
CN110175096B (en) GPU (graphics processing Unit) pressurization test method, system, terminal and storage medium
CN112256500B (en) Storage system test server configuration method, system, terminal and storage medium
CN113076111A (en) Customized cluster configuration method, system, terminal and storage medium
CN111966286A (en) Multi-data pool hierarchical migration method and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20201127