Quota domain alarm system, method, equipment and medium

By designing a quota domain alarm system in a distributed file system, the efficiency of quota detection and alarm processing is solved, and the stability and efficient management of the system are achieved.

CN119621485APending Publication Date: 2025-03-14INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202411833155.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-12
Publication Date
2025-03-14

AI Technical Summary

Technical Problem

In a distributed file system, how to effectively detect and alert a large number of quota domains to ensure system performance and stability?

Method used

A quota domain alarm system is designed, including a quota domain alarm detection module and a quota alarm module. The system scans and quota detection of multiple quota fields, determines the alarm transaction, and sends a path query request to the path server based on the alarm information to process the alarm transaction.

Benefits of technology

The fine-grained management of multiple quota domains of the distributed file system is realized, which improves the efficiency of alarm detection and the overall stability of the system, and reduces manual intervention and management costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119621485A_ABST
    Figure CN119621485A_ABST
Patent Text Reader

Abstract

The invention provides a quota domain alarm system, method and device and a medium, and relates to the technical field of distributed file systems, the system at least comprises a quota domain alarm detection module and a quota alarm module, the quota domain alarm detection module is used for scanning a plurality of quota domains in a distributed file system in sequence, and the quota alarm module is used for sending the quota domain alarm to the distributed file system; the quota domain alarm detection module is used for determining a plurality of quota alarm processing units corresponding to a plurality of quota domains, each quota domain corresponds to one quota alarm processing unit, the quota domain alarm detection module is further used for carrying out quota detection on the plurality of quota domains and determining alarm affairs in each quota alarm processing unit, and the quota alarm module is used for sending the alarm affairs in each quota alarm processing unit according to the alarm information. The quota alarm module is used for sending a path query request to the path server and receiving a path query result returned by the path server, and the quota alarm module is also used for processing the alarm transaction based on the path query result and the alarm information. The efficiency of alarm detection and alarm processing can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of distributed file systems, and in particular to a quota domain alarm system, method, device and medium. Background Art

[0002] With the development of cloud computing and big data technology, the importance of quota alarms for distributed file systems will continue to increase. Distributed file systems (DFS) connect different physical storage resources through computer networks to form a logical tree-like file system structure, enabling users to access shared files distributed on the network. A key feature of this system is that it supports quota management, which is to limit the storage space of a directory or file system. By setting quotas, storage resources can be effectively managed to avoid excessive use of storage space by a single user or application, thereby affecting the performance and stability of the entire system. However, in the process of quota management of distributed file systems that contain large-scale data, how to effectively perform quota detection and alarm processing on a large number of quota domains in the distributed file system is an urgent problem to be solved by personnel in this field. Summary of the invention

[0003] In view of this, embodiments of the present application provide a quota domain alarm system, method, device, and medium to overcome the above problems or at least partially solve the above problems.

[0004] According to a first aspect of an embodiment of the present application, a quota domain alarm system is provided. The system comprises at least: a quota domain alarm detection module and a quota alarm module, wherein: The quota domain alarm detection module is used to scan multiple quota domains in the distributed file system in sequence, determine multiple quota alarm processing units corresponding to the multiple quota domains, and each quota domain corresponds to a quota alarm processing unit; The quota domain alarm detection module is further used to perform quota detection on multiple quota domains, and determine the alarm affairs in each quota alarm processing unit, wherein the alarm affairs include the alarm information of the quota domains that need to be alarmed, and / or the alarm information of the quota domains that need to cancel the alarm; The quota alarm module is used to send a path query request to the path server according to the alarm information, and receive the path query result returned by the path server; The quota alarm module is further used to process the alarm transaction based on the path query result and the alarm information.

[0005] Optionally, the quota domain alarm detection module is further used to: After determining the multiple quota alarm processing units corresponding to the multiple quota domains, judging whether there are unprocessed alarm transactions in the alarm queues corresponding to the quota domains in the quota alarm processing units; one alarm queue corresponding to each quota domain, each of the alarm queues is used to store the alarm transactions of the quota domain corresponding to the alarm queue; When it is determined that there are unprocessed alarm transactions in the alarm queue corresponding to the quota domain, skip the quota domain and scan the next quota domain; When it is determined that there is no unprocessed alarm transaction in the alarm queue corresponding to the quota domain, a quota check is performed on the quota domain, and it is determined whether the alarm transaction is detected, and the detected alarm transaction is added to the alarm queue corresponding to the quota domain.

[0006] Optionally, the quota domain alarm detection module is further used to: Whenever a detected alarm transaction is added to the alarm queue corresponding to the quota domain, the number of alarm entries in the alarm queue is updated; The sum of the number of alarm entries in all the alarm queues is determined. When the sum of the number of alarm entries is greater than the alarm entry threshold, the scanning of the multiple quota domains and the quota detection are stopped, and the quota alarm module is notified to start.

[0007] Optionally, the system further includes a quota domain alarm fault processing module, wherein: The quota domain alarm detection module is also used to store the detected alarm transactions in a disk; The quota domain alarm fault processing module is used to switch the quota alarm node to a primary node and a backup node through a quota alarm update thread when the quota alarm node corresponding to the quota alarm module is abnormal, and determine whether the quota alarm service in the switched quota alarm node is started for the first time; The quota domain alarm fault processing module is further used to read the alarm transaction from the disk when it is determined that the quota alarm service is started for the first time, and add the read alarm transaction to the alarm queue corresponding to the quota domain according to the corresponding relationship between the quota domain and the quota alarm processing unit, so that the quota alarm module can process the alarm transaction in the alarm queue after the quota alarm service is restored; The quota domain alarm fault processing module is further configured to notify the quota domain alarm detection module to start up when it is determined that the quota alarm service is not started for the first time.

[0008] Optionally, the path server includes a path server for a management-side path query service and a path server for a service-side path query service, wherein: The quota alarm module is used to scan the quota alarm processing units in sequence and determine whether the path query service corresponding to the quota alarm processing unit exists; The quota alarm module is also used to determine whether the management side path query service exists when it is determined that the path query service exists, and when the management side path query service exists, send a path query request to the path server through the path server of the management side path query service, and receive the path query result returned by the path server of the management side path query service; The quota alarm module is also used to send a path query request to the path server through the path server of the service side path query service when the management side path query service does not exist, and receive a path query result returned by the path server of the service side path query service.

