A method and controller for controlling access system based on power-off delay protection

By real-time monitoring of the system key performance indicators and power status and dynamically adjusting the load threshold, the access system control method solves the performance degradation caused by power instability and improves the stability and reliability of the system.

CN118625911BActive Publication Date: 2025-05-06BOWEN ELECTRICAL EQUIP (SUZHOU) CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202410768654.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-14
Publication Date
2025-05-06
Estimated Expiration
2044-06-14

AI Technical Summary

Technical Problem

In the prior art, due to the dependence on a single battery backup power supply, the performance of the access system deteriorates when facing power supply instability and is not high in reliability.

Method used

The access system control method based on power-down delay protection is adopted to monitor the system's key performance indicators in real time, such as processor usage, memory usage, disk read and write rate and network traffic, and determine whether to start the backup power supply based on the real-time voltage, calculate the system load coefficient, distinguish high load types, and dynamically adjust the load threshold.

Benefits of technology

It effectively prevents service interruptions caused by power fluctuations, optimizes resource allocation, improves the system's response ability to different load conditions, enhances the system's stability and reliability, and reduces performance bottlenecks or resource waste caused by inaccurate load assessment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118625911B_ABST
    Figure CN118625911B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of energy efficiency technology, and in particular to an access system control method and controller based on power-off delay protection, including: collecting real-time data of the access system; performing power-off detection and determination and calculating the system load factor, and determining the degree of load according to the system load factor and a preset load threshold, and determining the load type of high load; and adjusting the load threshold according to feedback. The present invention effectively prevents service interruptions caused by power fluctuations by real-time monitoring of key system performance indicators and intelligently determining the power supply status. At the same time, by dynamically calculating the system load factor and adaptively adjusting the load threshold, resource allocation is optimized, the system's responsiveness to different load conditions is improved, and the system's stability and reliability are enhanced. In addition, the method also reduces performance bottlenecks or resource waste caused by inaccurate load assessment, and improves overall system efficiency and performance.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of energy efficiency, and in particular to an access system control method and a controller based on power-off delay protection. Background Art

[0002] In today's rapidly developing information technology environment, the stability and reliability of key information systems have become extremely important. Faced with potential risks such as unstable power supply and system load fluctuations, designing an access system controller that can monitor power status in real time, evaluate system load, and intelligently adjust operation strategies is of great significance for ensuring the continuity of key services, data integrity, and improving the performance and efficiency of the overall system. The introduction of this controller meets the current growing demand for high-availability systems, especially in areas such as data centers, financial services, online transactions, and cloud computing that require extremely high system stability.

[0003] The patent document with publication number CN101719012A discloses a power-off protection device and a power-off protection method, the device includes: a management channel interface unit, a power channel interface unit, a control unit and a battery; the management channel interface unit is connected to the power-off protection target system through an expansion slot interface, and is used to forward management signals to the power-off protection target system, and forward management signals sent by the power-off protection target system; the power channel interface unit is used to realize the power exchange between the battery and the power-off protection target system; the control unit is used to send management signals to the power-off protection target system through the management interface unit, and receive management signals sent by the power-off protection target system, and control the power exchange between the power channel interface unit and the power-off protection target system. The device relies on the battery as a backup power source, and the performance and life of the battery will become a vulnerable link of the system. Summary of the invention

[0004] To this end, the present invention provides an access system control method and controller based on power-off delay protection to overcome the problem in the prior art that the access system performance degrades when facing power instability due to low reliability caused by reliance on a single battery backup power supply.

[0005] To achieve the above object, the present invention provides an access system control method based on power-off delay protection, comprising:

[0006] Step S1, collecting the real-time processor usage rate, real-time memory usage rate, real-time disk read and write rate, real-time network traffic and real-time voltage of the access system;

[0007] Step S2, judging whether to start the backup power supply according to the real-time voltage and the preset power-off threshold, calculating the system load factor during the power-off detection period, and determining the current high-load load type according to the system load factor and the load threshold;

[0008] The step S2 comprises:

[0009] Step S2.1, judging whether it is necessary to start the backup power supply and perform power failure detection according to the real-time voltage and the preset power failure threshold value, and when performing power failure detection, calculating the system load factor according to the real-time processor usage, the standard processor usage range, the real-time memory usage, the standard memory usage range, the real-time disk read / write rate, the standard disk read / write rate range, the real-time network traffic, and the standard network traffic range;

[0010] Step S2.2, determining the load type of the high load according to the calculated system load factor and load threshold;

[0011] Step S2.3, judging whether it is a short-term high load according to the high load time and the preset short-term high load time threshold, when it is determined that the load type is not a short-term high load, judging whether the load type of the high load is a long-term high load according to the change rate of the system load factor during the high load time and the change rate threshold;

[0012] Step S3, when the load type of the high load is determined to be a long-term high load, the difference between the high load time and the preset short-term high load time threshold is calculated, and the difference is compared with the preset difference threshold to determine whether the load threshold needs to be adjusted. When it is determined that the load threshold needs to be adjusted, the load threshold is adjusted according to the difference between the calculated high load time and the preset short-term high load time threshold and the difference threshold.

[0013] Furthermore, when power failure detection is started, the system load factor is calculated according to the real-time processor usage, the standard processor usage range, the real-time memory usage, the standard memory usage range, the real-time disk read / write rate, the standard disk read / write rate range, the real-time network traffic, and the standard network traffic range.

[0014]

[0015] Among them, S is the system load factor, w1 is the processor usage weight coefficient, A is the real-time processor usage, Amin is the minimum value of the standard processor usage range, Amax is the maximum value of the standard processor usage range, w2 is the memory usage weight coefficient, B is the real-time memory usage, Bmin is the minimum value of the standard memory usage range, Bmax is the maximum value of the standard memory usage range, w3 is the disk read and write rate weight coefficient, C is the real-time disk read and write rate, Cmin is the minimum value of the standard disk read and write rate range, Cmax is the maximum value of the standard disk read and write rate range, w4 is the network traffic weight coefficient, D is the real-time network traffic, Dmin is the minimum value of the standard network traffic range, and Dmax is the maximum value of the standard network traffic range.

[0016] Furthermore, by comparing the calculated system load factor with the load threshold,

[0017] If the system load factor is greater than the load threshold, it is determined to be high load, and the load type of the high load is detected.

[0018] Furthermore, the high load time is compared with a preset short-term high load time threshold to determine whether it is a short-term high load.

[0019] If the high load time is less than or equal to the short-term high load time threshold, the load type of the high load is determined to be short-term high load, and the leaky bucket algorithm is used to control the number of requests entering the system.

[0020] Furthermore, the change rate of the system load factor during the high load period is compared with the change rate threshold.

[0021] If the rate of change is greater than the rate of change threshold, the load type of the high load is determined to be an abnormal load, and an alarm is issued;

[0022] If the change rate is less than or equal to the change rate threshold, the load type of the high load is determined to be a long-term high load.

[0023] Further, when it is determined that the load type of the high load is a long-term high load, the difference between the high load time and a preset short-term high load time threshold is calculated.

[0024] Furthermore, the difference is compared with a preset difference threshold to determine whether the load threshold needs to be adjusted.

[0025] If the difference is greater than a preset difference threshold, it is determined that the load threshold needs to be adjusted.

[0026] Further, the load threshold is adjusted according to the difference between the calculated high load time and the preset short-term high load time threshold and the difference threshold.

[0027] S'=S×(1+k×ΔT / T0),

[0028] Wherein, S' is the adjusted load threshold, S is the load threshold, k is the load threshold adjustment coefficient, ΔT is the difference, and T0 is the difference threshold.

[0029] Furthermore, by comparing the real-time voltage with the preset power-off threshold,

[0030] If the real-time voltage is less than the power-off threshold, it is determined that a power-off situation has occurred, the backup power supply is started, and power-off detection is performed.

[0031] An access system controller based on power-off delay protection, based on the above-mentioned access system control method based on power-off delay protection, is characterized by comprising:

[0032] Data collection module, used to collect the real-time processor usage rate, real-time memory usage rate, real-time disk read and write rate, real-time network traffic and real-time voltage of the access system;

[0033] A power failure detection module, connected to the data acquisition module, for determining whether to start a backup power supply and perform power failure detection according to the real-time voltage and a preset power failure threshold;

[0034] a calculation and judgment module, connected to the data acquisition module and the power-off detection module respectively, for calculating the system load factor according to the real-time processor usage rate, the standard processor usage rate range, the real-time memory usage rate, the standard memory usage rate range, the real-time disk read / write rate, the standard disk read / write rate range, the real-time network traffic, and the standard network traffic range when performing power-off detection, and judging the load type of the high load according to the calculated system load factor and the load threshold, and judging whether it is a short-term high load according to the high load time and a preset long-term high load time threshold, and when it is determined that the load type is not a short-term high load, judging whether the load type of the high load is a long-term high load according to the change rate of the system load factor within the high load time and the change rate threshold;

[0035] A feedback calculation module is connected to the calculation judgment module, and is used to calculate the difference between the high load time and the preset short-term high load time threshold when the load type of the high load is determined to be a long-term high load, and compare the difference with the preset difference threshold to determine whether the load threshold needs to be adjusted, and when it is determined that the load threshold needs to be adjusted, adjust the load threshold according to the difference between the calculated high load time and the preset short-term high load time threshold and the difference threshold.

[0036] Compared with the prior art, the beneficial effect of the present invention is that, by real-time monitoring of key performance indicators of the system and intelligently judging the power supply status, service interruptions caused by power supply fluctuations are effectively prevented. At the same time, by dynamically calculating the system load factor and adaptively adjusting the load threshold, resource allocation is optimized, the system's responsiveness to different load conditions is improved, and the system's stability and reliability are enhanced. In addition, the method also reduces performance bottlenecks or resource waste caused by inaccurate load assessment, thereby improving the overall system efficiency and performance.

[0037] Furthermore, by real-time monitoring and calculation of the system load factor, system managers can better understand the current load status and take appropriate measures, such as load balancing or resource expansion. In addition, this method improves the system's adaptability and optimizes resource allocation by dynamically adjusting the load threshold to adapt to the actual workload, ensuring efficient and stable operation of the system.

[0038] Furthermore, by calculating the system load factor in real time and comparing it with the preset threshold, the system can promptly identify the high load state and accurately determine the load type based on the load duration and change rate. This not only improves the system's response speed and processing capacity, but also optimizes resource allocation by dynamically adjusting the load threshold, enhancing the system's adaptability to different load conditions.

[0039] Furthermore, by using the leaky bucket algorithm, the system can smoothly process the request flow and avoid system crashes or sharp performance drops caused by sudden high-concurrency requests. The advantage of this method lies in its simplicity and effectiveness. The leaky bucket algorithm provides a stable processing rate for the system by limiting the inflow rate of requests, thereby protecting the system from instantaneous high loads. At the same time, this method also provides users with a more stable quality of service, because even under high load conditions, the system can continue to process requests, but the processing speed will be reduced instead of completely denying service.

[0040] Furthermore, for abnormal loads, timely alarms can quickly attract attention, prompting system administrators to investigate the cause and take measures to prevent potential system failures or performance degradation. The sensitivity and timeliness of this approach are crucial to preventing system overload and maintaining service continuity. At the same time, for the identification of long-term high loads, the system can take more moderate measures, such as gradually increasing resource allocation or optimizing service processes, rather than taking drastic protective measures immediately. This detailed distinction and corresponding processing strategy help improve the overall performance and stability of the system and ensure that reasonable service quality can be provided under different circumstances.

[0041] Furthermore, by calculating the difference, the system can identify whether the current load threshold is too strict or too loose, and make appropriate adjustments. This adaptive adjustment mechanism enables the system to respond to different workload patterns more flexibly, optimize resource allocation, and improve the overall performance and stability of the system. In addition, dynamically adjusting the load threshold helps reduce misjudgments caused by improper threshold settings, for example, avoiding erroneous triggering of alarms or taking unnecessary resource expansion measures when the system can actually withstand a higher load. At the same time, it also ensures that when the system really needs additional resources to maintain performance, it can be expanded in a timely manner, thereby improving system reliability and user satisfaction.

[0042] Furthermore, by comparing the difference and the difference threshold, the system can automatically detect and respond to whether the load threshold is appropriate under long-term high load conditions. If the difference is large, it indicates that the current threshold may be too low, and the system needs to increase the load threshold to adapt to the actual load situation to avoid frequent triggering of unnecessary alarms or resource adjustments due to too low a threshold. This dynamic adjustment helps the system more accurately reflect the actual load demand, reduce misjudgments, and improve the stability and reliability of the system.

[0043] Furthermore, by accurately calculating and adjusting the load threshold, the system can avoid resource waste or insufficient response caused by fixed thresholds. When the actual load duration exceeds the preset short-term threshold, appropriately increasing the load threshold can reduce unnecessary alarms and resource expansion, thereby optimizing resource usage and reducing operating costs.

[0044] Furthermore, by continuously monitoring the real-time voltage and comparing it with the preset power-off threshold, the control method can quickly identify potential power-off risks when the voltage drops to a dangerous level. Once the real-time voltage is detected to be lower than the set threshold, the system automatically triggers the start-up of the backup power supply and enters the power-off detection state to ensure the continuity of critical operations. This preventive measure significantly improves the reliability and stability of the system, ensures the integrity of data and the continuous availability of critical services in the event of a main power outage, and reduces potential business interruptions and related economic losses caused by power problems. In addition, the automatic detection and response mechanism also reduces the reliance on manual intervention, improving the system's automation level and operation and maintenance efficiency.

[0045] Furthermore, the data acquisition module is responsible for collecting the key performance indicators of the system in real time, the power failure detection module uses this data to determine whether to trigger the backup power supply, and the calculation judgment module further analyzes the system load and distinguishes between short-term and long-term high load states. When a long-term high load is detected, the feedback calculation module intervenes and adjusts the load threshold to adapt to the current operating needs of the system. This process not only improves the system's adaptability and resistance to power fluctuations, but also optimizes system performance through dynamic threshold adjustment, ensuring the continuity and stability of key services. The beneficial effect is that it can reduce service interruptions caused by power problems, protect key data from loss, and improve the overall efficiency and reliability of the system through intelligent load management, ultimately reducing operating costs and improving user satisfaction. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] Figure 1 is a flow chart of the access system control method based on power-off delay protection in this embodiment;

[0047] Figure 2 This is a logic diagram for determining whether the load is high in this embodiment;

[0048] Figure 3 This is a logic diagram for determining whether it is a short-term high load in this embodiment;

[0049] Figure 4 This is a decision logic diagram for determining a load type that is not a short-term high load in this embodiment. DETAILED DESCRIPTION

[0050] In order to make the objects and advantages of the present invention more clearly understood, the present invention is further described below in conjunction with embodiments; it should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.

[0051] The preferred embodiments of the present invention are described below with reference to the accompanying drawings. It should be understood by those skilled in the art that these embodiments are only used to explain the technical principles of the present invention and are not intended to limit the protection scope of the present invention.

[0052] It should be noted that, in the description of the present invention, terms such as "up", "down", "left", "right", "inside" and "outside" indicating directions or positional relationships are based on the directions or positional relationships shown in the drawings. This is merely for the convenience of description and does not indicate or imply that the device or element must have a specific orientation, be constructed and operated in a specific orientation. Therefore, it cannot be understood as a limitation on the present invention.

[0053] In addition, it should be noted that in the description of the present invention, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two components. For those skilled in the art, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0054] See also Figure 1 As shown, it is a flow chart of the access system control method based on power-off delay protection in this embodiment;

[0055] This embodiment provides an access system control method based on power-off delay protection, including:

[0056] Step S1, collecting the real-time processor usage rate, real-time memory usage rate, real-time disk read and write rate, real-time network traffic and real-time voltage of the access system;

[0057] Step S2, judging whether to start the backup power supply according to the real-time voltage and the preset power-off threshold, calculating the system load factor during the power-off detection period, and determining the current high-load load type according to the system load factor and the load threshold;

[0058] The step S2 comprises:

[0059] Step S2.1, judging whether it is necessary to start the backup power supply and perform power failure detection according to the real-time voltage and the preset power failure threshold value, and when performing power failure detection, calculating the system load factor according to the real-time processor usage, the standard processor usage range, the real-time memory usage, the standard memory usage range, the real-time disk read / write rate, the standard disk read / write rate range, the real-time network traffic, and the standard network traffic range;

[0060] Step S2.2, determining the load type of the high load according to the calculated system load factor and load threshold;

[0061] Step S2.3, judging whether it is a short-term high load according to the high load time and the preset short-term high load time threshold, when it is determined that the load type is not a short-term high load, judging whether the load type of the high load is a long-term high load according to the change rate of the system load factor during the high load time and the change rate threshold;

[0062] Step S3, when the load type of the high load is determined to be a long-term high load, the difference between the high load time and the preset short-term high load time threshold is calculated, and the difference is compared with the preset difference threshold to determine whether the load threshold needs to be adjusted. When it is determined that the load threshold needs to be adjusted, the load threshold is adjusted according to the difference between the calculated high load time and the preset short-term high load time threshold and the difference threshold.

[0063] Prevent and respond to potential power issues by continuously monitoring the system's key performance indicators. When the real-time voltage is lower than the preset power-off threshold, the system automatically starts the backup power supply and performs power-off detection. During the power-off detection process, the system calculates the load factor, evaluates the current load status, and distinguishes between short-term high load and long-term high load. If a long-term high load is detected, the system will calculate the difference between the actual high load duration and the preset short-term high load time threshold, and then intelligently adjust the load threshold based on the comparison result of the difference with the preset difference threshold to more accurately reflect the actual load capacity of the system and optimize resource allocation.

[0064] By real-time monitoring of key system performance indicators and intelligent judgment of power supply status, service interruptions caused by power supply fluctuations can be effectively prevented. At the same time, by dynamically calculating the system load factor and adaptively adjusting the load threshold, resource allocation is optimized, the system's responsiveness to different load conditions is improved, and the system's stability and reliability are enhanced. In addition, this method also reduces performance bottlenecks or resource waste caused by inaccurate load assessment, thereby improving overall system efficiency and performance.

[0065] The power-off threshold refers to the voltage threshold at which the system determines that a power-off may occur when the system voltage drops below a certain level. It depends on the stability of the power supply, the sensitivity of the system, and the acceptable range of voltage fluctuations. It is generally set to 70-80% of the normal operating voltage. In this embodiment, it is set to 75% of the normal operating voltage. By starting the backup power supply before the voltage drops too low, the interruption of critical tasks can be avoided and the system can be protected from the impact of unstable power supply.

[0066] The short-term high load time threshold refers to the length of time that the system determines as short-term high load when the system load factor exceeds the load threshold and lasts for a period of time. It depends on the system's normal response time and ability to handle high loads. It is generally set to 3-5 minutes. In this embodiment, it is set to 3 minutes, which can identify instantaneous load increases and avoid overreacting to short-term, normal load fluctuations.

[0067] The change rate threshold refers to the rate of change of the system load factor within a unit time. When the change rate exceeds this threshold, the system determines that it is an abnormal load. It depends on the system's dynamic response capability and adaptability to rapidly changing loads. It is generally set to the maximum change rate of the system load factor, such as 3-5% per minute. In this embodiment, it is set to 3% per minute. It can quickly identify potential system problems or failures and take timely measures, such as load balancing or resource expansion, to prevent system overload.

[0068] The difference threshold refers to the difference between the actual high load duration and the short-term high load time threshold under long-term high load conditions. It is used to determine whether the load threshold needs to be adjusted. It depends on the long-term operation stability and resource optimization requirements of the system. It is generally set to 50% of the short-term high load time threshold, that is, 1.5-2.5 minutes. This embodiment is set to 2 minutes, which allows the system to self-adjust the load threshold according to the actual load duration, optimize resource allocation, and improve the performance and stability of the system under continuous load.

[0069] Specifically, when power failure detection is enabled, the system load factor is calculated based on the real-time processor usage, the standard processor usage range, the real-time memory usage, the standard memory usage range, the real-time disk read / write rate, the standard disk read / write rate range, the real-time network traffic, and the standard network traffic range.

[0070]

[0071] Among them, S is the system load factor, w1 is the processor usage weight coefficient, A is the real-time processor usage, Amin is the minimum value of the standard processor usage range, Amax is the maximum value of the standard processor usage range, w2 is the memory usage weight coefficient, B is the real-time memory usage, Bmin is the minimum value of the standard memory usage range, Bmax is the maximum value of the standard memory usage range, w3 is the disk read and write rate weight coefficient, C is the real-time disk read and write rate, Cmin is the minimum value of the standard disk read and write rate range, Cmax is the maximum value of the standard disk read and write rate range, w4 is the network traffic weight coefficient, D is the real-time network traffic, Dmin is the minimum value of the standard network traffic range, and Dmax is the maximum value of the standard network traffic range.

