Data processing method and device, equipment and storage medium

By setting storage thresholds and dynamically managing wind turbine generator operation files, the problem of insufficient computer equipment storage space was solved, achieving efficient storage of operation files and optimization of load pressure.

CN119474030BActive Publication Date: 2026-01-13SHANGHAI ENVISION INNOVATION INTELLIGENT TECH CO LTD +1
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202510077780.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-01-17
Publication Date
2026-01-13
Estimated Expiration
2045-01-17

AI Technical Summary

Technical Problem

Computer equipment has limited data storage capacity and cannot store all the operating files of wind turbine generators. Furthermore, due to the remote geographical location, it cannot be transmitted in real time, resulting in the inability to back up the data in a timely manner.

Method used

By acquiring storage space usage information, setting first and second storage thresholds, retaining or deleting a subset of running files, and dynamically managing storage space utilization based on factors such as file generation time, type, and content, the system optimizes storage space utilization.

Benefits of technology

It enables dynamic adjustment of file retention strategies when storage space is insufficient, reducing storage load pressure and providing a new way to store files to meet the needs of different load pressures.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119474030B_ABST
    Figure CN119474030B_ABST
Patent Text Reader

Abstract

The application discloses a data processing method and device, equipment and a storage medium, and belongs to the computer technical field. The method comprises the following steps: acquiring occupation information of a storage space, wherein the occupation information is used for indicating the occupation of a plurality of running files of a production device on the storage space; in the case that the occupation information exceeds a first storage threshold and does not exceed a second storage threshold, retaining the running files in a first file subset and deleting the running files in a second file subset; in the case that the occupation information exceeds the second storage threshold, retaining the running files in a third file subset and deleting the running files in a fourth file subset; wherein the first file subset comprises a first number of running files with generation time belonging to a first time period, the third file subset comprises a second number of running files with the generation time belonging to the first time period, and the first number is greater than the second number.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology, and in particular to a data processing method, apparatus, device, and storage medium. Background Technology

[0002] With the rapid development of computer technology, the demand for data storage is increasing.

[0003] In related technologies, limitations imposed by geographical conditions and safety factors, such as the deployment location of wind turbine generators in the field, make data network transmission difficult. The operating files of wind turbine generators cannot be transmitted to maintenance personnel in a distant location in real time. Instead, maintenance personnel periodically copy the operating files from computer equipment near the wind turbine generators that stores the operating files.

[0004] However, computer devices have limited data storage capacity and cannot store all running files. How to save running files in computer devices is an urgent problem to be solved. Summary of the Invention

[0005] This application provides a data processing method, apparatus, device, and storage medium, the technical solution of which is as follows:

[0006] According to one aspect of this application, a data processing method is provided, the method being performed by a computer device, the method comprising:

[0007] Obtain storage space occupancy information, which is used to indicate the storage space occupancy status of multiple running files of the production equipment;

[0008] If the occupied information exceeds the first storage threshold but does not exceed the second storage threshold, the running files in the first file subset are retained and the running files in the second file subset are deleted; in the file set including the multiple running files, the first file subset and the second file subset are complementary sets.

[0009] If the occupied information exceeds the second storage threshold, the running files in the third file subset are retained, and the running files in the fourth file subset are deleted; the third file subset and the fourth file subset are complementary sets in the file set.

[0010] The first file subset includes a first number of running files whose generation time belongs to the first time period, and the third file subset includes a second number of running files whose generation time belongs to the first time period, wherein the first number is greater than the second number.

[0011] In one optional design of this application, each of the plurality of running files has a corresponding time type, and the generation times of at least two running files belonging to the same time type belong to the same time period;

[0012] The step of retaining the running files in the first file subset and deleting the running files in the second file subset when the occupied information exceeds the first storage threshold but does not exceed the second storage threshold includes:

[0013] If the occupied information exceeds the first storage threshold but does not exceed the second storage threshold, then a files are sampled from the running files of the same time type to construct the first file subset, where a is a positive integer;

[0014] The second file subset is determined based on the first file subset among the plurality of running files;

[0015] The executable files in the first file subset are retained, while the executable files in the second file subset are deleted.

[0016] In one alternative design of this application, the step of sampling and determining 'a' files from running files of the same time type includes at least one of the following:

[0017] Among the running files of the same time type, a files are randomly selected;

[0018] Among the running files of the same time type, a files are determined by using the generation time interval of adjacent files as a preset time interval;

[0019] Among the running files of the same time type, a files are determined based on the constraint that the contents of the a files are different from each other;

[0020] Among the running files of the same time type, a files are identified based on the constraint that the difference in file content between adjacent files exceeds a difference threshold.

[0021] In one optional design of this application, each of the plurality of running files has a corresponding time type, and the generation times of at least two running files belonging to the same time type belong to the same time period;

[0022] The step of retaining the running files in the third file subset and deleting the running files in the fourth file subset when the occupied information exceeds the second storage threshold includes:

[0023] If the occupied information exceeds the second storage threshold, b files are sampled from running files of the same time type to construct the third file subset, where b is a positive integer;

[0024] The fourth file subset is determined based on the third file subset among the plurality of running files;

[0025] The executable files in the third file subset are retained, while the executable files in the fourth file subset are deleted.

[0026] In one alternative design of this application, the method further includes:

[0027] Obtain the generation time of the multiple running files;

[0028] Based on the generation time, at least two time types are determined for the multiple running files, and the time periods corresponding to different time types have the same duration.

[0029] In one alternative design of this application, the method further includes:

[0030] Obtain the file cleanup directory, which is the storage path of some files in the multiple running files;

[0031] The storage path of the running files in the second file subset and / or the fourth file subset belongs to the file cleanup directory.

[0032] In one optional design of this application, the production equipment includes a wind turbine generator set; the method further includes:

[0033] Obtain the data cleanup tag, wherein the storage path of the running files in the second file subset and / or the fourth file subset belongs to the file cleanup directory and has the data cleanup tag;

[0034] The data cleaning label is used to indicate the operating data of the wind turbine when the turbine speed is less than the speed threshold, or the operating data of the wind turbine when the pitch angle is within the angle range.

[0035] In one alternative design of this application, the method further includes:

[0036] If the occupied information exceeds a third storage threshold, delete a portion of the running files at the head of the file sequence, where the file sequence is obtained by arranging the multiple running files in order of their generation time from oldest to newest.

[0037] Wherein, after deleting the aforementioned portion of the running files, the occupancy information did not exceed the third storage threshold.

[0038] In one alternative design of this application, the method further includes:

[0039] Obtain the file cleanup type, where the file cleanup type is the file data type of a portion of the multiple running files;

[0040] The file data types of the running files in the second file subset and / or the fourth file subset belong to the file cleanup type.

[0041] In one alternative design of this application, the method further includes:

[0042] Obtain the current time information and the historical read time of the computer device, wherein the historical read time is the time when the computer device transmits historical running files to the read device;

[0043] The first storage threshold and / or the second storage threshold are determined based on the storage duration between the current time information and the historical read time.

[0044] Wherein, the storage duration is positively correlated with the first storage threshold, and / or the storage duration is positively correlated with the second storage threshold.

[0045] In one alternative design of this application, the method further includes:

[0046] Obtain historical read intervals, which are used to indicate the adjacent time intervals during which the computer device transfers historical running files to the read device;

