Edge server data management method, system and equipment based on file popularity

By determining the number and location of copies based on file popularity, the problem of data management technology in edge systems being difficult to ensure data security and reliability is solved, enabling efficient data storage and retrieval, and reducing storage overhead and latency.

CN118796784APending Publication Date: 2024-10-18NAT UNIV OF DEFENSE TECH
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202410960503.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-17
Publication Date
2024-10-18

AI Technical Summary

Technical Problem

Data management technology in traditional edge systems is difficult to ensure the safety and reliability of critical data transmission and exchange on edge servers, especially when storage resources are limited. Traditional three-copy storage fault-tolerance technology has problems with high storage resource overhead and low utilization.

Method used

Adopt a copy number and location determination method based on file popularity, simulate file access heat through Zipf distribution, build a file heat function to calculate the number of copies, and store file copies in a decentralized manner through serial numbers and hash mapping to ensure file access heat adaptability and multiple copies Quick response.

Benefits of technology

It improves the storage robustness and data access performance of the edge system, reduces data retrieval delay and storage overhead, and ensures the safe and reliable transmission and exchange of key data on the edge server.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118796784A_ABST
    Figure CN118796784A_ABST
Patent Text Reader

Abstract

The invention relates to an edge server data management method, system and equipment based on file popularity, which introduces a copy number and position determination method based on file popularity on the basis of the original data index mechanism and load balancing strategy of an edge system from the perspective of improving the storage robustness of the edge system. The method comprises the following steps: firstly simulating access heat of different files based on Zipf distribution, then constructing a copy number function based on file heat to calculate the number of file copies corresponding to different file heat, and finally dispersing the storage positions of the same file and the copies of the same file in a random projection mode for the files added with serial numbers. The self-adaption of the number of copies and the file access popularity and the quick and efficient response of multiple copies of files are realized, and the security and reliability of key data transmission and exchange of the edge server are ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of edge data processing, and relates to an edge server data management method, system and device based on file heat. Background Art

[0002] There are multiple edge nodes in the edge system, and each edge node is deployed with information and resources related to the edge server for system sinking management. With the rapid development of IoT technology and intelligent technology, and the increasing popularity of its applications, edge systems are playing an increasingly important role. Data management for edge systems is also constantly being innovated in the current technological development process, and different technical requirements are emerging in an endless stream. In the traditional edge system data management technology, some different distributed optimization management technologies have emerged. However, for data storage and retrieval at the edge server level, how to ensure the security and reliability of key data transmission and exchange of edge servers is still a technical problem to be solved. Summary of the invention

[0003] In response to the problems existing in the above-mentioned traditional methods, the present invention proposes an edge server data management method based on file popularity, an edge server data management system based on file popularity, and a computer device, which can ensure the security and reliability of edge server key data transmission and exchange.

[0004] In order to achieve the above objectives, the embodiments of the present invention adopt the following technical solutions:

[0005] On the one hand, a method for managing edge server data based on file popularity is provided, comprising the steps of:

[0006] Zipf distribution is used to calculate the access popularity of different files transmitted in the edge system to determine the access popularity of different files;

[0007] For each file, the corresponding number of copies of the file is calculated according to the access popularity of the file using the copy number function based on the file popularity;

[0008] After adding different serial numbers to the headers of each file and the corresponding copies, the files and the corresponding serial numbers are combined into new files;

[0009] Re-hash mapping is performed on each new file to determine a new projection point of each new file in the virtual plane projected by the edge system; the new projection point of the file is used to determine the edge server where the corresponding new file is stored;

[0010] The corresponding new files are dispersedly stored in different edge servers according to the new projection points of the files.

[0011] On the other hand, an edge server data management system based on file popularity is also provided, including:

[0012] A heat determination module is used to calculate the access heat of different files transmitted in the edge system using Zipf distribution to determine the access heat of different files;

[0013] A replica calculation module is used to calculate the corresponding number of replicas of each file according to the access popularity of the file using a replica number function based on the file popularity;

