Data processing method and device, equipment and storage medium

By obtaining the storage space occupation information and dynamically adjusting the subset of operating files of production equipment such as wind turbines, the problem of insufficient data storage space for computer equipment is solved, and efficient storage and load management of running files is achieved.

CN119474030AActive Publication Date: 2025-02-18SHANGHAI ENVISION INNOVATION INTELLIGENT TECH CO LTD +1
View PDF 3 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

In production equipment such as wind turbines deployed outside the field, due to the difficulty of data network transmission, operation and maintenance personnel cannot transmit operating files in real time, resulting in insufficient data storage space for computer equipment and cannot store operating files in full.

Method used

By obtaining the storage space occupancy information, determining the file subset under different storage thresholds, retaining important run file subsets, deleting unimportant file subsets, and dynamically adjusting the use of storage space to achieve dilution of the storage space load.

Benefits of technology

It realizes dilution of running files when there is insufficient storage space, reduces the load pressure of storage space, provides a new storage method for running files, and can dynamically adapt to the load changes of storage space.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119474030A_ABST
    Figure CN119474030A_ABST
Patent Text Reader

Abstract

The invention discloses a data processing method and device, equipment and a storage medium, and belongs to the technical field of computers. The method comprises the following steps: acquiring occupation information of a storage space, wherein the occupation information is used for indicating the occupation condition of a plurality of running files of production equipment on the storage space; under the condition that the occupancy information exceeds a first storage threshold and does not exceed a second storage threshold, the running files stored in the first file subset are reserved, and the running files in the second file subset are deleted; under the condition that the occupancy information exceeds the second storage threshold, keeping and storing running files in a third file subset, and deleting running files in a fourth file subset; wherein the first file subset comprises a first number of running files of which the generation time belongs to a first time period, the third file subset comprises a second number of running files of which the generation time belongs 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] The present application relates to the field of computer technology, and in particular to a data processing method, device, equipment and storage medium. Background Art

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

[0003] In the related technology, due to geographical conditions and safety factors, for example, the deployment location of the wind turbine is in a wild area, data network transmission is difficult, and the operation files of the wind turbine cannot be transmitted to the operation and maintenance personnel who are far away in real time. Instead, the operation and maintenance personnel periodically copy the operation files from the computer equipment that stores the operation files near the wind turbine.

[0004] However, the data storage capacity of computer devices is limited 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] The present application provides a data processing method, device, equipment and storage medium, and the technical solution is as follows: According to one aspect of the present application, a data processing method is provided, the method being executed by a computer device, the method comprising: Acquire storage space occupancy information, where the occupancy information is used to indicate the occupancy of the storage space by multiple operation files of the production equipment; When the occupancy information exceeds the first storage threshold and does not exceed the second storage threshold, the running files in the first file subset are retained and stored, and the running files in the second file subset are deleted; in the file set including the plurality of running files, the first file subset and the second file subset are complementary sets to each other; When the occupancy information exceeds the second storage threshold, the running files in the third file subset are retained and stored, and the running files in the fourth file subset are deleted; in the file set, the third file subset and the fourth file subset are complementary sets to each other; The first file subset includes a first number of running files whose generation time belongs to a first time period, and the third file subset includes a second number of running files whose generation time belongs to the first time period, and the first number is greater than the second number.

[0006] In an optional design of the present application, each of the multiple operation files has a corresponding time type, and the generation time of at least two operation files of the same time type belongs to the same time period; When the occupancy information exceeds the first storage threshold but does not exceed the second storage threshold, retaining and storing the running files in the first file subset and deleting the running files in the second file subset include: When the occupancy information exceeds the first storage threshold and does not exceed the second storage threshold, a files are sampled and determined from the running files of the same time type to construct the first file subset, where a is a positive integer; Among the plurality of running files, determining the second file subset based on the first file subset; The running files in the first file subset are kept and stored, and the running files in the second file subset are deleted.

[0007] In an optional design of the present application, the sampling and determining of a files from the running files of the same time type includes at least one of the following: Among the running files of the same time type, a files are determined randomly; In the running files of the same time type, a files are determined by taking the generation time interval of adjacent files as the preset time interval; In the running files of the same time type, a files are determined based on the constraint that the file contents of a files are different from each other; In the running files of the same time type, a files are determined based on a constraint that the difference in file contents of adjacent files exceeds a difference threshold.

[0008] In an optional design of the present application, each of the multiple operation files has a corresponding time type, and the generation time of at least two operation files of the same time type belongs to the same time period; When the occupancy information exceeds the second storage threshold, retaining and storing the running files in the third file subset and deleting the running files in the fourth file subset include: When the occupancy information exceeds the second storage threshold, b files are sampled and determined from the running files of the same time type to construct the third file subset, where b is a positive integer; Among the plurality of running files, determining the fourth file subset based on the third file subset; The running files in the third file subset are kept and stored, and the running files in the fourth file subset are deleted.

[0009] In an optional design of the present application, the method further includes: Obtaining the generation time of the multiple running files; Based on the generation time, the multiple operation files are determined into at least two time types, and the time periods corresponding to the different time types have the same duration.

[0010] In an optional design of the present application, the method further includes: Obtain a file cleaning directory, where the file cleaning directory is a storage path of some files of the multiple running files; The storage path of the running files in the second file subset and / or the fourth file subset belongs to the file cleaning directory.

[0011] In an optional design of the present application, the production equipment includes a wind turbine generator set; the method further includes: Acquire a data cleaning tag, wherein the storage path of the running files in the second file subset and / or the fourth file subset belongs to the file cleaning directory and has the data cleaning tag; The data cleaning tag is used to indicate the operating data when the wind turbine speed of the wind turbine generator set is less than the speed threshold, or the operating data when the pitch angle of the wind turbine generator set belongs to the angle range.

[0012] In an optional design of the present application, the method further includes: When the occupancy information exceeds a third storage threshold, deleting some running files at the head of a file sequence, wherein the file sequence is obtained by arranging the multiple running files in descending order according to the generation time; After deleting the part of the running files, the occupancy information does not exceed the third storage threshold.

[0013] In an optional design of the present application, the method further includes: Obtain a file cleaning type, where the file cleaning type is a file data type of some files among the multiple running files; The file data type of the running files in the second file subset and / or the fourth file subset belongs to the file cleaning type.

[0014] In an optional design of the present application, the method further includes: Acquire current time information and a historical reading time of the computer device, wherein the historical reading time is the time when the computer device transmits the historical operation file to the reading device; Determining the first storage threshold and / or the second storage threshold according to the storage duration between the current time information and the historical reading time; Therein, there is a positive correlation between the storage duration and the first storage threshold, and / or there is a positive correlation between the storage duration and the second storage threshold.

[0015] In an optional design of the present application, the method further includes: Acquire a historical reading interval, where the historical reading interval is used to indicate an adjacent time interval for the computer device to transmit a historical operation file to the reading device; The determining the first storage threshold and / or the second storage threshold according to the storage duration between the current time information and the historical reading time includes: Determining the storage duration between the current time information and the historical reading time; Determine the first storage threshold and / or the second storage threshold according to the proportion of the storage duration in the historical reading interval; Therein, there is a positive correlation between the duration ratio and the first storage threshold, and / or there is a positive correlation between the duration ratio and the second storage threshold.

[0016] In an optional design of the present application, the production equipment includes a wind turbine generator set; The obtaining of storage space occupation information includes: Obtaining wind turbine file occupancy information of the storage space by multiple wind turbine operation files of the wind turbine generator set; When the occupancy information exceeds the first storage threshold but does not exceed the second storage threshold, retaining and storing the running files in the first file subset and deleting the running files in the second file subset include: When the fan file occupancy information exceeds the first storage threshold but does not exceed the second storage threshold, retaining and storing the fan operation files in the first file subset, and deleting the fan operation files in the second file subset; When the occupancy information exceeds the second storage threshold, retaining and storing the running files in the third file subset and deleting the running files in the fourth file subset include: When the fan file occupancy information exceeds the second storage threshold, the fan operation files in the third file subset are retained and stored, and the fan operation files in the fourth file subset are deleted.

[0017] According to another aspect of the present application, a data processing device is provided, the device comprising: An acquisition module, used to acquire storage space occupancy information, wherein the occupancy information is used to indicate the occupancy of the storage space by multiple operation files of the production equipment; a processing module, configured to retain and store the running files in the first file subset and delete the running files in the second file subset when the occupancy information exceeds the first storage threshold and does not exceed the second storage threshold; in the file set including the plurality of running files, the first file subset and the second file subset are complementary sets to each other; The processing module is further configured to retain and store the running files in the third file subset and delete the running files in the fourth file subset when the occupancy information exceeds the second storage threshold; the third file subset and the fourth file subset are complementary sets in the file set; The first file subset includes a first number of running files whose generation time belongs to a first time period, and the third file subset includes a second number of running files whose generation time belongs to the first time period, and the first number is greater than the second number.

[0018] According to another aspect of the present application, a computer device is provided, comprising a processor and a memory, wherein the memory stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by the processor to implement the data processing method described above.

[0019] According to another aspect of the present application, a computer-readable storage medium is provided, in which at least one instruction, at least one program, a code set or an instruction set is stored, and 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.

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

[0021] The beneficial effects of the technical solution provided by this application include at least: The file subset to be retained for storage and the file subset to be deleted are determined through the relationship between the occupancy information and the first storage threshold and the second storage threshold; the running files are diluted when the storage space is insufficient to reduce the load on the storage space; different numbers of files to be retained for storage are determined according to the different load pressures of the storage space, which can dynamically reduce the load pressure of the storage space and provide a new storage method for running files. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0023] Figure 1 is a schematic diagram of a computer system provided by an exemplary embodiment of the present application; Figure 2 is a schematic diagram of a data processing method provided by an exemplary embodiment of the present application; Figure 3 is a first flow chart of a data processing method provided by an exemplary embodiment of the present application; Figure 4 is a second flow chart of a data processing method provided by an exemplary embodiment of the present application; Figure 5 is a third flow chart of a data processing method provided by an exemplary embodiment of the present application; Figure 6 is a fourth flow chart of a data processing method provided by an exemplary embodiment of the present application; Figure 7 is a fifth flow chart of a data processing method provided by an exemplary embodiment of the present application; Figure 8 is another schematic diagram of a data processing method provided by an exemplary embodiment of the present application; Fig. 9 is a sixth flow chart of a data processing method provided by an exemplary embodiment of the present application; Fig.10 is a structural block diagram of a data processing device provided by an exemplary embodiment of the present application; Fig.11 It is a structural block diagram of a server provided by an exemplary embodiment of the present application.

[0024] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application. DETAILED DESCRIPTION

[0025] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.

[0026] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.

[0027] The terms used in this disclosure are for the purpose of describing specific embodiments only and are not intended to limit the disclosure. The singular forms of "a", "said" and "the" used in this disclosure and the appended claims are also intended to include plural forms unless the context clearly indicates otherwise. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.

[0028] 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 relevant data must comply with the relevant laws, regulations and standards of relevant countries and regions. For example, the operation files and other information involved in this application are obtained with full authorization.

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

[0030] Figure 1 A schematic diagram of a computer system provided by an embodiment of the present application is shown. The computer system can be implemented as a system architecture of a data processing method. The computer system may include: a terminal 100 and a server 200.

[0031] The terminal 100 may be an electronic device such as a mobile phone, a tablet computer, a PC (Personal Computer), etc. A client that runs a target application may be installed in the terminal 100. The target application may be a management application for production equipment, etc., or other applications that provide data processing, which is not limited in this application. In addition, this application does not limit the form of the target application, including but not limited to App (Application) installed in the terminal 100, applets, etc., and may also be in the form of a web page.

[0032] The server 200 may be an independent physical server, a server cluster or a distributed system composed of multiple physical servers, or a cloud server providing cloud computing services. The server 200 may be a background server of the target application, used to provide background services for the client of the target application.

[0033] The data processing method provided in the embodiment of the present application may be performed by a computer device, which refers to an electronic device with data calculation, processing and storage capabilities. Figure 1 Taking the implementation environment of the scheme shown as an example, the data processing method can be executed by the terminal 100 (such as the client of the target application installed and running in the terminal 100 executes the data processing method), or the data processing method can be executed by the server 200, or the terminal 100 and the server 200 can interact and cooperate to execute it, and this application does not limit this.

[0034] In addition, the technical solution of the present application can be combined with blockchain technology. For example, in the data processing method disclosed in the present application, some data involved (such as operation files and other data) can be stored on the blockchain. The terminal 100 and the server 200 can communicate through a network, such as a wired or wireless network.

[0035] Figure 2 A schematic diagram of a data processing method provided by an exemplary embodiment of the present application is shown.

[0036] The occupancy information 322 of the storage space 310 is obtained. The storage space 310 stores the operation files of the production equipment. The occupancy information 322 is used to indicate the occupancy of the storage space by multiple operation files of the production equipment. Exemplarily, the occupancy information 322 is data in percentage format, which is used to indicate the occupancy ratio of the storage space by multiple operation files.

[0037] Regarding the operation file, taking the production equipment as a wind turbine as an example, the operation file records at least one of the information such as the wind turbine speed, power generation, and blade pitch angle of the wind turbine during the process of the wind turbine generating electricity by blowing air.

[0038] Exemplarily, the n running files in the storage space 310 are taken as an example for description. The generation time of the n running files is later than the time T0 and earlier than the time T1.

[0039] When the occupancy information exceeds the first storage threshold 332 but does not exceed the second storage threshold 334, and the proportion of storage space occupied by 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 between time T0 and time T1 are deleted.

[0040] When the occupancy information exceeds the second storage threshold 334, the proportion of storage space occupied by multiple running files exceeds 80%, y running files are reserved for storage, and (ny) running files other than y running files between time T0 and time T1 are deleted. As the storage space load pressure increases, a smaller number of running files generated in the time period between time T0 and time T1 are reserved for storage, that is, y is less than x; different numbers of files to be reserved for storage are determined according to different storage space load pressures, and the storage space load pressure is dynamically reduced.

[0041] Next, the data processing method will be introduced through the following embodiments.

[0042] Figure 3 The first flow chart of a data processing method provided by an exemplary embodiment of the present application is shown. The method can be executed by a computer device. The method includes: Step 510: Obtaining storage space occupancy information; Exemplarily, the storage space is used to store the operation files of the production equipment, and the storage space is provided by the computer device, or the computer device has read permission for the storage space. Exemplarily, the occupancy information is used to indicate the occupancy of the storage space by multiple operation files of the production equipment. The occupancy information can indicate the proportion of the storage space occupied by multiple operation files in the form of percentage, or it can indicate the occupied volume of multiple operation files and the total volume of the storage space in numerical form. This application does not limit the data format of the occupancy information.

[0043] Exemplarily, production equipment is a device that changes at least one of the properties, performance, form, and appearance value of the raw materials input into the production equipment in the social production process. Exemplarily, such as wind turbines, solar power generators, power transmission equipment, etc. used in the power production process; mining equipment, mineral transmission equipment, mineral sorting equipment, etc. used in the mining production process; logistics sorting equipment, logistics packaging equipment, etc. used in the logistics sorting production process. It can be understood that more production equipment in the production process can also be included.

[0044] Step 520: when the occupancy information exceeds the first storage threshold but does not exceed the second storage threshold, retain and store the running files in the first file subset, and delete the running files in the second file subset; Exemplarily, when the occupancy information exceeds the first storage threshold and does not exceed the second storage threshold, the storage space reaches the first level load pressure for storing running files; by deleting some running files in the storage space, the load on storing running files in the storage space is reduced.

[0045] Exemplarily, in a file set including multiple running files, the first file subset and the second file subset are complementary sets; other files among the multiple running files except the running files in the second file subset are running files in the first file subset.

[0046] Step 530: when the occupancy information exceeds the second storage threshold, keep storing the running files in the third file subset and delete the running files in the fourth file subset; When the occupancy information exceeds the second storage threshold, the storage space reaches the second level load pressure for storing the running files; by deleting some running files in the storage space, the load for storing the running files in the storage space is reduced.

[0047] Exemplarily, in the file set, the third file subset and the fourth file subset are complementary sets to each other; other files among the plurality of running files except the running files in the fourth file subset are running files in the third file subset.

[0048] 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, and the first number is greater than the second number.

[0049] It can be seen that when the occupancy information indicates different load pressures, there are corresponding different methods of retaining and storing running files; exemplarily, when the storage space reaches the second level load pressure for storing running files, compared with the first level 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 (that is, the first number is greater than the second number), and the load of the storage space is reduced by retaining and storing a smaller number of running files.

[0050] The first time period may be a preset time period, such as one day, one week, or 12 hours. In one example, when the occupancy information exceeds the first storage threshold and does not exceed the second storage threshold, the running files in the first file subset are retained and stored, and the number of files in the first file subset whose generation time belongs to the most recent day is 10; and when the occupancy information exceeds the second storage threshold, the running files in the third file subset are retained and stored, and the number of files in the third file subset whose generation time belongs to the most recent day is 5. As the storage space load pressure increases, the number of files retained and stored in a time period decreases.

[0051] In summary, the method provided in this embodiment determines the file subset to be retained for storage and the file subset to be deleted through the relationship between the occupancy information and the first storage threshold and the second storage threshold; realizes the dilution of running files when the storage space is insufficient, thereby reducing the load of the storage space; determines different numbers of files to be retained for storage according to different load pressures of the storage space, can dynamically reduce the load pressure of the storage space, and provides a new storage method for running files.

[0052] Figure 4 A second flow chart of a data processing method provided by an exemplary embodiment of the present application is shown. The method can be executed by a computer device. Figure 3 In the illustrated embodiment, step 520 may be implemented as steps 522, 524, and 526: Step 522: when the occupancy information exceeds the first storage threshold and does not exceed the second storage threshold, a files are sampled and determined from the running files of the same time type to construct a first file subset; Exemplarily, each of the multiple running files has a corresponding time type, and the generation time of at least two running files of the same time type belongs to the same time period; the time period can be divided according to a preset time interval, such as based on a time interval of one day, one week, 12 hours, etc., from the current moment as the end moment of a time period to divide multiple adjacent time periods, or from the earliest historical moment as the starting moment of a time period to divide multiple adjacent time periods, the earliest historical moment 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.

[0053] Exemplarily, a is a positive integer; Exemplarily, the value of a can be preset or determined according to the number of running files of the same time type, and the present application does not limit the method for determining the value of a. In each running file of the same time type, a files are sampled and determined; the number of files in the first file subset is the product of a and the number of time types.

[0054] In an optional implementation of the present application, the method for implementing sampling to determine a files is introduced. This step can be implemented as at least one of the following: ·Among the running files of the same time type, a files are randomly determined; Exemplarily, a files to be retained and stored in the first file subset are determined in a random manner, and a technical solution for determining a files is provided.

[0055] · In the running files of the same time type, a files are determined by using the generation time interval of adjacent files as the preset time interval; Exemplarily, by using a preset time interval as the generation time interval between adjacent files, a files are determined by uniformly sampling the generation time, thereby ensuring uniformity in the generation time of the a files.

[0056] In a time-type running file, the files other than a files are files deleted in the second file subset. The running files in the first file subset have uniformity in generation time, and running files with similar time can be used to replace files deleted in the second file subset.

[0057] For example, the value of a is 8, and the total number of running files of the same time type is recorded as N=50. Specifically: step = float 64(N-1) / float64(a-1) index = i*step+1; lowIndex = math.Floor(index); roundIndex = math.Round(index); fraction = index - float64(lowIndex); indices[i]={ lowIndex, fraction is equal to 0 roundIndex, fraction not equal to 0} Among them, step is the step length for determining a files; for example, a=8, N=50; the step length for determining 8 files out of 50 files is 7; index is the reference index number of a file in a total of N running files of the same time type, and the value of i ranges from 0 to a-1, a total of reference index numbers of a files.

[0058] lowIndex is the result of rounding index down, roundIndex is the result of rounding index up, and fraction is the difference between index and lowIndex.

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

[0060] ·In the running files of the same time type, a files are determined based on the constraint that the file contents of a files are different from each other; Exemplarily, the file contents of a files are different from each other, which can retain and store richer file contents in the operation files of the same time type, and facilitate statistics of the operation files of the production equipment in different states.

[0061] Exemplarily, when the production equipment is in a test state, a files are determined with the constraint that the contents of the a files are different from each other; this facilitates the testers of the production equipment to count the running files of the production equipment in different states, such as drawing the power consumption curve of the production equipment.

[0062] Among the running files of the same time type, a files are determined based on the constraint that the differences in the contents of adjacent files exceed the difference threshold; Exemplarily, when the difference in file content between adjacent files exceeds a difference threshold, the operation file that is retained is information of the moment when the operating status of the production equipment fluctuates significantly, which can avoid the problem of the operation file being deleted when the operation of the production equipment becomes abnormal.

[0063] Exemplarily, when the production equipment is in actual production use, a files are determined with the constraint that the difference in file content of adjacent files exceeds a difference threshold; this facilitates the retention of operating files when abnormal operation of the production equipment occurs, so that maintenance personnel of the production equipment can conduct subsequent cause analysis on the abnormal operation of the production equipment.

[0064] Step 524: Determine a second file subset from among the plurality of running files based on the first file subset; Exemplarily, 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 by other files in multiple running files except the running files in the first file subset.

[0065] Step 526: keep and store the running files in the first file subset, and delete the running files in the second file subset; Exemplarily, retaining and storing the running files in the first file subset may be achieved by not performing an editing operation on the running files in the first file subset. Retaining and storing the running files in the first file subset is achieved by deleting the running files in the second file subset.

[0066] In summary, the method provided in this embodiment determines the file subset to be retained for storage and the file subset to be deleted through the relationship between the occupancy information and the first storage threshold and the second storage threshold; provides different file determination methods for the deleted file subset, fully considering the operating characteristics of the production equipment at different usage stages; implements the dilution of running files when the storage space is insufficient, thereby reducing the load on the storage space; determines different numbers of files to be retained for storage according to different load pressures of the storage space, can dynamically reduce the load pressure of the storage space, and provides a new storage method for running files.

[0067] Figure 5 The third flow chart of a data processing method provided by an exemplary embodiment of the present application is shown. The method can be executed by a computer device. Figure 4 On the basis of the illustrated embodiment, step 505 and step 506 are also included; step 530 can be implemented as step 532, step 534, and step 536: Step 505: Obtaining the generation time of multiple running files; Exemplarily, the generation time is the time when the running file is written into the storage space or the time when it is edited. The generation time is obtained at the moment when the time type of the running file needs to be determined.

[0068] Step 506: Based on the generation time, determine at least two time types for the multiple operation files; Exemplarily, the time type of the running file is determined according to the time period to which the generation time belongs. Exemplarily, multiple running 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.

[0069] Exemplarily, the time periods may be divided according to preset time intervals, such as a day, a week, 12 hours, or other time intervals, with the current moment being used as the end moment of a time period to divide multiple adjacent time periods, or the earliest historical moment being used as the start moment of a time period to divide multiple adjacent time periods, the earliest historical moment corresponding 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.

[0070] It should be noted that step 505 and step 506 in this embodiment can be Figure 4The steps in the embodiment are combined into a new embodiment and implemented separately, and the present application does not limit this. For example, in this embodiment, step 505 and step 506 are executed before step 510, but it does not exclude that in other examples, any one of step 505 and step 506 is executed after or at the same time as step 510.

[0071] Step 532: when the occupancy information exceeds the second storage threshold, b files are sampled and determined from the running files of the same time type to construct a third file subset; Exemplarily, each of the multiple running files has a corresponding time type, and the generation time of at least two running files of the same time type belongs to the same time period; Exemplarily, 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.

[0072] It should be noted that, for the implementation method of sampling to determine b files, reference may be made to the introduction to the sampling method of a files in the above text, which will not be repeated here.

[0073] Step 534: Determine a fourth file subset from among the plurality of running files based on the third file subset; Exemplarily, in the file set, the third file subset and the fourth file subset are complementary to each other; the running files in the third file subset and the fourth file subset are different from each other, and the fourth file subset is constructed by other files in the plurality of running files except the running files in the third file subset.

[0074] Step 536: keep and store the running files in the third file subset, and delete the running files in the fourth file subset; Exemplarily, retaining and storing the running files in the third file subset may be achieved by not performing an editing operation on the running files in the third file subset. Retaining and storing the running files in the third file subset is achieved by deleting the running files in the fourth file subset.

[0075] It should be noted that step 532, step 534, and step 536 in this embodiment can be Figure 3 Step 510 and step 520 in the embodiment are combined into a new embodiment and implemented separately, and the present application does not limit this. Step 505, step 506, step 532, step 534, and step 536 in this embodiment can be combined with Figure 3 Step 510 and step 520 in the embodiment are combined into a new embodiment and implemented separately, and this application does not limit this.

[0076] In summary, the method provided in this embodiment determines the file subset to be retained for storage and the file subset to be deleted through the relationship between the occupancy information and the first storage threshold and the second storage threshold; realizes the dilution of running files when the storage space is insufficient, thereby reducing the load of the storage space; determines different numbers of files to be retained for storage according to different load pressures of the storage space, can dynamically reduce the load pressure of the storage space, and provides a new storage method for running files.

[0077] Figure 6 The fourth flow chart of a data processing method provided by an exemplary embodiment of the present application is shown. The method can be executed by a computer device. Figure 4 Based on the embodiment shown, step 515 and step 516 are also included: Step 515: Get the file cleaning directory; Exemplarily, the file cleaning directory is the storage path of some files among multiple running files; some running files in the file cleaning directory are used to construct the second file subset and / or the fourth file subset; accordingly, the storage path of the running files in the second file subset and / or the fourth file subset belongs to the file cleaning directory.

[0078] Exemplarily, the file cleaning directory is used to indicate a storage path where file dilution needs to be performed; when step 515 is performed alone, performing file dilution is to delete some running files in the file cleaning directory (i.e., the second file subset and / or the fourth file subset are constructed based on some running files in the file cleaning directory).

[0079] The first file subset includes files other than the second file subset in the file cleaning directory and running files not in the file cleaning directory. The third file subset includes files other than the fourth file subset in the file cleaning directory and running files not in the file cleaning directory.

[0080] It should be noted that step 515 in this embodiment can be Figure 3 The various steps in the embodiment are combined into new embodiments and implemented separately, and this application does not limit this.

[0081] Step 516: Obtain data cleaning tags; Exemplarily, the data cleaning tag is a file tag that needs to perform file dilution; exemplary, there is a corresponding file tag for the running file, and when the file tag of the running file is the same as the data cleaning tag, the file is the running file that needs to perform file dilution.

[0082] In one example, for each running file in the file cleaning directory whose file tag is a data cleaning tag belongs to the file cleaning set. Exemplarily, some running files in the file cleaning directory whose file tag is a data cleaning tag are deleted (i.e., the second file subset and / or the fourth file subset are constructed based on some running files in the file cleaning directory whose file tag is a data cleaning tag); the second file subset and / or the fourth file subset are subsets of the file cleaning set. Exemplarily, the storage path of the running files in the second file subset and / or the fourth file subset belongs to the file cleaning directory and has a data cleaning tag.

[0083] The first file subset includes files other than the second file subset in the file cleaning directory and running files not in the file cleaning directory. The third file subset includes files other than the fourth file subset in the file cleaning directory and running files not in the file cleaning directory.

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

[0085] In another example, a data cleaning tag is used to indicate the operating data when the pitch angle of the wind turbine belongs to an angle interval. When the pitch angle of the wind turbine belongs to the angle interval, the angle at which the wind turbine is blown by air is at a preset working angle and is in a normal wind direction working state. Exemplarily, by deleting part of the data of the wind turbine in the normal wind direction working state, the load of storing operating files in the storage space is reduced; the normal wind direction working state will not cause the wind turbine to be damaged due to air blowing, and the deleted operating files of the normal wind direction working state are data of low importance in the wind turbine, which will not affect the maintenance or analysis of the operation of the wind turbine.

[0086] In summary, the method provided in this embodiment determines the file subset to be retained for storage and the file subset to be deleted through the relationship between the occupancy information and the first storage threshold and the second storage threshold; constrains the file range of the deleted running files through the acquired file cleaning directory and data cleaning tags, so as to give priority to deleting the running files that have less impact on the maintenance or analysis of the production equipment; and implements the dilution of the running files when the storage space is insufficient to reduce the load of the storage space; determines the different numbers of files to be retained for storage according to the different load pressures of the storage space, which can dynamically reduce the load pressure of the storage space and provide a new storage method for running files.

[0087] Figure 7 The fifth flow chart of a data processing method provided by an exemplary embodiment of the present application is shown. The method can be executed by a computer device. Figure 4 Based on the embodiment shown, step 517 and step 540 are also included: Step 517: Get the file cleaning type; Exemplarily, the file cleaning type is the file data type of some files in the multiple running files; Exemplarily, the file data type indicated by the file cleaning type can be at least one of the following: distributed file system, such as Seaweed File System (SeaweedFS); object storage file system, such as Amazon Simple Storage Service (Amazon S3); operating system file system, such as Linux file system. Exemplarily, by recording the file cleaning type in the storage media (Storage Media) parameter, the file data type of the running file to be deleted is indicated.

[0088] Exemplarily, some operating files belonging to the file cleaning type are used to construct the second file subset and / or the fourth file subset; accordingly, the file data type of the operating files in the second file subset and / or the fourth file subset belongs to the file cleaning type. The file cleaning type is obtained to indicate the operating files in different data storage modes that need to be deleted.

[0089] It should be noted that step 517 in this embodiment can be Figure 3 The various steps in the embodiment are combined into new embodiments and implemented separately, and this application does not limit this.

[0090] Step 540: when the occupancy information exceeds the third storage threshold, deleting some running files at the head position of the file sequence; Exemplarily, when the occupancy 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 of storing running files in the storage space is reduced by deleting some running files at the head of the file sequence.

[0091] When the occupancy information exceeds the third storage threshold, there is a risk that the storage space is full. By deleting some running files at the head of the file sequence, the occupancy information of the storage control is reduced to below the third storage threshold. Exemplarily, after deleting some running files, the occupancy information does not exceed the third storage threshold.

[0092] Exemplarily, the file sequence is obtained by arranging multiple running files in descending order of generation time; exemplary, running files with a long generation time are deleted first.

[0093] It should be noted that step 540 in this embodiment can be Figure 3 The various steps in the embodiment are combined into new embodiments and implemented separately, and this application does not limit this.

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

[0095] When the occupancy information does not exceed the first storage threshold 332, for example, the occupancy information does not exceed 60%, for the operation files whose generation time belongs to the first time period, the storage space reserves multiple numbers of operation files, for example, all the operation files are fully saved.

[0096] When the occupancy information exceeds the first storage threshold 332 and does not exceed the second storage threshold 334, for example, the occupancy information exceeds 60% and does not exceed 80%, for the operation files whose generation time belongs to the first time period, a medium number of operation files are retained for storage, for example, the first number of operation files in the first time period are retained for storage.

[0097] When the occupancy information exceeds the second storage threshold 334, for example, the occupancy information exceeds 80%, a small number of operation files generated in the first time period are reserved for storage, for example, a second number of operation files in the first time period are reserved for storage. The second number is smaller than the first number.

[0098] When the occupancy information exceeds the third storage threshold 336, for example, the occupancy information exceeds 90%, there is a risk that the storage space is full. The running files are deleted in order of generation time from early to late, and the occupancy information of the storage control is reduced to below the third storage threshold.

[0099] Exemplarily, the file cleanup type is recorded in the storage media parameter to indicate the file data type of the running file to be deleted, so that the deletion and retention storage method of the running file is applicable to various file data types.

[0100] In summary, the method provided in this embodiment determines the file subset to be retained for storage and the file subset to be deleted through the relationship between the occupancy information and the first storage threshold and the second storage threshold; realizes the dilution of running files when the storage space is insufficient, thereby reducing the load of the storage space; determines the number of different files to be retained for storage according to the different load pressures of the storage space, and when there is a risk of the storage space being full, reduces the occupancy information of the storage control to below the third storage threshold by deleting some running files at the head of the queue in the file sequence; can dynamically reduce the load pressure of the storage space, and provides a new storage method for running files.

[0101] Fig. 9 The sixth flow chart of a data processing method provided by an exemplary embodiment of the present application is shown. The method can be executed by a computer device. Figure 4 Based on the embodiment shown, step 502 and step 504 are also included: Step 502: Obtain current time information and historical reading time of the computer device; Exemplarily, the historical reading time is the time when the computer device transfers the historical operation file to the reading device; in one example, the deployment location of the production equipment is located in a field area, and the data network transmission is difficult, and the operation and maintenance personnel carry the reading device to copy the operation file in the storage space. The reading device is a device used to copy the operation file in the storage space. Exemplarily, the historical reading time is the time when the historical operation file recorded by the computer device is transferred to the reading device.

[0102] Step 504: determining a first storage threshold and / or a second storage threshold according to the storage duration between the current time information and the historical reading time; Exemplarily, there is a positive correlation between the storage time and the first storage threshold, and / or there is a positive correlation between the storage time and the second storage threshold. As the storage time increases, the probability that the computer device will transfer the operation file to the reading device again increases; for example, as the time between the current time and the historical reading time increases, the probability that the operation and maintenance personnel will carry the reading device to copy the operation file in the storage space increases, and the determined first storage threshold and / or second storage threshold increases, allowing more space in the storage space to be used to store the operation file.

[0103] In an optional implementation, the method further includes: Get the history reading interval; Exemplarily, the historical reading interval is used to indicate the adjacent time intervals when the computer device transfers the historical operation files to the reading device; in one example, the deployment location of the production equipment is located in a field area, and the data network transmission is difficult, and the operation and maintenance personnel regularly carry the reading device to copy the operation files in the storage space. The historical reading interval is the time interval between two adjacent times when the operation and maintenance personnel carry the reading device to copy the operation files in the storage space.

[0104] Accordingly, step 504 can be implemented as follows: Determine the storage duration between the current time information and the historical reading time; Exemplarily, the storage duration is the time interval between the current time information and the historical reading time. Exemplarily, the historical reading time is the time when the operation and maintenance personnel last carried the reading device to copy the running file in the storage space.

[0105] Determine the first storage threshold and / or the second storage threshold according to the proportion of the storage duration in the historical reading interval; Exemplarily, as the duration ratio increases, the current time approaches the time when the operation and maintenance personnel will carry the reading device to copy the operation files in the storage space next time, and the determined first storage threshold and / or second storage threshold increases, allowing more space in the storage space to be used to store the operation files. Exemplarily, there is a positive correlation between the duration ratio and the first storage threshold, and / or there is a positive correlation between the duration ratio and the second storage threshold.

[0106] In summary, the method provided in this embodiment determines the file subset to be retained and the file subset to be deleted through the relationship between the occupancy information and the first storage threshold and the second storage threshold; dilution of running files is implemented when the storage space is insufficient, thereby reducing the load on the storage space; the storage threshold is determined through the historical reading time and the historical reading interval, fully considering the actual working status of the operation and maintenance personnel carrying the reading device to copy the running files in the storage space, and dynamically determining the load pressure on the storage space according to time, thereby making full use of the storage space to store running files.

[0107] In an optional design of the present application, the production equipment includes a wind turbine generator set; accordingly: Obtain information about the wind turbine file usage of storage space by multiple wind turbine operation files of a wind turbine generator set; Exemplarily, the storage space is used to store a wind turbine operation file of a wind turbine generator set, which records at least one of the information such as the wind turbine speed, power generation, and blade pitch angle of the wind turbine generator set during the process of the wind turbine generator set generating electricity by blowing air.

[0108] When the fan file occupancy information exceeds the first storage threshold but does not exceed the second storage threshold, the fan operation files in the first file subset are retained and stored, and the fan operation files in the second file subset are deleted; Exemplarily, when the fan file occupancy information exceeds the first storage threshold and does not exceed the second storage threshold, the storage space reaches the first level load pressure for storing the fan operation files; by deleting some fan operation files in the storage space, the load of storing the fan operation files in the storage space is reduced.

[0109] Exemplarily, in a file set including multiple wind turbine operation files, the first file subset and the second file subset are complementary sets; other files among the multiple wind turbine operation files except the wind turbine operation files in the second file subset are the wind turbine operation files in the first file subset.

[0110] When the fan file occupancy information exceeds the second storage threshold, the fan operation files in the third file subset are retained and stored, and the fan operation files in the fourth file subset are deleted.

[0111] When the fan file occupancy information exceeds the second storage threshold, the storage space reaches the second level load pressure for storing the fan operation files; by deleting some fan operation files in the storage space, the load of storing the fan operation files in the storage space is reduced.

[0112] Exemplarily, in the file set, the third file subset and the fourth file subset are complementary sets to each other; other files among the plurality of wind turbine operation files except the wind turbine operation files in the fourth file subset are the wind turbine operation files in the third file subset.

[0113] 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, and the first number is greater than the second number.

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

[0115] Fig.10 The following is a block diagram of a data processing device provided by an exemplary embodiment of the present application. The device includes: An acquisition module 810 is used to acquire storage space occupancy information, where the occupancy information is used to indicate the occupancy of the storage space by multiple operation files of the production equipment; The processing module 820 is used to retain and store the running files in the first file subset and delete the running files in the second file subset when the occupancy information exceeds the first storage threshold and does not exceed the second storage threshold; in the file set including the multiple running files, the first file subset and the second file subset are complementary sets to each other; The processing module 820 is further configured to retain and store the running files in the third file subset and delete the running files in the fourth file subset when the occupancy information exceeds the second storage threshold; the third file subset and the fourth file subset are complementary sets in the file set; The first file subset includes a first number of running files whose generation time belongs to a first time period, and the third file subset includes a second number of running files whose generation time belongs to the first time period, and the first number is greater than the second number.

[0116] In an optional implementation of this embodiment, each of the multiple running files has a corresponding time type, and the generation time of at least two running files of the same time type belongs to the same time period; the processing module 820 is further used to: When the occupancy information exceeds the first storage threshold and does not exceed the second storage threshold, a files are sampled and determined from the running files of the same time type to construct the first file subset, where a is a positive integer; Among the plurality of running files, determining the second file subset based on the first file subset; The running files in the first file subset are kept and stored, and the running files in the second file subset are deleted.

[0117] In an optional implementation of this embodiment, the processing module 820 is further used for at least one of the following: Among the running files of the same time type, a files are determined randomly; In the running files of the same time type, a files are determined by taking the generation time interval of adjacent files as the preset time interval; In the running files of the same time type, a files are determined based on the constraint that the file contents of a files are different from each other; In the running files of the same time type, a files are determined based on a constraint that the difference in file contents of adjacent files exceeds a difference threshold.

[0118] In an optional implementation of this embodiment, each of the multiple running files has a corresponding time type, and the generation time of at least two running files of the same time type belongs to the same time period; the processing module 820 is further used to: When the occupancy information exceeds the second storage threshold, b files are sampled and determined from the running files of the same time type to construct the third file subset, where b is a positive integer; Among the plurality of running files, determining the fourth file subset based on the third file subset; The running files in the third file subset are kept and stored, and the running files in the fourth file subset are deleted.

[0119] In an optional implementation of this embodiment, the acquisition module 810 is further configured to: Obtaining the generation time of the multiple running files; The processing module 820 is further configured to: Based on the generation time, the multiple operation files are determined into at least two time types, and the time periods corresponding to the different time types have the same duration.

[0120] In an optional implementation of this embodiment, the acquisition module 810 is further configured to: Obtain a file cleaning directory, where the file cleaning directory is a storage path of some files of the multiple running files; The storage path of the running files in the second file subset and / or the fourth file subset belongs to the file cleaning directory.

[0121] In an optional implementation of this embodiment, the production equipment includes a wind turbine generator set; the acquisition module 810 is further used to: Acquire a data cleaning tag, wherein the storage path of the running files in the second file subset and / or the fourth file subset belongs to the file cleaning directory and has the data cleaning tag; The data cleaning tag is used to indicate the operating data when the wind turbine speed of the wind turbine generator set is less than the speed threshold, or the operating data when the pitch angle of the wind turbine generator set belongs to the angle range.

[0122] In an optional implementation of this embodiment, the processing module 820 is further configured to: When the occupancy information exceeds a third storage threshold, deleting some running files at the head of a file sequence, wherein the file sequence is obtained by arranging the multiple running files in descending order according to the generation time; After deleting the part of the running files, the occupancy information does not exceed the third storage threshold.

[0123] In an optional implementation of this embodiment, the acquisition module 810 is further configured to: Obtain a file cleaning type, where the file cleaning type is a file data type of some files among the multiple running files; The file data type of the running files in the second file subset and / or the fourth file subset belongs to the file cleaning type.

[0124] In an optional implementation of this embodiment, the acquisition module 810 is further configured to: Acquire current time information and a historical reading time of the computer device, wherein the historical reading time is the time when the computer device transmits the historical operation file to the reading device; The processing module 820 is further configured to: Determining the first storage threshold and / or the second storage threshold according to the storage duration between the current time information and the historical reading time; Therein, there is a positive correlation between the storage duration and the first storage threshold, and / or there is a positive correlation between the storage duration and the second storage threshold.

[0125] In an optional implementation of this embodiment, the processing module 820 is further configured to: Acquire a historical reading interval, where the historical reading interval is used to indicate an adjacent time interval for the computer device to transmit a historical operation file to the reading device; The processing module 820 is further configured to: Determining the storage duration between the current time information and the historical reading time; Determine the first storage threshold and / or the second storage threshold according to the proportion of the storage duration in the historical reading interval; Therein, there is a positive correlation between the duration ratio and the first storage threshold, and / or there is a positive correlation between the duration ratio and the second storage threshold.

[0126] In an optional implementation of this embodiment, the production equipment includes a wind turbine generator set; The acquisition module 810 is also used for: Obtaining wind turbine file occupancy information of the storage space by multiple wind turbine operation files of the wind turbine generator set; The processing module 820 is further configured to: When the fan file occupancy information exceeds the first storage threshold but does not exceed the second storage threshold, retaining and storing the fan operation files in the first file subset, and deleting the fan operation files in the second file subset; When the fan file occupancy information exceeds the second storage threshold, the fan operation files in the third file subset are retained and stored, and the fan operation files in the fourth file subset are deleted.

[0127] One point that needs to be explained is that the device provided in the above embodiment only uses the division of the above-mentioned functional modules as an example to implement its functions. In actual applications, the above-mentioned 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.

[0128] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method; the technical effects achieved by each module performing operations are the same as those in the embodiment of the method, and will not be elaborated here.

[0129] An embodiment of the present application also provides a computer device, which includes: a processor and a memory, wherein a computer program is stored in the memory; the processor is used to execute the computer program in the memory to implement the data processing methods provided by the above-mentioned method embodiments.

[0130] Optionally, the computer device is a server. Fig.11 It is a structural block diagram of a server provided by an exemplary embodiment of the present application.

[0131] Typically, the server 200 includes: a processor 2301 and a memory 2302 .

[0132] The processor 2301 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 2301 may be implemented in at least one hardware form of digital signal processing (DSP), field-programmable gate array (FPGA), and programmable logic array (PLA). The processor 2301 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a central processing unit (CPU); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 2301 may be integrated with a graphics processing unit (GPU), and the GPU is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 2301 may also include an artificial intelligence (AI) processor, which is used to process computing operations related to machine learning.

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

[0134] In some embodiments, the server 200 may further optionally include: an input interface 2303 and an output interface 2304. The processor 2301, the memory 2302, the input interface 2303, and the output interface 2304 may be connected via a bus or a signal line. Each peripheral device may be connected to the input interface 2303 and the output interface 2304 via a bus, a signal line, or a circuit board. The input interface 2303 and the output interface 2304 may be used to connect at least one peripheral device related to input / output (I / O) to the processor 2301 and the memory 2302. In some embodiments, the processor 2301, the memory 2302, the input interface 2303, and the output interface 2304 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 2301, the memory 2302, the input interface 2303, and the output interface 2304 may be implemented on a separate chip or circuit board, which is not limited in the embodiments of the present application.

[0135] Those skilled in the art will appreciate that the structure shown above does not constitute a limitation on the server 200 , and may include more or fewer components than shown in the figure, or combine certain components, or adopt a different component arrangement.

[0136] In an exemplary embodiment, a chip is also provided. The chip includes a programmable logic circuit and / or program instructions. When the chip runs on a computer device, it is used to implement the data processing method described in the above aspects.

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

[0138] In an exemplary embodiment, a computer-readable storage medium is further provided, in which a computer program is stored. The computer program is loaded and executed by a processor to implement the data processing methods provided by the above-mentioned method embodiments.

[0139] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.

[0140] Those skilled in the art should be aware that in one or more of the above examples, the functions described in the embodiments of the present application can be implemented with 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 codes on a computer-readable medium. Computer-readable media include computer storage media and communication media, wherein the communication media include any media that facilitates the transmission of a computer program from one place to another. The storage medium can be any available medium that a general or special-purpose computer can access.

[0141] The above description is only an optional embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.

Claims

1. A data processing method, characterized in that: The method is performed by a computer device, and the method comprises: Acquire storage space occupancy information, where the occupancy information is used to indicate the occupancy of the storage space by multiple operation files of the production equipment; When the occupancy information exceeds the first storage threshold and does not exceed the second storage threshold, the running files in the first file subset are retained and stored, and the running files in the second file subset are deleted; in the file set including the plurality of running files, the first file subset and the second file subset are complementary sets to each other; When the occupancy information exceeds the second storage threshold, the running files in the third file subset are retained and stored, and the running files in the fourth file subset are deleted; in the file set, the third file subset and the fourth file subset are complementary sets to each other; The first file subset includes a first number of running files whose generation time belongs to a first time period, and the third file subset includes a second number of running files whose generation time belongs to the first time period, and the first number is greater than the second number.

2. The method according to claim 1, characterized in that: Each of the multiple operation files has a corresponding time type, and the generation time of at least two operation files of the same time type belongs to the same time period; When the occupancy information exceeds the first storage threshold but does not exceed the second storage threshold, retaining and storing the running files in the first file subset and deleting the running files in the second file subset include: When the occupancy information exceeds the first storage threshold and does not exceed the second storage threshold, a files are sampled and determined from the running files of the same time type to construct the first file subset, where a is a positive integer; Among the plurality of running files, determining the second file subset based on the first file subset; The running files in the first file subset are kept and stored, and the running files in the second file subset are deleted.

3. The method according to claim 2, characterized in that The sampling of a files from the running files of the same time type includes at least one of the following: Among the running files of the same time type, a files are determined randomly; In the running files of the same time type, a files are determined by taking the generation time interval of adjacent files as the preset time interval; In the running files of the same time type, a files are determined based on the constraint that the file contents of a files are different from each other; In the running files of the same time type, a files are determined based on a constraint that the difference in file contents of adjacent files exceeds a difference threshold.

4. The method according to claim 1, characterized in that Each of the multiple operation files has a corresponding time type, and the generation time of at least two operation files of the same time type belongs to the same time period; When the occupancy information exceeds the second storage threshold, retaining and storing the running files in the third file subset and deleting the running files in the fourth file subset include: When the occupancy information exceeds the second storage threshold, b files are sampled and determined from the running files of the same time type to construct the third file subset, where b is a positive integer; Among the plurality of running files, determining the fourth file subset based on the third file subset; The running files in the third file subset are kept and stored, and the running files in the fourth file subset are deleted.

5. The method according to claim 2 or 4, characterized in that: The method further comprises: Obtaining the generation time of the multiple running files; Based on the generation time, the multiple operation files are determined into at least two time types, and the time periods corresponding to the different time types have the same duration.

6. The method according to any one of claims 1 to 4, characterized in that: The method further comprises: Obtain a file cleaning directory, where the file cleaning directory is a storage path of some files of the multiple running files; The storage path of the running files in the second file subset and / or the fourth file subset belongs to the file cleaning directory.

7. The method according to claim 6, characterized in that The production equipment includes a wind turbine generator set; the method further includes: Acquire a data cleaning tag, wherein the storage path of the running files in the second file subset and / or the fourth file subset belongs to the file cleaning directory and has the data cleaning tag; The data cleaning tag is used to indicate the operating data when the wind turbine speed of the wind turbine generator set is less than the speed threshold, or the operating data when the pitch angle of the wind turbine generator set belongs to the angle range.

8. The method according to any one of claims 1 to 4, characterized in that: The method further comprises: When the occupancy information exceeds a third storage threshold, deleting some running files at the head of a file sequence, wherein the file sequence is obtained by arranging the multiple running files in descending order according to the generation time; Among them, after deleting the part of the running files, the occupancy information does not exceed the third storage threshold.

9. The method according to any one of claims 1 to 4, characterized in that: The method further comprises: Obtain a file cleaning type, where the file cleaning type is a file data type of some files among the multiple running files; The file data type of the running files in the second file subset and / or the fourth file subset belongs to the file cleaning type.

10. The method according to any one of claims 1 to 4, characterized in that: The method further comprises: Acquire current time information and a historical reading time of the computer device, wherein the historical reading time is the time when the computer device transmits the historical operation file to the reading device; Determining the first storage threshold and / or the second storage threshold according to the storage duration between the current time information and the historical reading time; There is a positive correlation between the storage duration and the first storage threshold, and / or there is a positive correlation between the storage duration and the second storage threshold.

11. The method according to claim 10, characterized in that The method further comprises: Acquire a historical reading interval, where the historical reading interval is used to indicate an adjacent time interval for the computer device to transmit a historical operation file to the reading device; The determining the first storage threshold and / or the second storage threshold according to the storage duration between the current time information and the historical reading time includes: Determining the storage duration between the current time information and the historical reading time; Determine the first storage threshold and / or the second storage threshold according to the proportion of the storage duration in the historical reading interval; Therein, there is a positive correlation between the duration ratio and the first storage threshold, and / or there is a positive correlation between the duration ratio and the second storage threshold.

12. The method according to any one of claims 1 to 4, characterized in that: The production equipment includes a wind turbine generator set; The obtaining of storage space occupation information includes: Obtaining wind turbine file occupancy information of the storage space by multiple wind turbine operation files of the wind turbine generator set; When the occupancy information exceeds the first storage threshold but does not exceed the second storage threshold, retaining and storing the running files in the first file subset and deleting the running files in the second file subset include: When the fan file occupancy information exceeds the first storage threshold but does not exceed the second storage threshold, retaining and storing the fan operation files in the first file subset, and deleting the fan operation files in the second file subset; When the occupancy information exceeds the second storage threshold, retaining and storing the running files in the third file subset and deleting the running files in the fourth file subset include: When the fan file occupancy information exceeds the second storage threshold, the fan operation files in the third file subset are retained and stored, and the fan operation files in the fourth file subset are deleted.

13. A data processing device, characterized in that: The device comprises: An acquisition module, used to acquire storage space occupancy information, where the occupancy information is used to indicate the occupancy of the storage space by multiple operation files of the production equipment; a processing module, configured to retain and store the running files in the first file subset and delete the running files in the second file subset when the occupancy information exceeds the first storage threshold and does not exceed the second storage threshold; in the file set including the plurality of running files, the first file subset and the second file subset are complementary sets to each other; The processing module is further configured to retain and store the running files in the third file subset and delete the running files in the fourth file subset when the occupancy information exceeds the second storage threshold; the third file subset and the fourth file subset are complementary sets in the file set; The first file subset includes a first number of running files whose generation time belongs to a first time period, and the third file subset includes a second number of running files whose generation time belongs to the first time period, and the first number is greater than the second number.

14. 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 used 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 12.

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

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

Citation Information

Patent Citations

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

    CN108280902A

  • Flow abrupt change monitoring method and device and storage medium

    CN112511369A

  • Database-based operation and maintenance monitoring method and device and medium

    CN118035033A