CN117648310A - Data degradation processing method, device, equipment and medium - Google Patents

Data degradation processing method, device, equipment and medium Download PDF

Info

Publication number
CN117648310A
CN117648310A CN202311742787.4A CN202311742787A CN117648310A CN 117648310 A CN117648310 A CN 117648310A CN 202311742787 A CN202311742787 A CN 202311742787A CN 117648310 A CN117648310 A CN 117648310A
Authority
CN
China
Prior art keywords
data
target
hardware device
input data
countdown
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311742787.4A
Other languages
Chinese (zh)
Inventor
任晓贤
刘玢
郭永冲
路向宇
黄寒凌
李倩
吉达勇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Life Insurance Co ltd
Original Assignee
China Life Insurance Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Life Insurance Co ltd filed Critical China Life Insurance Co ltd
Priority to CN202311742787.4A priority Critical patent/CN117648310A/en
Publication of CN117648310A publication Critical patent/CN117648310A/en
Pending legal-status Critical Current

Links

Landscapes

  • Retry When Errors Occur (AREA)

Abstract

The application relates to a data degradation processing method, a device, equipment and a medium, which are applied to a central processing unit in a data processing system, wherein the data processing system also comprises a target hardware device, and the method is used for acquiring input data to be calculated and processed; when input data is acquired, acquiring the residual duration corresponding to calling countdown; and according to the residual duration, determining to call the target hardware device or performing calculation processing on the input data according to a target software algorithm to obtain target result data. The data processing efficiency of the data degradation processing method can be improved by adopting the method.

Description