[0014] A file distinguishing module, used to add different serial numbers to the headers of each file and the corresponding copy, and then combine the files and the corresponding serial numbers into new files;

[0015] A remapping module is used to re-map the hash of each new file to determine a new projection point of each new file in the virtual plane projected by the edge system; the new projection point of the file is used to determine the edge server where the corresponding new file is stored;

[0016] The file storage module is used to disperse and store each corresponding new file in different edge servers according to the new projection point of each file.

[0017] On the other hand, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor implements the processing steps of the above-mentioned edge server data management method based on file heat when executing the computer program.

[0018] One of the above technical solutions has the following advantages and beneficial effects:

[0019] The above-mentioned edge server data management method, system and device based on file heat, starting from the perspective of improving the storage robustness of the edge system, introduces a method for determining the number and location of copies based on file heat on the basis of the original data indexing mechanism and load balancing strategy of the edge system. First, the access heat of different files is simulated based on the Zipf distribution, and then a copy number function based on file heat is constructed to calculate the corresponding number of file copies under different file heats. Finally, a random projection method is used for files with added serial numbers to disperse the storage locations of the same file and its copies, thereby realizing the adaptation of the number of copies to the file access heat and the rapid and efficient response of multiple copy files, ensuring the safe and reliable transmission and exchange of key data of the edge server. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the conventional technology, the drawings required for use in the embodiments or the conventional technology descriptions are 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 creative work.

[0021] Figure 1 A schematic diagram of a flow chart of an edge server data management method based on file popularity in one embodiment;

[0022] Figure 2 A schematic diagram of setting the locations of copies of multiple Voronoi regions in one embodiment;

[0023] Figure 3 A schematic diagram showing comparison of average time delays under different replica setting methods in one embodiment;

[0024] Figure 4 A schematic diagram showing a comparison of average synchronization times under different replica setting methods in one embodiment;

[0025] Figure 5 The figure is a schematic diagram of the module structure of an edge server data management system based on file popularity in one embodiment. DETAILED DESCRIPTION

[0026] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0027] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used in the specification of this application are only for the purpose of describing specific embodiments and are not intended to limit this application.

[0028] It should be noted that the reference to "embodiment" in this document means that the specific features, structures or characteristics described in conjunction with the embodiment may be included in at least one embodiment of the present invention. The presentation of the phrase at various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments.

[0029] Those skilled in the art will appreciate that the embodiments described herein may be combined with other embodiments. The term "and / or" used in the present specification and the appended claims refers to any combination and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0030] The following will describe the implementation of the present invention in detail with reference to the accompanying drawings in the embodiment diagram of the present invention.

[0031] In one embodiment, Figure 1 As shown, a method for managing edge server data based on file popularity is provided, and the method may include the following processing steps S12 to S20:

[0032] S12, using Zipf distribution to calculate the access heat of different files transmitted in the edge system, and determining the access heat of different files;

[0033] S14, for each file, calculating the corresponding number of copies of the file according to the access popularity of the file using a copy number function based on the file popularity;

[0034] S16, after adding different serial numbers to the headers of each file and the corresponding copy, the files and the corresponding serial numbers are combined into new files;

[0035] S18, re-hash mapping each new file to determine a new file projection point of each new file in the virtual plane projected by the edge system; the new file projection point is used to determine the edge server where the corresponding new file is stored;

[0036] S20: Distribute and store the corresponding new files in different edge servers according to the new projection points of the files.

[0037] It can be understood that the edge server needs to ensure the security and reliability of key data transmission and exchange while meeting the requirements of efficient data storage and retrieval. Assume that the granularity of the transmitted data is at the file level. In order to improve the robustness of the edge system, the corresponding files need to be backed up and fault-tolerant in order to achieve high reliability of storage. However, the storage overhead of backing up all files in the edge system is huge. Therefore, this embodiment adaptively determines the corresponding number of copies of different files based on their heat values, while reducing the storage space occupied by the copies and ensuring the probability of data requests being responded to quickly. In addition, this embodiment also reasonably plans the location of the copies, and uses multiple geographically dispersed file copies to jointly support data requests to further reduce the retrieval delay of data requests.