[0009] Optionally, the sending the path query request to the path server is specifically: The quota alarm module is further used to send a batch of path query requests to the path server according to a path query request number threshold, and after sending the batch of path query requests, determine whether the path query requests of all alarm transactions in the quota alarm processing unit have been sent; The quota alarm module is also used to send the next group of batches of path query requests to the path server according to the path query request number threshold after determining that the path query requests of all alarm transactions in the quota alarm processing unit have not been fully sent, until the path query requests of all alarm transactions in the quota alarm processing unit are fully sent.

[0010] Optionally, the system further includes an interface alarm display module, wherein: The quota alarm module is also used to update the alarm information according to the path query result, and push the updated alarm information to the interface alarm display module, so that the updated alarm information can be displayed through the interface alarm display module; The quota alarm module is also used to determine whether all the alarm transactions of all quota domains in the quota alarm processing unit have been processed, and when it is determined that there are unprocessed alarm transactions, wait for the path server to send a path query result; The quota alarm module is further configured to delete the alarm transaction from the disk when it is determined that the alarm transactions of all quota domains in the quota alarm processing unit have been processed completely.

[0011] A second aspect of an embodiment of the present application provides a quota domain alarm method, the method comprising: Scanning multiple quota domains in the distributed file system in sequence, determining multiple quota alarm processing units corresponding to the multiple quota domains, each quota domain corresponding to a quota alarm processing unit; Performing quota detection on multiple quota domains, determining an alarm transaction in each quota alarm processing unit, wherein the alarm transaction includes alarm information of a quota domain that needs an alarm, and / or alarm information of a quota domain that needs to cancel an alarm; Sending a path query request to a path server according to the alarm information, and receiving a path query result returned by the path server; Based on the path query result and the alarm information, the alarm transaction is processed.

[0012] According to a third aspect of an embodiment of the present application, an electronic device is provided, comprising a memory, a processor, and a computer program stored in the memory, wherein the processor executes the computer program to implement the method described in the second aspect.

[0013] In a fourth aspect of the embodiments of the present application, a computer program product is provided, including a computer program, which, when executed by a processor, implements the method described in the second aspect.

[0014] According to a fifth aspect of the embodiments of the present application, a computer-readable storage medium is provided, on which a computer program is stored, wherein when the computer program is executed by a processor, the method described in the second aspect is implemented.

[0015] Beneficial effects of this application: The embodiments of the present application provide a quota domain alarm system, method, device and medium, including: a quota domain alarm detection module will scan each pre-configured quota domain and calculate the quota alarm processing unit corresponding to each quota domain. Each quota domain will correspond to a quota alarm processing unit, and a quota alarm processing unit can correspond to multiple quota domains. After determining the correspondence between the quota domain and the quota alarm processing unit, a quota detection is performed on the quota domain corresponding to the quota alarm processing unit according to the quota alarm processing unit, and then the alarm transaction in each quota alarm processing unit is determined, and the alarm transaction includes the alarm information that needs to be alarmed and the alarm information that needs to be canceled. And after each quota detection of the quota domain, it is determined whether all quota domains have completed the quota detection. If all quota domains have completed the quota detection, the scanning and quota detection process of the quota domain alarm detection module is terminated. After obtaining the alarm transactions of each quota domain after quota detection, the quota domain alarm detection module will notify the quota alarm module to start, so that the quota alarm module can further process the alarm transactions obtained by the quota domain alarm detection module. The quota alarm module receives the alarm information in the alarm transaction transmitted by the alarm detection module, sends a path query request to the path server according to the alarm information, receives the path query result returned by the path server, and processes the corresponding alarm transaction based on the path query result and the alarm information.

[0016] Through the technical solution of the present application, multiple quota domains are allocated to different quota alarm processing units, which can partition and refine the management of the distributed file system, and realize parallel processing of alarm detection, thereby improving the efficiency of alarm detection. Each quota alarm processing unit works independently as a single node, and can perform fine-grained division of the alarm detection work of the entire distributed file system, thereby improving the overall stability of the quota domain detection system. When a quota alarm processing unit fails, there is no need to restore the entire quota domain alarm system, but only the failed quota alarm processing unit and the alarm transactions therein can be restored. At the same time, after obtaining the alarm transactions of each quota domain, more detailed alarm information, i.e., path information, can be obtained through path query, thereby improving the accuracy and effectiveness of the quota alarm. The entire process uses automated alarm detection and processing, which reduces manual intervention and reduces management costs. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] The drawings constituting a part of the present application are used to provide a further understanding of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application.

[0018] In order to more clearly illustrate the technical solution of the present application, the drawings required for use in the description of the present application will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0019] Figure 1 This is a schematic diagram of a quota domain alarm system provided by an embodiment of the present application; Figure 2 This is a flowchart of an execution process of a quota domain alarm detection module provided by an embodiment of the present application; Figure 3 It is a flowchart of the execution process of a quota domain alarm fault processing module provided by an embodiment of the present application; Figure 4 This is a flowchart of an execution process of a quota alarm module provided by an embodiment of the present application; Figure 5 This is a flowchart of an alarm information display process provided by an embodiment of the present application; Figure 6 This is a flowchart of a quota domain alarm method provided by an embodiment of the present application; Figure 7 This is a schematic diagram of a quota domain alarm device provided by an embodiment of the present application; Figure 8 It is a schematic diagram of an electronic device provided by an embodiment of the present application. DETAILED DESCRIPTION

[0020] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application may be combined with each other.

[0021] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0022] Figure 1 is a schematic diagram of a quota domain alarm system provided by an embodiment of the present application. Figure 2 FIG. 1 is a flowchart of an execution process of a quota domain alarm detection module provided in an embodiment of the present application. Figure 1 shown.

[0023] An embodiment of the present application provides a quota domain alarm system, the system at least comprising: a quota domain alarm detection module and a quota alarm module, wherein: The quota domain alarm detection module is used to scan multiple quota domains in the distributed file system in sequence, determine multiple quota alarm processing units corresponding to the multiple quota domains, and each quota domain corresponds to a quota alarm processing unit; The quota domain alarm detection module is further used to perform quota detection on multiple quota domains, and determine the alarm affairs in each quota alarm processing unit, wherein the alarm affairs include the alarm information of the quota domains that need to be alarmed, and / or the alarm information of the quota domains that need to cancel the alarm; The quota alarm module is used to send a path query request to the path server according to the alarm information, and receive the path query result returned by the path server; The quota alarm module is further used to process the alarm transaction based on the path query result and the alarm information.

[0024] The quota domain alarm system is applied to the distributed file system. The quota domain alarm system at least includes a quota domain alarm detection module and a quota alarm module. The quota domain alarm detection module is used to perform quota detection on multiple quota domains pre-configured in the distributed file system, and the quota alarm module is used to process the alarm transactions obtained after the quota domain alarm detection module detects them.

[0025] Specifically, the quota domain in a distributed file system is a quota limit for storage resources determined for a specific directory, user, or user group. The quota is a distributed file system (DFS) that connects different physical storage resources through a computer network to form a logical tree-like file system structure, allowing users to access shared files distributed on the network. A key feature of this system is support for quota management, which is to limit the storage space of a directory or file system. By setting quotas, storage resources can be effectively managed to prevent a single user or application from overusing storage space, which would affect the performance and stability of the entire system.

[0026] In an embodiment of the present application, the setting of the quota domain includes the quota objects that the quota domain acts on, such as users, user groups, files, etc., different quota types are set for different quota objects, and specific quota alarm types are set for different quota types, and each quota alarm type corresponds to a quota.

[0027] The quota types of the quota domain are: tenant capacity, namespace capacity, directory capacity, number of directory files, user capacity, number of user files, user group capacity, number of user group files, etc.

[0028] The quota type alarm types of the quota domain are divided into: hard threshold alarm, soft threshold alarm, recommended threshold alarm, grace period alarm, etc. ‌

[0029] like Figure 2 As shown, the quota domain alarm detection module scans each pre-configured quota domain and calculates the quota alarm processing unit corresponding to each quota domain. This calculation process can use a hash algorithm to map the quota domain identifier (such as inode) to a unique quota alarm processing unit.

[0030] Hash: Generally translated as "hash", it can also be directly transliterated as "hash". In computer science, it is a function that has the characteristic of transforming an input of any length (also called pre-mapping or pre-image) into an output of fixed length through a hash algorithm. This fixed-length output is the hash value, also often referred to as the hash value. The hash algorithm is also called a hash algorithm. Although it is called an algorithm, it is actually more like an idea. There is no fixed formula. As long as the algorithm conforms to the hash idea, it can be called a hash algorithm.

[0031] The quota alarm processing unit may be a specific quota alarm node (physical node) or a process. Each quota domain corresponds to a quota alarm processing unit, and a quota alarm processing unit may correspond to multiple quota domains.

[0032] After determining the correspondence between the quota domain and the quota alarm processing unit, the quota domain corresponding to the quota alarm processing unit is subjected to quota detection according to the quota alarm processing unit, and then the alarm affairs in each quota alarm processing unit are determined. The alarm affairs include alarm information that needs to be alarmed (for example, the resource usage has reached the threshold) or quota domain information that needs to cancel the alarm (for example, the resource usage of the resource that exceeded the threshold in the last quota detection has fallen below the threshold in this quota detection). The alarm information includes the quota alarm object where the alarm occurs, the corresponding resource usage value, the threshold, the quota type and alarm type corresponding to the alarm, etc.

[0033] After each quota detection of the quota domain, it is determined whether all quota domains have completed the quota detection. If all quota domains have completed the quota detection, the scanning and quota detection process of the quota domain alarm detection module is terminated.

[0034] After obtaining the alarm affairs of each quota domain after quota detection, the quota domain alarm detection module will notify the quota alarm module to start, so that the quota alarm module can further process the alarm affairs obtained by the quota domain alarm detection module.

[0035] In this process, the quota alarm module receives the alarm information in the alarm transaction transmitted by the alarm detection module, sends a path query request to the path server according to the alarm information, and receives the path query result returned by the path server, such as obtaining the path information related to the alarm transaction (for example, the specific path of the user using the resource, etc.). Based on the path query result and the alarm information, the corresponding alarm transaction is processed, for example, an alarm notification is sent to the user or administrator, or the resource configuration is automatically adjusted according to the preset policy to avoid resource overload.

[0036] Through the above-mentioned embodiments, multiple quota domains are allocated to different quota alarm processing units, which can partition and refine the distributed file system, realize parallel processing of alarm detection, and improve the efficiency of alarm detection. Each quota alarm processing unit works independently as a single node, and can perform fine-grained division of the alarm detection work of the entire distributed file system, thereby improving the overall stability of the quota domain detection system. When a quota alarm processing unit fails, there is no need to restore the entire quota domain alarm system, but only the failed quota alarm processing unit and the alarm transaction therein can be restored. At the same time, after obtaining the alarm transaction of each quota domain, more detailed alarm information, that is, path information, can be obtained through path query, thereby improving the accuracy and effectiveness of quota alarms. The entire process uses automated alarm detection and processing, which reduces manual intervention and reduces management costs.

[0037] Optionally, the quota domain alarm detection module is further used to: After determining the multiple quota alarm processing units corresponding to the multiple quota domains, judging whether there are unprocessed alarm transactions in the alarm queues corresponding to the quota domains in the quota alarm processing units; one alarm queue corresponding to each quota domain, each of the alarm queues is used to store the alarm transactions of the quota domain corresponding to the alarm queue; When it is determined that there are unprocessed alarm transactions in the alarm queue corresponding to the quota domain, skip the quota domain and scan the next quota domain; When it is determined that there is no unprocessed alarm transaction in the alarm queue corresponding to the quota domain, a quota check is performed on the quota domain, and it is determined whether the alarm transaction is detected, and the detected alarm transaction is added to the alarm queue corresponding to the quota domain.

[0038] Specifically, Figure 2 As shown, in one embodiment, when the quota domain alarm detection module issues a quota alarm, in order to avoid detecting a new alarm transaction before the historical alarm transaction of a quota domain has been processed, resulting in too many alarms being processed at the same time and causing system burden, a priority mechanism can be adopted.

[0039] After determining the multiple quota alarm processing units corresponding to the multiple quota domains, it will first determine whether there are any unprocessed alarm transactions in the alarm queue corresponding to each quota domain. If there are unprocessed alarm transactions, the alarm detection process of the quota domain will be temporarily skipped, and the alarm detection process of the next quota domain will be processed first. Avoid processing too many alarm transactions at the same time to prevent insufficient system resources or reduced processing capabilities. Only when there are no unprocessed transactions in the alarm queue of the quota domain, that is, when all historical alarm transactions of the quota domain have been processed, will it be subject to quota detection and the newly discovered alarm transactions will be added to the alarm queue of the quota domain.

[0040] Each quota domain has an independent alarm queue for storing the alarm affairs of the quota domain. Each quota alarm processing unit manages the alarm queues of multiple quota domains.

[0041] The main information in the alarm queue of each quota domain is: map<quota domain, std::list <alarmdata>>, where there is an alarm queue for each quota domain, and AlarmData is the alarm information in the specific alarm transaction.

[0042] AlarmData contains two key pieces of information: one is the alarm status flag, and the other is the status when the alarm is generated, including the usage, soft and hard thresholds, and user and group information when the alarm is generated.

[0043] The alarm status flag is of uint8 type, the first bit is 0: no alarm for hard threshold 1: hard threshold has been alarmed; the second bit is 0: no alarm for soft threshold 1: soft threshold has been alarmed; the third bit is 0: no alarm for recommended threshold 1: recommended threshold has been alarmed; the fourth bit is 0: no alarm for grace period 1: grace period has been alarmed.

[0044] Through the above-mentioned embodiment, by adopting the alarm queue method, all alarm affairs of each quota domain can be managed, avoiding processing too many alarm affairs at the same time, preventing insufficient system resources or reduced processing capacity, thereby improving system stability. At the same time, this method of giving priority to historically generated alarm affairs ensures that alarm affairs of all quota domains can be processed in a timely manner, rather than just focusing on those quota domains with more alarm affairs, avoiding uneven distribution of system resources. At the same time, by giving priority to processing unfinished alarm affairs, system resources can be allocated more efficiently, ensuring that key alarms are processed in a timely manner, thereby improving system performance and stability.

[0045] Optionally, the quota domain alarm detection module is further used to: Whenever a detected alarm transaction is added to the alarm queue corresponding to the quota domain, the number of alarm entries in the alarm queue is updated; The sum of the number of alarm entries in all the alarm queues is determined. When the sum of the number of alarm entries is greater than the alarm entry threshold, the scanning of the multiple quota domains and the quota detection are stopped, and the quota alarm module is notified to start.

[0046] Specifically, Figure 2 As shown, in one embodiment, when scanning each quota domain, the quota domain alarm detection module sets a threshold value of the number of alarm entries and takes corresponding control measures in order to avoid processing too much alarm information and causing system burden.

[0047] Whenever the quota domain alarm detection module finds a new alarm transaction, it will add the alarm transaction to the alarm queue corresponding to the quota domain and update the number of alarm entries in the alarm queue, that is, record the number of alarm transactions stored in the current queue.

[0048] The quota domain alarm detection module continuously tracks the total number of alarm entries in all alarm queues, that is, the sum of the number of alarm transactions stored in the alarm queues of all quota domains.

[0049] When the quota domain alarm detection module finds that the total number of alarm entries stored in all alarm queues exceeds the preset alarm entry number threshold, it will immediately stop scanning and quota detection for all quota domains. After stopping scanning and detection, the quota domain alarm detection module will notify the quota alarm module to start the alarm processing process. The quota alarm module is responsible for processing the collected alarm information, such as sending alarm notifications, adjusting resource allocation strategies, etc.

[0050] Through the above-mentioned embodiment, by setting the threshold of the number of alarm items, the number of alarm transactions that the quota domain alarm system needs to detect can be effectively controlled, so as to avoid the degradation of system performance or insufficient resources due to the continuous detection of a large number of alarm transactions, thereby affecting the alarm processing process. Therefore, when the number of alarm transactions reaches the threshold, at this time, stopping the scanning and detection of the quota domain can save system resources, and these resources can be used to process the alarm information that has been collected, thereby improving the efficiency of alarm processing. It avoids continuous scanning and detection of alarms that have exceeded the threshold and may not be processed in time, prevents waste of system resources, and thus improves system performance and stability.

[0051] Figure 3 It is a flowchart of the execution process of a quota domain alarm fault processing module provided in an embodiment of the present application.

[0052] Optionally, the system further includes a quota domain alarm fault processing module, wherein: The quota domain alarm detection module is also used to store the detected alarm transactions in a disk; The quota domain alarm fault processing module is used to switch the quota alarm node to a primary node and a backup node through a quota alarm update thread when the quota alarm node corresponding to the quota alarm module is abnormal, and determine whether the quota alarm service in the switched quota alarm node is started for the first time; The quota domain alarm fault processing module is further used to read the alarm transaction from the disk when it is determined that the quota alarm service is started for the first time, and add the read alarm transaction to the alarm queue corresponding to the quota domain according to the corresponding relationship between the quota domain and the quota alarm processing unit, so that the quota alarm module can process the alarm transaction in the alarm queue after the quota alarm service is restored; The quota domain alarm fault processing module is further configured to notify the quota domain alarm detection module to start up when it is determined that the quota alarm service is not started for the first time.

[0053] Specifically, in one embodiment, Figure 1 As shown, the quota domain alarm system also includes a quota domain alarm fault processing module. Therefore, the system can also be used to handle the abnormal mechanism of the quota domain alarm node to ensure that even if the quota alarm node fails, the alarm affairs can still be effectively handled. The specific process is as follows: like Figure 2 As shown, during the detection of alarm transactions in the quota domain, the quota domain alarm detection module not only stores the alarm transactions in the alarm queue (cache), but also stores the detected alarm transactions to the disk according to the quota domain management unit to prevent the data loss of the detected alarm transactions.

[0054] During this process, the quota domain alarm detection module will continue to monitor the operating status of each quota alarm node. Figure 3 As shown, when a quota alarm node is found to be faulty, the quota domain alarm fault processing module will switch the primary and backup nodes of the quota alarm node through the quota alarm update thread, and switch the faulty quota alarm node to the backup quota alarm node. The quota alarm service is transferred from the faulty quota alarm node to the backup quota alarm node, and after the switch is completed, the quota domain alarm fault processing module will determine whether the quota alarm service in the switched quota alarm node is started for the first time. When the quota alarm service is started for the first time, it means that this is the first switch, and the alarm transaction previously stored on the disk needs to be restored. The quota domain alarm fault processing module will read the alarm transaction on the disk, and according to the correspondence between the quota domain and the quota alarm processing unit, the read alarm transaction will be added to the corresponding alarm queue. When the quota alarm service is not started for the first time, it means that the node switch has occurred. The quota domain alarm fault processing module will directly notify the quota domain alarm detection module to start, continue to scan and detect the quota domain, or determine whether to continue scanning and detecting or execute the alarm transaction processing process based on the alarm transaction entry number threshold.

[0055] Through the above embodiments, by storing the alarm transaction in the disk, even if the node failure causes the data loss of the alarm transaction, the data can be restored to a normal state through the recovery mechanism to ensure data integrity. It can ensure that the system can continue to operate normally and improve the fault tolerance of the system. At the same time, by judging whether the quota alarm service is started for the first time, the previously stored alarm information can be quickly restored, and new alarm transactions can continue to be processed, thereby improving processing efficiency. The entire fault handling process is automated and does not require manual intervention, which can reduce the occurrence of human errors, improve system reliability, and thus improve system stability and reliability.

[0056] Figure 4 This is a flowchart of an execution process of a quota alarm module provided in an embodiment of the present application.

[0057] Optionally, the path server includes a path server for a management-side path query service and a path server for a service-side path query service, wherein: The quota alarm module is used to scan the quota alarm processing units in sequence and determine whether the path query service corresponding to the quota alarm processing unit exists; The quota alarm module is also used to determine whether the management side path query service exists when it is determined that the path query service exists, and when the management side path query service exists, send a path query request to the path server through the path server of the management side path query service, and receive the path query result returned by the path server of the management side path query service; The quota alarm module is also used to send a path query request to the path server through the path server of the service side path query service when the management side path query service does not exist, and receive a path query result returned by the path server of the service side path query service.

[0058] Specifically, in one embodiment, the path server is divided into two types of path services: a path server for management side path query service and a path server for business side path query service. When processing alarm information, the quota alarm module needs to use the path server to query the path location where the alarm transaction occurs, and perform the next step of processing based on the query results.

[0059] Therefore, if Figure 4 As shown, the quota alarm module will periodically scan all quota alarm processing units one by one, and each quota alarm processing unit is responsible for processing the alarm affairs of a specific set of quota domains. For each quota alarm processing unit, after the scan is completed, the quota alarm module will determine whether there is a path query service for the quota alarm node corresponding to the quota alarm processing unit. The path query service is used to query network path information, such as IP address, routing information, file path, etc., in order to locate the location where the alarm event occurs.

[0060] When it is determined that the quota alarm processing unit has a path query service, the quota alarm module will further determine whether the service is a management-side path query service or a business-side path query service. The business-side path query service is usually used to query the path information of user services. In order to avoid interference with user services during alarms, it is necessary to give priority to the management-side path client.

[0061] Therefore, when there is a management-side path query service, the quota alarm module will send a path query request to the path server of the management-side path query service, and receive the path query result returned by the path server.

[0062] When there is no management-side path query service, or the management-side query service cannot provide the required information, the quota alarm module sends a path query request through the path server of the business-side path query service.

[0063] Regardless of the type of path query service, the quota alarm module will receive the path query results returned by the path server and perform further processing based on the path query results. For example, if the query results show that the alarm event occurred on a specific network device, the path information can be used to locate the fault, analyze the cause, etc.

[0064] Through the above embodiments, the path query service can be used to quickly locate the location where the alarm event occurs, reduce the troubleshooting time, and improve the efficiency of alarm processing. By querying accurate path information, more accurate alarm information can be provided, the reliability of alarm information can be enhanced, and users or administrators can be helped to analyze problems more effectively. At the same time, by distinguishing between management-side and business-side path query services, different query methods can be selected according to different needs to meet the needs of different scenarios. In order not to affect user business, the management-side path query service is preferred. It can help the quota alarm module to locate the location of the alarm event more accurately and efficiently, thereby improving the efficiency and reliability of alarm processing.

[0065] Optionally, the sending the path query request to the path server is specifically: The quota alarm module is further used to send a batch of path query requests to the path server according to a path query request number threshold, and after sending the batch of path query requests, determine whether the path query requests of all alarm transactions in the quota alarm processing unit have been sent; The quota alarm module is also used to send the next group of batches of path query requests to the path server according to the path query request number threshold after determining that the path query requests of all alarm transactions in the quota alarm processing unit have not been fully sent, until the path query requests of all alarm transactions in the quota alarm processing unit are fully sent.

[0066] Specifically, in one embodiment, Figure 4 As shown, when the quota alarm module sends a path query request to the path server, in order to improve efficiency and avoid excessive pressure on the path server, a batch processing strategy is adopted.

[0067] First, the quota alarm module pre-sets a path query request number threshold, which represents the maximum number of path query requests sent to the path server each time.

[0068] When the quota alarm module needs to query the path information of multiple alarm transactions, the quota alarm module groups the path query requests according to the path query request number threshold, and sends a group of path query requests each time until all path query requests are sent.

[0069] After sending a group of path query requests, the quota alarm module checks whether all alarm transactions in the current processing unit have sent path query requests. If all path query requests have been sent, it means that the path query process of all alarm transactions in multiple quota domains of the quota alarm processing unit has been completed.

[0070] When there are still some alarm transactions that have not sent path query requests, the quota alarm module will group the remaining path query requests of the alarm transactions according to the threshold again, and send the next group of path query requests to the path server until the path query requests of all alarm transactions are sent.

[0071] Through the above-mentioned embodiment, the method of sending path query requests in batches can reduce the number of times requests are sent to the path server, thereby improving the request processing efficiency. At the same time, by setting the path query request number threshold, the number of path query requests sent each time can be limited, thereby avoiding excessive pressure on the path server and preventing system performance from being reduced. In addition, by sending path query requests in groups, network bandwidth and computing resources can be allocated more reasonably, thereby improving the overall efficiency of the system. By controlling the number of requests sent each time, the processing time of a single request can be reduced, the request delay can be reduced, and the system response speed can be improved, thereby improving system performance and reliability.

[0072] Figure 5 This is a flowchart of an alarm information display process provided by an embodiment of the present application.

[0073] Optionally, the system further includes an interface alarm display module, wherein: The quota alarm module is also used to update the alarm information according to the path query result, and push the updated alarm information to the interface alarm display module, so that the updated alarm information can be displayed through the interface alarm display module; The quota alarm module is also used to determine whether all the alarm transactions of all quota domains in the quota alarm processing unit have been processed, and when it is determined that there are unprocessed alarm transactions, wait for the path server to send a path query result; The quota alarm module is further configured to delete the alarm transaction from the disk when it is determined that the alarm transactions of all quota domains in the quota alarm processing unit have been processed completely.

[0074] Specifically, Figure 5 As shown, in one embodiment, after processing the alarm transaction, the quota alarm module will also display the alarm information of the updated alarm transaction on the management interface through the interface alarm display module, and clear the processed alarm transaction.

[0075] When the quota alarm module receives the path query result of the path query service, it will update the corresponding alarm information according to the path query result, for example, adding the specific location of the alarm event, network equipment and other information to the alarm information.

[0076] The updated alarm information will be pushed by the quota alarm module to the interface alarm display module so that the user or administrator can view the updated alarm information through the management interface, wherein the management interface is set on the terminal device of the user or administrator.

[0077] At the same time, the quota alarm module will continue to monitor all quota domains in the current quota alarm processing unit to determine whether the alarm transactions of all quota domains have been processed. If there are unprocessed alarm transactions, the quota alarm module will wait for the path server to continue to send path query results to further update the alarm information and display the alarm information through the interface alarm display module.

[0078] When it is determined that all the alarm transactions of all quota domains of a quota alarm processing unit have been processed, the quota alarm module will delete these processed alarm transactions from the disk to avoid wasting disk space.

[0079] Through the above embodiment, the path query result is updated in real time to the alarm information, which can ensure that the alarm information seen by the user is the latest and contains more useful information. Through the interface display module, the user can easily view the latest alarm information, understand the system operation status, and improve the user experience. By clearing the processed alarm information, disk space can be saved and system efficiency can be improved. By clearing the processed alarm information, system crashes caused by insufficient disk space can be avoided, and system reliability can be improved, thereby improving system stability and reliability.

[0080] Optionally, in one embodiment, an alarm classification and priority management mechanism may be added. In addition to basic alarm information, alarms may be classified in detail according to alarm type, impact scope, severity, and other information, such as performance alarms, resource alarms, and security alarms. At the same time, different priorities are set for different types of alarms to help users quickly identify alarm events that need to be handled with priority.

[0081] Secondly, the alarm notification mechanism can be enriched. In addition to the interface display, multiple notification methods such as email, SMS, and WeChat can be added, and users can be allowed to customize notification rules, such as setting different notification methods for different types of alarms, setting different notification time intervals according to alarm priorities, etc., to ensure that key alarm information can be conveyed to relevant personnel in a timely and effective manner.

[0082] In addition, machine learning technology can be introduced to enhance the intelligence of the system. Machine learning models can be used to analyze historical alarm data, identify alarm patterns, automatically determine the severity of alarms, and recommend solutions. For some common faults, automatic repair mechanisms can be developed, such as automatically cleaning up useless files when insufficient disk space is found, and automatically trying to reconnect when a network connection is found to be interrupted, etc., to improve the system's self-healing ability.

[0083] Finally, the function of the path query service can be expanded to support multi-protocol and cross-platform queries, and integrate third-party services such as DNS query services and routing query services to obtain more comprehensive network path information. At the same time, data visualization technology can be used to display alarm information, path query results and other data in the form of charts, and provide visual analysis tools to help users understand the system status more intuitively, analyze the root causes of problems, and make more informed decisions.

[0084] Through the above embodiments, the quota alarm system can be built into a more powerful and intelligent alarm monitoring platform, which can help users find and solve problems more effectively, improve system stability and reliability, and ultimately enhance user experience.

[0085] Based on the same inventive concept, another embodiment of the present application further provides a quota domain alarm method. Figure 6 FIG. 1 is a flow chart of a quota domain alarm method provided by an embodiment of the present application. Figure 6 As shown, the method includes: Step S101, scanning multiple quota domains in the distributed file system in sequence, determining multiple quota alarm processing units corresponding to the multiple quota domains, each quota domain corresponding to a quota alarm processing unit; Step S102, performing quota detection on multiple quota domains, determining an alarm transaction in each quota alarm processing unit, wherein the alarm transaction includes alarm information of a quota domain that needs an alarm, and / or alarm information of a quota domain that needs to cancel an alarm; Step S103, sending a path query request to a path server according to the alarm information, and receiving a path query result returned by the path server; Step S104: Process the alarm transaction based on the path query result and the alarm information.

[0086] Optionally, the method further comprises: After determining the multiple quota alarm processing units corresponding to the multiple quota domains, judging whether there are unprocessed alarm transactions in the alarm queues corresponding to the quota domains in the quota alarm processing units; one alarm queue corresponding to each quota domain, each of the alarm queues is used to store the alarm transactions of the quota domain corresponding to the alarm queue; When it is determined that there are unprocessed alarm transactions in the alarm queue corresponding to the quota domain, skip the quota domain and scan the next quota domain; When it is determined that there is no unprocessed alarm transaction in the alarm queue corresponding to the quota domain, a quota check is performed on the quota domain, and it is determined whether the alarm transaction is detected, and the detected alarm transaction is added to the alarm queue corresponding to the quota domain.

[0087] Optionally, the method further comprises: Whenever a detected alarm transaction is added to the alarm queue corresponding to the quota domain, the number of alarm entries in the alarm queue is updated; The sum of the number of alarm entries in all the alarm queues is determined. When the sum of the number of alarm entries is greater than the alarm entry threshold, the scanning of the multiple quota domains and the quota detection are stopped, and the quota alarm module is notified to start.

[0088] Optionally, the method further comprises: Store the detected alarm transactions on disk; When the quota alarm node corresponding to the quota alarm module is abnormal, the quota alarm node is switched to a primary node and a backup node through the quota alarm update thread, and it is determined whether the quota alarm service in the switched quota alarm node is started for the first time; When it is determined that the quota alarm service is started for the first time, the alarm transaction is read from the disk, and according to the correspondence between the quota domain and the quota alarm processing unit, the read alarm transaction is added to the alarm queue corresponding to the quota domain, so that the quota alarm module processes the alarm transaction in the alarm queue after the quota alarm service is restored; When it is determined that the quota alarm service is not started for the first time, the quota domain alarm detection module is notified to start.

[0089] Optionally, the method further comprises: Scan the quota alarm processing units in sequence, and determine whether the path query service corresponding to the quota alarm processing units exists; When it is determined that the path query service exists, determining whether the management-side path query service exists, and when the management-side path query service exists, sending a path query request to the path server through the path server of the management-side path query service, and receiving a path query result returned by the path server of the management-side path query service; When the management-side path query service does not exist, a path query request is sent to the path server through the path server of the service-side path query service, and a path query result returned by the path server of the service-side path query service is received.

[0090] Optionally, the sending the path query request to the path server includes: Sending batches of path query requests to the path server according to a path query request number threshold, and after sending the batches of path query requests, determining whether the path query requests for all alarm transactions in the quota alarm processing unit have been sent; After determining that the path query requests for all alarm transactions in the quota alarm processing unit have not been completely sent, the next group of batches of path query requests are sent to the path server according to the path query request number threshold until the path query requests for all alarm transactions in the quota alarm processing unit are completely sent.

[0091] Optionally, the method further comprises: The alarm information is updated according to the path query result, and the updated alarm information is pushed to the interface alarm display module so that the updated alarm information is displayed through the interface alarm display module; Determine whether all the alarm transactions of all quota domains in the quota alarm processing unit have been processed completely, and when it is determined that there are unprocessed alarm transactions, wait for the path server to send a path query result; When it is determined that all the alarm transactions of all the quota domains in the quota alarm processing unit have been processed completely, the alarm transaction is deleted from the disk.

[0092] Based on the same inventive concept, another embodiment of the present application further provides a quota domain alarm device. Figure 7 is a schematic diagram of a quota domain alarm device provided by an embodiment of the present application, such as Figure 7 As shown, the device comprises: A first scanning module 11 is used to scan multiple quota domains in the distributed file system in sequence to determine multiple quota alarm processing units corresponding to the multiple quota domains, where each quota domain corresponds to a quota alarm processing unit; The determination module 12 is used to perform quota detection on multiple quota domains and determine the alarm affairs in each quota alarm processing unit, wherein the alarm affairs include the alarm information of the quota domains that need to be alarmed and / or the alarm information of the quota domains that need to cancel the alarm; A path query module 13, configured to send a path query request to a path server according to the alarm information, and receive a path query result returned by the path server; The processing module 14 processes the alarm transaction based on the path query result and the alarm information.

[0093] Optionally, the device further comprises: A judgment module, configured to, after determining the multiple quota alarm processing units corresponding to the multiple quota domains, judge whether there are unprocessed alarm transactions in the alarm queues corresponding to the quota domains in the quota alarm processing units; one alarm queue corresponding to each quota domain, each of the alarm queues being used to store the alarm transactions of the quota domain corresponding to the alarm queue; A second scanning module is used to skip the quota domain and scan the next quota domain when it is determined that there are unprocessed alarm transactions in the alarm queue corresponding to the quota domain; The detection module is used to perform quota detection on the quota domain when it is determined that there is no unprocessed alarm transaction in the alarm queue corresponding to the quota domain, and determine whether the alarm transaction is detected, and add the detected alarm transaction to the alarm queue corresponding to the quota domain.

[0094] Optionally, the device further comprises: An updating module, configured to update the number of alarm entries in the alarm queue whenever a detected alarm transaction is added to the alarm queue corresponding to the quota domain; The entry number judgment module is used to judge the total number of alarm entries in all alarm queues. When the total number of alarm entries is greater than the alarm entry number threshold, the scanning and quota detection of the multiple quota domains are stopped, and the quota alarm module is notified to start.

[0095] Optionally, the device further comprises: A storage module, used for storing the detected alarm transactions in a disk; A switching module, used to switch the quota alarm node to a primary or secondary node through a quota alarm update thread when the quota alarm node corresponding to the quota alarm module is abnormal, and determine whether the quota alarm service in the switched quota alarm node is started for the first time; A reading module, configured to read the alarm transaction from the disk when it is determined that the quota alarm service is started for the first time, and add the read alarm transaction to the alarm queue corresponding to the quota domain according to the correspondence between the quota domain and the quota alarm processing unit, so that the quota alarm module processes the alarm transaction in the alarm queue after the quota alarm service is restored; The notification module is used to notify the quota domain alarm detection module to start when it is determined that the quota alarm service is not started for the first time.

[0096] Optionally, the device further comprises: A path query service judgment module, used to scan the quota alarm processing unit in sequence and judge whether the path query service corresponding to the quota alarm processing unit exists; A first query module, configured to, when it is determined that the path query service exists, determine whether the management-side path query service exists, and when the management-side path query service exists, send a path query request to the path server through the path server of the management-side path query service, and receive a path query result returned by the path server of the management-side path query service; The second query module is used to send a path query request to the path server through the path server of the service side path query service when the management side path query service does not exist, and receive the path query result returned by the path server of the service side path query service.

[0097] Optionally, the device further comprises: A path query request judgment module, used to send a batch of path query requests to the path server according to a path query request number threshold, and after sending the batch of path query requests, determine whether the path query requests of all alarm transactions in the quota alarm processing unit have been sent; A secondary request module is used to send the next group of batches of path query requests to the path server according to the path query request number threshold after determining that the path query requests for all alarm transactions in the quota alarm processing unit have not been fully sent, until the path query requests for all alarm transactions in the quota alarm processing unit are fully sent.

[0098] Optionally, the device further comprises: An updating module, used for updating the alarm information according to the path query result, and pushing the updated alarm information to the interface alarm display module, so that the updated alarm information can be displayed through the interface alarm display module; A waiting module, used for judging whether all the alarm affairs of all quota domains in the quota alarm processing unit have been completely processed, and when it is determined that there are unprocessed alarm affairs, waiting for the path server to send the path query result; The deleting module is used to delete the alarm transaction from the disk when it is determined that the alarm transactions of all quota domains in the quota alarm processing unit have been processed completely.

[0099] Based on the same inventive concept, another embodiment of the present application further provides an electronic device, including a memory, a processor, and a computer program stored in the memory, wherein the processor executes the computer program to implement the quota domain alarm method as described in any of the above embodiments.

[0100] Among them, electronic equipment refers to Figure 8 , Figure 8 is a schematic diagram of an electronic device provided by an embodiment of the present application. Figure 8 As shown, the electronic device 800 includes: a memory 810 and a processor 820. The memory 810 and the processor 820 are connected via a bus communication. A computer program is stored in the memory 810. The computer program can be run on the processor 820 to implement the steps in the quota domain alarm method disclosed in the above embodiment of the present application.

[0101] Based on the same inventive concept, another embodiment of the present application further provides a computer program product, including a computer program, which is executed by a processor to perform the quota domain warning method as described in any of the above embodiments.

[0102] Based on the same inventive concept, another embodiment of the present application further provides a computer-readable storage medium on which a computer program is stored, wherein when the program is executed by a processor, the quota domain alarm method as described in any of the above embodiments is implemented.

[0103] As for the device, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0104] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.

[0105] Those skilled in the art will appreciate that the embodiments of the present application can be provided as methods, devices, or computer program products. Therefore, the present application can adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application can adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0106] The embodiments of the present application are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0107] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0108] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device so that a series of operating steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable terminal device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.

[0109] Although the preferred embodiments of the present application have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present application.