Data degradation processing method, device, equipment and medium
Technical Field
The present disclosure relates to the field of data processing technologies, and in particular, to a method, an apparatus, a device, and a medium for processing data degradation.
Background
The software and hardware combination system is a computing platform integrating software and hardware computing resources, and integrates software algorithms and configurable hardware devices to meet various computing requirements. In order to guarantee the usability and stability of the hardware and software combined system, the data processing procedure performed by the hardware device needs to be degraded to be completed by a software algorithm in a specific case.
In the traditional data degradation processing method, whether the hardware device needs to be degraded into a software algorithm to perform calculation processing on data is determined by judging the task processing condition or the memory occupation condition of the hardware device.
However, the conventional data degradation processing method is inefficient.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a data degradation processing method, apparatus, device, and medium capable of improving efficiency.
In a first aspect, the present application provides a method for processing degradation of data, where the method is applied to a central processor in a data processing system, and the data processing system further includes a target hardware device, and the method includes:
acquiring input data to be calculated and processed;
when input data is acquired, acquiring the residual duration corresponding to calling countdown;
and according to the residual duration, determining to call the target hardware device or performing calculation processing on the input data according to a target software algorithm to obtain target result data.
In one embodiment, a method is provided, according to a remaining duration, for determining a process of calling a target hardware device or performing calculation processing on input data according to a target software algorithm to obtain target result data, including:
if the remaining time length is less than or equal to the preset first time length, the input data is sent to the target hardware device;
detecting whether feedback data sent by a target hardware device are received within a preset second time period;
if the feedback data is received within the preset second time period, determining whether the target hardware device is successfully called or not according to the feedback data;
and if the target hardware device is successfully called, obtaining target result data according to the feedback data.
In one embodiment, the method provided further comprises:
if the calling of the target hardware device fails, calculating and processing the input data according to a target software algorithm to obtain target result data;
resetting the call countdown.
In one embodiment, the method provided resets the process of calling the countdown, including:
updating the corresponding failure times of the target hardware device, and detecting whether the failure times are larger than or equal to a preset time threshold;
and if the failure times are greater than or equal to the times threshold, updating the calling countdown according to the failure times and the times threshold, and obtaining the updated calling countdown.
In one embodiment, the method provided updates the call countdown according to the failure times and the time threshold value, and obtains an updated call countdown process, including:
performing ratio processing on the failure times and the times threshold to obtain updated weight data;
multiplying the updated weight data with a preset second duration to obtain a weight duration;
and taking the current time as the countdown starting time, and taking the time with the smaller median of the weight time and the third time as the total time to obtain updated calling countdown.
In one embodiment, the method provided further comprises:
if the feedback data is not received within the preset second time period, calculating the input data according to the target software algorithm to obtain target result data.
In one embodiment, a method is provided, according to a remaining duration, for determining a process of calling a target hardware device or performing calculation processing on input data according to a target software algorithm to obtain target result data, including:
and if the remaining time length is greater than the first time length, calculating the input data according to a target software algorithm to obtain target result data.
In a second aspect, the present application further provides a data degradation processing device, where the device is applied to a central processor in a data processing system, the data processing system further includes a target hardware device, and the data degradation processing device includes:
the data acquisition module is used for acquiring input data to be calculated and processed;
the time length acquisition module is used for acquiring the remaining time length corresponding to the calling countdown when the input data is acquired;
and the result calculation module is used for determining to call the target hardware device or calculate and process the input data according to a target software algorithm according to the residual duration to obtain target result data.
In a third aspect, the present application also provides a computer device comprising a memory storing a computer program and a processor implementing the steps of the method as in the first aspect when the processor executes the computer program.
In a fourth aspect, the present application also provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the method as in the first aspect.
The data degradation processing method, the device, the equipment and the medium are applied to a central processing unit in a data processing system, and the data processing system also comprises a target hardware device, and the method is used for obtaining input data to be calculated and processed; when input data is acquired, acquiring the residual duration corresponding to calling countdown; according to the residual time length, determining to call the target hardware device or calculate and process the input data according to the target software algorithm to obtain target result data, thus, the real-time state of the hardware is measured by using the residual time length of calling countdown, and thus, the mode of calculating and processing the input data is determined, when the target hardware device is not suitable for being called for calculating and processing, the mode is timely degraded to be calculated and processed according to the target software algorithm, the problem that the running state of the hardware device is repeatedly calculated or the data processing time is too long due to repeated attempt of calling when the central processing unit fails to call the hardware device is avoided, the real-time performance of the response process of the input data is ensured, and the data processing efficiency of the data degradation processing method is improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the related art, the drawings that are required to be used in the embodiments or the related technical descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and other drawings may be obtained according to the drawings without inventive effort for a person having ordinary skill in the art.
FIG. 1 is an application environment diagram of a data degradation processing method in one embodiment;
FIG. 2 is a flow diagram of a data degradation processing method in one embodiment;
FIG. 3 is a flowchart illustrating steps for obtaining target result data in one embodiment;
FIG. 4 is a flowchart illustrating steps for resetting a call countdown in one embodiment;
FIG. 5 is a flowchart illustrating steps for obtaining updated call countdown in one embodiment;
FIG. 6 is a flow chart of a data degradation processing method in another embodiment;
FIG. 7 is a block diagram of a data degradation processing device in one embodiment;
fig. 8 is an internal structural diagram of a computer device in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be further described in detail with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the present application.
The data degradation processing method provided by the embodiment of the application can be applied to a data processing system shown in fig. 1. Wherein the data processing system comprises a central processor 102 and a plurality of hardware devices 104. The central processor 102 may be implemented by a stand-alone server or a server cluster formed by a plurality of servers; the central processor 102 and the hardware devices 104 communicate via a network. The storage system may store data that the central processor 102 needs to process and a plurality of software algorithm programs that may be invoked, and may be integrated on the central processor 102, or may be placed on a cloud or other network server.
The central processor 102 is configured to obtain input data to be computationally processed, determine a specific manner of computing the input data based on the input data, and select one hardware device capable of implementing the computing manner as a target hardware device, or select a software algorithm capable of implementing the computing manner as a target software algorithm, and determine to invoke the target hardware device or perform computing processing on the input data according to the target software algorithm to obtain target result data.
In one exemplary embodiment, as shown in FIG. 2, a data degradation processing method is provided, the method being applied to a central processor 102 in the data processing system shown in FIG. 1, the data processing system further comprising a target hardware device. The method includes the following steps 202 to 206. Wherein:
step 202, obtaining input data to be calculated and processed.
The input data to be calculated is the data which needs to be processed by the central processing unit, and the central processing unit can call the target hardware device to carry out calculation processing in the process of processing the input data, and can also carry out calculation processing according to a target software method.
The target hardware device and the target software algorithm can calculate and process the input data according to the requirement of the central processing unit, and the difference between calculation results obtained by the target hardware device and the target software algorithm is very small and is ignored in the application.
Compared with a target software algorithm, the target hardware device has higher calculation speed, lower delay and higher parallelism, the target software method is a simulation of the calculation process of the target hardware device, and compared with the hardware cost required by calling the target hardware device for calculation processing, the target hardware device is lower in cost, but can be influenced by factors such as processor performance, operating system scheduling and the like, so that the overall performance is reduced, and the calculation processing speed is low. When the target hardware device faces the problems of limited resources, overhigh load or abnormal operation and the like, the central processing unit degrades the data processing method according to the real-time state of the target hardware device, and selects a target software algorithm to calculate and process the input data.
Illustratively, the target hardware device may be an encryptor, which may be used to encrypt and decrypt input data; the target software algorithm may be used to perform a computational processing operation on the input data that corresponds to the function of the target hardware device.
And 204, when the input data is acquired, acquiring the residual duration corresponding to the calling countdown.
The calling countdown indicates that when a certain time of calling the target hardware device fails, the target hardware device is not tried to be called within a preset duration, so that the problem of overlong data processing time caused by the failure of continuously calling the target hardware device is avoided. The remaining duration to invoke the countdown represents the duration required from the next time that the target hardware device can be attempted to be invoked. When the input data is acquired, whether the target hardware device can be called to calculate the input data can be timely judged according to the residual duration.
And 206, determining to call the target hardware device or calculate the input data according to a target software algorithm according to the residual duration to obtain target result data.
When the residual duration meets a preset condition, the target hardware device can be called, and the target hardware device is determined to be called to calculate and process the input data; and when the residual duration does not meet the preset condition, indicating that the target hardware device cannot be called, and determining to calculate and process the input data according to the target software algorithm.
In the event of failure to call the target hardware device, the call countdown is reset and the duration of not attempting to call the target hardware device is restarted.
In this step, the real-time state of the target hardware device may be measured by calling whether the remaining duration of the countdown accords with a preset condition. If the residual time length meets the preset condition, the real-time state of the target hardware device is considered to be a state which can be called, if the residual time length does not meet the preset condition, the real-time state of the target hardware device is considered to be unsuitable for calculation processing, and the target hardware device needs to be called again for calculation processing after waiting until the residual time length meets the preset condition.
In the data degradation processing method provided by the embodiment, input data to be calculated and processed is obtained; when input data is acquired, acquiring the residual duration corresponding to calling countdown; according to the residual duration, determining to call a target hardware device or calculating the input data according to a target software algorithm to obtain target result data; in the embodiment, the real-time state of the hardware is measured by using the remaining time of calling countdown, so that the mode of calculating and processing the input data is determined, the target hardware device is degraded to be calculated and processed according to a target software algorithm in time when the target hardware device is not suitable for being called for calculating and processing, the problem that the running state of the hardware device is repeatedly calculated or the data processing time is too long due to repeated trial and error calling when the central processing unit fails to call the hardware device is avoided, the instantaneity of the response process of the input data is ensured, and the data processing efficiency of the data degradation processing method is improved.
In an exemplary embodiment, based on the embodiment shown in fig. 2, as shown in fig. 3, a process of determining to call a target hardware device or calculate input data according to a target software algorithm according to a remaining duration in the provided method to obtain target result data includes:
step 302, determining whether the remaining duration is less than or equal to a preset first duration.
And step 304, if the remaining time length is less than or equal to the preset first time length, the input data is sent to the target hardware device.
If the remaining time length is less than or equal to the preset first time length, the input data can be sent to the target hardware device at the moment, and the target hardware device is tried to be called.
The first duration may be, for example, 0, or may be set according to an application scenario.
And step 306, detecting whether feedback data sent by the target hardware device is received within a preset second time period.
And step 308, if the feedback data is received within the preset second time period, determining whether to successfully call the target hardware device according to the feedback data.
The feedback data indicates that the target hardware device establishes a connection with the central processing unit, and the target hardware device generates feedback for input data sent by the central processing unit.
For example, the feedback data may include an error message, which indicates that the target hardware device fails to calculate the input data after receiving the input data, and at this time, it may be determined that the target hardware device fails to be invoked according to the feedback data.
For example, the feedback data may include a calculation result message, which indicates that the target hardware device calculates the input data after receiving the input data, but according to the check code of the message, it may be known that an error occurs in the calculation processing process of the input data by the target hardware device, or an error occurs in the process of feeding back the calculation result, and at this time, it may be determined that the target hardware device is failed to be invoked according to the feedback data.
For example, the feedback data may include a calculation result message, and after verifying the calculation result message, it is obtained that the calculation processing process of the input data and the data feedback process of the target hardware device are correct, and at this time, success in invoking the target hardware device may be determined according to the feedback data.
Step 310, if the target hardware device is successfully invoked, obtaining target result data according to the feedback data.
The central processing unit can continuously execute the subsequent processing process based on the hardware calculation result until the processing process is finished, and the target result data is obtained.
In one possible embodiment, the method provided further comprises:
and step 312, if the call to the target hardware device fails, performing calculation processing on the input data according to a target software algorithm to obtain the target result data.
The central processing unit inputs the input data into the target software algorithm to obtain a software calculation result, and the central processing unit can continue to execute the subsequent processing process based on the software calculation result until the processing process is finished to obtain target result data.
At step 314, reset invokes countdown.
Illustratively, the start time of the reset invocation countdown may be the current time each time a failure occurs to invoke the target hardware device. Also for example, the start time of the reset invocation countdown may be the time at which the target result data is obtained.
For example, each time a failure occurs in invoking the target hardware device, the total duration of the reset invocation countdown may be a preset second duration. Also for example, the reset total duration of the call countdown may be a duration derived from the number of times the call to the target hardware device failed.
In this embodiment, after input data is obtained, the target hardware device can be called to perform calculation processing according to the remaining time of calling countdown, and the second time is set as the feedback time interval, so that the calculation processing mode can be rapidly determined after the input data is obtained, and the real-time response capability of data processing is improved, thereby improving the data processing efficiency of the data degradation processing method.
In an exemplary embodiment, based on the embodiment shown in fig. 3, as shown in fig. 4, a process of resetting a call countdown in the method is provided, including:
step 402, updating the failure times corresponding to the target hardware device.
The failure times represent times of failure of calling the target hardware device, and each time the target hardware device is called, the failure times are increased by 1.
Step 404, detecting whether the failure number is greater than or equal to a preset number threshold.
And step 406, if the failure times are greater than or equal to the times threshold, updating the calling countdown according to the failure times and the times threshold, and obtaining the updated calling countdown.
If the failure times are greater than or equal to the time threshold, the central processing unit indicates that the target hardware device is continuously called for multiple times, in this case, the failure is indicated to be unavailable, the calling failure is not due to accidental factors, but the problem occurs in the target hardware device itself or the connection between the target hardware device and the central processing unit, the failure needs to be eliminated in the calling countdown period, the central processing unit cannot call the target hardware device for calculation processing in the period, and the acquired input data are all calculated by adopting a target software algorithm.
In this embodiment, the countdown is updated according to the relationship between the failure times and the time threshold, so that the central processor can determine whether to call the target hardware device based on the real-time state of the target hardware device, and when the target hardware device fails to call for multiple times, a repair time is reserved for the target hardware device, and during this time, the acquired input data is calculated and processed according to the target software algorithm, so that the problem of excessively long data processing time caused by the failure of continuously calling the target hardware device is avoided, and the data processing efficiency of the data degradation processing method is improved.
In an exemplary embodiment, based on the embodiment shown in fig. 4, as shown in fig. 5, a method is provided for updating a call countdown according to a failure number and a number threshold, and a procedure of updating the call countdown includes:
and 502, carrying out ratio processing on the failure times and the times threshold value to obtain updated weight data.
And 504, multiplying the updated weight data with a preset second time length to obtain a weight time length.
The weight duration changes along with the change of the failure times, and the more the failure times are, the larger the weight data are updated and the longer the weight duration is.
And step 506, taking the current time as the countdown starting time, and taking the time with the smaller median of the weight time length and the third time length as the total time length to obtain updated calling countdown.
The updated calling countdown starts from the current time, the total time length of the countdown increases along with the increase of the failure times, and the third time length is not exceeded. When the remaining time length of calling the countdown is smaller than or equal to the preset first time length, sending input data to a target hardware device, and attempting to call the target hardware device to perform calculation processing; and when the remaining time length of calling the countdown is longer than the preset first time length, the target hardware device is not called any more, and the input data is calculated according to the target software algorithm.
In this embodiment, the more the number of failures in the third duration range, the longer the updated total duration of calling countdown is, that is, the longer the repair time reserved for the target hardware device is, so that the error reporting is frequently generated in the calculation processing process of the input data due to the calling of the target hardware device is avoided, thereby improving the stability of the data degradation processing method.
In an exemplary embodiment, based on the embodiment shown in fig. 3, the method provided further comprises:
if the feedback data is not received within the preset second time period, calculating the input data according to the target software algorithm to obtain target result data.
And if the feedback data is not received within the preset second time period, indicating that the target hardware device does not respond to the input data sent by the central processing unit within the second time period. For example, the target hardware device may fail to receive the input data due to a disconnection from the central processor.
In this embodiment, if the feedback data is not received within the preset second duration, it indicates that the target hardware device cannot perform calculation processing on the input data in time, and at this time, the target hardware device selects to perform calculation processing on the input data according to the target software algorithm, so that the instantaneity of the response process of the central processing unit on the input data is prevented from being affected, and the data processing efficiency of the central processing unit is ensured.
In an exemplary embodiment, based on the embodiment shown in fig. 2, a process of determining to call a target hardware device or perform calculation processing on input data according to a target software algorithm according to a remaining duration in the method to obtain target result data is provided, where the process includes:
and if the remaining time length is greater than the first time length, calculating the input data according to a target software algorithm to obtain target result data.
And if the remaining time length is longer than the preset first time length, the real-time state of the target hardware device can not support and call the target hardware device to calculate and process the input data. For example, in connection with the above embodiment, the target hardware device may fail to be called multiple times due to failure, and is being repaired with the time to call countdown.
In this embodiment, when the remaining time length of the countdown is greater than the first time length, the calculation processing is performed on the input data according to the target software algorithm, so that the central processor can determine the calculation processing method for the input data according to the real-time state of the target hardware device, thereby improving the flexibility of the data degradation processing method.
In an exemplary embodiment, as shown in fig. 6, a data degradation processing method is provided, where the method is applied to a central processor in a data processing system, and the data processing system further includes a target hardware device, and the method includes the following steps 601 to 612. Wherein:
in step 601, input data to be computationally processed is acquired.
Step 602, when input data is obtained, obtaining a remaining duration corresponding to calling countdown.
Step 603, determining whether the remaining duration is less than or equal to a preset first duration.
If the remaining time length is greater than the first time length, go to step 604; if the remaining time period is less than or equal to the preset first time period, step 605 is entered.
And step 604, calculating the input data according to a target software algorithm to obtain target result data.
Step 605, the input data is sent to the target hardware device.
Step 606, it is detected whether feedback data sent by the target hardware device is received within a preset second duration.
If the feedback data is not received within the preset second duration, step 604 is entered; if feedback data is received within the preset second time period, step 607 is entered.
In step 607, it is determined whether the target hardware device was successfully invoked according to the feedback data.
In step 608, if the target hardware device is successfully invoked, target result data is obtained according to the feedback data.
And step 609, if the call to the target hardware device fails, performing calculation processing on the input data according to the target software algorithm to obtain target result data.
In step 610, the failure times corresponding to the target hardware device are updated.
In step 611, it is detected whether the number of failures is greater than or equal to a preset number of times threshold.
And step 612, if the failure times are greater than or equal to the times threshold, updating the call countdown according to the failure times and the times threshold, and obtaining the updated call countdown.
Optionally, the process of obtaining the updated call countdown includes: performing ratio processing on the failure times and the times threshold to obtain updated weight data; multiplying the updated weight data with a preset second duration to obtain a weight duration; and taking the current time as the countdown starting time, and taking the time with the smaller median of the weight time and the third time as the total time to obtain updated calling countdown.
It should be understood that, although the steps in the flowcharts related to the embodiments described above are sequentially shown as indicated by arrows, these steps are not necessarily sequentially performed in the order indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in the flowcharts described in the above embodiments may include a plurality of steps or a plurality of stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of the steps or stages is not necessarily performed sequentially, but may be performed alternately or alternately with at least some of the other steps or stages.
Based on the same inventive concept, the embodiment of the application also provides a data degradation processing device for realizing the above related data degradation processing method. The implementation of the solution provided by the apparatus is similar to the implementation described in the above method, so the specific limitation in the embodiments of the data degradation processing apparatus provided below may be referred to the limitation of the data degradation processing method hereinabove, and will not be described herein.
In an exemplary embodiment, as shown in fig. 7, there is provided a data degradation processing apparatus, including: a data acquisition module 702, a model construction module 704, and a database construction module 706, wherein:
a data acquisition module 702, configured to acquire input data to be computationally processed;
a duration obtaining module 704, configured to obtain a remaining duration corresponding to the calling countdown when the input data is obtained;
and the result calculation module 706 is configured to determine to call the target hardware device or perform calculation processing on the input data according to the target software algorithm according to the remaining duration, so as to obtain target result data.
In one embodiment, the result calculation module 706 is further configured to send the input data to the target hardware device when the remaining duration is less than or equal to the preset first duration; detecting whether feedback data sent by a target hardware device are received within a preset second time period; if the feedback data is received within the preset second time period, determining whether the target hardware device is successfully called or not according to the feedback data; and if the target hardware device is successfully called, obtaining target result data according to the feedback data.
In one embodiment, the result calculation module 706 is further configured to calculate, according to a target software algorithm, the input data to obtain target result data when the target hardware device is not successfully invoked; reset invokes countdown.
In one embodiment, the result calculation module 706 is further configured to update the number of failures corresponding to the target hardware device, and detect whether the number of failures is greater than or equal to a preset number of times threshold; and if the failure times are greater than or equal to the times threshold, updating the calling countdown according to the failure times and the times threshold, and obtaining the updated calling countdown.
In one embodiment, the result calculation module 706 is further configured to perform ratio processing on the failure times and the time threshold to obtain updated weight data; multiplying the updated weight data with a preset second duration to obtain a weight duration; and taking the current time as the countdown starting time, and taking the time with the smaller median of the weight time and the third time as the total time to obtain updated calling countdown.
In one embodiment, the result calculation module 706 is further configured to perform calculation processing on the input data according to the target software algorithm to obtain target result data when the feedback data is not received within the preset second duration.
In one embodiment, the result calculation module 706 is further configured to calculate the input data according to the target software algorithm to obtain the target result data if the remaining time period is longer than the first time period.
The respective modules in the above-described data degradation processing apparatus may be implemented in whole or in part by software, hardware, and combinations thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In one exemplary embodiment, a computer device is provided, which may be a server, and the internal structure thereof may be as shown in fig. 8. The computer device includes a processor, a memory, an Input/Output interface (I/O) and a communication interface. The processor, the memory and the input/output interface are connected through a system bus, and the communication interface is connected to the system bus through the input/output interface. Wherein the processor of the computer device is configured to provide computing and control capabilities. 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, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The database of the computer device is used to store an initial storage model and historical storage 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 for communicating with an external terminal through a network connection. The computer program, when executed by a processor, implements a data degradation processing method.
It will be appreciated by those skilled in the art that the structure shown in fig. 8 is merely a block diagram of some of the structures associated with the present application and is not limiting of the computer device to which the present application may be applied, and that a particular computer device may include more or fewer components than shown, or may combine certain components, or have a different arrangement of components.
In an embodiment, there is also provided a computer device comprising a memory and a processor, the memory having stored therein a computer program, the processor implementing the steps of the method embodiments described above when the computer program is executed.
In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored which, when executed by a processor, carries out the steps of the method embodiments described above.
In an embodiment, a computer program product is provided, comprising a computer program which, when executed by a processor, implements the steps of the method embodiments described above.
It should be noted that, the user information (including, but not limited to, user equipment information, user personal information, etc.) and the data (including, but not limited to, data for analysis, stored data, presented data, etc.) referred to in the present application are information and data authorized by the user or sufficiently authorized by each party, and the collection, use, and processing of the related data are required to meet the related regulations.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, database, or other medium used in the various embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, high density embedded nonvolatile Memory, resistive random access Memory (ReRAM), magnetic random access Memory (Magnetoresistive Random Access Memory, MRAM), ferroelectric Memory (Ferroelectric Random Access Memory, FRAM), phase change Memory (Phase Change Memory, PCM), graphene Memory, and the like. Volatile memory can include random access memory (Random Access Memory, RAM) or external cache memory, and the like. By way of illustration, and not limitation, RAM can be in the form of a variety of forms, such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM), and the like. The databases referred to in the various embodiments provided herein may include at least one of relational databases and non-relational databases. The non-relational database may include, but is not limited to, a blockchain-based distributed database, and the like. The processors referred to in the embodiments provided herein may be general purpose processors, central processing units, graphics processors, digital signal processors, programmable logic units, quantum computing-based data processing logic units, etc., without being limited thereto.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The above examples only represent a few embodiments of the present application, which are described in more detail and are not to be construed as limiting the scope of the present application. It should be noted that it would be apparent to those skilled in the art that various modifications and improvements could be made without departing from the spirit of the present application, which would be within the scope of the present application. Accordingly, the scope of protection of the present application shall be subject to the appended claims.