[0038] In edge systems, introducing copies for files for backup can ensure data security and improve the robustness of storage systems, but this will inevitably bring additional storage overhead. At present, the traditional three-copy storage fault-tolerant technology (DTI_3R) cannot be directly applied to edge nodes with limited computing and storage resources in edge systems due to problems such as large storage resource overhead and low storage utilization. Therefore, in order to improve the robustness of the edge system and save the storage resources of edge nodes as much as possible, the number of copies of different files can be determined based on the file heat to achieve accurate and efficient backup. This embodiment uses the Zipf distribution function to simulate the heat of the files to be stored.

[0039] File heat simulation based on Zipf distribution function: In real scenarios, each edge node faces a large number of file distribution and transmission, but not all files have high access requirements. Therefore, the heat values ​​of different files should be clarified to better formulate file backup strategies. Zipf distribution, as a widely used probability distribution, can well reflect the relationship between file access ranking and file access frequency. Therefore, this paper uses Zipf distribution function to simulate the heat of different files.

[0040] Zipf distribution is a statistical distribution that describes the relationship between the frequency of occurrence of data and its rank in a set of data. This distribution is often used to describe the frequency distribution of words in natural language, and its probability mass function is defined as:

[0041]

[0042] For the file heat scenario, the meaning of each parameter is explained as follows: x represents the access ranking of the file, β represents the access concentration of the file, n represents the total number of files, and R(x) represents the access heat of the file with access ranking x. Among them, the file access concentration β determines the shape of the file heat distribution. The larger the value of the file access concentration β, the more concentrated the file heat distribution is, that is, the higher the access ranking of the file, the greater the corresponding file heat.

[0043] An important feature of the file heat distribution based on Zipf's law (also known as Zipf's law) is its long-tail characteristic, that is, the file heat values ​​of files with high file access rankings (such as instructions from superiors, etc.) are extremely high, and the file heat values ​​of files with low file access rankings (such as real-time data generated by each edge node) are almost 0. This situation is also consistent with the heat distribution of circulating files in edge systems in real scenarios, so the file heat is generated using Zipf distribution to adapt to the current problem scenario.

[0044] Construction of the copy number function based on file heat: By adopting the form of Zipf distribution, the heat of the file can be determined. The corresponding copy number of the file is further determined according to the file heat. This embodiment designs a copy number function based on file heat:

[0045] Num(x)=[μR(x) κ ],x=1,2,...,n

[0046] Wherein, [*] represents the rounding operator, μ is the cardinality of the number of replicas, and κ is the file heat index. The values ​​of these two parameters can be determined based on the file access concentration β and the total number of files n.

[0047] This function describes the relationship between the number of file copies and file access heat. The file heat index κ is assigned to the access heat R(x) of the file with access ranking x to increase the impact of file access heat on the number of file copies, and the copy number base μ is set to ensure that there are a certain number of copies of the file. Function calculation shows that the number of copy files is closely related to the file access heat value. The higher the access heat, the more file copies. The system's storage space can ensure the reliability of the file and serve more data requests. The remaining files with lower heat values ​​do not need to be backed up.

[0048] File replica location determination: In edge systems, adaptively setting a corresponding number of file replicas for files based on file access popularity is an important means to improve the robustness of storage systems. In order to further improve the data access performance of storage systems and meet the requirements of reducing data retrieval latency, it is necessary to consider the reasonable planning of the storage location of each file and its replicas. File replica location determination includes two parts: file replica differentiation based on serial numbers and replica support for multiple Voronoi regions.