[0047] The step of determining the first storage threshold and / or the second storage threshold based on the storage duration between the current time information and the historical read time includes:

[0048] Determine the storage duration between the current time information and the historical read time;

[0049] The first storage threshold and / or the second storage threshold are determined based on the proportion of the storage duration in the historical read interval.

[0050] The duration ratio is positively correlated with the first storage threshold, and / or the duration ratio is positively correlated with the second storage threshold.

[0051] In one alternative design of this application, the production equipment includes a wind turbine generator set;

[0052] The process of obtaining storage space occupancy information includes:

[0053] Obtain the wind turbine file occupancy information of the storage space for multiple wind turbine operation files of the wind turbine generator set;

[0054] The step of retaining the running files in the first file subset and deleting the running files in the second file subset when the occupied information exceeds the first storage threshold but does not exceed the second storage threshold includes:

[0055] If the wind turbine file occupancy information exceeds the first storage threshold but does not exceed the second storage threshold, retain the wind turbine operation files in the first file subset and delete the wind turbine operation files in the second file subset;

[0056] The step of retaining the running files in the third file subset and deleting the running files in the fourth file subset when the occupied information exceeds the second storage threshold includes:

[0057] If the wind turbine file occupancy information exceeds the second storage threshold, retain the wind turbine operation files in the third file subset and delete the wind turbine operation files in the fourth file subset.

[0058] According to another aspect of this application, a data processing apparatus is provided, the apparatus comprising:

[0059] The acquisition module is used to acquire storage space occupancy information, which is used to indicate the storage space occupancy status of multiple running files of the production equipment;

[0060] The processing module is configured to, when the occupied information exceeds a first storage threshold but does not exceed a second storage threshold, retain the running files in the first file subset and delete the running files in the second file subset; in the file set including the multiple running files, the first file subset and the second file subset are complementary sets to each other;

[0061] The processing module is further configured to, when the occupied information exceeds the second storage threshold, retain the running files in the third file subset and delete the running files in the fourth file subset; the third file subset and the fourth file subset are complementary sets in the file set;

[0062] The first file subset includes a first number of running files whose generation time belongs to the first time period, and the third file subset includes a second number of running files whose generation time belongs to the first time period, wherein the first number is greater than the second number.

[0063] According to another aspect of this application, a computer device is provided, the computer device including a processor and a memory, the memory storing at least one instruction, at least one program, code set or instruction set, the at least one instruction, the at least one program, the code set or instruction set being loaded and executed by the processor to implement the data processing method as described above.

[0064] According to another aspect of this application, a computer-readable storage medium is provided, wherein at least one instruction, at least one program, code set, or instruction set is stored therein, wherein the at least one instruction, the at least one program, the code set, or the instruction set is loaded and executed by a processor to implement the data processing method described above.

[0065] According to another aspect of this application, a computer program product is provided, the computer program product including computer instructions stored in a computer-readable storage medium, wherein a processor reads from the computer-readable storage medium and executes the computer instructions to implement the data processing method described above.

[0066] The beneficial effects of the technical solution provided in this application include at least the following:

[0067] By analyzing the relationship between occupancy information and the first and second storage thresholds, the subset of files to be retained and the subset of files to be deleted are determined. This enables the dilution of running files when storage space is insufficient, reducing the load on storage space. Based on different load pressures on storage space, different numbers of files to be retained are determined, which can dynamically alleviate the load pressure on storage space and provide a new storage method for running files. Attached Figure Description

[0068] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0069] Figure 1 This is a schematic diagram of a computer system provided in an exemplary embodiment of this application;

[0070] Figure 2 This is a schematic diagram of a data processing method provided in an exemplary embodiment of this application;

[0071] Figure 3 This is a first flowchart of a data processing method provided in an exemplary embodiment of this application;

[0072] Figure 4 This is a second flowchart of a data processing method provided in an exemplary embodiment of this application;

[0073] Figure 5 This is a third flowchart of a data processing method provided in an exemplary embodiment of this application;

[0074] Figure 6 This is a fourth flowchart of a data processing method provided in an exemplary embodiment of this application;

[0075] Figure 7 This is the fifth flowchart of a data processing method provided in an exemplary embodiment of this application;

[0076] Figure 8 This is another schematic diagram of a data processing method provided in an exemplary embodiment of this application;

[0077] Figure 9 This is the sixth flowchart of a data processing method provided in an exemplary embodiment of this application;

[0078] Figure 10 This is a structural block diagram of a data processing apparatus provided in an exemplary embodiment of this application;

[0079] Figure 11 This is a structural block diagram of a server provided in an exemplary embodiment of this application.

[0080] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application. Detailed Implementation

[0081] To make the objectives, technical solutions, and advantages of this application clearer, the embodiments of this application will be described in further detail below with reference to the accompanying drawings.

[0082] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims.

[0083] The terminology used in this disclosure is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. The singular forms “a,” “the,” and “the” as used in this disclosure and the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise. It should also be understood that the term “and / or” as used herein refers to and includes any and all possible combinations of one or more of the associated listed items.

[0084] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of related data must comply with the relevant laws, regulations and standards of the relevant countries and regions. For example, the information such as the runtime files involved in this application were obtained with full authorization.

[0085] It should be understood that although the terms first, second, etc., may be used in this disclosure to describe various information, such information should not be limited to these terms. These terms are only used to distinguish information of the same type from one another. For example, a first parameter may also be referred to as a second parameter without departing from the scope of this disclosure, and similarly, a second parameter may also be referred to as a first parameter. Depending on the context, the word "if" as used herein may be interpreted as "when," "when," or "in response to determination."

[0086] Figure 1 A schematic diagram of a computer system provided in one embodiment of this application is shown. This computer system can implement a system architecture that constitutes a data processing method. The computer system may include: a terminal 100 and a server 200.

[0087] Terminal 100 can be an electronic device such as a mobile phone, tablet computer, or PC (Personal Computer). A client application for the target application can be installed and run on terminal 100. This target application can be a management application for production equipment, or other applications that provide data processing capabilities; this application does not limit the specific application. Furthermore, this application does not limit the form of the target application, including but not limited to apps, mini-programs, etc., installed on terminal 100, and can also be in web page form.

[0088] Server 200 can be a standalone physical server, a server cluster or distributed system consisting of multiple physical servers, or a cloud server providing cloud computing services. Server 200 can be the backend server for the aforementioned target application, used to provide backend services to the clients of the target application.

[0089] The data processing method provided in this application embodiment can be executed by a computer device, which refers to an electronic device with data computing, processing, and storage capabilities. Figure 1Taking the implementation environment of the scheme shown as an example, the data processing method can be executed by the terminal 100 (such as by the client of the target application installed and running in the terminal 100), or by the server 200, or by the interaction and cooperation between the terminal 100 and the server 200. This application does not limit this.

[0090] Furthermore, the technical solution of this application can be combined with blockchain technology. For example, in the data processing method disclosed in this application, some data (such as executable files) can be stored on the blockchain. Terminal 100 and server 200 can communicate via a network, such as a wired or wireless network.

[0091] Figure 2 A schematic diagram of a data processing method provided in an exemplary embodiment of this application is shown.

[0092] Obtain the occupancy information 322 of storage space 310, which stores the operating files of the production equipment; the occupancy information 322 is used to indicate the occupancy status of the storage space by multiple operating files of the production equipment. For example, the occupancy information 322 is percentage data used to indicate the proportion of storage space occupied by multiple operating files.

[0093] Regarding the operating documents, taking a wind turbine generator set as an example, the operating documents record at least one of the following information during the process of generating electricity by the wind turbine generator set relying on air blowing: wind turbine speed, power generation, and blade pitch angle.

[0094] For example, the n running files in storage space 310 are described, and the generation time of the n running files is later than time T0 and earlier than time T1.

[0095] If the occupied information exceeds the first storage threshold 332 but does not exceed the second storage threshold 334, and the storage space occupancy ratio of multiple running files exceeds 60% but does not exceed 80%, x running files are retained for storage, and (nx) running files other than x running files are deleted between time T0 and time T1.

[0096] If the occupied information exceeds the second storage threshold of 334, and the storage space occupancy ratio of multiple running files exceeds 80%, y running files are retained in storage, and (ny) running files other than y running files are deleted between time T0 and time T1. As the storage space load pressure increases, a smaller number of running files whose generation time is between time T0 and time T1 are retained in storage, i.e., y is less than x; the different number of files in different retained storage are determined according to the different load pressures of the storage space, dynamically alleviating the load pressure on the storage space.

[0097] The data processing method will now be described through the following examples.

[0098] Figure 3 A first flowchart of a data processing method provided in an exemplary embodiment of this application is shown. The method can be executed by a computer device. The method includes:

[0099] Step 510: Obtain storage space usage information;

[0100] For example, the storage space is used to store the operating files of the production equipment. The storage space is provided by a computer device or is storage space that the computer device has read access to. For example, the occupancy information is used to indicate the storage space occupancy of multiple operating files of the production equipment. The occupancy information can indicate the proportion of storage space occupied by multiple operating files in the form of a percentage, or it can indicate the volume occupied by multiple operating files and the total volume of the storage space in a numerical form. This application does not limit the data format of the occupancy information.

[0101] For example, production equipment is a device that alters at least one of the properties, performance, form, or enhances the appearance of raw materials input into the production process during social production. Examples include wind turbines, solar power generators, and power transmission equipment used in power generation; mining equipment, mineral transport equipment, and mineral sorting equipment used in mining production; and logistics sorting equipment and logistics packaging equipment used in logistics processing. It is understood that this category may also include production equipment used in other production processes.

[0102] Step 520: If the occupied information exceeds the first storage threshold but does not exceed the second storage threshold, retain the running files in the first file subset and delete the running files in the second file subset;

[0103] For example, if the occupied information exceeds the first storage threshold but does not exceed the second storage threshold, the storage space reaches the first level of load pressure for storing running files; the load on the storage space for storing running files is reduced by deleting some running files in the storage space.

[0104] For example, in a file set including multiple executable files, the first file subset and the second file subset are complementary sets; the other files among the multiple executable files, excluding the executable files in the second file subset, are executable files in the first file subset.

[0105] Step 530: If the occupied information exceeds the second storage threshold, retain the running files in the third file subset and delete the running files in the fourth file subset;

[0106] If the occupied information exceeds the second storage threshold, the storage space reaches the second level of load pressure for storing running files; the load on the storage space for storing running files is reduced by deleting some running files in the storage space.

[0107] For example, in the file set, the third file subset and the fourth file subset are complementary sets; among the multiple running files, the other files besides the running files in the fourth file subset are running files in the third file subset.

[0108] It should be noted that the first file subset includes a first number of running files whose generation time belongs to the first time period, and the third file subset includes a second number of running files whose generation time belongs to the first time period, with the first number being greater than the second number.

[0109] It can be seen that under different load pressures indicated by the occupancy information, there are different ways to retain and store running files. For example, when the storage space reaches the second level of load pressure for storing running files, compared to the first level of load pressure, a smaller number of running files whose generation time belongs to the first time period are retained and stored in the storage space (i.e., the first number is greater than the second number). By retaining and storing a smaller number of running files, the load on the storage space is reduced.

[0110] The first time period can be a pre-set time frame, such as a day, a week, or 12 hours. In one example, if the occupied information exceeds the first storage threshold but does not exceed the second storage threshold, the running files in the first subset of files are retained, with 10 files in the first subset having been created on the most recent day. If the occupied information exceeds the second storage threshold, the running files in the third subset of files are retained, with 5 files in the third subset having been created on the most recent day. As the storage load increases, the number of files retained within a time period decreases.

[0111] In summary, the method provided in this embodiment determines the subset of files to be retained and the subset of files to be deleted by using the relationship between occupancy information and the first and second storage thresholds; it achieves the dilution of running files when storage space is insufficient, thereby reducing the load on storage space; and it determines the number of different files to be retained based on different load pressures on storage space, which can dynamically alleviate the load pressure on storage space and provides a new storage method for running files.

[0112] Figure 4 A second flowchart of a data processing method provided in an exemplary embodiment of this application is shown. This method can be executed by a computer device. That is, in Figure 3In the illustrated embodiment, step 520 can be implemented as steps 522, 524, and 526:

[0113] Step 522: If the occupied information exceeds the first storage threshold but does not exceed the second storage threshold, sample a files from the running files of the same time type to construct the first file subset;

[0114] For example, each of the multiple running files has a corresponding time type, and the generation times of at least two running files belonging to the same time type belong to the same time period; the time period can be divided according to a pre-set time interval, such as based on a time interval of one day, one week, or 12 hours, dividing multiple adjacent time periods from the current time as the end time of a time period, or dividing multiple adjacent time periods from the earliest historical time as the start time of a time period, the earliest historical time corresponds to the generation time of the first running file in the storage space, and the first running file is the file with the earliest generation time.

[0115] For example, 'a' is a positive integer; for example, the value of 'a' can be preset or determined based on the number of running files of the same time type. This application does not limit the method of determining the value of 'a'. Within each running file of the same time type, 'a' files are sampled; the number of files in the first subset is the product of 'a' and the number of time types.

[0116] In one optional implementation of this application, the method for sampling to determine a files is described. This step can be implemented as at least one of the following:

[0117] • Among the running files of the same time type, select 'a' files randomly.

[0118] For example, a technical solution for determining a files is provided by randomly selecting a files to be stored in the first file subset.

[0119] • Among the running files of the same time type, determine 'a' files by using the generation time interval of adjacent files as a preset time interval;

[0120] For example, by using a preset time interval as the generation time interval between adjacent files, a files are determined by uniformly sampling the generation time, thus ensuring the uniformity of the generation time of the determined files.

[0121] In a time-based runtime file, the files excluding file 'a' are the files deleted from the second file subset. The runtime files in the first file subset are uniformly generated in time, so runtime files from similar times can be used to represent the files deleted from the second file subset.

[0122] For example, let's take a value of 8 for 'a' and a total number of running files of the same time type, denoted as N=50, as an example. Specifically:

[0123] step = float 64(N-1) / float64(a-1)

[0124] index = i*step+1;

[0125] lowIndex = math.Floor(index);

[0126] roundIndex = math.Round(index);

[0127] fraction = index - float64(lowIndex);

[0128] indices[i]={

[0129] lowIndex, fraction equals 0

[0130] roundIndex, fraction not equal to 0}

[0131] Where step is the step size for determining 'a' files; for example, if a=8 and N=50, the step size for 8 files out of 50 files is determined to be 7; index is the reference index number of 'a' files among a total of N running files of the same time type, where i ranges from 0 to a-1, representing the reference index number of a files.

[0132] lowIndex is the result of rounding down the index, roundIndex is the result of rounding the index to the nearest integer; fraction is the difference between the index and lowIndex.

[0133] When fraction equals 0, the actual index number of file a is lowIndex; when fraction is not equal to 0, the actual index number of file a is roundIndex.

[0134] • Among the running files of the same time type, determine a files based on the constraint that the contents of the a files are different from each other;

[0135] For example, the contents of the files are different from each other, which can retain richer file contents of running files of the same time type, making it easier to count the running files of production equipment in different states.

[0136] For example, when the production equipment is in a test and use state, a files are determined by the constraint that the contents of the files are different from each other. This makes it easier for the testers of the production equipment to count the operating files of the production equipment in different states, such as drawing the power consumption curve of the production equipment.

[0137] • Among files of the same time type, determine 'a' files based on the constraint that the differences in the contents of adjacent files exceed a difference threshold;

[0138] For example, if the differences in the contents of adjacent files exceed a difference threshold, the stored runtime files contain information about the moment when the operating status of the production equipment fluctuates significantly, thus preventing the runtime files from being deleted when the production equipment malfunctions.

[0139] For example, when the production equipment is in actual production use, 'a' files are identified based on the constraint that the differences in the content of adjacent files exceed a difference threshold. This facilitates the retention and storage of the operating files in case of abnormal operation of the production equipment, allowing maintenance personnel to conduct subsequent cause analysis of the abnormal operation of the production equipment.

[0140] Step 524: Among multiple running files, determine the second file subset based on the first file subset;

[0141] For example, in the file set, the first file subset and the second file subset are complementary sets; the running files in the first file subset and the second file subset are different from each other, and the second file subset is constructed from multiple running files other than the running files in the first file subset.

[0142] Step 526: Keep the running files in the first file subset and delete the running files in the second file subset;

[0143] For example, preserving the executable files in the first subset of files can be achieved by not performing any editing operations on the executable files in the first subset of files. Preserving the executable files in the first subset of files can be achieved by deleting the executable files in the second subset of files.

[0144] In summary, the method provided in this embodiment determines the subset of files to be retained and the subset of files to be deleted by relating the occupancy information to the first storage threshold and the second storage threshold; it provides different methods for determining the subset of files to be deleted, fully considering the operating characteristics of production equipment at different stages of use; it enables the dilution of running files when storage space is insufficient, reducing the load on storage space; and it determines different numbers of files to be retained based on different load pressures on storage space, dynamically alleviating the load pressure on storage space and providing a new storage method for running files.

[0145] Figure 5 A third flowchart illustrating a data processing method provided in an exemplary embodiment of this application is shown. This method can be executed by a computer device. That is, in Figure 4 Based on the illustrated embodiment, steps 505 and 506 are also included; step 530 can be implemented as steps 532, 534, and 536:

[0146] Step 505: Obtain the generation time of multiple executable files;

[0147] For example, the generation time is the time when the executable file was written to storage or edited. The generation time is obtained at the moment when it is necessary to determine the time type of the executable file.

[0148] Step 506: Based on the generation time, determine at least two time types for multiple executable files;

[0149] For example, the time type of the executable file is determined based on the time period to which the generation time belongs. For example, multiple executable files belonging to the same time period have the same time type, and the time periods corresponding to different time types have the same duration.

[0150] For example, the time period can be divided according to a preset time interval, such as a day, a week, or 12 hours. Multiple adjacent time periods can be divided from the current time as the end time of a time period, or multiple adjacent time periods can be divided from the earliest historical time as the start time of a time period. The earliest historical time corresponds to the generation time of the first running file in the storage space. The first running file is the file with the earliest generation time.

[0151] It should be noted that steps 505 and 506 in this embodiment can be the same as... Figure 4 The various steps in the process can be combined to form new embodiments and implemented individually, and this application does not limit this. For example, steps 505 and 506 in this embodiment are executed before step 510, but it is not excluded that in other examples, either step 505 or step 506 is executed after or simultaneously with step 510.

[0152] Step 532: If the occupied information exceeds the second storage threshold, sample b files from the running files of the same time type to construct a third file subset;

[0153] For example, each of the multiple executable files has a corresponding time type, and at least two executable files of the same time type are generated within the same time period;

[0154] For example, b is a positive integer; the number of files in the third file subset is the product of b and the number of time types. In one example, the value of a is greater than b.

[0155] It should be noted that the method for sampling to determine b files can be found in the description of the sampling method for a files above, and will not be repeated here.

[0156] Step 534: Among multiple running files, determine the fourth file subset based on the third file subset;

[0157] For example, in the file set, the third file subset and the fourth file subset are complementary sets; the executable files in the third file subset and the fourth file subset are different from each other, and the fourth file subset is constructed from multiple executable files other than the executable files in the third file subset.

[0158] Step 536: Keep the executable files in the third file subset and delete the executable files in the fourth file subset;

[0159] For example, preserving the executable files in the third file subset can be achieved by not performing any editing operations on the executable files in the third file subset. Preserving the executable files in the third file subset is achieved by deleting the executable files in the fourth file subset.

[0160] It should be noted that steps 532, 534, and 536 in this embodiment can be the same as... Figure 3 Steps 510 and 520 can be combined to form a new embodiment and implemented separately; this application does not limit this. Steps 505, 506, 532, 534, and 536 in this embodiment can be combined with... Figure 3 Steps 510 and 520 can be combined to form a new embodiment and implemented separately. This application does not limit this.

[0161] In summary, the method provided in this embodiment determines the subset of files to be retained and the subset of files to be deleted by using the relationship between occupancy information and the first and second storage thresholds; it achieves the dilution of running files when storage space is insufficient, thereby reducing the load on storage space; and it determines the number of different files to be retained based on different load pressures on storage space, which can dynamically alleviate the load pressure on storage space and provides a new storage method for running files.

[0162] Figure 6 A fourth flowchart of a data processing method provided in an exemplary embodiment of this application is shown. This method can be executed by a computer device. That is, in Figure 4 Based on the illustrated embodiment, steps 515 and 516 are also included:

[0163] Step 515: Obtain the file cleanup directory;

[0164] For example, the file cleanup directory is the storage path for a portion of the files in a plurality of running files; the portion of the running files in the file cleanup directory is used to construct a second file subset and / or a fourth file subset; correspondingly, the storage path of the running files in the second file subset and / or the fourth file subset belongs to the file cleanup directory.

[0165] For example, the file cleanup directory is used to indicate the storage path where file dilution needs to be performed; when step 515 is performed alone, performing file dilution is to delete a portion of the run files in the file cleanup directory (i.e., the second and / or fourth file subsets are built based on a portion of the run files in the file cleanup directory).

[0166] The first file subset includes files outside the second file subset in the file cleanup directory, as well as executable files that are not in the file cleanup directory. The third file subset includes files outside the fourth file subset in the file cleanup directory, as well as executable files that are not in the file cleanup directory.

[0167] It should be noted that step 515 in this embodiment can be the same as... Figure 3 The various steps in the process can be combined to form new embodiments and implemented separately, and this application does not limit this.

[0168] Step 516: Obtain data cleanup tags;

[0169] For example, the data cleanup tag is a file tag that needs to be diluted; for example, the executable file has a corresponding file tag, and if the file tag of the executable file is the same as the data cleanup tag, then the file is the executable file that needs to be diluted.

[0170] In one example, within a file cleanup directory, each run file tagged with "data cleanup" belongs to a file cleanup set. For instance, a subset of run files in the file cleanup directory tagged with "data cleanup" are deleted (i.e., the second and / or fourth file subsets are constructed based on this subset); the second and / or fourth file subsets are subsets of the file cleanup set. For instance, the storage paths of the run files in the second and / or fourth file subsets belong to the file cleanup directory and have the "data cleanup" tag.

[0171] The first file subset includes files outside the second file subset in the file cleanup directory, as well as executable files that are not in the file cleanup directory. The third file subset includes files outside the fourth file subset in the file cleanup directory, as well as executable files that are not in the file cleanup directory.

[0172] In this embodiment, the production equipment includes a wind turbine generator set. In one example, a data cleanup tag is used to indicate the operating data of the wind turbine generator set when the turbine speed is less than a speed threshold. When the turbine speed of the wind turbine generator set is less than the speed threshold, the wind turbine generator set is subjected to low-speed wind and is in a low-power generation state. Exemplarily, by deleting some data of the wind turbine generator set in the low-power generation state, the load on the storage space for storing operating files is reduced; the deleted operating files of the low-power generation state are low-importance data in the wind turbine generator set and will not affect the maintenance or analysis of the wind turbine generator set operation.

[0173] In another example, the data cleanup tag is used to indicate operating data when the pitch angle of the wind turbine is within a certain range. When the pitch angle of the wind turbine is within this range, the angle at which the wind turbine is exposed to airflow is within a preset operating angle, indicating normal wind direction operation. For example, by deleting some data related to the wind turbine's normal wind direction operation, the load on the storage space for storing operating files is reduced. Normal wind direction operation does not cause damage to the wind turbine due to airflow; the deleted operating files for normal wind direction operation are low-importance data within the wind turbine and will not affect the maintenance or analysis of the wind turbine's operation.

[0174] In summary, the method provided in this embodiment determines the subset of files to be retained and the subset of files to be deleted by using the relationship between occupancy information and the first and second storage thresholds; it constrains the range of deleted running files by using the obtained file cleanup directory and data cleanup tags, so as to prioritize the deletion of running files that have a small impact on the maintenance or analysis of production equipment; it also realizes the dilution of running files when storage space is insufficient, thereby reducing the load on storage space; and it determines the number of different files to be retained in different storage according to different load pressures on storage space, which can dynamically alleviate the load pressure on storage space and provide a new storage method for running files.

[0175] Figure 7 A fifth flowchart of a data processing method provided in an exemplary embodiment of this application is shown. This method can be executed by a computer device. That is, in Figure 4 Based on the illustrated embodiment, steps 517 and 540 are also included:

[0176] Step 517: Obtain the file cleanup type;

[0177] For example, the file cleanup type is the file data type of a portion of the files in a plurality of running files; for example, the file data type indicated by the file cleanup type can be at least one of the following: a distributed file system, such as SeaweedFile System (SeaweedFS); an object storage file system, such as Amazon Simple Storage Service (Amazon S3); an operating system file system, such as a Linux file system. For example, the file data type of the running files to be deleted is indicated by recording the file cleanup type in the Storage Media parameter.

[0178] For example, some executable files belonging to the file cleanup type are used to construct the second and / or fourth file subsets; correspondingly, the file data types of the executable files in the second and / or fourth file subsets belong to the file cleanup type. The file cleanup type indicates the executable files in different data storage methods that need to be deleted.

[0179] It should be noted that step 517 in this embodiment can be combined with... Figure 3 The various steps in the process can be combined to form new embodiments and implemented separately, and this application does not limit this.

[0180] Step 540: If the occupied information exceeds the third storage threshold, delete the portion of the running file at the head of the file sequence;

[0181] For example, when the occupied information exceeds the third storage threshold, the storage space reaches the third level of load pressure for storing running files; the third storage threshold is greater than the second storage threshold. The load on the storage space for storing running files is reduced by deleting a portion of the running files at the head of the file sequence.

[0182] If the occupied information exceeds the third storage threshold, there is a risk that the storage space will be completely full. By deleting some running files at the head of the file sequence, the occupied information of the storage control can be reduced to below the third storage threshold. For example, after deleting some running files, the occupied information did not exceed the third storage threshold.

[0183] For example, the file sequence is obtained by arranging multiple running files in order of their creation time from oldest to newest; for example, running files created a long time ago are deleted first.

[0184] It should be noted that step 540 in this embodiment can be the same as... Figure 3 The various steps in the process can be combined to form new embodiments and implemented separately, and this application does not limit this.

[0185] Figure 8 Another schematic diagram of a data processing method provided by an exemplary embodiment of this application is shown.

[0186] If the occupied information does not exceed the first storage threshold 332, for example, if the occupied information does not exceed 60%, the storage space is reserved to store multiple running files whose generation time belongs to the first time period, such as saving all running files in full.

[0187] If the occupied information exceeds the first storage threshold 332 but does not exceed the second storage threshold 334, for example, if the occupied information exceeds 60% but does not exceed 80%, for the running files whose generation time belongs to the first time period, a medium number of running files are retained in storage, such as retaining the first number of running files in the first time period.

[0188] If the occupied information exceeds the second storage threshold of 334, for example, if the occupied information exceeds 80%, a small number of running files whose generation time belongs to the first time period will be reserved for storage. For example, a second number of running files within the first time period will be reserved for storage. The second number is less than the first number.

[0189] If the occupied information exceeds the third storage threshold of 336, for example, if the occupied information exceeds 90%, there is a risk that the storage space will be completely full. Delete the running files in order of their generation time from earliest to latest to reduce the occupied information of the storage control to below the third storage threshold.

[0190] For example, the file cleanup type can be recorded in the Storage Media parameter, indicating the file data type of the running file to be deleted, so that the deletion and retention storage methods of the running file can be applied to multiple file data types.

[0191] In summary, the method provided in this embodiment determines the subset of files to be retained and the subset of files to be deleted by relating the occupancy information to the first storage threshold and the second storage threshold; it achieves the dilution of running files when storage space is insufficient, thereby reducing the load on storage space; it determines the different number of files to be retained in different storage spaces based on the different load pressures on storage space; and when there is a risk that storage space is completely full, it reduces the occupancy information of storage control to below the third storage threshold by deleting some running files at the head of the file sequence; it can dynamically alleviate the load pressure on storage space and provides a new storage method for running files.

[0192] Figure 9 A sixth flowchart of a data processing method provided in an exemplary embodiment of this application is shown. This method can be executed by a computer device. That is, in Figure 4 Based on the illustrated embodiment, steps 502 and 504 are also included:

[0193] Step 502: Obtain the current time information and the computer device's historical read time;

[0194] For example, historical read time is the time it takes for a computer device to transfer historical running files to a reading device; in one example, the production equipment is deployed in a remote area where data network transmission is difficult, and maintenance personnel carry the reading device to copy the running files from the storage space. The reading device is a device used to copy running files from the storage space. For example, historical read time is the time it takes for a computer device to transfer historical running files to the reading device.

[0195] Step 504: Determine the first storage threshold and / or the second storage threshold based on the storage duration between the current time information and the historical read time;

[0196] For example, there is a positive correlation between storage duration and a first storage threshold, and / or a positive correlation between storage duration and a second storage threshold. As the storage duration increases, the probability that the computer device will transfer the running file to the reading device again increases; for example, as the duration of the current time and the historical reading time increases, the probability that the maintenance personnel will carry the reading device to copy the running file from the storage space increases, the determined first storage threshold and / or second storage threshold increase, and more space in the storage space is allowed to be used to store the running file.

[0197] In one alternative implementation, it also includes:

[0198] • Obtain historical read intervals;

[0199] For example, the historical read interval is used to indicate the time interval between adjacent transfers of historical running files from a computer device to a read device; in one example, the production equipment is deployed in a remote area where data network transmission is difficult, and maintenance personnel periodically carry the read device to copy the running files from the storage space. The historical read interval is the time interval between two consecutive transfers of running files from the storage space by maintenance personnel.

[0200] Accordingly, step 504 can be implemented as follows:

[0201] • Determine the storage duration between the current time information and the historical read time;

[0202] For example, storage duration is the time interval between the current time information and the historical read time. For example, the historical read time is the time when the operations and maintenance personnel last copied a running file from the storage space using a reading device.

[0203] • Determine the first storage threshold and / or the second storage threshold based on the proportion of storage duration in the historical read interval;

[0204] For example, as the duration percentage increases, and the current time approaches the scheduled time when maintenance personnel will next bring the reading device to copy the running files from the storage space, the determined first storage threshold and / or second storage threshold increase, allowing more space in the storage space to be used to store the running files. For example, the duration percentage is positively correlated with the first storage threshold, and / or the duration percentage is positively correlated with the second storage threshold.

[0205] In summary, the method provided in this embodiment determines the subset of files to be retained and the subset of files to be deleted by the relationship between occupancy information and the first and second storage thresholds; it achieves the dilution of running files when storage space is insufficient, thereby reducing the load on storage space; and it determines the storage threshold by using historical read time and historical read interval, fully considering the actual working state of maintenance personnel carrying reading devices to copy running files from storage space, and realizes the dynamic determination of the load pressure on storage space based on time, making full use of storage space to store running files.

[0206] In one alternative design of this application, the production equipment includes a wind turbine generator set; correspondingly:

[0207] • Obtain information on the storage space usage of multiple wind turbine operation files from a wind turbine generator set;

[0208] For example, the storage space is used to store the wind turbine operation file of the wind turbine generator set. The wind turbine operation file records at least one of the following information during the process of the wind turbine generator set generating electricity by relying on air blowing: wind turbine speed, power generation, and blade pitch angle of the wind turbine generator set.

[0209] • If the wind turbine file occupancy exceeds the first storage threshold but does not exceed the second storage threshold, retain the wind turbine operation files in the first file subset and delete the wind turbine operation files in the second file subset;

[0210] For example, if the wind turbine file occupancy information exceeds the first storage threshold but does not exceed the second storage threshold, the storage space reaches the first level of load pressure for storing wind turbine operation files; the load on the storage space for storing wind turbine operation files is reduced by deleting some of the wind turbine operation files in the storage space.

[0211] For example, in a file set including multiple wind turbine operation files, the first file subset and the second file subset are complementary sets; the other files in the multiple wind turbine operation files, excluding the wind turbine operation files in the second file subset, are the wind turbine operation files in the first file subset.

[0212] If the wind turbine file occupancy exceeds the second storage threshold, retain the wind turbine operation files in the third file subset and delete the wind turbine operation files in the fourth file subset.

[0213] If the amount of wind turbine file occupancy exceeds the second storage threshold, the storage space reaches the second level of load pressure for storing wind turbine operation files; the load on the storage space for storing wind turbine operation files is reduced by deleting some of the wind turbine operation files in the storage space.

[0214] For example, in the file set, the third file subset and the fourth file subset are complementary sets; among the multiple wind turbine operation files, the other files besides the wind turbine operation files in the fourth file subset are wind turbine operation files in the third file subset.

[0215] It should be noted that the first file subset includes a first number of wind turbine operation files whose generation time belongs to the first time period, and the third file subset includes a second number of wind turbine operation files whose generation time belongs to the first time period, with the first number being greater than the second number.

[0216] Those skilled in the art will understand that the above embodiments can be implemented independently, or the above embodiments can be freely combined to create new embodiments to implement the data processing method of this application.

[0217] Figure 10A structural block diagram of a data processing apparatus provided in an exemplary embodiment of this application is shown. The apparatus includes:

[0218] The acquisition module 810 is used to acquire storage space occupancy information, which is used to indicate the storage space occupancy status of multiple running files of the production equipment.

[0219] Processing module 820 is configured to, when the occupied information exceeds a first storage threshold but does not exceed a second storage threshold, retain the running files in the first file subset and delete the running files in the second file subset; in the file set including the multiple running files, the first file subset and the second file subset are complementary sets to each other;

[0220] The processing module 820 is further configured to, when the occupied information exceeds the second storage threshold, retain the running files in the third file subset and delete the running files in the fourth file subset; the third file subset and the fourth file subset are complementary sets in the file set;

[0221] The first file subset includes a first number of running files whose generation time belongs to the first time period, and the third file subset includes a second number of running files whose generation time belongs to the first time period, wherein the first number is greater than the second number.

[0222] In an optional implementation of this embodiment, each of the plurality of running files has a corresponding time type, and at least two running files belonging to the same time type are generated within the same time period; the processing module 820 is further configured to:

[0223] If the occupied information exceeds the first storage threshold but does not exceed the second storage threshold, then a files are sampled from the running files of the same time type to construct the first file subset, where a is a positive integer;

[0224] The second file subset is determined based on the first file subset among the plurality of running files;

[0225] The executable files in the first file subset are retained, while the executable files in the second file subset are deleted.

[0226] In an optional implementation of this embodiment, the processing module 820 is further configured to perform at least one of the following:

[0227] Among the running files of the same time type, a files are randomly selected;

[0228] Among the running files of the same time type, a files are determined by using the generation time interval of adjacent files as a preset time interval;

[0229] Among the running files of the same time type, a files are determined based on the constraint that the contents of the a files are different from each other;

[0230] Among the running files of the same time type, a files are identified based on the constraint that the difference in file content between adjacent files exceeds a difference threshold.

[0231] In an optional implementation of this embodiment, each of the plurality of running files has a corresponding time type, and at least two running files belonging to the same time type are generated within the same time period; the processing module 820 is further configured to:

[0232] If the occupied information exceeds the second storage threshold, b files are sampled from running files of the same time type to construct the third file subset, where b is a positive integer;

[0233] The fourth file subset is determined based on the third file subset among the plurality of running files;

[0234] The executable files in the third file subset are retained, while the executable files in the fourth file subset are deleted.

[0235] In an optional implementation of this embodiment, the acquisition module 810 is further configured to:

[0236] Obtain the generation time of the multiple running files;

[0237] The processing module 820 is further configured to:

[0238] Based on the generation time, at least two time types are determined for the multiple running files, and the time periods corresponding to different time types have the same duration.

[0239] In an optional implementation of this embodiment, the acquisition module 810 is further configured to:

[0240] Obtain the file cleanup directory, which is the storage path of some files in the multiple running files;

[0241] The storage path of the running files in the second file subset and / or the fourth file subset belongs to the file cleanup directory.

[0242] In an optional implementation of this embodiment, the production equipment includes a wind turbine generator set; the acquisition module 810 is further configured to:

[0243] Obtain the data cleanup tag, wherein the storage path of the running files in the second file subset and / or the fourth file subset belongs to the file cleanup directory and has the data cleanup tag;

[0244] The data cleaning label is used to indicate the operating data of the wind turbine when the turbine speed is less than the speed threshold, or the operating data of the wind turbine when the pitch angle is within the angle range.

[0245] In an optional implementation of this embodiment, the processing module 820 is further configured to:

[0246] If the occupied information exceeds a third storage threshold, delete a portion of the running files at the head of the file sequence, where the file sequence is obtained by arranging the multiple running files in order of their generation time from oldest to newest.

[0247] Wherein, after deleting the aforementioned portion of the running files, the occupancy information did not exceed the third storage threshold.

[0248] In an optional implementation of this embodiment, the acquisition module 810 is further configured to:

[0249] Obtain the file cleanup type, where the file cleanup type is the file data type of a portion of the multiple running files;

[0250] The file data types of the running files in the second file subset and / or the fourth file subset belong to the file cleanup type.

[0251] In an optional implementation of this embodiment, the acquisition module 810 is further configured to:

[0252] Obtain the current time information and the historical read time of the computer device, wherein the historical read time is the time when the computer device transmits historical running files to the read device;

[0253] The processing module 820 is further configured to:

[0254] The first storage threshold and / or the second storage threshold are determined based on the storage duration between the current time information and the historical read time.

[0255] Wherein, the storage duration is positively correlated with the first storage threshold, and / or the storage duration is positively correlated with the second storage threshold.

[0256] In an optional implementation of this embodiment, the processing module 820 is further configured to:

[0257] Obtain historical read intervals, which are used to indicate the adjacent time intervals during which the computer device transfers historical running files to the read device;

[0258] The processing module 820 is further configured to:

[0259] Determine the storage duration between the current time information and the historical read time;

[0260] The first storage threshold and / or the second storage threshold are determined based on the proportion of the storage duration in the historical read interval.

[0261] The duration ratio is positively correlated with the first storage threshold, and / or the duration ratio is positively correlated with the second storage threshold.

[0262] In an optional implementation of this embodiment, the production equipment includes a wind turbine generator set;

[0263] The acquisition module 810 is further configured to:

[0264] Obtain the wind turbine file occupancy information of the storage space for multiple wind turbine operation files of the wind turbine generator set;

[0265] The processing module 820 is further configured to:

[0266] If the wind turbine file occupancy information exceeds the first storage threshold but does not exceed the second storage threshold, retain the wind turbine operation files in the first file subset and delete the wind turbine operation files in the second file subset;

[0267] If the wind turbine file occupancy information exceeds the second storage threshold, retain the wind turbine operation files in the third file subset and delete the wind turbine operation files in the fourth file subset.

[0268] It should be noted that the device provided in the above embodiments is only illustrated by the division of the above functional modules when implementing its functions. In actual applications, the above functions can be assigned to different functional modules according to actual needs, that is, the content structure of the device can be divided into different functional modules to complete all or part of the functions described above.

[0269] Regarding the apparatus in the above embodiments, the specific manner in which each module performs its operation has been described in detail in the embodiments of the relevant method; the technical effects achieved by each module performing its operation are the same as the technical effects in the embodiments of the relevant method, and will not be elaborated here.

[0270] This application also provides a computer device, which includes: a processor and a memory, wherein the memory stores a computer program; the processor is used to execute the computer program in the memory to implement the data processing methods provided in the above-described method embodiments.

[0271] Alternatively, the computer device is a server. For example, Figure 11 This is a structural block diagram of a server provided in an exemplary embodiment of this application.

[0272] Typically, server 200 includes a processor 2301 and a memory 2302.

[0273] Processor 2301 may include one or more processing cores, such as a quad-core processor, an octa-core processor, etc. Processor 2301 may be implemented using at least one hardware form selected from Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). Processor 2301 may also include a main processor and a coprocessor. The main processor, also known as the Central Processing Unit (CPU), is used to process data in the wake-up state; the coprocessor is a low-power processor used to process data in the standby state. In some embodiments, processor 2301 may integrate a Graphics Processing Unit (GPU), which is responsible for rendering and drawing the content to be displayed on the screen. In some embodiments, processor 2301 may also include an Artificial Intelligence (AI) processor, which is used to handle computational operations related to machine learning.

[0274] The memory 2302 may include one or more computer-readable storage media, which may be non-transitory. The memory 2302 may also include high-speed random access memory and non-volatile memory, such as one or more disk storage devices or flash memory devices. In some embodiments, the non-transitory computer-readable storage media in the memory 2302 are used to store at least one instruction, which is executed by the processor 2301 to implement the data processing method provided in the method embodiments of this application.

[0275] In some embodiments, the server 200 may also optionally include an input interface 2303 and an output interface 2304. The processor 2301, memory 2302, and input interfaces 2303 and 2304 can be connected via a bus or signal lines. Various peripheral devices can be connected to the input interfaces 2303 and 2304 via a bus, signal lines, or a circuit board. The input interfaces 2303 and 2304 can be used to connect at least one input / output (I / O) related peripheral device to the processor 2301 and memory 2302. In some embodiments, the processor 2301, memory 2302, and input interfaces 2303 and 2304 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 2301, memory 2302, and input interfaces 2303 and 2304 can be implemented on separate chips or circuit boards, and this application does not limit this.

[0276] Those skilled in the art will understand that the structure shown above does not constitute a limitation on server 200, and may include more or fewer components than shown, or combine certain components, or employ different component arrangements.

[0277] In an exemplary embodiment, a chip is also provided, the chip including programmable logic circuitry and / or program instructions, which, when the chip is run on a computer device, are used to implement the data processing method described above.

[0278] In an exemplary embodiment, a computer program product is also provided, comprising computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions to implement the data processing methods provided in the above-described method embodiments.

[0279] In an exemplary embodiment, a computer-readable storage medium is also provided, which stores a computer program that is loaded and executed by a processor to implement the data processing methods provided in the above-described method embodiments.

[0280] Those skilled in the art will understand that all or part of the steps of the above embodiments can be implemented by hardware or by a program instructing related hardware. The program can be stored in a computer-readable storage medium, such as a read-only memory, a disk, or an optical disk.

[0281] Those skilled in the art will recognize that the functions described in the embodiments of this application in one or more of the above examples can be implemented using hardware, software, firmware, or any combination thereof. When implemented using software, these functions can be stored in a computer-readable medium or transmitted as one or more instructions or code on a computer-readable medium. Computer-readable media include computer storage media and communication media, wherein communication media include any medium that facilitates the transfer of a computer program from one place to another. Storage media can be any available medium that can be accessed by a general-purpose or special-purpose computer.

[0282] The above description is merely an optional embodiment of this application and is not intended to limit this application. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the protection scope of this application.

Claims

1. A data processing method, characterized in that, The method is performed by a computer device, and the method includes: Obtain the current time information and the historical read time of the computer device, wherein the historical read time is the time when the computer device transmits historical running files to the read device; Obtain historical read intervals, which are used to indicate the adjacent time intervals during which the computer device transfers historical running files to the read device; Determine the storage duration between the current time information and the historical read time; A first storage threshold and a second storage threshold are determined based on the proportion of the storage duration within the historical read interval; the proportion of the storage duration is positively correlated with the first storage threshold, and the proportion of the storage duration is positively correlated with the second storage threshold. Obtain the wind turbine file occupancy information of the storage space, wherein the wind turbine file occupancy information is used to indicate the occupancy of the storage space by multiple wind turbine operation files of the wind turbine generator set; If the wind turbine file occupancy information exceeds the first storage threshold but does not exceed the second storage threshold, in wind turbine operation files of the same time type, for the wind turbine generator set in the test use state, a files are determined with the constraint that the file content of a files is different from each other, and / or for the wind turbine generator set in the actual production use state, the constraint that the difference in the file content of adjacent files exceeds the difference threshold, and a first file subset is constructed. At least two wind turbine operation files of the same time type are generated in the same time period, where a is a positive integer. Obtain a file cleanup directory, which is the storage path of some files in the plurality of wind turbine operation files; in the plurality of wind turbine operation files, a second file subset is determined based on the first file subset, the storage path of the wind turbine operation files in the second file subset and / or the fourth file subset belongs to the file cleanup directory and has a data cleanup tag, the data cleanup tag is used to indicate the operation data when the wind turbine speed of the wind turbine is less than the speed threshold, or the operation data when the pitch angle of the wind turbine is within the angle range; The wind turbine operation files in the first file subset are retained, while the wind turbine operation files in the second file subset are deleted; the first file subset includes files other than the second file subset in the file cleanup directory, as well as operation files that do not belong to the file cleanup directory; If the wind turbine file occupancy information exceeds the second storage threshold, retain the wind turbine operation files in the third file subset and delete the wind turbine operation files in the fourth file subset; the third file subset includes files other than the fourth file subset in the file cleanup directory, as well as operation files that do not belong to the file cleanup directory; The first file subset includes a first number of running files whose generation time belongs to the first time period, and the third file subset includes a second number of running files whose generation time belongs to the first time period, wherein the first number is greater than the second number.

2. The method according to claim 1, characterized in that, The step of sampling and identifying *a* files from wind turbine operation files of the same time type also includes at least one of the following: From the wind turbine operation files of the same time type, a files are randomly selected; In the wind turbine operation files of the same time type, a files are determined by using the generation time interval of adjacent files as a preset time interval.

3. The method according to claim 1, characterized in that, Each of the multiple wind turbine operation files has a corresponding time type, and at least two wind turbine operation files of the same time type are generated in the same time period. The step of retaining the wind turbine operation files in the third file subset and deleting the wind turbine operation files in the fourth file subset when the wind turbine file occupancy information exceeds the second storage threshold includes: If the wind turbine file occupancy information exceeds the second storage threshold, b files are sampled from wind turbine operation files of the same time type to construct the third file subset, where b is a positive integer. The fourth file subset is determined based on the third file subset from the plurality of wind turbine operation files; The wind turbine operation files in the third file subset are retained, while the wind turbine operation files in the fourth file subset are deleted.

4. The method according to claim 1 or 3, characterized in that, The method further includes: Obtain the generation time of the multiple wind turbine operation files; Based on the generation time, at least two time types are determined from the multiple wind turbine operation files, and the time periods corresponding to different time types have the same duration.

5. The method according to any one of claims 1 to 3, characterized in that, The method further includes: If the wind turbine file occupancy information exceeds the third storage threshold, delete a portion of the wind turbine operation files at the head of the file sequence, where the file sequence is obtained by arranging the multiple wind turbine operation files in order of their generation time from oldest to newest. In particular, after deleting the aforementioned portion of the wind turbine operation files, the wind turbine file occupancy information did not exceed the third storage threshold.

6. The method according to any one of claims 1 to 3, characterized in that, The method further includes: Obtain the file cleanup type, where the file cleanup type is the file data type of a portion of the multiple wind turbine operation files; The file data types of the wind turbine operation files in the second file subset and / or the fourth file subset belong to the file cleanup type.

7. A data processing apparatus, characterized in that, The device includes: The acquisition module is used to acquire current time information and the historical reading time of the computer device, wherein the historical reading time is the time when the computer device transmits historical running files to the reading device; The acquisition module is further configured to acquire historical reading intervals, which are used to indicate the adjacent time intervals during which the computer device transmits historical running files to the reading device; The processing module is used to determine the storage duration between the current time information and the historical read time; The processing module is further configured to determine a first storage threshold and a second storage threshold based on the proportion of the storage duration in the historical read interval; the proportion of the duration is positively correlated with the first storage threshold and the proportion of the duration is positively correlated with the second storage threshold; The acquisition module is also used to acquire wind turbine file occupancy information of the storage space, and the wind turbine file occupancy information is used to indicate the occupancy of the storage space by multiple wind turbine operation files of the wind turbine generator set. The processing module is further configured to, when the wind turbine file occupancy information exceeds the first storage threshold but does not exceed the second storage threshold, determine a files from wind turbine operation files of the same time type, constraining that the file content of a files is different for the wind turbine generator set in the test use state, and / or constraining that the file content difference of adjacent files exceeds the difference threshold for the wind turbine generator set in the actual production use state, construct a first file subset, wherein the generation time of at least two wind turbine operation files of the same time type belongs to the same time period, and a is a positive integer; Obtain a file cleanup directory, which is the storage path of some files in the plurality of wind turbine operation files; in the plurality of wind turbine operation files, a second file subset is determined based on the first file subset, the storage path of the wind turbine operation files in the second file subset and / or the fourth file subset belongs to the file cleanup directory and has a data cleanup tag, the data cleanup tag is used to indicate the operation data when the wind turbine speed of the wind turbine is less than the speed threshold, or the operation data when the pitch angle of the wind turbine is within the angle range; The wind turbine operation files in the first file subset are retained, while the wind turbine operation files in the second file subset are deleted; the first file subset includes files other than the second file subset in the file cleanup directory, as well as operation files that do not belong to the file cleanup directory; The processing module is further configured to retain the wind turbine operation files in the third file subset and delete the wind turbine operation files in the fourth file subset when the wind turbine file occupancy information exceeds the second storage threshold; the third file subset includes files other than the fourth file subset in the file cleanup directory, as well as operation files that do not belong to the file cleanup directory; The first file subset includes a first number of running files whose generation time belongs to the first time period, and the third file subset includes a second number of running files whose generation time belongs to the first time period, wherein the first number is greater than the second number.

8. A computer device, characterized in that, The computer device includes: a processor and a memory, wherein the memory stores at least one program; the processor is configured to execute the at least one program in the memory to implement the data processing method as described in any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that, The readable storage medium stores executable instructions, which are loaded and executed by a processor to implement the data processing method as described in any one of claims 1 to 6.

10. A computer program product, characterized in that, The computer program product includes computer instructions stored in a computer-readable storage medium, and a processor reads from and executes the computer instructions to implement the data processing method as described in any one of claims 1 to 6.

Citation Information

Patent Citations

  • File processing method and device for vehicle monitoring equipment and vehicle monitoring equipment

    CN108280902A