Claims (10)

1. A method of data degradation processing, the method being applied to a central processor in a data processing system, the data processing system further comprising a target hardware device, the method comprising:
acquiring input data to be calculated and processed;
when the input data is acquired, acquiring the residual duration corresponding to calling countdown;
and according to the residual duration, determining to call the target hardware device or calculate the input data according to a target software algorithm to obtain target result data.
2. The method according to claim 1, wherein determining to call the target hardware device or perform calculation processing on the input data according to a target software algorithm according to the remaining duration to obtain target result data includes:
if the remaining time length is smaller than or equal to a preset first time length, the input data are sent to the target hardware device;
detecting whether feedback data sent by the target hardware device are received within a preset second time period;
if the feedback data is received within the preset second time period, determining whether the target hardware device is successfully called or not according to the feedback data;
and if the target hardware device is successfully called, obtaining the target result data according to the feedback data.
3. The method according to claim 2, wherein the method further comprises:
if the target hardware device is failed to be called, calculating the input data according to the target software algorithm to obtain the target result data;
resetting the call countdown.
4. A method according to claim 3, wherein said resetting said call count down comprises:
updating the corresponding failure times of the target hardware device, and detecting whether the failure times are larger than or equal to a preset time threshold;
and if the failure times are greater than or equal to the times threshold, updating the calling countdown according to the failure times and the times threshold to obtain updated calling countdown.
5. The method of claim 4, wherein updating the call countdown based on the number of failures and the number of times threshold to obtain an updated call countdown comprises:
performing ratio processing on the failure times and the times threshold to obtain updated weight data;
multiplying the updated weight data with a preset second time length to obtain a weight time length;
and taking the current time as the countdown starting time, and taking the time with the smaller median of the weight time and the third time as the total time to obtain the updated calling countdown.
6. The method according to claim 2, wherein the method further comprises:
and if the feedback data is not received within the preset second time period, calculating the input data according to the target software algorithm to obtain the target result data.
7. The method according to claim 1, wherein determining to call the target hardware device or perform calculation processing on the input data according to a target software algorithm according to the remaining duration to obtain target result data includes:
and if the remaining time length is longer than the first time length, calculating the input data according to the target software algorithm to obtain the target result data.
8. A data degradation processing device for use in a central processor in a data processing system, the data processing system further comprising a target hardware device, the data degradation processing device comprising:
the data acquisition module is used for acquiring input data to be calculated and processed;
the time length acquisition module is used for acquiring the remaining time length corresponding to the calling countdown when the input data is acquired;
and the result calculation module is used for determining to call the target hardware device or calculate the input data according to a target software algorithm according to the residual duration to obtain target result data.
9. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any of claims 1 to 7 when the computer program is executed.
10. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 7.
CN202311742787.4A 2023-12-18 2023-12-18 Data degradation processing method, device, equipment and medium Pending CN117648310A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311742787.4A CN117648310A (en) 2023-12-18 2023-12-18 Data degradation processing method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311742787.4A CN117648310A (en) 2023-12-18 2023-12-18 Data degradation processing method, device, equipment and medium