[0049] Distinguishing file copies based on serial numbers: In order to achieve the requirement that data requests for different edge nodes are responded to with the most recent copies, it is first necessary to distinguish between files and their copies. This embodiment can be solved by adding serial numbers to files. Specifically, a column of serial numbers is added to the header of each file and its copy as an identifier, and different values ​​are assigned to distinguish the copies. Then the serial number and the original file (that is, the file or its copy corresponding to the serial number) are combined to form a new file, and the new file is re-hashed (the hash mapping process can refer to the inherent data projection based on the MD5 code of the edge system itself. The MD5 (Message Digest Algorithm 5) code is a widely used one-way hash function), so as to obtain the projection position of the file in the virtual plane (that is, the new projection point of the file), and determine the edge server storing the file according to the Voronoi area where the new projection point of the file is located. By setting serial numbers for files and their copies, good support is provided for the implementation and flexible use of the file copy setting method. Among them, the data items requested by each edge server and edge node in the edge system have been projected on the virtual plane, and the generation of Delaunay triangulation and Voronoi diagram has been completed.

[0050] Replica support for multiple Voronoi regions: In order to use replica files to respond to data requests in nearby Voronoi regions, it is necessary to project files and their replicas to multiple dispersed Voronoi regions as much as possible to provide replica support. For example, when a new projection point of any file determines a candidate edge server for storing the new file corresponding to the new projection point of the file, since the candidate edge server does not yet have a replica of the new file corresponding to the new projection point of the file, the new file can be stored on the candidate edge server, otherwise it can be stored on another edge server that does not yet store a replica of the new file.

[0051] like Figure 2 One example is shown, where to They represent 15 server coordinate points (i.e., the coordinate points of 15 edge servers on the virtual plane), Indicates the distance from the edge server coordinates on the virtual plane The Voronoi region is composed of the set of the most recent data points, and the rest of the regions are understood in the same way. A file (such as file 1) has two copies (such as file 1 and file 3). When the copies and the original files are marked with serial numbers and hashed again, if the projection points of multiple identical files are located in the same Voronoi region, the random allocation method should be executed again to ensure that different copies of the file are located in different Voronoi regions that are dispersed and non-adjacent. In this way, when any server in the edge system issues a file request, it can select the nearest server that stores the file to access it, thereby further reducing the retrieval latency.

[0052] The above-mentioned edge server data management method based on file heat, starting from the perspective of improving the storage robustness of the edge system, introduces a method for determining the number and location of copies based on file heat on the basis of the original data indexing mechanism and load balancing strategy of the edge system. First, the access heat of different files is simulated based on the Zipf distribution, and then a copy number function based on file heat is constructed to calculate the corresponding number of file copies under different file heats. Finally, random projection is used for files with added serial numbers to disperse the storage locations of the same file and its copies, thereby realizing the adaptation of the number of copies to the file access heat and the fast and efficient response of multi-copy files, ensuring the safe and reliable transmission and exchange of key data of the edge server.

[0053] In one embodiment, the above step S20 may further include the following sub-steps:

[0054] When a candidate edge server for storing a new file corresponding to the new projection point of the file is determined according to any new projection point of the file, determining whether a copy of the new file corresponding to the new projection point of the file is stored on the candidate edge server and a neighbor server of the candidate edge server;

[0055] If it exists, a non-neighbor server of the candidate edge server is randomly selected as the storage location of the new file corresponding to the new projection point of the file.

[0056] It can be understood that when files and their copies with serial number identifiers are projected onto a virtual plane, multiple files may be mapped to the Voronoi region corresponding to the same edge server, resulting in the file and its copies not being well distributed and stored in different edge servers. To avoid this situation, when projecting the same file and its corresponding copy, each time a storage server for a file is determined according to the data indexing mechanism of the edge system, it should be determined whether there is a copy of the file on the server and its neighbor servers. If so, a non-neighbor server of the server is randomly selected as the storage location of the file. In this way, the storage location of the same file and its copies can be as dispersed as possible on each edge server in the edge system. On the one hand, it can prevent the failure of a single server from causing the failure of multiple file copies. On the other hand, when facing any file access request in the entire edge server cluster, a shorter retrieval delay and efficient access performance can be achieved.

[0057] In one embodiment, in order to more intuitively illustrate the performance and effect of the edge server data management method based on file heat, one of the experimental examples is given here. Those skilled in the art can understand that the experimental example is only illustrative and is not the only limitation to the implementation of the edge server data management method based on file heat.

[0058] like Figure 3The figure shows the average data location delay corresponding to the increase of network scale under different replica setting methods. As can be seen from the figure, when no file replica is added, the average time delay increases exponentially with the increase of the number of edge servers. When the number of edge servers is 1,000, the average delay is as high as 40ms. It can be seen that when the network scale is not large and the number of edge servers is not large, the data request location delay of the method without adding replicas (DTI_noR, as a blank control group) is not significant. Once the network scale increases, the corresponding average delay also increases greatly, showing an exponential growth trend. The use of three replica technology can significantly reduce the data location delay. As can be seen from the figure, the average time delay of the three replica technology (DTI_3R, the mainstream and widely used replica fault-tolerant technology) is significantly lower than that of DTI_noR, and only increases in a small range with the increase of the number of edge servers. In most cases, it is less than 4ms. For the file heat-based replica determination method (DTI_heatR) proposed in the present invention, its performance is basically similar to the three-replica technology, but its performance is higher than DTI_3R when the number of edge servers is high, and the corresponding average time delay is only 75% of DTI_3R. This is because most of the files transmitted in the edge system are timely information, and only a small number of files belong to the category of hot files, which need to be frequently accessed and transmitted. The replica setting method based on file heat can dynamically determine the number of replicas and plan the location of replicas while considering the different file access heats. It not only overcomes the problems of large storage space overhead and low data utilization of the three-replica fault-tolerant technology, but also creates more than 3 replicas for files with high access requirements to better avoid access hotspots of hot files, thereby achieving shorter delays for hot file requests that account for the vast majority of access requests in the case of a large network scale, showing a stronger performance advantage.

[0059] Figure 4The figure shows the average synchronization time corresponding to different replica setting methods. It can be seen that the average synchronization time of the two replica setting methods is less than 1ms when the number of edge servers is 100, but the average synchronization time of DTI_3R increases exponentially with the increase of the number of edge servers, while the growth trend of DTI_heatR is relatively gentle. Finally, when the number of edge servers is 1000, the average synchronization time of DTI_3R is as high as about 25ms, and DTI_heatR is only 6ms, and the difference between the two methods is more than three times. The reason is that the three-copy technology needs to synchronize and update the servers of three edge nodes at a time when facing the addition and deletion of files in the edge system. In the process of increasing the network scale, the latency corresponding to accessing three scattered edge servers at the same time is high. When facing the addition and deletion of files, DTI_heatR first determines the access popularity of the file, and then determines whether the file needs a copy and the location of the copy based on this. In most cases, there is no need to back up the file or generate more copies for backup. Therefore, the corresponding average synchronization time increases slowly with the increase of the number of edge servers. Among them, the DTI_heatR method can also improve the storage robustness of the edge system through a backup method based on file access heat. When a file with high access heat, that is, key core data in the system, is lost, it can be recovered and restored through its multiple copies.

[0060] The experimental analysis by observing the experimental results proves the good performance and excellent performance of the proposed method in terms of high system robustness of the edge system.

[0061] It should be understood that although Figure 1 The steps in the method are shown in sequence as indicated by the arrows, but the steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of the steps, and the steps can be executed in other orders. Figure 1 At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequentially, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.

