CN114706826A - Method, device, equipment and computer readable medium for cleaning file - Google Patents

Method, device, equipment and computer readable medium for cleaning file Download PDF

Info

Publication number
CN114706826A
CN114706826A CN202210618644.1A CN202210618644A CN114706826A CN 114706826 A CN114706826 A CN 114706826A CN 202210618644 A CN202210618644 A CN 202210618644A CN 114706826 A CN114706826 A CN 114706826A
Authority
CN
China
Prior art keywords
file
cleaning
server
files
parameter
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202210618644.1A
Other languages
Chinese (zh)
Other versions
CN114706826B (en
Inventor
赵芳
何翔飞
杨健
邱俊凌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
CCB Finetech Co Ltd
Original Assignee
CCB Finetech Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by CCB Finetech Co Ltd filed Critical CCB Finetech Co Ltd
Priority to CN202210618644.1A priority Critical patent/CN114706826B/en
Publication of CN114706826A publication Critical patent/CN114706826A/en
Application granted granted Critical
Publication of CN114706826B publication Critical patent/CN114706826B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems
    • G06F16/162Delete operations
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • G06F16/174Redundancy elimination performed by the file system

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a method, a device, equipment and a computer readable medium for clearing files, and relates to the technical field of big data. One embodiment of the method comprises: storing server files in the running process of a plurality of servers into a preset file directory, wherein the server files comprise one or more of the following files: the method comprises the steps that a log file is generated by a server, a non-log file is generated by the server, and a file is received by the server; screening out invalid files in the preset file directory based on the generation date of the server file and the file cleaning parameters; and determining a cleaning file execution table according to the cleaning frequency parameter and the cleaning time parameter, and cleaning the invalid file according to the cleaning file execution table. The method and the device can be suitable for clearing the change of the file parameters, and further ensure the normal operation of the server.

Description

Method, device, equipment and computer readable medium for cleaning file
Technical Field
The present invention relates to the field of big data technologies, and in particular, to a method, an apparatus, a device, and a computer-readable medium for clearing a file.
Background
With the rapid development of big data technology and the emergence of new service requirements, more and more files are generated in the operation process of the server, and in order to ensure the normal operation of the server, the files generated by the server need to be cleaned in a targeted, reasonable and regular manner.
In the process of implementing the invention, the inventor finds that at least the following problems exist in the prior art: changes in file parameters are cleared, resulting in interruption of normal operation of the server.
Disclosure of Invention
In view of this, embodiments of the present invention provide a method, an apparatus, a device, and a computer readable medium for clearing a file, which can be adapted to clear a change of a file parameter, so as to ensure normal operation of a server.
To achieve the above object, according to an aspect of an embodiment of the present invention, there is provided a method of cleaning a file, including:
storing server files in the running process of a plurality of servers into a preset file directory, wherein the server files comprise one or more of the following files: the method comprises the steps that a log file, a server generate a non-log file and a server receive file are generated;
screening out invalid files in the preset file directory based on the generation date of the server file and the file cleaning parameters;
determining a cleaning file execution table according to a cleaning frequency parameter and a cleaning time parameter, and cleaning the invalid file according to the cleaning file execution table;
the storing of the server files in the running process of the plurality of servers into a preset file directory includes:
the server files comprise log files, and the server files in the running process of the plurality of servers are stored in a preset file directory of the server to which the server files belong;
the server file comprises a non-log file generated by a server and a server receiving file, and the server file in the running process of a plurality of servers is stored into a preset file directory shared by one server in the plurality of servers.
The storing of the server files in the running process of the plurality of servers into a preset file directory includes:
selecting a server among the plurality of servers to clean the file in response to a request to clean the server;
determining, in the selected server, a server file directory based on the request to clean the server;
and in the running process of the server, storing the server file in the server file directory into the preset file directory.
In the preset file directory, screening out invalid files based on the generation date of the server file and the file cleaning parameter, wherein the screening out of the invalid files comprises the following steps:
traversing files in the preset file directory to acquire the generation date of the server file;
and screening out invalid files according to the period in the file cleaning parameters and the generation date of the server file.
Screening out invalid files according to the period in the file cleaning parameter and in combination with the generation date of the server file, wherein the screening out invalid files comprises the following steps:
responding to a cleaning file parameter setting request, and setting a default period and a time point interval period in the cleaning file parameters;
updating the default period according to the current time point and the time point interval period;
and screening the invalid file according to the updated default period and the generation date of the server file.
The determining a cleaning file execution table according to the cleaning frequency parameter and the cleaning time parameter, and cleaning the invalid file according to the cleaning file execution table includes:
setting or updating the cleaning frequency parameter and the cleaning time parameter in response to a cleaning parameter setting request;
and determining a cleaning file execution table based on the cleaning frequency parameter and the cleaning time parameter, and cleaning the invalid file according to the cleaning file execution table.
The determining a cleaning file execution table according to the cleaning frequency parameter and the cleaning time parameter, and cleaning the invalid file according to the cleaning file execution table includes:
determining the starting time point of the cleaning file in the cleaning file execution table according to the cleaning frequency parameter and the cleaning time parameter;
and traversing the invalid file to clear the invalid file according to the starting time point of the clearing file in the clearing file execution table.
Determining the starting time point of the cleaning file in the cleaning file execution table according to the cleaning frequency parameter and the cleaning time parameter, including:
determining the date of cleaning the file according to the cleaning frequency parameter;
and determining the starting time point of the cleaning file in the date of the cleaning file according to the cleaning time parameter.
The cleaning frequency parameters include one or more of: daily, weekly, monthly, seasonal and annual cleaning frequencies.
The determining the date of cleaning the file according to the cleaning frequency parameter comprises:
determining the cleaning date of the cleaning file according to the specified frequency in the cleaning frequency parameter within a preset time period;
and determining the date of cleaning the file on the basis of the cleaning date according to the offset days in the cleaning frequency parameter.
Determining a starting time point of cleaning the file in the date of cleaning the file according to the cleaning time parameter, including:
determining an initial time point of cleaning the file in the date of cleaning the file according to the fixed time point in the cleaning time parameter;
and determining the starting time point of the cleaning file on the basis of the initial time point based on the preset time interval of the cleaning time parameter.
The preset file directory is arranged in the memory.
Before storing the server files in the running process of the plurality of servers into the preset file directory, the method further comprises the following steps:
dividing a plurality of servers into a server group, wherein the server group comprises a plurality of servers;
the determining a cleaning file execution table according to the cleaning frequency parameter and the cleaning time parameter includes:
and determining a cleaning file execution table of the server group according to the cleaning frequency parameter and the cleaning time parameter.
According to a second aspect of the embodiments of the present invention, there is provided an apparatus for cleaning a file, including:
the storage module is used for storing server files in the running process of a plurality of servers into a preset file directory, wherein the server files comprise one or more of the following files: the method comprises the steps that a log file, a server generate a non-log file and a server receive file are generated;
the method is particularly used for storing the server files in the running process of the plurality of servers into a preset file directory of the server to which the server files belong, wherein the server files comprise log files;
the server file comprises a server generated non-log file and a server receiving file, and the server file in the running process of a plurality of servers is stored into a preset file directory shared by one server in the plurality of servers;
the screening module is used for screening out invalid files in the preset file directory based on the generation date of the server files and the file cleaning parameters;
and the cleaning module is used for determining a cleaning file execution table according to the cleaning frequency parameter and the cleaning time parameter, and cleaning the invalid file according to the cleaning file execution table.
The storage module is specifically used for responding to a request for cleaning the server and selecting the server from the plurality of servers to clean the file;
determining, in the selected server, a server file directory based on the request to clean the server;
and in the running process of the server, storing the server file in the server file directory into the preset file directory.
The cleaning module is specifically configured to respond to a cleaning parameter setting request, and set or update the cleaning frequency parameter and the cleaning time parameter;
and determining a cleaning file execution table based on the cleaning frequency parameter and the cleaning time parameter, and cleaning the invalid file according to the cleaning file execution table.
According to a third aspect of the embodiments of the present invention, there is provided an electronic device for clearing a file, including:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement a method as described above.
According to a fourth aspect of embodiments of the present invention, there is provided a computer readable medium, on which a computer program is stored, which when executed by a processor, implements the method as described above.
According to a fifth aspect of embodiments of the present invention, there is provided a computer program product comprising a computer program which, when executed by a processor, implements the method as provided above by embodiments of the present invention.
One embodiment of the above invention has the following advantages or benefits: storing server files in the running process of a plurality of servers into a preset file directory, wherein the server files comprise one or more of the following files: the method comprises the steps that a log file is generated by a server, a non-log file is generated by the server, and a file is received by the server; screening out invalid files in the preset file directory based on the generation date of the server file and the file cleaning parameters; and determining a cleaning file execution table according to the cleaning frequency parameter and the cleaning time parameter, and cleaning the invalid file according to the cleaning file execution table. The adoption of the cleaning file execution table can be suitable for cleaning the change of the file parameters, thereby ensuring the normal operation of the server.
Further effects of the above-mentioned non-conventional alternatives will be described below in connection with the embodiments.
Drawings
The drawings are included to provide a better understanding of the invention and are not to be construed as unduly limiting the invention. Wherein:
FIG. 1 is a schematic diagram of a main flow 100 of a method of cleaning a file according to an embodiment of the invention;
FIG. 2 is a diagram illustrating a process 200 for storing a server file into a predetermined file directory according to an embodiment of the invention;
FIG. 3 is a schematic diagram of a process 300 for screening out invalid files based on the generation date of the server file and the parameters of the clean file according to an embodiment of the present invention;
FIG. 4 is a diagram illustrating a process 400 for filtering out invalid files in conjunction with a generation date of a server file, according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of a process 500 for responding to a cleaning parameter setting request according to an embodiment of the invention;
FIG. 6 is a diagram illustrating a process 600 for cleaning invalid files according to a clean file execution table, according to an embodiment of the invention;
FIG. 7 is a flowchart 700 for determining a starting time point for cleaning a file according to an embodiment of the present invention;
FIG. 8 is a diagram illustrating a process 800 for determining a date to clean a file based on a cleaning frequency parameter, in accordance with an embodiment of the present invention;
FIG. 9 is a diagram illustrating a process 900 for determining a starting point in time for cleaning a file on a date for cleaning the file, in accordance with an embodiment of the present invention;
FIG. 10 is a schematic diagram of a server-generated server file 1000 according to an embodiment of the present invention;
FIG. 11 is a schematic diagram of a clean server file 1100 according to an embodiment of the invention;
FIG. 12 is a schematic diagram of a main structure of an apparatus 1200 for cleaning files according to an embodiment of the present invention;
FIG. 13 is an exemplary system architecture diagram in which embodiments of the present invention may be employed;
fig. 14 is a schematic structural diagram of a computer system suitable for implementing a terminal device or a server according to an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present invention are described below with reference to the accompanying drawings, in which various details of embodiments of the invention are included to assist understanding, and which are to be considered as merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness. According to the technical scheme, the data acquisition, storage, use, processing and the like meet relevant regulations of national laws and regulations.
In the operation process of the server, various files and the like can be generated, and the files occupy certain space. In order to ensure that the size of the memory of the server is controllable, files generated by the operation of the server need to be cleaned according to a certain frequency and rule.
And configuring cleaning frequency through configuration files, and calling a written script to clean specific directories and files. When the cleaning frequency changes, the cleaning frequency in the configuration file needs to be modified, and the server is restarted to enable the new cleaning frequency to take effect. The system function is influenced by the start and stop of the server, so that the external service cannot be provided for a period of time, and the influence is large. Moreover, when the directory and file range to be cleaned are changed, the written fixed script needs to be modified, which is not beneficial to maintenance of the cleaning script.
In summary, the change of the file parameter is cleared, which results in interrupting the normal operation of the server.
In order to solve the technical problem that the normal operation of the server is interrupted due to the change of the parameters of the cleaning file, the following technical scheme in the embodiment of the invention can be adopted.
Referring to fig. 1, fig. 1 is a schematic diagram of a main flow 100 of a method for clearing a file according to an embodiment of the present invention, where invalid files are cleared according to a clear file execution table, so as to avoid interrupting normal operation of a server. As shown in fig. 1, the method specifically comprises the following steps:
s101, storing server files in the running process of a plurality of servers into a preset file directory, wherein the server files comprise one or more of the following files: the method for storing the server files in the running process of the plurality of servers into the preset file directory comprises the following steps: the server files comprise log files, and the server files in the running process of the plurality of servers are stored in a preset file directory of the server to which the server files belong; the server file comprises a server generated non-log file and a server receiving file, and the server file in the running process of a plurality of servers is stored into a preset file directory shared by one server in the plurality of servers
A server provides computing or application services to other clients in a network. The server has high-speed CPU computing capability, long-time reliable operation, strong I/O external data throughput capability and better expansibility.
The servers relate to various server files in the operation process, and the number and the variety of the server files related in the operation process of the servers are various. In order to clean useless files in the running process of the servers in time, the server files in the running process of the servers need to be stored in a preset file directory.
Referring to fig. 2, fig. 2 is a schematic diagram illustrating a process 200 for storing a server file into a preset file directory according to an embodiment of the present invention. The method specifically comprises the following steps:
s201, responding to the request of cleaning the server, and selecting the server from the plurality of servers to clean the file.
In an embodiment of the invention, the trigger to clean the server is triggered by a request from the clean server. As one example, a request to clean the server is received through a preset script or a preset server.
In response to a request to clean a server, a server may be selected from a plurality of servers to thereby enable cleaning of the selected server. As one example, a periodic clean-up server is implemented as requested by the clean-up server.
S202, in the selected server, the server file directory is determined based on the request of the cleaning server.
The server has a plurality of file directories, each of which stores a plurality of files. In the selected server, a server file directory is determined in accordance with a request to clean the server. The files in the determined server file directory belong to files needing to be cleaned.
And S203, storing the server files in the server file directory into a preset file directory in the running process of the server.
During the operation of the server, the server generates a scene server file. Wherein the server file comprises one or more of the following files: the method comprises the steps of logging files, generating non-logging files by a server and receiving files by the server. The server files are typically stored in a server file directory.
Therefore, the server files in the server file directory can be stored in the preset file directory during the operation of the server, so that the files can be cleaned.
In the embodiment of fig. 2, in response to a request for cleaning a server, a server and a server file directory in the server are selected to store a server file to be cleaned in a preset file directory.
In an embodiment of the present invention, in consideration of a large number of server files in a server, a preset file directory may be set in each server, and then the server files of the server are stored in the preset file directory of the server. That is, a preset file directory is provided in each server.
In a server cluster of the system, a preset file directory is provided in one or more servers of a plurality of servers. That is, the predetermined file directories are centrally located in one or more servers, and thus centrally store the server files.
In one embodiment of the invention, it is contemplated that the server file includes one or more of the following files: the method comprises the steps of logging files, generating non-logging files by a server and receiving files by the server. The server files may also be stored separately according to the kind of the server files.
In the case where the server file includes a log file, the server file may be stored in a preset file directory of the server in order to facilitate query of the log file. That is, the server file includes a log file, and the server files in the running process of the plurality of servers are stored in a preset file directory of the server to which the server files belong.
In the case where the server file includes a server-generated non-log file and a server-received file, the server file may also be stored in a preset file directory shared by a plurality of servers, thereby facilitating the cleaning of the file. The server file comprises a server generation non-log file and a server receiving file, and the server files in the operation process of a plurality of servers are stored in a preset file directory shared by one server in the plurality of servers.
In an embodiment of the present invention, the preset file directory is disposed in the memory, so as to facilitate the file cleaning under the condition that the server operates normally.
S102, screening out invalid files in a preset file directory based on the generation date of the server files and the file cleaning parameters.
Server files are stored in the preset file directory, and for each server file, not every server file is an invalid file. The invalid file needs to be screened out based on the generation date of the server file and the parameters of the cleaning file. The generation date of the server file is the creation date of the server file. The clean file parameter is a pre-parameter.
Referring to fig. 3, fig. 3 is a schematic diagram of a process 300 for screening out invalid files based on the generation date of the server file and the parameters of the clean file according to an embodiment of the present invention. The method specifically comprises the following steps:
s301, traversing the files in a preset file directory to acquire the generation date of the server files.
In the preset file directory, a server file is stored. And acquiring the generation date of the server file by traversing the server file in the preset file directory.
S302, according to the period in the file cleaning parameter, and in combination with the generation date of the server file, screening out invalid files.
In the embodiment of the invention, the file cleaning parameters comprise a period, and invalid files are screened out by combining the generation date of the server files. Such as: and if the generation date of the server file is within the period, the server file is taken as an invalid file. As an example, the period is set to: and 7 days, namely cleaning the server files 7 days ago. The server file whose generation date is within 7 days does not belong to the invalid file. As an example, the period is set to one or more of the following parameters: 7 days, 10 days, 15 days, 30 days, 60 days, 90 days and 180 days.
Referring to fig. 4, fig. 4 is a schematic diagram illustrating a process 400 for screening out invalid files according to a generation date of a server file according to an embodiment of the present invention. The method specifically comprises the following steps:
s401, responding to the cleaning file parameter setting request, and setting a default period and a time point interval period in the cleaning file parameters.
The clear file parameter may be obtained by a clear file parameter setting request. As one example, the clean file parameter setting request is received through a preset script or a preset server. And responding to the cleaning file parameter setting request, and setting a default period and a time point interval period in the cleaning file parameters.
The default period in the clean-up file parameter is a default period of time from the current time. The time point interval period is a preset time period from the present.
S402, updating the default period according to the preset time point and the time point interval period.
The default period is a parameter for screening out invalid files. In the embodiment of the present invention, the default period may be updated. Specifically, the default period is updated according to the preset time point and the time point interval period. And at a preset time point, if the original default period cannot meet the requirement of clearing the file, updating the default period at a time interval period. That is, the time point interval period is used as the default period.
As an example, the default period is 60 days. And when the server normally operates, taking the server files more than 60 days away from the current time as invalid files in combination with the generation date of the server files. In a preset time period, the preset time point comprises: the peak days of online shopping and the holidays of major festivals. The time point interval period was set to 90 days. In this way, the server file retention period is increased by updating the default period.
And S403, screening out invalid files according to the generation date of the server file in the updated default period.
Based on the updated default period, in combination with the generation date of the server file, invalid files can be screened out. As an example, if the updated default period is 90 days, then the server files that are 90 days away from the current time will be considered invalid.
In the embodiment of fig. 4, the main function of the cleaning file parameter is to directly modify the cleaning file parameter without modifying the written configuration file when the default period changes, so as to meet the requirements of different periods and important time points. And updating the default period based on the time point interval period so as to be suitable for the actual use condition of the server.
In the embodiment of fig. 5, from the perspective of the server, invalid files are screened out, and a foundation is laid for cleaning the files.
S103, determining a cleaning file execution table according to the cleaning frequency parameter and the cleaning time parameter, and cleaning invalid files according to the cleaning file execution table.
After the invalid files are screened out, the files can be cleaned through cleaning the file execution table. The method can determine a cleaning file execution table according to the cleaning frequency parameter and the cleaning time parameter, and clean invalid files according to the cleaning file execution table.
Referring to fig. 5, fig. 5 is a schematic diagram of a process 500 for responding to a request for setting cleaning parameters according to an embodiment of the present invention. The method specifically comprises the following steps:
s501, responding to a cleaning parameter setting request, and setting or updating a cleaning frequency parameter and a cleaning time parameter.
In the embodiment of the invention, a file execution table is determined by adopting a cleaning frequency parameter and a cleaning time parameter. The cleaning frequency parameter is a frequency parameter characterizing the cleaning file. The date the file is cleaned can be determined based on the cleaning frequency parameter. The cleaning time parameter is a parameter for representing a specific time point of cleaning a file.
In one embodiment of the present invention, the cleaning frequency parameter and the cleaning time parameter are set or updated with the cleaning parameter setting request. As one example, the cleaning parameter setting request is received through a preset script or a preset server.
S502, determining a cleaning file execution table based on the cleaning frequency parameter and the cleaning time parameter, and cleaning invalid files according to the cleaning file execution table.
And determining a cleaning file execution table according to the cleaning frequency parameter and the cleaning time parameter. Further, the invalid file can be cleared directly based on the clear file execution table. Without modifying the configuration file.
In the embodiment of fig. 5, the cleaning frequency parameter and the cleaning time parameter can be preset or updated, and the cleaning of the invalid file can be performed through the cleaning file execution table without interrupting the normal operation of the server.
Referring to fig. 6, fig. 6 is a schematic diagram illustrating a flow 600 for cleaning invalid files according to the clean file execution table according to an embodiment of the present invention. The method specifically comprises the following steps:
s601, determining the starting time point of the cleaning file in the cleaning file execution table according to the cleaning frequency parameter and the cleaning time parameter.
The date of cleaning the file can be determined based on the cleaning frequency parameter, and the time point of cleaning the file can be determined based on the cleaning time parameter. Therefore, the starting time point of the cleaning file in the cleaning file execution table is determined according to the cleaning frequency parameter and the cleaning time parameter.
Referring to fig. 7, fig. 7 is a schematic diagram of a process 700 for determining a start time point of cleaning a file according to an embodiment of the present invention. The method specifically comprises the following steps:
s701, determining the date of cleaning the file according to the cleaning frequency parameter.
The cleaning frequency parameter can represent the interval of cleaning dates, and the date of cleaning files can be determined according to the cleaning frequency parameter. As an example, the cleaning frequency parameter includes a weekly cleaning frequency, the date of the first cleaning of the file is: 1 month and 1 day; the date of the second cleaning of the files is 1 month and 8 days.
In one embodiment of the invention, the cleaning frequency parameters include one or more of: daily, weekly, ten-day, monthly, seasonal and annual cleaning frequencies.
Referring to fig. 8, fig. 8 is a schematic diagram of a process 800 for determining a date of cleaning a file according to a cleaning frequency parameter according to an embodiment of the present invention. The method specifically comprises the following steps:
s801, determining the cleaning date of the cleaning file according to the specified frequency in the cleaning frequency parameter in the preset time period.
The cleaning frequency parameter includes a prescribed frequency. And determining the cleaning date of the cleaning file according to the specified frequency in the cleaning frequency parameter in a preset time period. As one example, the prescribed frequency is a weekly cleaning frequency. The preset time period is 2023 years, the cleaning date of cleaning the file in 2023 can be determined.
S802, determining the date of cleaning the file on the basis of the cleaning date according to the offset days in the cleaning frequency parameter.
The offset number of days in the cleaning frequency parameter is the date characterizing the cleaning file and the time interval of the cleaning date. This is to take into account the effect of holidays on the number of server files. By offsetting the number of days, the effect of the special date on the server file is fully taken into account.
In the embodiment of fig. 8, the use of offset days enables adjustment of the date on which the file is cleaned, as appropriate to the effect of a particular date on the server file.
S702, determining the starting time point of the cleaning file in the date of the cleaning file according to the cleaning time parameter.
After the date of cleaning the file is determined, a starting time point of cleaning the file can be determined in the date of cleaning the file according to the cleaning time parameter.
Referring to fig. 9, fig. 9 is a schematic diagram of a process 900 for determining a starting time point of cleaning a file in a date of cleaning the file according to an embodiment of the present invention. The method specifically comprises the following steps:
s901, determining an initial time point of cleaning the file in the date of cleaning the file according to the fixed time point in the cleaning time parameter.
The cleaning time parameter includes a fixed time point, that is, a fixed time point of cleaning the file. And determining an initial time point of cleaning the file in the date of cleaning the file according to the fixed time point in the cleaning time parameter. As an example, the fixed time point includes 1 am, the date of cleaning the file is 1 month and 3 days, and the initial time point of cleaning the file is 1 am and 3 days, and 1 am.
S902, determining the initial time point of cleaning the file based on the preset time interval of the cleaning time parameter and the initial time point.
The starting time point of the cleaning file can be adjusted by presetting the time interval in consideration of the influence of the cleaning file on the server.
And determining the starting time point of cleaning the file on the basis of the initial time point based on the preset time interval of the cleaning time parameter. As an example, the initial time point is 1 month 3 morning 1 point, the preset time interval is 30 minutes, and the initial time point for cleaning the file is 1 month 3 morning 1 point 30 minutes.
In the embodiment of fig. 9, the start time point of cleaning the file is adjusted by a preset time interval.
In the embodiment of fig. 7, the cleaning frequency parameter and the cleaning time parameter are combined to determine the starting time point of cleaning the file.
S602, traversing the invalid file to clean the invalid file according to the starting time point of the cleaning file in the cleaning file execution table.
After the initial time point of the cleaning file in the cleaning file execution table is determined, the invalid file can be traversed according to the initial time point of the cleaning file in the cleaning file execution table, and then the cleaning of the invalid file is realized.
In the embodiment of fig. 6, the invalid file is cleaned based on the starting time point of the cleaning file in the cleaning file execution table to guarantee the normal operation of the server.
In one embodiment of the invention, it is possible for a server to provide services in groups of servers. Each server can realize the cleaning file based on the cleaning file execution table of the server group.
Specifically, the plurality of servers are divided into a server group including the plurality of servers. And then, storing the server files in the running process of the plurality of servers into a preset file directory. And in the process of determining the cleaning file execution table, determining the cleaning file execution table of the server group according to the cleaning frequency parameter and the cleaning time parameter.
In the embodiment of the present invention, server files in the running process of a plurality of servers are stored in a preset file directory, where the server files include one or more of the following files: the method comprises the steps that a log file is generated by a server, a non-log file is generated by the server, and a file is received by the server; screening out invalid files in the preset file directory based on the generation date of the server file and the file cleaning parameters; and determining a cleaning file execution table according to the cleaning frequency parameter and the cleaning time parameter, and cleaning the invalid file according to the cleaning file execution table. The adoption of the cleaning file execution table can be suitable for cleaning the change of the file parameters, thereby ensuring the normal operation of the server.
By adopting the technical scheme in the embodiment of the invention, the normal operation of the server does not need to be stopped, the flexible file cleaning of the server is realized, and the normal operation of the server and the storage of important files of the system are convenient to maintain.
Referring to fig. 10, fig. 10 is a schematic diagram of a server generation server file 1000 according to an embodiment of the present invention. Fig. 10 includes server 1, server 2, and server n. A log file and a system file are generated for each server, and the server receives the file, i.e., the file transmitted by the external system. The system file, i.e., the server, generates a non-log file. The files each include a generation date. And storing the log file, the non-log file generated by the server and the server receiving file in a preset file directory.
Referring to fig. 11, fig. 11 is a schematic diagram of a clean server file 1100 according to an embodiment of the present invention. And setting a cleaning frequency parameter and a cleaning time parameter through the server, and further cleaning files according to the cleaning frequency parameter and the cleaning time parameter.
Referring to fig. 12, fig. 12 is a schematic diagram of a main structure 1200 of an apparatus for cleaning a file according to an embodiment of the present invention, where the apparatus for cleaning a file can implement a method for cleaning a file, and as shown in fig. 12, the apparatus for cleaning a file specifically includes:
a storage module 1201, configured to store server files in a running process of multiple servers into a preset file directory, where the server files include one or more of the following files: the method comprises the steps that a log file is generated by a server, a non-log file is generated by the server, and a file is received by the server;
the method is specifically used for storing the server files in the running process of the plurality of servers into a preset file directory of the server to which the server files belong, wherein the server files comprise log files;
the server file comprises a server generated non-log file and a server receiving file, and the server file in the running process of a plurality of servers is stored into a preset file directory shared by one server in the plurality of servers;
a screening module 1202, configured to screen out, in the preset file directory, an invalid file based on the generation date of the server file and the file cleaning parameter;
a cleaning module 1203, configured to determine a cleaning file execution table according to the cleaning frequency parameter and the cleaning time parameter, and clean the invalid file according to the cleaning file execution table.
In an embodiment of the present invention, the storage module 1201 is specifically configured to, in response to a request for cleaning a server, select a server among a plurality of servers to clean a file;
determining, in the selected server, a server file directory based on the request to clean the server;
and in the running process of the server, storing the server file in the server file directory into the preset file directory.
In one embodiment of the present invention, the preset file directory is provided in each server, or in one or more servers of the plurality of servers.
In an embodiment of the present invention, the screening module 1202 is specifically configured to traverse files in the preset file directory to obtain a generation date of the server file;
and screening out invalid files according to the period in the file cleaning parameters and the generation date of the server file.
In an embodiment of the present invention, the screening module 1202 is specifically configured to respond to a cleaning file parameter setting request, and set a default period and a time point interval period in the cleaning file parameter;
updating the default period according to the current time point and the time point interval period;
and screening the invalid file according to the updated default period and the generation date of the server file.
In an embodiment of the present invention, the cleaning module 1203 is specifically configured to, in response to a cleaning parameter setting request, set or update the cleaning frequency parameter and the cleaning time parameter;
and determining a cleaning file execution table based on the cleaning frequency parameter and the cleaning time parameter, and cleaning the invalid file according to the cleaning file execution table.
In an embodiment of the present invention, the cleaning module 1203 is specifically configured to determine, according to the cleaning frequency parameter and the cleaning time parameter, a starting time point of a cleaning file in the cleaning file execution table;
and traversing the invalid file to clear the invalid file according to the starting time point of the clearing file in the clearing file execution table.
In an embodiment of the present invention, the cleaning module 1203 is specifically configured to determine a date for cleaning the file according to the cleaning frequency parameter;
and determining the starting time point of the cleaning file in the date of the cleaning file according to the cleaning time parameter.
In one embodiment of the invention, the cleaning frequency parameter comprises one or more of: daily, weekly, monthly, seasonal and yearly cleaning.
In an embodiment of the present invention, the cleaning module 1203 is specifically configured to determine, within a preset time period, a cleaning date for cleaning a file according to a specified frequency in the cleaning frequency parameter;
and determining the date of cleaning the file on the basis of the cleaning date according to the offset days in the cleaning frequency parameter.
In an embodiment of the present invention, the cleaning module 1203 is specifically configured to determine an initial time point of cleaning a file in the date of cleaning the file according to a fixed time point in the cleaning time parameter;
and determining the starting time point of the cleaning file on the basis of the initial time point based on the preset time interval of the cleaning time parameter.
In an embodiment of the present invention, the preset file directory is disposed in a memory.
In an embodiment of the present invention, the storage module 1201 is further configured to divide a plurality of servers into a server group, where the server group includes a plurality of servers;
the cleaning module 1203 is specifically configured to determine a cleaning file execution table of the server group according to the cleaning frequency parameter and the cleaning time parameter.
Fig. 13 shows an exemplary system architecture 1300 to which the method of cleaning a file or the apparatus for cleaning a file of the embodiments of the present invention can be applied.
As shown in fig. 13, the system architecture 1300 may include terminal devices 1301, 1302, 1303, a network 1304, and a server 1305. The network 1304 is used to provide a medium for communication links between the terminal devices 1301, 1302, 1303 and the server 1305. The network 1304 may include various connection types, such as wired, wireless communication links, or fiber optic cables, among others.
A user may use the terminal devices 1301, 1302, 1303 to interact with a server 1305 through a network 1304 to receive or send messages or the like. Various messaging client applications, such as shopping applications, web browser applications, search applications, instant messaging tools, mailbox clients, social platform software, etc. (examples only) may be installed on the terminal devices 1301, 1302, 1303.
Terminal devices 1301, 1302, 1303 may be various electronic devices having display screens and supporting web browsing, including but not limited to smart phones, tablet computers, laptop portable computers, desktop computers, and the like.
The server 1305 may be a server that provides various services, such as a background management server (for example only) that provides support for shopping websites browsed by users using the terminal devices 1301, 1302, 1303. The backend management server may analyze and perform other processing on the received data such as the product information query request, and feed back a processing result (for example, target push information, product information — just an example) to the terminal device.
It should be noted that the method for cleaning files provided by the embodiment of the present invention is generally executed by the server 1305, and accordingly, the apparatus for cleaning files is generally disposed in the server 1305.
It should be understood that the number of terminal devices, networks, and servers in fig. 13 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
A computer program product according to an embodiment of the present invention includes a computer program, and when the computer program is executed by a processor, the computer program implements the method for cleaning a file according to an embodiment of the present invention.
Referring now to FIG. 14, shown is a block diagram of a computer system 1400 suitable for use with a terminal device in accordance with an embodiment of the present invention. The terminal device shown in fig. 14 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present invention.
As shown in fig. 14, the computer system 1400 includes a Central Processing Unit (CPU) 1401, which can perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM) 1402 or a program loaded from a storage portion 1408 into a Random Access Memory (RAM) 1403. In the RAM 1403, various programs and data necessary for the operation of the system 1400 are also stored. The CPU 1401, ROM 1402, and RAM 1403 are connected to each other via a bus 1404. An input/output (I/O) interface 1405 is also connected to bus 1404.
The following components are connected to the I/O interface 1405: an input portion 1406 including a keyboard, a mouse, and the like; an output portion 1407 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker and the like; a storage portion 1408 including a hard disk and the like; and a communication portion 1409 including a network interface card such as a LAN card, a modem, or the like. The communication section 1409 performs communication processing via a network such as the internet. The driver 1410 is also connected to the I/O interface 1405 as necessary. A removable medium 1411 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 1410 as necessary, so that a computer program read out therefrom is installed into the storage section 1408 as necessary.
In particular, according to the embodiments of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication portion 1409 and/or installed from the removable medium 1411. The computer program performs the above-described functions defined in the system of the present invention when executed by a Central Processing Unit (CPU) 1401.
It should be noted that the computer readable medium shown in the present invention can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present invention, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present invention, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules described in the embodiments of the present invention may be implemented by software or hardware. The described modules may also be provided in a processor, which may be described as: a processor includes a storage module, a screening module, and a cleaning module. The names of the modules do not limit the modules themselves in some cases, and for example, the storage module may also be described as "storing server files in the running process of multiple servers into a preset file directory".
As another aspect, the present invention also provides a computer-readable medium that may be contained in the apparatus described in the above embodiments; or may be separate and not incorporated into the device. The computer readable medium carries one or more programs which, when executed by a device, cause the device to comprise:
storing server files in the running process of a plurality of servers into a preset file directory, wherein the server files comprise one or more of the following files: the method comprises the steps that a log file is generated by a server, a non-log file is generated by the server, and a file is received by the server;
screening out invalid files in the preset file directory based on the generation date of the server file and the file cleaning parameters;
and determining a cleaning file execution table according to the cleaning frequency parameter and the cleaning time parameter, and cleaning the invalid file according to the cleaning file execution table.
According to the technical scheme of the embodiment of the invention, server files in the running process of a plurality of servers are stored in a preset file directory, wherein the server files comprise one or more of the following files: the method comprises the steps that a log file is generated by a server, a non-log file is generated by the server, and a file is received by the server; screening out invalid files in the preset file directory based on the generation date of the server file and the file cleaning parameters; and determining a cleaning file execution table according to the cleaning frequency parameter and the cleaning time parameter, and cleaning the invalid file according to the cleaning file execution table. The adoption of the cleaning file execution table can be suitable for cleaning the change of the file parameters, thereby ensuring the normal operation of the server.
The above-described embodiments should not be construed as limiting the scope of the invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (18)