[0110] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "including a..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.

[0111] The above is a detailed introduction to a quota domain alarm system, method, device and medium provided by the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method and core idea of ​​the present application. At the same time, for general technical personnel in this field, according to the idea of ​​the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.< / alarmdata>

Claims

1. A quota domain alarm system, characterized in that: The system at least includes: a quota domain alarm detection module and a quota alarm module, wherein: The quota domain alarm detection module is used to scan multiple quota domains in the distributed file system in sequence, determine multiple quota alarm processing units corresponding to the multiple quota domains, and each quota domain corresponds to a quota alarm processing unit; The quota domain alarm detection module is further used to perform quota detection on multiple quota domains, and determine the alarm affairs in each quota alarm processing unit, wherein the alarm affairs include the alarm information of the quota domains that need to be alarmed, and / or the alarm information of the quota domains that need to cancel the alarm; The quota alarm module is used to send a path query request to the path server according to the alarm information, and receive the path query result returned by the path server; The quota alarm module is further used to process the alarm transaction based on the path query result and the alarm information.

2. The quota domain warning system according to claim 1, characterized in that: The quota domain alarm detection module is also used for: After determining the multiple quota alarm processing units corresponding to the multiple quota domains, judging whether there are unprocessed alarm transactions in the alarm queues corresponding to the quota domains in the quota alarm processing units; one alarm queue corresponding to each quota domain, each of the alarm queues is used to store the alarm transactions of the quota domain corresponding to the alarm queue; When it is determined that there are unprocessed alarm transactions in the alarm queue corresponding to the quota domain, skip the quota domain and scan the next quota domain; When it is determined that there is no unprocessed alarm transaction in the alarm queue corresponding to the quota domain, a quota check is performed on the quota domain, and it is determined whether the alarm transaction is detected, and the detected alarm transaction is added to the alarm queue corresponding to the quota domain.

3. The quota domain warning system according to claim 2, characterized in that: The quota domain alarm detection module is also used for: Whenever a detected alarm transaction is added to the alarm queue corresponding to the quota domain, the number of alarm entries in the alarm queue is updated; The sum of the number of alarm entries in all the alarm queues is determined. When the sum of the number of alarm entries is greater than the alarm entry threshold, the scanning of the multiple quota domains and the quota detection are stopped, and the quota alarm module is notified to start.

4. The quota domain warning system according to claim 2, characterized in that: The system also includes a quota domain alarm fault processing module, wherein: The quota domain alarm detection module is also used to store the detected alarm transactions in a disk; The quota domain alarm fault processing module is used to switch the quota alarm node to a primary node and a backup node through a quota alarm update thread when the quota alarm node corresponding to the quota alarm module is abnormal, and determine whether the quota alarm service in the switched quota alarm node is started for the first time; The quota domain alarm fault processing module is further used to read the alarm transaction from the disk when it is determined that the quota alarm service is started for the first time, and add the read alarm transaction to the alarm queue corresponding to the quota domain according to the corresponding relationship between the quota domain and the quota alarm processing unit, so that the quota alarm module can process the alarm transaction in the alarm queue after the quota alarm service is restored; The quota domain alarm fault processing module is further configured to notify the quota domain alarm detection module to start up when it is determined that the quota alarm service is not started for the first time.

5. The quota domain warning system according to claim 1, characterized in that: The path server includes a path server for a management-side path query service and a path server for a business-side path query service, wherein: The quota alarm module is used to scan the quota alarm processing units in sequence and determine whether the path query service corresponding to the quota alarm processing unit exists; The quota alarm module is also used to determine whether the management side path query service exists when it is determined that the path query service exists, and when the management side path query service exists, send a path query request to the path server through the path server of the management side path query service, and receive the path query result returned by the path server of the management side path query service; The quota alarm module is also used to send a path query request to the path server through the path server of the service side path query service when the management side path query service does not exist, and receive a path query result returned by the path server of the service side path query service.

6. The quota domain warning system according to claim 5, characterized in that: The sending of the path query request to the path server specifically comprises: The quota alarm module is further used to send a batch of path query requests to the path server according to a path query request number threshold, and after sending the batch of path query requests, determine whether the path query requests of all alarm transactions in the quota alarm processing unit have been sent; The quota alarm module is also used to send the next group of batches of path query requests to the path server according to the path query request number threshold after determining that the path query requests of all alarm transactions in the quota alarm processing unit have not been fully sent, until the path query requests of all alarm transactions in the quota alarm processing unit are fully sent.

7. The quota domain warning system according to claim 4, characterized in that: The system also includes an interface alarm display module, wherein: The quota alarm module is also used to update the alarm information according to the path query result, and push the updated alarm information to the interface alarm display module, so that the updated alarm information can be displayed through the interface alarm display module; The quota alarm module is also used to determine whether all the alarm transactions of all quota domains in the quota alarm processing unit have been processed, and when it is determined that there are unprocessed alarm transactions, wait for the path server to send a path query result; The quota alarm module is further configured to delete the alarm transaction from the disk when it is determined that the alarm transactions of all quota domains in the quota alarm processing unit have been processed completely.

8. A quota domain alarm method, characterized in that: The method comprises: Scanning multiple quota domains in the distributed file system in sequence, determining multiple quota alarm processing units corresponding to the multiple quota domains, each quota domain corresponding to a quota alarm processing unit; Performing quota detection on multiple quota domains, determining an alarm transaction in each quota alarm processing unit, wherein the alarm transaction includes alarm information of a quota domain that needs an alarm, and / or alarm information of a quota domain that needs to cancel an alarm; Sending a path query request to a path server according to the alarm information, and receiving a path query result returned by the path server; Based on the path query result and the alarm information, the alarm transaction is processed.

9. An electronic device, characterized in that: The system comprises a memory, a processor and a computer program stored in the memory, wherein the processor executes the computer program to implement the quota domain warning method as claimed in claim 8.

10. A computer-readable storage medium, characterized in that: A computer program is stored thereon, wherein when the computer program is executed by a processor, the quota domain warning method as claimed in claim 8 is implemented.

Citation Information

Patent Citations

  • Disk quota management system and method for distributed file system

    CN106326013A

  • Disk monitoring and alarming method, system and device, and computer storage medium

    CN108763026A

  • Quota warning method and device for distributed file storage system

    CN110175103A

  • Distributed file system directory quota method, system and device and storage medium

    CN110674102A

  • Multi-client high-precision directory quota control method for distributed file system

    CN117520278A