[0062] In one embodiment, Figure 5As shown, an edge server data management system 100 based on file heat is also provided, which may include a heat determination module 11, a replica calculation module 13, a file differentiation module 15, a remapping module 17 and a file storage module 19. Among them, the heat determination module 11 is used to use Zipf distribution to calculate the access heat of different files transmitted in the edge system to determine the access heat of different files. The replica calculation module 13 is used to calculate the corresponding number of copies of each file according to the access heat of the file using a replica number function based on the file heat. The file differentiation module 15 is used to add different serial numbers to the headers of each file and the corresponding replica, and then combine each file and the corresponding serial number into each new file. The remapping module 17 is used to re-hash each new file and determine the new projection point of each new file in the virtual plane projected by the edge system; the new projection point of the file is used to determine the edge server where the corresponding new file is stored. The file storage module 19 is used to store each corresponding new file in a dispersed manner in different edge servers according to the new projection point of each file.

[0063] The above-mentioned edge server data management system 100 based on file heat, starting from the perspective of improving the storage robustness of the edge system, introduces a method for determining the number and location of copies based on file heat on the basis of the original data indexing mechanism and load balancing strategy of the edge system. First, the access heat of different files is simulated based on the Zipf distribution, and then a copy number function based on file heat is constructed to calculate the corresponding number of file copies under different file heats. Finally, a random projection method is used for files with added serial numbers to disperse the storage locations of the same file and its copies, thereby realizing the adaptation of the number of copies to the file access heat and the rapid and efficient response of multiple copy files, ensuring the safe and reliable transmission and exchange of key data of the edge server.

[0064] In one embodiment, the file storage module 19 may further include a copy judgment submodule and a random storage submodule. The copy judgment submodule is used to determine whether a copy of the new file corresponding to the new projection point of the file is stored on the candidate edge server and the neighbor server of the candidate edge server when determining a candidate edge server for storing the new file corresponding to the new projection point of the file according to any new projection point of the file. The random storage submodule is used to randomly select a non-neighbor server of the candidate edge server as the storage location of the new file corresponding to the new projection point of the file when determining that a copy of the new file corresponding to the new projection point of the file is stored.

[0065] Regarding the specific limitations of the edge server data management system 100 based on file heat, please refer to the corresponding limitations of the edge server data management method based on file heat above, which will not be repeated here. Each module in the above-mentioned edge server data management system 100 based on file heat can be implemented in whole or in part through software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of a device with data processing functions in the form of hardware, or can be stored in the memory of the aforementioned device in the form of software, so that the processor can call and execute the operations corresponding to the above modules. The aforementioned device can be but not limited to various types of edge servers already available in the art.

[0066] In one embodiment, a computer device is also provided, including a memory and a processor, the memory storing a computer program, and the processor implementing the following processing steps when executing the computer program: using Zipf distribution to calculate the access heat of different files transmitted in the edge system to determine the access heat of different files; for each file, using a copy number function based on file heat to calculate the corresponding number of copies of the file according to the access heat of the file; after adding different serial numbers to the headers of each file and the corresponding copies, respectively, each file and the corresponding serial number are combined into each new file; each new file is re-hashed to determine the new projection point of each new file in the virtual plane projected by the edge system; the new projection point of the file is used to determine the edge server where the corresponding new file is stored; and each corresponding new file is dispersedly stored in different edge servers according to the new projection point of each file.

[0067] It can be understood that the above-mentioned computer device, in addition to the memory and processor mentioned above, may also include other software and hardware components not listed in this specification. The specific details can be determined according to the model of the specific training device in different application scenarios, and this specification will not list them one by one in detail.

[0068] In one embodiment, when the processor executes the computer program, the processor may also implement the steps or sub-steps added in each embodiment of the edge server data management method based on file heat.

[0069] In one embodiment, a computer-readable storage medium is also provided, on which a computer program is stored. When the computer program is executed by a processor, the following processing steps are implemented: using Zipf distribution to calculate the access heat of different files transmitted in the edge system, and determining the access heat of different files; for each file, using a copy number function based on file heat to calculate the corresponding number of copies of the file according to the access heat of the file; after adding different serial numbers to the headers of each file and the corresponding copies, respectively, each file and the corresponding serial number are combined into new files; each new file is re-hashed to determine the new projection point of each new file in the virtual plane projected by the edge system; the new projection point of the file is used to determine the edge server where the corresponding new file is stored; and each corresponding new file is dispersedly stored in different edge servers according to the new projection point of each file.

[0070] In one embodiment, when the computer program is executed by a processor, the added steps or sub-steps in each embodiment of the edge server data management method based on file heat can also be implemented.

[0071] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in the present application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), erasable programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus dynamic random access memory (RambusDRAM, referred to as RDRAM) and interface dynamic random access memory (DRDRAM).

[0072] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0073] The above embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of protection of the invention. It should be pointed out that, for a person of ordinary skill in the art, several modifications and improvements can be made without departing from the concept of the present application, and all of them belong to the scope of protection of the present application. Therefore, the scope of protection of the present application shall be subject to the attached claims.

Claims

1. A method for managing edge server data based on file popularity, characterized in that: Includes steps: Zipf distribution is used to calculate the access popularity of different files transmitted in the edge system to determine the access popularity of different files; For each file, the corresponding number of copies of the file is calculated according to the access popularity of the file using the copy number function based on the file popularity; After adding different serial numbers to the headers of each file and the corresponding copies, the files and the corresponding serial numbers are combined into new files; Re-hash mapping is performed on each new file to determine a new file projection point of each new file in the virtual plane projected by the edge system; The new projection point of the file is used to determine the edge server where the corresponding new file is stored; The corresponding new files are dispersedly stored in different edge servers according to the new projection points of the files.

2. The edge server data management method based on file popularity according to claim 1, characterized in that: The step of distributing and storing the corresponding new files in different edge servers according to the new projection points of the files comprises: When a candidate edge server for storing a new file corresponding to the new projection point of the file is determined according to any of the new projection points of the file, determining whether a copy of the new file corresponding to the new projection point of the file is stored on the candidate edge server and a neighbor server of the candidate edge server; If so, a non-neighbor server of the candidate edge server is randomly selected as the storage location of the new file corresponding to the new projection point of the file.

3. An edge server data management system based on file popularity, characterized in that: include: A heat determination module is used to calculate the access heat of different files transmitted in the edge system using Zipf distribution to determine the access heat of different files; A replica calculation module is used to calculate the corresponding number of replicas of each file according to the access popularity of the file using a replica number function based on the file popularity; A file distinguishing module, used to add different serial numbers to the headers of each file and the corresponding copy, and then combine the files and the corresponding serial numbers into new files; A remapping module, used to re-hash each new file and determine a new projection point of each new file in a virtual plane projected by the edge system; The new projection point of the file is used to determine the edge server where the corresponding new file is stored; The file storage module is used to disperse and store each corresponding new file in different edge servers according to each new projection point of the file.

4. The edge server data management system based on file popularity according to claim 3, characterized in that: The file storage module includes: a copy judgment submodule, for determining, when a candidate edge server for storing a new file corresponding to the new projection point of the file is determined according to any of the new projection points of the file, whether a copy of the new file corresponding to the new projection point of the file is stored on the candidate edge server and a neighbor server of the candidate edge server; The random storage submodule is used to randomly select a non-neighbor server of the candidate edge server as the storage location of the new file corresponding to the new projection point of the file when determining that a copy of the new file corresponding to the new projection point of the file is stored.

5. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the processing steps of the edge server data management method based on file heat as described in claim 1 or 2 are implemented.

Citation Information

Patent Citations

  • Dynamic replica management method based on file heat

    CN103150347A

  • Dynamic HDFS copy number calculation method based on file accessing popularity

    CN108416054A

  • Cloud edge collaborative caching method and system based on perceptible redundancy

    CN114500529A

  • Efficient storage system and method based on hierarchical storage

    CN116204138A

  • Method, system, and node for node interconnection on content delivery network

    US20130191443A1