[0072] When the system detects a possible power failure and initiates power failure detection, the calculation of the system load factor takes into account multiple key performance indicators: real-time processor utilization, memory utilization, disk read and write rates, and network traffic. The real-time values ​​of these indicators are combined with their respective standard ranges and the corresponding weight coefficients are applied to calculate a comprehensive system load factor S. This coefficient provides a quantitative representation of the current operating status of the system, which can be compared with the preset load threshold to determine whether the system is in a high load state and further identify the load type, such as short-term high load or long-term high load.

[0073] By real-time monitoring and calculation of system load factors, system managers can better understand the current load conditions and take appropriate measures, such as load balancing or resource expansion. In addition, this method improves the system's adaptability and optimizes resource allocation by dynamically adjusting the load threshold to adapt to the actual workload, ensuring efficient and stable operation of the system.

[0074] The standard processor usage range refers to the safe and recommended range of processor usage when the system is operating normally. It depends on the performance of the processor and the typical workload of the system. It is generally set between 50% and 90%. In this embodiment, it is set to 60% to 85%, which can ensure that the processor has sufficient resources to handle sudden tasks while avoiding long-term overload.

[0075] The standard memory usage range refers to the safe and recommended range of memory usage when the system is operating normally. It depends on the memory capacity of the system and the typical requirements of memory-intensive applications. It is generally set between 50% and 90%. In this embodiment, it is set to 55% to 85%, which can maintain sufficient memory space to quickly respond to new tasks while effectively utilizing memory resources.

[0076] The standard disk read and write rate range refers to the recommended rate range for disk read and write operations when the system is operating normally.

[0077] It depends on the performance of the disk and the I / O requirements of the system. It is generally set to 30% to 70% of the maximum disk throughput. In this embodiment, it is set to 35% to 65%, which can ensure that the disk I / O operation is in the efficient range and avoid becoming a system bottleneck.

[0078] The standard network traffic range refers to the safe and recommended range of network traffic when the system is operating normally. It depends on the network bandwidth and the network communication requirements of the system. It is generally set to 20% to 80% of the network bandwidth. In this embodiment, it is set to 20% to 80%, which can ensure that the network traffic is within an acceptable range and avoid network congestion and packet loss.

[0079] The processor usage weight coefficient is the relative importance given to the processor usage when calculating the system load factor. It depends on the system's workload characteristics and the performance of the processor. It is generally set between 0.1 and 0.5. In this embodiment, it is set to 0.25, which can reflect the contribution of the processor usage to the system load factor. It is particularly important for CPU-intensive tasks.

[0080] The memory usage weight coefficient is the relative importance given to the memory usage when calculating the system load factor. It depends on the system's dependence on memory and is generally set between 0.1 and 0.3. In this embodiment, it is set to 0.15, which can ensure that memory usage is properly considered for memory-intensive applications.

[0081] The disk read / write rate weight coefficient is the relative importance given to the disk read / write rate when calculating the system load factor. It depends on the proportion of the system's I / O intensive tasks and is generally set between 0.05 and 0.2. In this embodiment, it is set to 0.1. For I / O intensive systems, it can ensure that the disk performance has a significant impact on the load factor.

[0082] The network traffic weight coefficient is the relative importance given to network traffic when calculating the system load factor. It depends on the system's network dependence and the type of network application. It is generally set between 0.05 and 0.15. In this embodiment, it is set to 0.08. For systems that require a large amount of network communication, it can ensure that the network traffic has an appropriate contribution to the load factor.

[0083] Please continue reading Figure 2 As shown, it is a decision logic diagram for determining whether it is a high load in this embodiment;

[0084] Specifically, by comparing the calculated system load factor and load threshold,

[0085] If the system load factor is greater than the load threshold, it is determined to be high load, and the load type of the high load is detected.

[0086] During the system monitoring process, the system calculates the current system load factor by integrating key performance indicators such as real-time processor usage, memory usage, disk read and write rates, and network traffic. This factor is compared with the preset load threshold. If the system load factor exceeds the set threshold, the system determines that it is in a high load state. Subsequently, the system further analyzes the duration and change rate of the high load to determine the load type, which helps to identify whether it is a short-term peak load or a long-term continuous high load, thereby providing a decision basis for subsequent resource allocation and load management.

[0087] By calculating the system load factor in real time and comparing it with the preset threshold, the system can promptly identify high load conditions and accurately determine the load type based on the duration and rate of change of the load. This not only improves the system's response speed and processing capabilities, but also optimizes resource allocation by dynamically adjusting the load threshold, enhancing the system's adaptability to different load conditions.

[0088] Please continue reading Figure 3 As shown, it is a determination logic diagram of whether it is a short-term high load in this embodiment;

[0089] Specifically, the high load time is compared with the preset short-term high load time threshold to determine whether it is a short-term high load.

[0090] If the high load time is less than or equal to the short-term high load time threshold, the load type of the high load is determined to be short-term high load, and the leaky bucket algorithm is used to control the number of requests entering the system.

[0091] The load type is determined by comparing the duration of the current high load with the preset short-term high load time threshold. If the duration of the high load state does not exceed the preset time threshold, the system determines this high load state as short-term high load. In this case, the system will start the leaky bucket algorithm to control the number of new requests entering the system to reduce the system's immediate load and prevent system overload.

[0092] By using the leaky bucket algorithm, the system can smoothly process the request flow and avoid system crashes or sharp performance drops caused by sudden high-concurrency requests. The advantage of this method lies in its simplicity and effectiveness. The leaky bucket algorithm provides a stable processing rate for the system by limiting the inflow rate of requests, thereby protecting the system from instantaneous high loads. At the same time, this method also provides users with a more stable quality of service, because even under high load conditions, the system can continue to process requests, but the processing speed will be reduced instead of completely denying service.

[0093] Please continue reading Figure 4 As shown, it is a determination logic diagram of the load type of non-short-term high load in this embodiment;

[0094] Specifically, the change rate of the system load factor during the high load period is compared with the change rate threshold.

[0095] If the rate of change is greater than the rate of change threshold, the load type of the high load is determined to be an abnormal load, and an alarm is issued;

[0096] If the change rate is less than or equal to the change rate threshold, the load type of the high load is determined to be a long-term high load.

[0097] The system measures the speed at which the system load factor changes during the high load period, i.e., the rate of change, and compares it with the preset rate of change threshold. If the rate of change of the system load factor exceeds the set threshold, this indicates that the load changes abnormally quickly, which may be caused by some unexpected events or system failures. The system determines this situation as abnormal load and triggers the alarm mechanism. On the contrary, if the rate of change remains within the threshold, the system believes that the high load state is formed by a slow increase and is determined to be a long-term high load.

[0098] For abnormal loads, timely alarms can quickly attract attention, prompting system administrators to investigate the cause and take measures to prevent potential system failures or performance degradation. The sensitivity and timeliness of this approach are crucial to preventing system overloads and maintaining service continuity. At the same time, for the identification of long-term high loads, the system can take more moderate measures, such as gradually increasing resource allocation or optimizing service processes, rather than taking drastic protective measures immediately. This detailed distinction and corresponding processing strategy help improve the overall performance and stability of the system and ensure that reasonable service quality can be provided in different situations.

[0099] Specifically, when it is determined that the load type of the high load is a long-term high load, the difference between the high load time and a preset short-term high load time threshold is calculated.

[0100] When the system determines that a long-term high load condition has occurred, the difference between the actual high load duration and the short-term high load time threshold preset by the system is calculated. This step involves counting from the time point recorded when the high load condition began to the current moment or the moment when the high load condition ends. The calculated difference is then used to compare with the preset difference threshold to determine whether the system's load threshold needs to be adjusted.

[0101] By calculating the difference, the system can identify whether the current load threshold is too strict or too loose, and make appropriate adjustments. This adaptive adjustment mechanism enables the system to respond to different workload patterns more flexibly, optimize resource allocation, and improve the overall performance and stability of the system. In addition, dynamically adjusting the load threshold helps reduce misjudgments caused by improper threshold settings, for example, avoiding erroneous triggering of alarms or taking unnecessary resource expansion measures when the system can actually withstand a higher load. At the same time, it also ensures that when the system really needs additional resources to maintain performance, it can be expanded in a timely manner, thereby improving system reliability and user satisfaction.

[0102] Specifically, the difference is compared with a preset difference threshold to determine whether the load threshold needs to be adjusted.

[0103] If the difference is greater than a preset difference threshold, it is determined that the load threshold needs to be adjusted.

[0104] After determining that the system is in a long-term high load state, the difference between the actual high load duration and the preset short-term high load time threshold is calculated and compared with the difference threshold set by the system. If the actual difference exceeds the preset difference threshold, the system will determine that the current load threshold setting is not suitable for the current workload, and the load threshold needs to be adjusted.

[0105] By comparing the difference and the difference threshold, the system can automatically detect and respond to whether the load threshold is appropriate under long-term high load conditions. If the difference is large, it indicates that the current threshold may be too low, and the system needs to increase the load threshold to adapt to the actual load situation to avoid frequent triggering of unnecessary alarms or resource adjustments due to too low thresholds. This dynamic adjustment helps the system more accurately reflect the actual load demand, reduce misjudgments, and improve the stability and reliability of the system.

[0106] Specifically, the load threshold is adjusted according to the difference between the calculated high load time and the preset short-term high load time threshold and the difference threshold.

[0107] S'=S×(1+k×ΔT / T0),

[0108] Wherein, S' is the adjusted load threshold, S is the load threshold, k is the load threshold adjustment coefficient, ΔT is the difference, and T0 is the difference threshold.

[0109] After the system identifies a long-term high-load state and calculates the difference ΔT between the high-load duration and the short-term high-load time threshold, the system adjusts the current load threshold S based on this difference and the preset difference threshold T0. The adjustment process follows a specific calculation formula, that is, the new load threshold S' is equal to the original load threshold multiplied by an adjustment coefficient. In this way, the system can dynamically adjust the load threshold to more accurately adapt to the current workload.

[0110] By accurately calculating and adjusting the load threshold, the system can avoid resource waste or insufficient response caused by fixed thresholds. When the actual load duration exceeds the preset short-term threshold, appropriately increasing the load threshold can reduce unnecessary alarms and resource expansion, thereby optimizing resource usage and reducing operating costs.

[0111] The load threshold adjustment coefficient is a parameter used to determine the adjustment amplitude of the load threshold, which depends on the load variation range that the system can withstand and the speed of expanding resources. Usually, this coefficient is set to a positive number less than 1 to ensure that the adjustment of the load threshold is gradual and controllable. In this embodiment, the adjustment coefficient k is set to 0.01 (1%), which means that the adjustment amplitude of the load threshold will be relatively small, thereby avoiding the impact on system stability due to large adjustments. Through small adjustments, the system can avoid instability caused by sudden large changes.

[0112] Specifically, the real-time voltage is compared with the preset power-off threshold.

[0113] If the real-time voltage is less than the power-off threshold, it is determined that a power-off situation has occurred, the backup power supply is started, and power-off detection is performed.

[0114] Prevent potential power outages by continuously monitoring whether the real-time voltage level is below the pre-set power-off threshold. Once the real-time voltage drops below the threshold, the system automatically determines that it is a power-off situation and immediately triggers the backup power startup procedure to ensure that the continuous operation of the system is not affected. At the same time, the system enters the power-off detection mode, monitors the power status in real time, and is ready to respond to possible further power problems.

[0115] By continuously monitoring the real-time voltage and comparing it with the preset power-off threshold, the control method can quickly identify potential power-off risks when the voltage drops to a dangerous level. Once the real-time voltage is detected to be lower than the set threshold, the system automatically triggers the start-up of the backup power supply and enters the power-off detection state to ensure the continuity of critical operations. This preventive measure significantly improves the reliability and stability of the system, ensures the integrity of data and the continuous availability of critical services in the event of a main power outage, and reduces potential business interruptions and related economic losses caused by power problems. In addition, the automatic detection and response mechanism also reduces the reliance on manual intervention, improving the system's automation level and operation and maintenance efficiency.

[0116] An access system controller based on power-off delay protection, based on the above-mentioned access system control method based on power-off delay protection, is characterized by comprising:

[0117] Data collection module, used to collect the real-time processor usage rate, real-time memory usage rate, real-time disk read and write rate, real-time network traffic and real-time voltage of the access system;

[0118] A power failure detection module, connected to the data acquisition module, for determining whether to start a backup power supply and perform power failure detection according to the real-time voltage and a preset power failure threshold;

[0119] a calculation and judgment module, connected to the data acquisition module and the power-off detection module respectively, for calculating the system load factor according to the real-time processor usage rate, the standard processor usage rate range, the real-time memory usage rate, the standard memory usage rate range, the real-time disk read / write rate, the standard disk read / write rate range, the real-time network traffic, and the standard network traffic range when performing power-off detection, and judging the load type of the high load according to the calculated system load factor and the load threshold, and judging whether it is a short-term high load according to the high load time and a preset long-term high load time threshold, and when it is determined that the load type is not a short-term high load, judging whether the load type of the high load is a long-term high load according to the change rate of the system load factor within the high load time and the change rate threshold;

[0120] A feedback calculation module is connected to the calculation judgment module, and is used to calculate the difference between the high load time and the preset short-term high load time threshold when the load type of the high load is determined to be a long-term high load, and compare the difference with the preset difference threshold to determine whether the load threshold needs to be adjusted, and when it is determined that the load threshold needs to be adjusted, adjust the load threshold according to the difference between the calculated high load time and the preset short-term high load time threshold and the difference threshold.

[0121] The access system controller based on power-off delay protection monitors system performance indicators in real time through its integrated data acquisition module. The power-off detection module determines whether to start the backup power supply based on this. The calculation and judgment module further analyzes and classifies the high-load state, and the feedback calculation module dynamically adjusts the load threshold when a long-term high load is detected. The entire working process forms a closed-loop control system to ensure the continuous operation of the system and optimize performance.

[0122] The data acquisition module is responsible for collecting the key performance indicators of the system in real time, the power failure detection module uses this data to determine whether to trigger the backup power supply, and the calculation judgment module further analyzes the system load and distinguishes between short-term and long-term high load states. When a long-term high load is detected, the feedback calculation module intervenes and adjusts the load threshold to adapt to the current operating needs of the system. This process not only improves the system's adaptability and resistance to power fluctuations, but also optimizes system performance through dynamic threshold adjustment, ensuring the continuity and stability of key services. The beneficial effect is that it can reduce service interruptions caused by power problems, protect key data from loss, and improve the overall efficiency and reliability of the system through intelligent load management, ultimately reducing operating costs and improving user satisfaction.

[0123] So far, the technical solutions of the present invention have been described in conjunction with the preferred embodiments shown in the accompanying drawings. However, it is easy for those skilled in the art to understand that the protection scope of the present invention is obviously not limited to these specific embodiments. Without departing from the principle of the present invention, those skilled in the art can make equivalent changes or substitutions to the relevant technical features, and the technical solutions after these changes or substitutions will fall within the protection scope of the present invention.

[0124] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A method for controlling an access system based on power-off delay protection, characterized in that: include: Step S1, collecting the real-time processor usage rate, real-time memory usage rate, real-time disk read and write rate, real-time network traffic and real-time voltage of the access system; Step S2, judging whether to start the backup power supply according to the real-time voltage and the preset power-off threshold, calculating the system load factor during the power-off detection period, and determining whether a high load occurs according to the system load factor and the load threshold, and judging the load type of the current high load; The step S2 comprises: Step S2.1, judging whether it is necessary to start the backup power supply and perform power failure detection according to the real-time voltage and the preset power failure threshold value, and when performing power failure detection, calculating the system load factor according to the real-time processor usage, the standard processor usage range, the real-time memory usage, the standard memory usage range, the real-time disk read / write rate, the standard disk read / write rate range, the real-time network traffic, and the standard network traffic range; Step S2.2, determining whether a high load occurs according to the calculated system load factor and load threshold, and determining the load type of the high load; Step S2.3, judging whether it is a short-term high load according to the high load time and the preset short-term high load time threshold, when it is determined that the load type is not a short-term high load, judging whether the load type of the high load is a long-term high load according to the change rate of the system load factor during the high load time and the change rate threshold; Step S3, when it is determined that the load type of the high load is a long-term high load, the difference between the high load time and the preset short-term high load time threshold is calculated, and the difference is compared with the preset difference threshold to determine whether the load threshold needs to be adjusted. When it is determined that the load threshold needs to be adjusted, the load threshold is adjusted according to the difference between the calculated high load time and the preset short-term high load time threshold and the difference threshold; The high load time is the duration of the high load.

2. The access system control method based on power-off delay protection according to claim 1, characterized in that: When power failure detection is enabled, the system load factor is calculated based on the real-time processor usage, standard processor usage range, real-time memory usage, standard memory usage range, real-time disk read / write rate, standard disk read / write rate range, real-time network traffic, and standard network traffic range. , Among them, S is the system load factor, w1 is the processor usage weight coefficient, A is the real-time processor usage, Amin is the minimum value of the standard processor usage range, Amax is the maximum value of the standard processor usage range, w2 is the memory usage weight coefficient, B is the real-time memory usage, Bmin is the minimum value of the standard memory usage range, Bmax is the maximum value of the standard memory usage range, w3 is the disk read and write rate weight coefficient, C is the real-time disk read and write rate, Cmin is the minimum value of the standard disk read and write rate range, Cmax is the maximum value of the standard disk read and write rate range, w4 is the network traffic weight coefficient, D is the real-time network traffic, Dmin is the minimum value of the standard network traffic range, and Dmax is the maximum value of the standard network traffic range.

3. The access system control method based on power-off delay protection according to claim 2 is characterized in that: Compare the calculated system load factor and load threshold, If the system load factor is greater than the load threshold, it is determined to be high load, and the load type of the high load is detected.

4. The access system control method based on power-off delay protection according to claim 3 is characterized in that: Compare the high load time with the preset short-term high load time threshold to determine whether it is a short-term high load. If the high load time is less than or equal to the short-term high load time threshold, the load type of the high load is determined to be short-term high load, and the leaky bucket algorithm is used to control the number of requests entering the system.

5. The access system control method based on power-off delay protection according to claim 4 is characterized in that: Compare the rate of change of the system load factor during the high load period with the rate of change threshold. If the rate of change is greater than the rate of change threshold, the load type of the high load is determined to be an abnormal load, and an alarm is issued; If the change rate is less than or equal to the change rate threshold, the load type of the high load is determined to be a long-term high load.

6. The access system control method based on power-off delay protection according to claim 5, characterized in that: When the load type of the high load is determined to be a long-term high load, a difference between the high load time and a preset short-term high load time threshold is calculated.

7. The access system control method based on power-off delay protection according to claim 6, characterized in that: The difference is compared with the preset difference threshold to determine whether the load threshold needs to be adjusted. If the difference is greater than a preset difference threshold, it is determined that the load threshold needs to be adjusted.

8. The access system control method based on power-off delay protection according to claim 7, characterized in that: The load threshold is adjusted according to the difference between the calculated high load time and the preset short-term high load time threshold and the difference threshold. S'=S×(1+k×ΔT / T0), Wherein, S' is the adjusted load threshold, S is the load threshold, k is the load threshold adjustment coefficient, ΔT is the difference, and T0 is the difference threshold.

9. The access system control method based on power-off delay protection according to claim 8, characterized in that: Compare the real-time voltage with the preset power-off threshold, If the real-time voltage is less than the power-off threshold, it is determined that a power-off situation has occurred, the backup power supply is started, and power-off detection is performed.

10. An access system controller based on power-off delay protection, based on the access system control method based on power-off delay protection according to any one of claims 1 to 9, characterized in that: include: Data collection module, used to collect the real-time processor usage rate, real-time memory usage rate, real-time disk read and write rate, real-time network traffic and real-time voltage of the access system; A power failure detection module, connected to the data acquisition module, for determining whether to start a backup power supply and perform power failure detection according to the real-time voltage and a preset power failure threshold; a calculation and judgment module, connected to the data acquisition module and the power-off detection module respectively, for calculating the system load factor according to the real-time processor usage rate, the standard processor usage rate range, the real-time memory usage rate, the standard memory usage rate range, the real-time disk read / write rate, the standard disk read / write rate range, the real-time network traffic, and the standard network traffic range when performing power-off detection, and determining whether a high load occurs according to the calculated system load factor and the load threshold, and determining the load type of the high load, and determining whether it is a short-term high load according to the high load time and a preset long-term high load time threshold, and when determining that the load type is not a short-term high load, determining whether the load type of the high load is a long-term high load according to the change rate of the system load factor during the high load time and the change rate threshold; A feedback calculation module is connected to the calculation judgment module, and is used to calculate the difference between the high load time and the preset short-term high load time threshold when the load type of the high load is determined to be a long-term high load, and compare the difference with the preset difference threshold to determine whether the load threshold needs to be adjusted, and when it is determined that the load threshold needs to be adjusted, adjust the load threshold according to the difference between the calculated high load time and the preset short-term high load time threshold and the difference threshold.

Citation Information

Patent Citations

  • Power-failure protection device and power-failure protection method

    CN101719012A

  • Power-down protection circuit and related method

    CN106155258A

  • RAID (redundant array of independent disks) card power failure protection method, device and equipment and storage medium

    CN117421260A