1. A method of cleaning a file, comprising:
storing server files in the running process of a plurality of servers into a preset file directory, wherein the server files comprise one or more of the following files: the method comprises the steps that a log file is generated by a server, a non-log file is generated by the server, and a file is received by the server;
screening out invalid files in the preset file directory based on the generation date of the server file and the file cleaning parameters;
determining a cleaning file execution table according to a cleaning frequency parameter and a cleaning time parameter, and cleaning the invalid file according to the cleaning file execution table;
the storing of the server files in the running process of the plurality of servers into a preset file directory includes:
the server files comprise log files, and the server files in the running process of the plurality of servers are stored in a preset file directory of the server to which the server files belong;
the server file comprises a non-log file generated by a server and a server receiving file, and the server file in the running process of a plurality of servers is stored into a preset file directory shared by one server in the plurality of servers.
2. The method for clearing files according to claim 1, wherein the storing the server files in the running process of the plurality of servers into a preset file directory comprises:
selecting a server among the plurality of servers to clean the file in response to a request to clean the server;
determining, in the selected server, a server file directory based on the request of the cleaning server;
and in the running process of the server, storing the server file in the server file directory into the preset file directory.
3. The method for clearing files according to claim 1, wherein the screening out invalid files in the preset file directory based on the generation date of the server file and parameters of clearing files comprises:
traversing files in the preset file directory to acquire the generation date of the server file;
and screening out invalid files according to the period in the file cleaning parameters and the generation date of the server file.
4. The method for clearing files according to claim 3, wherein the screening out invalid files according to the period in the parameters of clearing files and the generation date of the server files comprises:
responding to a cleaning file parameter setting request, and setting a default period and a time point interval period in the cleaning file parameters;
updating the default period according to the current time point and the time point interval period;
and screening the invalid file according to the updated default period and the generation date of the server file.
5. The method for clearing files according to claim 1, wherein the determining a clearing file execution table according to a clearing frequency parameter and a clearing time parameter, and clearing the invalid files according to the clearing file execution table comprises:
setting or updating the cleaning frequency parameter and the cleaning time parameter in response to a cleaning parameter setting request;
and determining a cleaning file execution table based on the cleaning frequency parameter and the cleaning time parameter, and cleaning the invalid file according to the cleaning file execution table.
6. The method for clearing files according to claim 1, wherein the determining a clearing file execution table according to a clearing frequency parameter and a clearing time parameter, and clearing the invalid files according to the clearing file execution table comprises:
determining the starting time point of the cleaning file in the cleaning file execution table according to the cleaning frequency parameter and the cleaning time parameter;
and traversing the invalid file to clear the invalid file according to the starting time point of clearing the file in the clearing file execution table.
7. The method for clearing files according to claim 6, wherein said determining a starting time point of clearing files in said clearing file execution table according to said clearing frequency parameter and said clearing time parameter comprises:
determining the date of cleaning the file according to the cleaning frequency parameter;
and determining the starting time point of the cleaning file in the date of the cleaning file according to the cleaning time parameter.
8. The method of claim 7, wherein the cleaning frequency parameter comprises one or more of: daily, weekly, monthly, seasonal and yearly cleaning.
9. The method of claim 7, wherein determining a date to clean the file according to the cleaning frequency parameter comprises:
determining the cleaning date of the cleaning file according to the specified frequency in the cleaning frequency parameter within a preset time period;
and determining the date of cleaning the file on the basis of the cleaning date according to the offset days in the cleaning frequency parameter.
10. The method for cleaning files according to claim 7, wherein the determining a starting time point of cleaning files in the date of cleaning files according to the cleaning time parameter comprises:
determining an initial time point of cleaning the file in the date of cleaning the file according to the fixed time point in the cleaning time parameter;
and determining the starting time point of the cleaning file on the basis of the initial time point based on the preset time interval of the cleaning time parameter.
11. The method of claim 1, wherein the predetermined file directory is disposed in a memory.
12. The method for clearing files according to claim 1, wherein before storing the server files in the operation process of the plurality of servers into a preset file directory, the method further comprises:
dividing a plurality of servers into a server group, wherein the server group comprises a plurality of servers;
determining a cleaning file execution table according to the cleaning frequency parameter and the cleaning time parameter comprises the following steps:
and determining a cleaning file execution table of the server group according to the cleaning frequency parameter and the cleaning time parameter.
13. An apparatus for cleaning documents, comprising:
the storage module is used for storing server files in the running process of a plurality of servers into a preset file directory, wherein the server files comprise one or more of the following files: the method comprises the steps that a log file, a server generate a non-log file and a server receive file are generated;
the method is particularly used for storing the server files in the running process of the plurality of servers into a preset file directory of the server to which the server files belong, wherein the server files comprise log files;
the server file comprises a server generated non-log file and a server receiving file, and the server file in the running process of a plurality of servers is stored into a preset file directory shared by one server in the plurality of servers;
the screening module is used for screening out invalid files in the preset file directory based on the generation date of the server files and the file cleaning parameters;
and the cleaning module is used for determining a cleaning file execution table according to the cleaning frequency parameter and the cleaning time parameter, and cleaning the invalid file according to the cleaning file execution table.
14. The apparatus for cleaning files of claim 13, wherein the storage module is specifically configured to select a server among the plurality of servers to clean files in response to a request for cleaning the server;
determining, in the selected server, a server file directory based on the request to clean the server;
and in the running process of the server, storing the server file in the server file directory into the preset file directory.
15. The apparatus for cleaning files of claim 13, wherein the cleaning module is specifically configured to set or update the cleaning frequency parameter and the cleaning time parameter in response to a cleaning parameter setting request;
and determining a cleaning file execution table based on the cleaning frequency parameter and the cleaning time parameter, and cleaning the invalid file according to the cleaning file execution table.
16. An electronic device for cleaning a file, comprising:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-12.
17. A computer-readable medium, on which a computer program is stored, which, when being executed by a processor, carries out the method according to any one of claims 1-12.
18. A computer program product comprising a computer program, characterized in that the computer program realizes the method according to any of claims 1-12 when executed by a processor.
CN202210618644.1A 2022-06-02 2022-06-02 Method, device, equipment and computer readable medium for cleaning file Active CN114706826B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210618644.1A CN114706826B (en) 2022-06-02 2022-06-02 Method, device, equipment and computer readable medium for cleaning file

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210618644.1A CN114706826B (en) 2022-06-02 2022-06-02 Method, device, equipment and computer readable medium for cleaning file

Publications (2)

Publication Number Publication Date
CN114706826A true CN114706826A (en) 2022-07-05
CN114706826B CN114706826B (en) 2022-09-27

Family

ID=82176036

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210618644.1A Active CN114706826B (en) 2022-06-02 2022-06-02 Method, device, equipment and computer readable medium for cleaning file

Country Status (1)

Country Link
CN (1) CN114706826B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060136686A1 (en) * 2004-12-22 2006-06-22 International Business Machines Corporation Log shipping data replication with parallel log writing and log shipping at the primary site
US20140081933A1 (en) * 2008-09-30 2014-03-20 Google Inc. Preserving File Metadata During Atomic Save Operations
CN109086098A (en) * 2018-07-23 2018-12-25 郑州云海信息技术有限公司 A kind of journal file method for cleaning and relevant apparatus
CN109271355A (en) * 2018-08-27 2019-01-25 杭州迪普科技股份有限公司 A kind of method and device of cleaning journal file caching
US20190034652A1 (en) * 2017-07-27 2019-01-31 Citrix Systems, Inc. Scrubbing Log Files Using Scrubbing Engines
CN111008348A (en) * 2019-11-28 2020-04-14 盛业信息科技服务(深圳)有限公司 Anti-crawler method, terminal, server and computer readable storage medium
CN113010222A (en) * 2021-02-07 2021-06-22 神威超算(北京)科技有限公司 File processing method and server
CN113485965A (en) * 2021-06-22 2021-10-08 西安震有信通科技有限公司 Method, device and server for dynamically cleaning log files based on file sizes

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060136686A1 (en) * 2004-12-22 2006-06-22 International Business Machines Corporation Log shipping data replication with parallel log writing and log shipping at the primary site
US20140081933A1 (en) * 2008-09-30 2014-03-20 Google Inc. Preserving File Metadata During Atomic Save Operations
US20190034652A1 (en) * 2017-07-27 2019-01-31 Citrix Systems, Inc. Scrubbing Log Files Using Scrubbing Engines
CN109086098A (en) * 2018-07-23 2018-12-25 郑州云海信息技术有限公司 A kind of journal file method for cleaning and relevant apparatus
CN109271355A (en) * 2018-08-27 2019-01-25 杭州迪普科技股份有限公司 A kind of method and device of cleaning journal file caching
CN111008348A (en) * 2019-11-28 2020-04-14 盛业信息科技服务(深圳)有限公司 Anti-crawler method, terminal, server and computer readable storage medium
CN113010222A (en) * 2021-02-07 2021-06-22 神威超算(北京)科技有限公司 File processing method and server
CN113485965A (en) * 2021-06-22 2021-10-08 西安震有信通科技有限公司 Method, device and server for dynamically cleaning log files based on file sizes

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
R WANG: "Log-based middleware server recovery with transaction support", 《THE VLDB JOURNAL》 *
岳修志: "图书馆Apache服务器日志文件数据的分析", 《现代图书情报技术》 *
耿辉: "数据中心日志集中管理平台研究", 《中国金融电脑》 *

