Data backup method and device based on multi-dimensional decision, computer equipment and storage medium
By calculating a composite stress index based on host resource metrics and dynamically adjusting the backup rate, the problems of network congestion and low bandwidth utilization in Kubernetes backups are solved. This achieves intelligent control of the backup rate, prevents network congestion, and improves bandwidth utilization.
Patent Information
- Application Number
- CN202510958333.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-07-11
- Publication Date
- 2025-11-21
AI Technical Summary
Existing technologies in adaptive network rate Kubernetes backup suffer from network congestion and low bandwidth utilization, especially due to network congestion and bandwidth waste caused by the burstiness and unpredictability of business traffic.
By acquiring CPU, memory, network, and disk metrics of the host, a composite stress index is calculated, and the backup rate is dynamically adjusted to prevent network congestion and improve bandwidth utilization.
This allows for reducing the backup rate when the host load is high to prevent network congestion, and increasing the backup rate when the load is low, thereby improving bandwidth utilization and backup efficiency.
Smart Images

Figure CN120994461A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of data processing, in particular to a data backup method and device based on multi-dimensional decision, computer equipment and storage medium. BACKGROUND
[0002] With the development of data backup technology, adaptive network rate Kubernetes backup technology appears, which dynamically adjusts the transmission rate of backup data by monitoring network traffic state in real time. The technology automatically reduces the backup speed when the network load is high, and increases the transmission speed when the network is idle, so as to balance the backup demand and business application performance. However, in the dynamic adjustment process, a time window is set to limit the traffic, and the time window is determined based on a preset fixed time period (such as "2:00~4:00 am every day") to determine whether data backup can be performed. However, actual business traffic often presents burstiness and unpredictability. For example, during the window period, concentrated explosive transmission is easy to cause network congestion (even if the business load has increased); outside the window period, even if the network is completely idle, data backup is still prohibited, wasting available bandwidth. SUMMARY
[0003] Therefore, it is necessary to provide a data backup method and device based on multi-dimensional decision, computer equipment and storage medium, which can prevent network congestion and improve bandwidth utilization.
[0004] In a first aspect, the present application provides a data backup method based on multi-dimensional decision. The method comprises: obtaining a current resource index of a host; wherein the current resource index comprises: CPU index, memory index, network index and disk index; determining a composite stress index based on the current resource index; wherein the composite stress index is used to indicate the overall load size of the host; adjusting the current backup rate based on the composite stress index to obtain an updated backup rate; and performing data backup based on the updated backup rate.
[0005] In one embodiment, the step of determining the composite stress index based on the current resource index comprises: standardizing the index parameters in the current resource index to obtain standard parameter values; obtaining resource weights corresponding to the standard parameter values; and performing weighted calculation based on the standard parameter values and the resource weights to obtain the composite stress index.
[0006] In one of the embodiments, the step of adjusting the current backup rate based on the composite pressure index comprises: reducing the current backup rate when the composite pressure index is greater than a preset index threshold; increasing the current backup rate when the composite pressure index is less than the preset index threshold; and maintaining the current backup rate when the composite pressure index is equal to the preset index threshold.
[0007] In one of the embodiments, after the step of obtaining the current resource indicators of the host, the method further comprises: obtaining an indicator state of an indicator parameter in the current resource indicators; reducing the current backup rate when the indicator state of a key resource indicator is a high load state; wherein the key resource indicator is a pre-determined indicator parameter in the current resource indicators; and increasing the current backup rate when the indicator state of all the indicator parameters is a low load state.
[0008] In one of the embodiments, the method further comprises: obtaining a task type and a task characteristic of a backup task; wherein the task type is used to indicate a priority of the backup task, and the task characteristic is used to indicate a current backup state of the backup task; and adjusting the current backup rate based on the task type and the task characteristic.
[0009] In one of the embodiments, the method further comprises: when adjusting the current backup rate, a single adjustment amplitude is less than or equal to a current maximum adjustment amplitude; wherein the current maximum adjustment amplitude is a minimum value of a current adjustment amplitude or an absolute adjustment amplitude, the current adjustment amplitude is a preset multiple of the current backup rate, and the preset multiple is less than 0.5.
[0010] In one of the embodiments, the method further comprises: obtaining a calculation rate when adjusting the current backup rate; and performing a smoothing calculation on the current backup rate and the calculation rate based on a smoothing coefficient to obtain the updated backup rate; wherein the smoothing coefficient is 0.2 to 0.4.
[0011] In a second aspect, the application further provides a data backup device based on multi-dimensional decision. The device comprises: a resource indicator obtaining module, configured to obtain current resource indicators of a host; wherein the current resource indicators comprise: CPU indicators, memory indicators, network indicators, and disk indicators; a pressure index calculating module, configured to determine a composite pressure index based on the current resource indicators; wherein the composite pressure index is used to indicate an overall load size of the host; a backup rate adjusting module, configured to adjust a current backup rate based on the composite pressure index to obtain an updated backup rate; and a data backup module, configured to perform data backup based on the updated backup rate.
[0012] In a third aspect, the present application provides a computer device. The computer device comprises a memory and a processor. The memory stores a computer program. The processor implements the steps of the above method when executing the computer program.
[0013] In a fourth aspect, the present application provides a computer readable storage medium. The computer readable storage medium stores a computer program. The computer program is executed by a processor to implement the steps of the above method.
[0014] The above data backup method and device based on multi-dimension decision, computer device and storage medium, by acquiring the current resource index of the host, and determining the composite stress index according to the current resource index, so as to determine the overall load size of the host at present, then adjusting the current backup rate according to the composite stress index, so as to obtain the adjusted update backup rate. The present application realizes intelligent control of backup rate by acquiring the current resource index of the host, and no longer relies on fixed period backup. When the load of the host is large, the current backup rate can be reduced, so as to prevent network congestion; when the load of the host is small, the current backup rate can be improved, so as to improve the bandwidth utilization. BRIEF DESCRIPTION OF DRAWINGS
[0015] Figure 1 FIG. 1 is a flowchart of a data backup method according to an embodiment of the present application;
[0016] Figure 2 FIG. 2 is a flowchart of determining a composite stress index according to an embodiment of the present application;
[0017] Figure 3 FIG. 3 is a flowchart of a data backup method according to another embodiment of the present application;
[0018] Figure 4 FIG. 4 is a flowchart of a data backup method according to yet another embodiment of the present application;
[0019] Figure 5 FIG. 5 is a flowchart of a data backup method according to still another embodiment of the present application;
[0020] Figure 6 FIG. 6 is a schematic diagram of modules of a data backup device according to an embodiment of the present application;
[0021] Figure 7 FIG. 7 is an internal structure diagram of a computer device according to an embodiment of the present application. DETAILED DESCRIPTION
[0022] In order to make the purpose, technical scheme and advantages of the present application clearer, the present application is further described in detail below with reference to the drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application, and are not used to limit the present application.
[0023] The multi-dimensional decision-based data backup method provided by the embodiments of the present application can be applied to a data backup system. The data backup system can be a Kubernetes cluster. Kubernetes is an open-source container orchestration platform for automating deployment, scaling, and management of containerized applications. It provides a powerful container orchestration tool that can help developers and operations teams more easily manage containerized applications. The Kubernetes cluster can include Backupd, external storage, agent, and Kubernetes API, etc. Among them, Backupd is an http service for interacting with target users, and target users can initiate data backup and data recovery by interacting with Backupd. The external storage can be an external storage corresponding to the Kubernetes cluster, which is used to store backup data of the Kubernetes cluster. The agent is deployed in kubernetes and is used to actually execute the data backup and data recovery service, and each processing node in kubernetes has an agent service. The Kubernetes API is the nerve center of the Kubernetes cluster, which is used to provide a standardized and scalable resource management interface.
[0024] In one embodiment, as shown in Figure 1 A multi-dimensional decision-based data backup method is provided. The method is applied to a data backup system, which includes the following steps:
[0025] In step S110, the current resource indicators of the host are obtained.
[0026] Specifically, when the data backup system performs backup, it first obtains the resource indicators of the host in the current state as the current resource indicators. The current resource indicators include CPU indicators, memory indicators, network indicators, and disk indicators. The CPU indicators are used to indicate the load of the CPU, which can be the CPU usage rate. The memory indicators are used to indicate the load of the memory, which can be the proportion of available memory. The network indicators are used to indicate the load of the network, which can be the current bandwidth occupancy rate. The disk indicators are used to indicate the load of the disk, which can be the disk I / O latency. In a specific example, when the data backup system is implemented by a Kubernetes cluster, the collection of resource indicators can be achieved by Prometheus Operator and Custom Exporter, which collects host-level indicators through Node Exporter.
[0027] In step S120, the composite stress index is determined based on the current resource indicators.
[0028] Specifically, after obtaining the current resource metrics of the host, the data backup system determines a composite stress index based on these metrics. The composite stress index indicates the overall load on the host. Generally, the higher the composite stress index, the heavier the overall load on the host. When determining the composite stress index, a weighted composite calculation can be performed on the current resource metrics, so that the resulting composite stress index changes with the overall load on the host. In some other embodiments, a database of resource metrics and stress indices can be established, and the corresponding composite stress index can be obtained by matching the current resource metrics.
[0029] Step S130: Adjust the current backup rate based on the composite pressure index to obtain the updated backup rate.
[0030] Specifically, after determining the composite stress index, the data backup system quantitatively judges the overall load of the host based on the composite stress index, and adjusts the current backup rate accordingly. The updated backup rate is then obtained after updating the index. In other words, if the overall load of the host is determined to be high based on the composite stress index, the current backup rate will be reduced; conversely, if the overall load is determined to be low based on the composite stress index, the current backup rate will be increased.
[0031] Step S140: Perform data backup based on the update backup rate.
[0032] Specifically, once the data backup system determines the update backup rate, it will perform data backups accordingly. This application achieves intelligent adjustment of the backup rate by obtaining the host's current resource indicators, eliminating reliance on fixed-period backups. When the host load is high, the current backup rate can be reduced to prevent network congestion; when the host load is low, the current backup rate can be increased to improve bandwidth utilization.
[0033] In one embodiment, such as Figure 2 As shown, step S120, which involves determining the composite stress index based on the current resource indicators, includes:
[0034] Step S121: Standardize the indicator parameters in the current resource indicators to obtain standard parameter values.
[0035] Specifically, after the data backup system obtains the current resource metrics, it first standardizes each metric parameter to obtain the corresponding standard parameter value for subsequent weighted calculations. When standardizing the metric parameters, methods such as linear standardization and piecewise standardization can be used to ensure that the obtained standard parameter value falls between 0 and 1.
[0036] Step S122: Obtain the resource weights corresponding to the standard parameter values.
[0037] Specifically, the data backup system obtains the standard parameter value, and obtains the resource weight corresponding to the standard parameter value according to the preset weight corresponding to different index parameters. Different resource weights represent the influence degree of different index parameters on the overall pressure of the system. For example, the resource weight corresponding to the network index in the data backup system is greater than the resource weight corresponding to the memory index.
[0038] In step S123, the weighted calculation is performed based on the standard parameter value and the resource weight to obtain a composite pressure index.
[0039] Specifically, the data backup system obtains the standard parameter value and the resource weight corresponding to the standard parameter value, and performs weighted calculation to obtain the composite pressure index. In some embodiments, the value range of the composite pressure index is 0-1, and the greater the value, the heavier the overall load of the host.
[0040] Specific examples, the resource weight corresponding to the CPU index is set to 0.25; the resource weight corresponding to the memory index is set to 0.15; the resource weight corresponding to the network index is set to 0.4; and the resource weight corresponding to the disk index is set to 0.2. After standardization, the standard parameter value corresponding to the CPU index is 0.75; the standard parameter value corresponding to the memory index is 0.5; the standard parameter value corresponding to the network index is 0.8; and the standard parameter value corresponding to the disk index is 0.6. After weighted calculation, the obtained composite pressure index is 0.7025.
[0041] In one embodiment, in step S130, the step of adjusting the current backup rate based on the composite pressure index includes: reducing the current backup rate when the composite pressure index is greater than a preset index threshold. Specifically, when the composite pressure index is greater than the preset index threshold, it indicates that the overall load of the current host is heavy, and at this time, the current backup rate needs to be reduced. In some embodiments, the preset index threshold is set to 0.5.
[0042] In one embodiment, in the case that the composite pressure index is greater than the preset index threshold, the step of reducing the current backup rate includes: if the composite pressure index is not greater than a first preset threshold, reducing the current backup rate by a first rate; and if the composite pressure index is greater than the first preset threshold, reducing the current backup rate by a second rate.
[0043] Specifically, in the embodiment, if the composite pressure index is greater than the preset index threshold and is not greater than the first preset threshold, it indicates that the overall load of the current host is slightly heavier, and thus the current backup rate is reduced by a first rate. If the composite pressure index is greater than the preset index threshold and is greater than the first preset threshold, it indicates that the overall load of the current host is heavier, and thus the current backup rate is reduced by a second rate. The second rate is less than the first rate, and both the second rate and the first rate are less than 1. It can be understood that the first preset threshold is greater than the preset index threshold. In some embodiments, the first preset threshold is set to 0.7, the first rate is set to 0.85, and the second rate is set to 0.7.
[0044] In one embodiment, in step S130, the step of adjusting the current backup rate based on the composite pressure index includes: increasing the current backup rate when the composite pressure index is less than the preset index threshold. Specifically, when the composite pressure index is less than the preset index threshold, it indicates that the overall load of the current host is lighter, and thus the current backup rate needs to be increased. In some embodiments, the preset index threshold is set to 0.5.
[0045] In one embodiment, the step of increasing the current backup rate when the composite pressure index is less than the preset index threshold includes: increasing the current backup rate by a third rate if the composite pressure index is not less than a second preset threshold; and increasing the current backup rate by a fourth rate if the composite pressure index is less than the second preset threshold.
[0046] Specifically, in the embodiment, if the composite pressure index is less than the preset index threshold and is not less than the second preset threshold, it indicates that the overall load of the current host is slightly lighter, and thus the current backup rate is increased by a third rate. If the composite pressure index is less than the preset index threshold and is less than the second preset threshold, it indicates that the overall load of the current host is lighter, and thus the current backup rate is increased by a fourth rate. The fourth rate is greater than the second rate, and both the fourth rate and the second rate are greater than 1. It can be understood that the second preset threshold is less than the preset index threshold. In some embodiments, the second preset threshold is set to 0.3, the third rate is set to 1.15, and the fourth rate is set to 1.3.
[0047] In one embodiment, in step S130, the step of adjusting the current backup rate based on the composite pressure index includes: maintaining the current backup rate when the composite pressure index is equal to the preset index threshold. Specifically, when the composite pressure index is equal to the preset index threshold, it indicates that the overall load of the current host is moderate, and thus the current backup rate does not need to be adjusted and is continued to be maintained. In some embodiments, the preset index threshold is set to 0.5.
[0048] In one embodiment, as Figure 3As shown, after the step of obtaining the current resource indicators of the host in step S110, the data backup method further comprises:
[0049] In step S151, the indicator state of the indicator parameter in the current resource indicators is obtained.
[0050] Specifically, after the data backup system obtains the current resource indicators of the host, the indicator state of the indicator parameter in the current resource indicators is obtained. The indicator state is used to indicate whether the indicator parameter is in a high load state or a low load state. The determination of the indicator state of the indicator parameter can be obtained by pre-setting. For example, for the CPU indicator, when the CPU usage is greater than 80%, it is determined to be in a high load state; when the CPU usage is less than 30%, it is determined to be in a low load state. For the memory indicator, when the available memory of the memory is less than 20%, it is determined to be in a high load state; when the available memory is greater than 60%, it is determined to be in a low load state. For the network indicator, when the bandwidth occupancy of the network is greater than 70%, it is determined to be in a high load state; when the bandwidth occupancy is less than 30%, it is determined to be in a low load state. For the disk indicator, when the I / O delay of the disk is greater than 50ms, it is determined to be in a high load state; when the I / O delay of the disk is less than 10ms, it is determined to be in a low load state.
[0051] In step S152, if the indicator state of the key resource indicator is in a high load state, the current backup rate is reduced.
[0052] Specifically, after the data backup system obtains the indicator state of the indicator parameter, the key resource indicator is selected from the indicator parameter of the current resource indicators. The key resource indicator is a pre-determined indicator parameter in the current resource indicators, which has a greater impact on the overall load of the host. If the indicator state of the key resource indicator is in a high load state, the current backup rate is reduced. In some embodiments, the CPU indicator and the memory indicator are both set as the key resource indicator. If the indicator state of the CPU indicator or the memory indicator is in a high load state, the current backup rate is reduced. For example, the current backup rate is reduced to 0.9. It can be understood that when the current backup rate is reduced, other rate reduction steps can be superimposed, and the rate reduction is further performed on the basis of the reduced rate.
[0053] In step S153, if the indicator state of all indicator parameters is in a low load state, the current backup rate is increased.
[0054] Specifically, after the data backup system obtains the index state of the index parameter, if the index state of all index parameters is a low load state, the current backup rate is increased. For example, the current backup rate is increased to 1.1. It can be understood that when the current backup rate is increased, other rate increasing steps can be superimposed, and the rate is further increased on the basis of the increased rate. In some other embodiments, after it is judged that the index state of all index parameters is a low load state, it is further judged whether the duration is greater than the preset time, and only when the duration is greater than the preset time, the current backup rate is increased.
[0055] In one embodiment, as shown in Figure 4 the data backup method further comprises:
[0056] In step S210, the task type and the task characteristics of the backup task are obtained.
[0057] Specifically, when the data backup system performs a backup task of data backup, the task type and the task characteristics of the currently performed backup task are first obtained, wherein the task type is used to indicate the priority of the backup task, and the task characteristics are used to indicate the current backup state of the backup task. For example, the task type can be critical data or non-critical data, and the task characteristics include backup end time, resource pressure, etc.
[0058] In step S220, the current backup rate is adjusted based on the task type and the task characteristics.
[0059] Specifically, after the data backup system obtains the task type and the task characteristics of the backup task, the current backup rate is adjusted according to the task type and the task characteristics, so as to differentially adjust the backup rate of the backup task according to the differences between the task type and the task characteristics. For example, when the task type of a certain backup task is "critical data" and the backup end time is less than the remaining time threshold, the backup rate of the current backup task is increased to complete the backup as soon as possible. When the task type of a certain backup task is "non-critical data" and the resource pressure is greater than the preset threshold (0.6), other backup tasks are prioritized, and the backup rate of the current backup task is reduced.
[0060] In one embodiment, the data backup method further comprises: when the current backup rate is adjusted, the single adjustment amplitude is less than or equal to the current maximum adjustment amplitude.
[0061] Specifically, in this embodiment, during the adjustment of the current backup rate, the single adjustment range of the backup rate must be less than or equal to the current maximum adjustment range to avoid drastic fluctuations in the backup rate. The current maximum adjustment range is the minimum of the current adjustment range or the absolute adjustment range. The current adjustment range is a preset multiple of the current backup rate, which is less than 0.5. The absolute adjustment range is a preset maximum adjustment limit. For example, if the preset multiple is set to 0.3, the current adjustment range is 0.3 times the current backup rate. If the current adjustment range is less than the maximum adjustment limit, then when adjusting the current backup rate, the single adjustment range must be less than or equal to the current adjustment range; if the current adjustment range is greater than the maximum adjustment limit, then when adjusting the current backup rate, the single adjustment range must be less than or equal to the maximum adjustment limit.
[0062] In one embodiment, such as Figure 5 As shown, data backup methods also include:
[0063] Step S310: Obtain the calculation rate when adjusting the current backup rate;
[0064] Step S320: Perform a smoothing calculation on the current backup rate and calculation rate based on the smoothing coefficient to obtain the updated backup rate.
[0065] Specifically, in this embodiment, during the adjustment of the current backup rate, it is first necessary to determine the calculated adjusted backup rate and use it as the calculation rate. Then, based on a preset smoothing coefficient, a smoothing calculation is performed on the current backup rate and the calculation rate to obtain the final updated backup rate, and data backup is performed based on the updated backup rate. In some embodiments, the smoothing coefficient is 0.2 to 0.4. In some embodiments, the updated backup rate is calculated using the following formula:
[0066] V2 = α × V1 + (1 - α) × V0
[0067] Here, V2 represents the update backup rate, V1 represents the calculation rate, V0 represents the current backup rate, and α represents the smoothing coefficient. Using the smoothing coefficient to determine the update backup rate makes the adjustment process of the backup rate smoother and avoids drastic fluctuations in the backup rate.
[0068] It should be understood that although each step in the flowchart involved in the embodiments described above is shown in sequence according to the direction of the arrow, these steps are not necessarily executed in the order indicated by the arrow. Unless otherwise specified herein, there is no strict order limitation for the execution of these steps, and these steps can be executed in other orders. Moreover, at least some of the steps in the flowchart involved in the embodiments described above can include multiple steps or multiple stages, which are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily sequential, but can be alternately or alternately executed with at least part of other steps or steps or stages in other steps.
[0069] Based on the same inventive concept, the embodiments of the present application also provide a data backup device for implementing the above-mentioned data backup method. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme described in the above method, so the specific limitations in one or more data backup device embodiments provided below can refer to the limitations of the data backup method described above, which will not be repeated here.
[0070] In one embodiment, as shown in Figure 6 a multi-dimensional decision-based data backup device is provided, comprising: a resource index acquisition module 410, a stress index calculation module 420, a backup rate adjustment module 430, and a data backup module 440, wherein:
[0071] The resource index acquisition module 410 is configured to acquire the current resource index of the host. The current resource index includes CPU index, memory index, network index, and disk index.
[0072] The stress index calculation module 420 is configured to determine a composite stress index based on the current resource index. The composite stress index is used to indicate the overall load size of the host.
[0073] The backup rate adjustment module 430 is configured to adjust the current backup rate based on the composite stress index to obtain an updated backup rate.
[0074] The data backup module 440 is configured to perform data backup based on the updated backup rate.
[0075] In one embodiment, the stress index calculation module 420 is further configured to standardize the index parameters in the current resource index to obtain standard parameter values, acquire resource weights corresponding to the standard parameter values, and perform weighted calculation based on the standard parameter values and the resource weights to obtain the composite stress index.
[0076] In an embodiment, the backup rate adjustment module 430 is further configured to decrease the current backup rate when the composite stress index is greater than the preset index threshold, increase the current backup rate when the composite stress index is less than the preset index threshold, and maintain the current backup rate when the composite stress index is equal to the preset index threshold.
[0077] In an embodiment, the backup rate adjustment module 430 is further configured to obtain an index state of an index parameter in the current resource index, decrease the current backup rate when the index state of the key resource index is a high load state, and increase the current backup rate when the index state of all index parameters is a low load state, wherein the key resource index is a pre-determined index parameter in the current resource index.
[0078] In an embodiment, the backup rate adjustment module 430 is further configured to obtain a task type and a task characteristic of the backup task, wherein the task type is used to indicate a priority of the backup task, and the task characteristic is used to indicate a current backup state of the backup task, and adjust the current backup rate based on the task type and the task characteristic.
[0079] In an embodiment, the backup rate adjustment module 430 is further configured to, when adjusting the current backup rate, adjust the current backup rate by a single adjustment amplitude that is less than or equal to a current maximum adjustment amplitude, wherein the current maximum adjustment amplitude is a minimum value of a current adjustment amplitude or an absolute adjustment amplitude, the current adjustment amplitude is a preset multiple of the current backup rate, and the preset multiple is less than 0.5.
[0080] In an embodiment, the backup rate adjustment module 430 is further configured to obtain a calculation rate when adjusting the current backup rate, and perform a smoothing calculation on the current backup rate and the calculation rate based on a smoothing coefficient to obtain an updated backup rate, wherein the smoothing coefficient is 0.2 to 0.4.
[0081] The above-mentioned modules in the data backup apparatus can be realized by software, hardware, and combinations thereof, in whole or in part. The above-mentioned modules can be embedded in or independent of a processor in a computer device in a hardware form, or stored in a memory in a computer device in a software form, so as to be called and executed by a processor to perform operations corresponding to the above-mentioned modules.
[0082] In an embodiment, a computer device is provided, which can be a server, and an internal structure diagram of the computer device can be as shown in FIG. 8. Figure 7As shown in the figure. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. Among them, the processor, the memory and the input / output interface are connected through the system bus, and the communication interface is connected to the system bus through the input / output interface. Among them, the processor of the computer device is used to provide computing and control capability. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store XX data. The input / output interface of the computer device is used to exchange information between the processor and the external device. The communication interface of the computer device is used to communicate with the terminal outside through the network connection. The computer program is executed by the processor to realize a data backup method.
[0083] Those skilled in the art can understand that, Figure 7 The structure shown in the figure is only a block diagram of part of the structure related to the scheme of the present application, and does not constitute a limitation on the computer device to which the scheme of the present application is applied. The specific computer device can include more or less components than those shown in the figure, or combine certain components, or have a different component arrangement.
[0084] In one embodiment, a computer device is provided, including a memory and a processor, the memory stores a computer program, and the processor executes the computer program to realize the steps in each method embodiment described above.
[0085] In one embodiment, a computer readable storage medium is provided, which stores a computer program, and the processor executes the computer program to realize the steps in each method embodiment described above.
[0086] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a non-volatile computer readable storage medium, and when the computer program is executed, the processes of the above-mentioned embodiments of the methods can be included. Any reference to memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical storage, high-density embedded non-volatile memory, resistive memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration but not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM), etc. The database involved in the embodiments provided in the present application can include at least one of a relational database and a non-relational database. The non-relational database can include a distributed database based on a block chain, etc., without being limited thereto. The processor involved in the embodiments provided in the present application can be a general-purpose processor, a central processing unit, a graphics processing unit, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., without being limited thereto.
[0087] Any combination of the technical features of the above embodiments can be made. In order to make the description simple, all possible combinations of the technical features in the above embodiments are not described, however, as long as the combination of the technical features does not exist, it should be considered as the scope of the present application.
[0088] The above embodiments only express several implementation manners of the present application, and the description is more specific and detailed, but it should not be understood as a limitation on the scope of the patent of the present application. It should be pointed out that for ordinary skilled in the art, without departing from the concept of the present application, a number of modifications and improvements can be made, which are all within the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the appended claims.
Claims
1. A data backup method based on multi-dimensional decision-making, characterized in that, The method includes: Obtain the current resource metrics of the host; wherein, the current resource metrics include: CPU metrics, memory metrics, network metrics, and disk metrics; A composite stress index is determined based on the current resource indicators; wherein, the composite stress index is used to indicate the overall load of the host. The updated backup rate is obtained by adjusting the current backup rate based on the composite pressure index. Data backup is performed based on the aforementioned update backup rate.
2. The data backup method according to claim 1, characterized in that, The step of determining the composite stress index based on the current resource indicators includes: The indicator parameters in the current resource indicators are standardized to obtain standard parameter values; Obtain the resource weights corresponding to the standard parameter values; The composite pressure index is obtained by weighting the standard parameter values and the resource weights.
3. The data backup method according to claim 1, characterized in that, The step of adjusting the current backup rate based on the composite stress index includes: If the composite pressure index is greater than a preset index threshold, reduce the current backup rate; If the composite pressure index is less than a preset index threshold, increase the current backup rate; If the composite pressure index equals a preset index threshold, the current backup rate is maintained.
4. The data backup method according to claim 1, characterized in that, After the step of obtaining the current resource metrics of the host, the method further includes: Obtain the indicator status of the indicator parameters in the current resource indicators; If the status of a key resource indicator is high load, then reduce the current backup rate; wherein, the key resource indicator is a pre-determined indicator parameter among the current resource indicators. If all indicator parameters are in a low-load state, then increase the current backup rate.
5. The data backup method according to claim 1, characterized in that, The method further includes: Obtain the task type and task characteristics of the backup task; wherein, the task type is used to indicate the priority of the backup task, and the task characteristics are used to indicate the current backup status of the backup task; The current backup rate is adjusted based on the task type and the task characteristics.
6. The data backup method according to claim 1, characterized in that, The method further includes: When adjusting the current backup rate, the single adjustment range is less than or equal to the current maximum adjustment range; wherein, the current maximum adjustment range is the minimum value between the current adjustment range and the absolute adjustment range, and the current adjustment range is a preset multiple of the current backup rate, wherein the preset multiple is less than 0.
5.
7. The data backup method according to claim 1, characterized in that, The method further includes: Obtain the computation rate when adjusting the current backup rate; The updated backup rate is obtained by smoothing the current backup rate and the calculation rate based on a smoothing coefficient; wherein the smoothing coefficient is between 0.2 and 0.
4.
8. A data backup device based on multi-dimensional decision-making, characterized in that, The device includes: The resource metrics acquisition module is used to acquire the current resource metrics of the host; wherein, the current resource metrics include: CPU metrics, memory metrics, network metrics, and disk metrics; The stress index calculation module is used to determine a composite stress index based on the current resource indicators; wherein the composite stress index is used to indicate the overall load of the host. The backup rate adjustment module is used to adjust the current backup rate based on the composite pressure index to obtain an updated backup rate. The data backup module is used to perform data backup based on the update backup rate.
9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 7.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Method and apparatus for data backup, and computer program product
CN110058966A
Self-adaptive adjustment method, system and equipment for client backup and storage medium
CN115080222A
Task dynamic adjustment system and method based on intelligent decision model
CN119759577A
Dynamic throughput ingestion of backup sources
US10298680B1