File cleaning method and device for distributed file system, equipment and medium

The invention discloses a file cleaning method and device for a distributed file system, equipment and a medium, relates to the technical field of distributed storage clusters, is used for cleaning out expired files, and provides a file cleaning method for solving the problems that in the prior art,...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
1. Verfasser: SUN YEKUAN
Format: Patent
Sprache:chi ; eng
Schlagworte:
Online-Zugang:Volltext bestellen
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
Beschreibung
Zusammenfassung:The invention discloses a file cleaning method and device for a distributed file system, equipment and a medium, relates to the technical field of distributed storage clusters, is used for cleaning out expired files, and provides a file cleaning method for solving the problems that in the prior art, implementation difficulty is large, consumed time is long, and deletion is not timely. Arranging the files according to the sequence of the creation time, and storing the files in a deletion index table; when the file needs to be deleted, the deletion index table can be traversed in sequence, and whether the storage time of the file exceeds the time threshold value or not is judged so as to determine whether the current file is the to-be-deleted file or not, and manual file cleaning is replaced. Due to the fact that the sorting mode of the index table is deleted, traversal must be started from the earliest file during traversal. And when the current file is not the expired file, the subsequent file is the same as