Also Published As

Publication number Publication date
CN114706826B (en) 2022-09-27

Similar Documents

Publication Publication Date Title
CN109947668B (en) Method and device for storing data
AU2014225329B2 (en) Sharing a content item
WO2017167050A1 (en) Configuration information generation and transmission method, and resource loading method, apparatus and system
CN110648216A (en) Wind control method and device
CN113364887B (en) File downloading method based on FTP, proxy server and system
CN114706826B (en) Method, device, equipment and computer readable medium for cleaning file
CN112948498A (en) Method and device for generating global identification of distributed system
CN113760982A (en) Data processing method and device
CN112395337B (en) Data export method and device
CN111198805B (en) Abnormality monitoring method and device
CN111177109A (en) Method and device for deleting overdue key
CN110545313A (en) message push control method and device and electronic equipment
CN112685481A (en) Data processing method and device
CN113779412A (en) Message reach method, node and system based on block chain network
CN112688982B (en) User request processing method and device
CN108683608B (en) Method and device for distributing flow
CN108984431B (en) Method and apparatus for flushing stale caches
CN113779122A (en) Method and apparatus for exporting data
CN109558433B (en) Method and device for requesting access to HDFS
CN113448602A (en) Version updating method and device
CN112862554A (en) Order data processing method and device
CN112783716B (en) Monitoring method and device
CN113746661A (en) Service processing method and device
CN113190545A (en) Method, device, equipment and computer readable medium for cleaning data
CN113282688A (en) Method, device, equipment and computer readable medium for displaying data

Legal Events

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