Publications (1)

Publication Number Publication Date
CN117648310A true CN117648310A (en) 2024-03-05

Family

ID=90049460

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311742787.4A Pending CN117648310A (en) 2023-12-18 2023-12-18 Data degradation processing method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN117648310A (en)

Similar Documents

Publication Publication Date Title
CN110674149B (en) Service data processing method and device, computer equipment and storage medium
CN116302580B (en) Method and device for scheduling calculation force resources of nano relay
US11120513B2 (en) Capital chain information traceability method, system, server and readable storage medium
CN117648310A (en) Data degradation processing method, device, equipment and medium
CN114513498B (en) File transmission verification method, device, computer equipment and storage medium
CN111443999A (en) Data parallel processing method, actuator, computer device and storage medium
CN116204311A (en) Pod cluster capacity expansion and contraction method and device, computer equipment and storage medium
CN116775764A (en) Distributed ID generation method, distributed ID generation device, and storage medium
CN116700955A (en) Job processing method, apparatus, computer device, and readable storage medium
CN115757398A (en) Data storage method and device, computer equipment and storage medium
CN114116318A (en) Data backup method and device, computer equipment and storage medium
CN115174129A (en) Abnormal node detection method and device, computer equipment and storage medium
CN114756451A (en) Safety testing method and device for power grid system, computer equipment and storage medium
CN111698266A (en) Service node calling method, device, equipment and readable storage medium
CN112115119B (en) Graph database service performance monitoring method and device and storage medium
CN116938769B (en) Flow anomaly detection method, electronic device, and computer-readable storage medium
CN115150400B (en) Service fault processing method and device, cloud service platform and storage medium
CN118055018A (en) Method, device, computer equipment and storage medium for estimating server configuration quantity
CN116545949A (en) Data processing method, device, computer equipment and storage medium
JP6756680B2 (en) Information processing equipment, information processing methods, and information processing programs
CN117348987A (en) Task scheduling method, device, computer equipment, storage medium and program product
CN117539625A (en) Server resource allocation method, device, computer equipment and storage medium
CN116302428A (en) Task processing method, device, computer equipment, storage medium and program product
CN114416368A (en) Interface calling method, system, device and medium
CN117196598A (en) Resource transfer method, device, computer equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination