CN112925946B - Service data storage method and device and electronic equipment - Google Patents

Service data storage method and device and electronic equipment Download PDF

Info

Publication number
CN112925946B
CN112925946B CN202110219556.XA CN202110219556A CN112925946B CN 112925946 B CN112925946 B CN 112925946B CN 202110219556 A CN202110219556 A CN 202110219556A CN 112925946 B CN112925946 B CN 112925946B
Authority
CN
China
Prior art keywords
service
target
data
service data
cdn
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.)
Active
Application number
CN202110219556.XA
Other languages
Chinese (zh)
Other versions
CN112925946A (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.)
China Tower Co Ltd
Original Assignee
China Tower 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 China Tower Co Ltd filed Critical China Tower Co Ltd
Priority to CN202110219556.XA priority Critical patent/CN112925946B/en
Publication of CN112925946A publication Critical patent/CN112925946A/en
Application granted granted Critical
Publication of CN112925946B publication Critical patent/CN112925946B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/70Information retrieval; Database structures therefor; File system structures therefor of video data
    • G06F16/71Indexing; Data structures therefor; Storage structures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/544Buffers; Shared memory; Pipes

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Information Transfer Between Computers (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the invention provides a service data storage method, a device and electronic equipment, wherein the method comprises the following steps: acquiring target service data sent by a scheduling node, wherein the target service data is data corresponding to target service of a terminal equipment request first service manufacturer, and the target service data is service data with the request times larger than preset times in preset time; judging whether the target service data is stored data corresponding to the at least one CDN service area; if the target service data is the stored data, not storing the target service data; if the target service data is not the stored data, storing the target service data in a storage space corresponding to a target CDN service area; the target CDN service region at least includes a CDN service region corresponding to the first service vendor. The embodiment of the invention can improve the storage utilization rate of the edge node to the service data.

Description

Service data storage method and device and electronic equipment
Technical Field
The present invention relates to the field of internet technologies, and in particular, to a method and an apparatus for storing service data, and an electronic device.
Background
Peer-to-peer (P2P) technology and content delivery network (Content Delivery Network, CDN) technology are combined together, namely P2P CDN technology. The P2P CDN technology adopts a CDN+P2P mixed architecture, breaks the limitation of the traditional P2P technology, reduces the number of CDN servers and the outlet bandwidth of an Internet data center (Internet Data Center, IDC), relieves the pressure of CDN edge servers, and provides transmission service with higher cost performance.
At present, the P2P CDN technology is applied to mainstream Internet CDN manufacturers, but usually, each manufacturer develops and deploys the service independently, each node deploys the application of the same manufacturer, the service resources such as video films and the like are stored independently in a single node, so that the service resources are repeatedly deployed on edge nodes, and resource waste is caused.
Disclosure of Invention
The embodiment of the invention provides a service data storage method, a service data storage device and electronic equipment, which are used for solving the problem of low storage utilization rate of resources on edge nodes.
In a first aspect, an embodiment of the present invention provides a service data storage method, applied to an edge node, where the edge node includes at least one CDN service region of a content delivery network, and one CDN service region is a service data storage area of a service vendor on the edge node; the method comprises the following steps:
Acquiring target service data sent by a scheduling node, wherein the target service data is data corresponding to target service of a terminal equipment request first service manufacturer, and the target service data is service data with the request times larger than preset times in preset time;
judging whether the target service data is stored data corresponding to the at least one CDN service area;
if the target service data is the stored data, not storing the target service data;
if the target service data is not the stored data, storing the target service data in a storage space corresponding to a target CDN service area;
the target CDN service region at least includes a CDN service region corresponding to the first service vendor.
Optionally, if the target service data is not the stored data, storing the target service data in a storage space corresponding to a target CDN service region, including:
if the target service data is not the stored data, judging a target service manufacturer corresponding to the target service data;
if the target service manufacturer comprises a first service manufacturer and at least one second service manufacturer, storing the target service data in a shared storage space corresponding to a target CDN service area;
The target CDN service region includes a first CDN service region corresponding to the first service vendor and a second CDN service region corresponding to the at least one second service vendor, where any one of the target CDN service regions can call service data stored in the shared storage space.
Optionally, if the target service manufacturer includes a first service manufacturer and at least one second service manufacturer, after storing the target service data in the shared storage space corresponding to the target CDN service region, the method further includes:
under the condition that the terminal equipment requests the target service data, acquiring a target service manufacturer requested by the terminal equipment;
if the target service manufacturer is the first service manufacturer, calling the target service data in the shared storage space based on the first CDN service area, and transmitting the target service data to the terminal equipment;
and if the target service manufacturer is a second sub-manufacturer in the at least one second service manufacturer, calling the target service data in the shared storage space based on a CDN service area corresponding to the second sub-manufacturer, and transmitting the target service data to the terminal equipment.
Optionally, if the target service data is not the stored data, storing the target service data in a storage space corresponding to a target CDN service region, including:
if the target service data is not the stored data in the at least one CDN service storage area, acquiring the current residual storage capacity of the storage space corresponding to the target CDN service area;
if the current residual storage capacity is larger than the preset storage capacity, storing the target service data in a storage space corresponding to a target CDN service area;
if the current residual storage capacity is smaller than a preset storage capacity, acquiring the use frequency of first service data stored in a storage space corresponding to the target CDN service area, wherein the first service data is any one of the service data stored in the storage space;
and if the using frequency of the first service data is smaller than the preset frequency, removing the first service data, and storing the target service data in a storage space corresponding to a target CDN service area under the condition that the residual storage capacity after the first service data is removed is larger than the preset storage capacity.
In a second aspect, an embodiment of the present invention further provides a service data storage device, where the device includes at least one CDN service region of a content delivery network, and one CDN service region is a service data storage area of a service vendor on the device; the apparatus further comprises:
The first acquisition module is used for acquiring target service data sent by the scheduling node, wherein the target service data is data corresponding to target service of a terminal equipment request first service manufacturer, and the target service data is service data with the request times being greater than the preset times in the preset time;
the judging module is used for judging whether the target service data is stored data corresponding to the at least one CDN service area;
the processing module is used for not storing the target service data if the target service data are the stored data;
the processing module is further configured to: if the target service data is not the stored data, storing the target service data in a storage space corresponding to a target CDN service area;
the target CDN service region at least includes a CDN service region corresponding to the first service vendor.
Optionally, the processing module is further configured to:
if the target service data is not the stored data, judging a target service manufacturer corresponding to the target service data;
if the target service manufacturer comprises a first service manufacturer and at least one second service manufacturer, storing the target service data in a shared storage space corresponding to a target CDN service area;
The target CDN service region includes a first CDN service region corresponding to the first service vendor and a second CDN service region corresponding to the at least one second service vendor, where any one of the target CDN service regions can call service data stored in the shared storage space.
Optionally, the apparatus further comprises:
the second acquisition module is used for acquiring a target service manufacturer requested by the terminal equipment under the condition that the terminal equipment requests the target service data;
the transmission module is used for calling the target service data in the shared storage space based on the first CDN service area and transmitting the target service data to the terminal equipment if the target service manufacturer is the first service manufacturer;
the transmission module is further configured to: and if the target service manufacturer is a second sub-manufacturer in the at least one second service manufacturer, calling the target service data in the shared storage space based on a CDN service area corresponding to the second sub-manufacturer, and transmitting the target service data to the terminal equipment.
Optionally, the processing module is further configured to:
If the target service data is not the stored data in the at least one CDN service storage area, acquiring the current residual storage capacity of the storage space corresponding to the target CDN service area;
if the current residual storage capacity is larger than the preset storage capacity, storing the target service data in a storage space corresponding to a target CDN service area;
if the current residual storage capacity is smaller than a preset storage capacity, acquiring the use frequency of first service data stored in a storage space corresponding to the target CDN service area, wherein the first service data is any one of the service data stored in the storage space;
and if the using frequency of the first service data is smaller than the preset frequency, removing the first service data, and storing the target service data in a storage space corresponding to a target CDN service area under the condition that the residual storage capacity after the first service data is removed is larger than the preset storage capacity.
The embodiment of the invention also provides an electronic device, which comprises a processor, a memory and a computer program stored on the memory and capable of running on the processor, wherein the computer program realizes the steps of the business data storage method in any one of the first aspects when being executed by the processor.
Embodiments of the present invention also provide a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the traffic data storage method of any of the first aspects described above.
In the embodiment of the invention, after the edge node acquires the target service data, the edge node determines whether the target service data is stored data corresponding to at least one CDN service area in the edge node, if the target service data is the stored data, the target service data is not stored, and if the target service data is not the stored data, the target service data is stored. Therefore, the edge node can be prevented from repeatedly storing the same service data, the storage space of the edge node is reasonably utilized, and the utilization rate of the storage space of the edge node is improved, so that the edge node can store more service data.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are needed in the description of the embodiments of the present invention will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort to a person of ordinary skill in the art.
Fig. 1 is a flowchart of a service data storage method provided in an embodiment of the present invention;
fig. 2 is a schematic diagram of a storage manner of a service data storage method according to an embodiment of the present invention;
FIG. 3 is a flowchart of another method for storing service data according to an embodiment of the present invention;
FIG. 4 is a block diagram of a service data storage device according to an embodiment of the present invention;
fig. 5 is a block diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed or inherent to such process, method, article, or apparatus. Furthermore, the use of "and/or" in the specification and claims means at least one of the connected objects, e.g., a and/or B, meaning that three cases exist including a alone, B alone, and a and B.
In embodiments of the invention, words such as "exemplary" or "such as" are used to mean serving as an example, instance, or illustration. Any embodiment or design described herein as "exemplary" or "e.g." in an embodiment of the present invention is not to be taken as preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "such as" is intended to present related concepts in a concrete fashion.
In order to better understand the technical solution of the present invention, the following explains related concepts that may be related in the embodiments of the present application.
CDN: the CDN is a distributed media service technology platform based on a Client/Server (C/S) structure, and aims to distribute content which a user needs to access to nodes closest to the user and with the best service quality through an intelligent strategy by adding a new layer of network architecture into the existing Internet (Internet), and simultaneously, automatically dispatch the user to the corresponding nodes through background service to provide the best service for the user. The CDN effectively relieves the congestion condition of the Internet network and improves the response speed of a user for accessing the website.
Peer-to-peer (P2P) technology, also known as point-to-point technology, is an internet system that relies on user groups (peers) to exchange information without a central server, and has the effect of reducing nodes in the past network transmissions to reduce the risk of data loss. Unlike the central network system with central server, each user end of the peer-to-peer network is a node and has the function of server, any node can not directly find other nodes, and the user group must be relied on to exchange information.
The P2P CDN technology is combined with the CDN technology, namely the P2P CDN technology. The P2P CDN adopts a CDN+P2P hybrid architecture, so that the number of CDN servers and IDC outlet bandwidth can be reduced, the pressure of CDN edge servers is relieved, and a transmission service with higher cost performance is provided.
The service data storage method provided by the embodiment of the invention is applicable to a mode scene of sharing the P2P CDN, the sharing of the P2P CDN is to open resource sharing to each Internet manufacturer for use in a mode similar to a mode of providing infrastructure as a service (Infrastructure as a Service, iaaS) layer service by cloud computing, a plurality of CDN services are deployed in one edge node, and different from the traditional P2P CDN, the data resources of each CDN service are also shared and stored in the same edge node.
The invention provides a service data storage method.
Referring to fig. 1, fig. 1 is a flowchart of a service data storage method according to an embodiment of the present invention, where the method is applied to an edge node, as shown in fig. 1, and the method includes the following steps:
step 101, obtaining target service data sent by a scheduling node, wherein the target service data is data corresponding to target service of a terminal equipment request first service manufacturer, and the target service data is service data with the request times larger than the preset times in the preset time.
It should be noted that, the edge node includes at least one CDN service region, and one CDN service region is a service data storage area of a service vendor on the edge node. As shown in fig. 2, the edge node 1 includes three CDN service regions, which are a first CDN service region, a second CDN service region, and a third CDN service region, respectively; the edge node 2 also includes three CDN service regions, namely a fourth CDN service region, a fifth CDN service region, and a sixth CDN service region.
It can be appreciated that the edge node can implement data transmission with the scheduling node, one scheduling node corresponds to one service manufacturer, and one scheduling node can implement data transmission with a plurality of edge nodes in the preset area at the same time. As shown in fig. 2, the scheduling node of the first service manufacturer can implement data transmission with the edge node 1 and the edge node 2, and the scheduling node of the second service manufacturer and the scheduling node of the third service manufacturer can also implement data transmission with the edge node 1 and the edge node 2.
In the embodiment of the invention, the edge node can acquire the target service data sent by the scheduling node, wherein the target service data is the data corresponding to the target service of the terminal equipment request first service manufacturer. For example, the service manufacturer is a video playing platform, the service data is video data that can be played on the video playing platform, and if the terminal device is provided with the video application program 1, the video application program 2 and the video application program 3, and when the terminal device is running the video application program 1, if the terminal device receives a user to click a play key of the video a in the video application program 1, the terminal device will also send a request to the video playing platform 1 corresponding to the video application program 1, that is, the terminal device requests target service data of the first service manufacturer, that is, the target service data, that is, the video data corresponding to the video a, and in this case, the video playing platform 1 may send the video data corresponding to the video a, that is, the target service data, to a scheduling node that is, and then the scheduling node may determine whether the number of requests of the video data corresponding to the video a in a preset time is greater than the preset number of times, and if the number of requests is greater than the preset times, the scheduling node sends the target service data to an edge node that is in communication connection with the terminal device.
Step 102, judging whether the target service data is stored data corresponding to the at least one CDN service region.
In this embodiment of the present application, the edge node includes at least one CDN service region, and one CDN service region is a service data storage area of a service vendor on the edge node. After receiving the target service data sent by the dispatching node, the edge node judges whether the target service data is stored data, namely whether any CDN service area in the edge node already stores the target service data.
Step 103, if the target service data is the stored data, not storing the target service data.
In this embodiment of the present invention, when an edge node obtains target service data, it is determined whether the target service data is stored data, if the target service data is stored data corresponding to any CDN service area in the edge node, it is indicated that the edge node has already stored target service data, that is, the edge node has already obtained target service data before and stored the target service data, then the edge node obtains the target service data again, and then it is not necessary to store the target service data any more, for example, the edge node may feed back a reply message to a scheduling node to inform the scheduling node that the target service data is data that has been stored, but does not actually process the target service data. Therefore, repeated storage of the same service data can be avoided, the storage space of the edge node is reasonably utilized, the utilization rate of the storage space of the edge node is improved, and the edge node can store more service data.
Step 104, if the target service data is not the stored data, storing the target service data in a storage space corresponding to a target CDN service region.
The target CDN service region at least includes a CDN service region corresponding to the first service vendor.
In this embodiment of the present application, when an edge node obtains target service data, it is determined whether the target service data is stored data, and if the target service data is not stored data, that is, the target service data is not stored in a storage space corresponding to any CDN service region in at least one CDN service region included in the edge node, the target service data is stored in a storage space corresponding to the target CDN service region.
The target service data is data corresponding to a target service of a first service manufacturer requested by a terminal device, and at least one CDN service region of an edge node should also include a CDN service region corresponding to the first service manufacturer, that is, a target CDN service region, so that when it is determined that the target service data is not stored data of the edge node, the target service data of the first service manufacturer is stored in the target CDN service region.
It should be noted that, the edge node can be used to store service data (service data, i.e. the resources shown in fig. 2), the edge node includes at least one CDN service region, and different CDN service regions may include the same service data, for example, the video a can be played on the video playing platform 1 and also can be played on the video playing platform 2, and then the CDN service region corresponding to the video playing platform 1 in the edge node needs to store the video data, and the CDN service region corresponding to the video playing platform 2 also needs to store the video data. In this embodiment, for the target service data of the first service manufacturer, the target service data may be applied to the service platforms of other service manufacturers as well as the service platforms of the first service manufacturer, where in this case, the target CDN service area also includes CDN service areas corresponding to the first service manufacturer and the other service manufacturers, so that the target service data may be applied to a plurality of service platforms. Therefore, a plurality of CDN service areas can share the same target service data without repeated storage.
According to the scheme provided by the embodiment of the application, after the edge node acquires the target service data, whether the target service data is stored data corresponding to at least one CDN service area in the edge node is judged, if the target service data is the stored data, the target service data is not stored, and if the target service data is not the stored data, the target service data is stored. Therefore, the edge node can be prevented from repeatedly storing the same service data, the storage space of the edge node is reasonably utilized, and the utilization rate of the storage space of the edge node is improved, so that the edge node can store more service data.
Optionally, the step 104 may include:
if the target service data is not the stored data, judging a target service manufacturer corresponding to the target service data;
if the target service manufacturer comprises a first service manufacturer and at least one second service manufacturer, storing the target service data in a shared storage space corresponding to a target CDN service area;
the target CDN service region includes a first CDN service region corresponding to the first service vendor and a second CDN service region corresponding to the at least one second service vendor, where any one of the target CDN service regions can call service data stored in the shared storage space.
Specifically, under the condition that the edge node obtains the target service data and judges that the target service data is not the stored data, the target service manufacturer corresponding to the target service data is obtained, that is, the service manufacturers need to use the target service data. If the target service manufacturer includes a plurality of second service manufacturers in addition to the first service manufacturer, the target service data is stored in the shared storage space corresponding to the target CDN service area. The service data stored in the shared storage space can be called by any CDN service area in the target CDN service area, so that the target service data can be applied to the service platform corresponding to the first service manufacturer and the service platform corresponding to any second service manufacturer.
As shown in fig. 2, the target service data is a first resource, the first resource can be applied to a service platform corresponding to a first service manufacturer, and also can be applied to a service platform corresponding to a second service manufacturer, so that a first CDN service area corresponding to the first service manufacturer needs to be able to schedule the first resource, a second CDN service area corresponding to the second service manufacturer also needs to be able to schedule the first resource, and then the first resource is stored in a shared storage space corresponding to the first CDN service area and the second CDN service area, so that the first resource can be scheduled by both the first CDN service area and the second CDN service area, and only one part of the first resource needs to be stored by the edge node. For example, in fig. 2, the resource a can be stored in the shared storage space corresponding to the first CDN service region, the second CDN service region, and the third CDN service region, and then all the three CDN service regions can schedule the resource a; the storage manner of other resources in fig. 2 is not described in detail. In addition, the edge node 2 may also implement storage of each resource based on the same principle, which is not described in detail.
Further, the method further comprises:
under the condition that the terminal equipment requests the target service data, acquiring a target service manufacturer requested by the terminal equipment;
if the target service manufacturer is the first service manufacturer, calling the target service data in the shared storage space based on the first CDN service area, and transmitting the target service data to the terminal equipment;
and if the target service manufacturer is a second sub-manufacturer in the at least one second service manufacturer, calling the target service data in the shared storage space based on a CDN service area corresponding to the second sub-manufacturer, and transmitting the target service data to the terminal equipment.
It can be understood that after storing the target service data in the shared storage space of the edge node, if the target service data requested by the terminal device is obtained, judging the target service manufacturer requested by the terminal device; if the terminal equipment requests target service data from a first service manufacturer, scheduling the target service data in the shared storage space based on a first CDN service area, and transmitting the target service data to the terminal equipment so that the target service data is applied to a service platform of the first service manufacturer; if the terminal equipment requests the target service data from the second service manufacturer, the target service data in the shared storage space is scheduled based on the CDN service area corresponding to the second service manufacturer, and the target service data is transmitted to the terminal equipment, so that the target service data is applied to a service platform of the second service manufacturer.
For example, the terminal device is provided with a video application 1 and a video application 2, and both the video application 1 and the video application 2 can play the video a; the first video data corresponding to the video A is stored in a shared storage space of the edge node 1; when the terminal device is running the video application 1, if the terminal device receives a click of a play key of the video a in the video application 1 by a user, the terminal device also sends a request to the video playing platform 1 corresponding to the video application 1, and in this case, the edge node 1 may call the first video data in the shared storage space through the first CDN service region corresponding to the video playing platform 1 and feed the first video data back to the terminal device, so that the video application 1 can play the video a. Based on a similar principle, if the terminal device requests to play the video a based on the video application 2, the edge node may call the first video data in the shared storage space through the second CDN service region corresponding to the video playing platform 2, and feed the first video data back to the terminal device, so that the video application 2 can play the video a.
Compared with the prior art that different CDN service areas in the edge node respectively store the service data of corresponding service manufacturers, the service data which are needed by a plurality of service manufacturers are stored through sharing the storage space, so that the same service data do not need to be repeatedly stored in different CDN service areas, the service data stored in the same edge node are equivalent to be unique, the storage space of the edge node can be reasonably utilized, and the utilization rate of the storage space of the edge node is improved, so that the edge node can store more different service data.
Optionally, the step 104 may further include:
if the target service data is not the stored data in the at least one CDN service storage area, acquiring the current residual storage capacity of the storage space corresponding to the target CDN service area;
if the current residual storage capacity is larger than the preset storage capacity, storing the target service data in a storage space corresponding to a target CDN service area;
if the current residual storage capacity is smaller than a preset storage capacity, acquiring the use frequency of first service data stored in a storage space corresponding to the target CDN service area, wherein the first service data is any one of the service data stored in the storage space;
and if the using frequency of the first service data is smaller than the preset frequency, removing the first service data, and storing the target service data in a storage space corresponding to a target CDN service area under the condition that the residual storage capacity after the first service data is removed is larger than the preset storage capacity.
In this embodiment of the present application, when the edge node obtains the target service data, if the target service data is not the stored data of the edge node, before storing the target service data, the edge node needs to determine whether the current remaining storage capacity of the storage space corresponding to the target CDN service region can store the target service data.
And if the current residual storage capacity is larger than the preset storage capacity, storing the target service data in a storage space corresponding to the target CDN service area. The preset storage capacity may be greater than or equal to a storage capacity required by the target service data. If the current remaining storage capacity is smaller than the preset storage capacity, that is, the current remaining storage capacity is insufficient to store the target service data, the service data stored in the storage space needs to be cleaned.
Specifically, the use frequency of first service data stored in a storage space is obtained, wherein the first service data is any service data stored in the storage space; however, when the frequency of use of the first service data is detected to be smaller than the preset frequency, which indicates that the first service data is not hot data and the possibility of reuse is low, the first service data may be removed from the storage space, whether the remaining storage capacity of the storage space after the first service data is removed is larger than the preset capacity is judged, if so, the target service data is stored in the storage space, if not, whether the frequency of use of each service data stored in the storage space is smaller than the preset frequency is continuously judged, and the service data smaller than the preset frequency is removed until the remaining storage capacity of the storage space is larger than the preset storage capacity, so as to store the target service data in the storage space. Therefore, the edge node can store the target service data and clean and update the storage space accordingly.
In this embodiment of the present application, the target service data is service data with a request number of times greater than a preset number of times in a preset time. For example, video data corresponding to video a is requested 5 times in a week, indicating that the frequency of use of the video data is high, and that video a is popular, such data may also be referred to as hot spot asset data. In this embodiment of the present application, when receiving a request from a terminal device for target service data, a scheduling node may determine whether the target service data is service data with a number of requests greater than a preset number of times in a preset time, if yes, send the target service data to a corresponding edge node, and the edge node further determines whether the target service data is stored data, and performs corresponding processing. In this way, the edge node processes the target service data, i.e. requests more service data.
Fig. 3 is a flow chart of another service data storage method provided by the embodiment of the invention, as shown in fig. 3, specifically including the following steps:
step 1: and judging the resource hot spot by the first area.
In this step, for the user in the first area, each manufacturer scheduling node determines, according to the frequency of use of the resource, whether the resource is a hot spot resource in the first area. The hot spot resource may refer to service data with a requested number of times exceeding a preset number of times in a preset time period.
Step 2: if yes, the hot spot resource is issued to the edge node of the first area.
Step 3: if not, the scheduling node determines whether the other resources are hot spot resources of the first area.
Step 4: after receiving the hot spot resource issued by the dispatching node, the edge node judges whether the hot spot resource is a stored resource.
Step 5: if so, the edge node may respond to a request from the user device to use the hotspot resource.
Under the condition that the hot spot resource is the stored resource of the edge node, the edge node can also reply to the scheduling node that the hot spot resource is stored, but the hot spot resource does not actually fall down, i.e. the actual storing operation is not performed.
Step 6: if not, the edge node determines whether the current storage capacity can be satisfied for storing the hot spot resource.
Step 7: if so, storing the hot spot resource to the edge node.
Step 8: if not, the edge node judges the existing hot forging of other resources which are stored currently, namely judges whether the use frequency of the other resources in a preset time period is larger than the preset frequency, if so, the resources are defined as cold resources, the cold resources are removed from the edge node locally, the step 6 is continuously carried out after the cold resources are removed, and the edge node judges whether the current storage capacity can meet the requirement of storing the hot spot resources or not.
Step 9: when the user requests to use the resource, the edge node judges which service platform belongs to the user.
Step 10: and after the judgment is completed, transmitting the resources to the user through the corresponding service outlet.
In the invention, when resource storage is carried out by different service manufacturers under the shared P2P-CDN scene, if the target service data is stored data, the target service data is not stored, and if the target service data is not stored data, the target service data is stored. Therefore, the edge node can be prevented from repeatedly storing the same service data, the storage space of the edge node is reasonably utilized, and the utilization rate of the storage space of the edge node is improved, so that the edge node can store more service data.
Referring to fig. 4, fig. 4 is a block diagram of a service data storage device according to an embodiment of the present invention, where the device includes at least one CDN service region of a content delivery network, and one CDN service region is a service data storage area of a service manufacturer on the device.
As shown in fig. 4, the service data storage device 400 includes:
a first obtaining module 401, configured to obtain target service data sent by a scheduling node, where the target service data is data corresponding to a target service of a terminal device request first service manufacturer, and the target service data is service data with a request number of times greater than a preset number of times in a preset time;
A judging module 402, configured to judge whether the target service data is stored data corresponding to the at least one CDN service region;
a processing module 403, configured to, if the target service data is the stored data, not store the target service data;
the processing module 403 is further configured to: if the target service data is not the stored data, storing the target service data in a storage space corresponding to a target CDN service area;
the target CDN service region at least includes a CDN service region corresponding to the first service vendor.
Optionally, the processing module 403 is further configured to:
if the target service data is not the stored data, judging a target service manufacturer corresponding to the target service data;
if the target service manufacturer comprises a first service manufacturer and at least one second service manufacturer, storing the target service data in a shared storage space corresponding to a target CDN service area;
the target CDN service region includes a first CDN service region corresponding to the first service vendor and a second CDN service region corresponding to the at least one second service vendor, where any one of the target CDN service regions can call service data stored in the shared storage space.
Optionally, the service data storage device 400 further includes:
the second acquisition module is used for acquiring a target service manufacturer requested by the terminal equipment under the condition that the terminal equipment requests the target service data;
the transmission module is used for calling the target service data in the shared storage space based on the first CDN service area and transmitting the target service data to the terminal equipment if the target service manufacturer is the first service manufacturer;
the transmission module is further configured to: and if the target service manufacturer is a second sub-manufacturer in the at least one second service manufacturer, calling the target service data in the shared storage space based on a CDN service area corresponding to the second sub-manufacturer, and transmitting the target service data to the terminal equipment.
Optionally, the processing module 403 is further configured to:
if the target service data is not the stored data in the at least one CDN service storage area, acquiring the current residual storage capacity of the storage space corresponding to the target CDN service area;
if the current residual storage capacity is larger than the preset storage capacity, storing the target service data in a storage space corresponding to a target CDN service area;
If the current residual storage capacity is smaller than a preset storage capacity, acquiring the use frequency of first service data stored in a storage space corresponding to the target CDN service area, wherein the first service data is any one of the service data stored in the storage space;
and if the using frequency of the first service data is smaller than the preset frequency, removing the first service data, and storing the target service data in a storage space corresponding to a target CDN service area under the condition that the residual storage capacity after the first service data is removed is larger than the preset storage capacity.
It should be noted that, the service data storage device 400 provided in the embodiment of the present invention may be an edge node, which can implement each process in the embodiments of the methods of fig. 1 to 3, and achieve the same beneficial effects, and in order to avoid repetition, a detailed description is omitted here.
Referring to fig. 5, fig. 5 is a block diagram of an electronic device according to an embodiment of the present invention, as shown in fig. 5, an electronic device 500 includes a processor 501, a memory 502, and a computer program 5021 stored in the memory 502 and capable of running on the processor 501, where the computer program 5021 implements the steps of the service data storage method provided in the embodiments of fig. 1 to 3 when executed by the processor 501, and can achieve the same technical effects, so that repetition is avoided and no further description is given here.
The embodiment of the present invention further provides a computer readable storage medium, where a computer program is stored, where the steps of the service data storage method provided in the embodiments of fig. 1 to 3 are implemented when the computer program is executed by a processor, and the steps can achieve the same technical effects, so that repetition is avoided and no further description is given here.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method according to the embodiments of the present invention.
The embodiments of the present invention have been described above with reference to the accompanying drawings, but the present invention is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those having ordinary skill in the art without departing from the spirit of the present invention and the scope of the claims, which are to be protected by the present invention.

Claims (8)

1. The service data storage method is applied to an edge node, wherein the edge node comprises at least one CDN service area of a content delivery network, and one CDN service area is a service data storage area of a service manufacturer on the edge node; characterized in that the method comprises:
acquiring target service data sent by a scheduling node, wherein the target service data is data corresponding to target service of a terminal equipment request first service manufacturer, and the target service data is service data with the request times larger than preset times in preset time;
judging whether the target service data is stored data corresponding to the at least one CDN service area;
if the target service data is the stored data, not storing the target service data;
If the target service data is not the stored data, storing the target service data in a storage space corresponding to a target CDN service area;
the target CDN service area at least comprises a CDN service area corresponding to the first service manufacturer;
and if the target service data is not the stored data, storing the target service data in a storage space corresponding to a target CDN service region, including:
if the target service data is not the stored data, judging a target service manufacturer corresponding to the target service data;
if the target service manufacturer comprises a first service manufacturer and at least one second service manufacturer, storing the target service data in a shared storage space corresponding to a target CDN service area;
the target CDN service region includes a first CDN service region corresponding to the first service vendor and a second CDN service region corresponding to the at least one second service vendor, where any one of the target CDN service regions can call service data stored in the shared storage space.
2. The method of claim 1, wherein if the target service vendor includes a first service vendor and at least one second service vendor, after storing the target service data in the shared storage space corresponding to the target CDN service region, the method further comprises:
Under the condition that the terminal equipment requests the target service data, acquiring a target service manufacturer requested by the terminal equipment;
if the target service manufacturer is the first service manufacturer, calling the target service data in the shared storage space based on the first CDN service area, and transmitting the target service data to the terminal equipment;
and if the target service manufacturer is a second sub-manufacturer in the at least one second service manufacturer, calling the target service data in the shared storage space based on a CDN service area corresponding to the second sub-manufacturer, and transmitting the target service data to the terminal equipment.
3. The method of claim 1, wherein storing the target service data in a storage space corresponding to a target CDN service region if the target service data is not the stored data comprises:
if the target service data is not the stored data in the at least one CDN service storage area, acquiring the current residual storage capacity of the storage space corresponding to the target CDN service area;
if the current residual storage capacity is larger than the preset storage capacity, storing the target service data in a storage space corresponding to a target CDN service area;
If the current residual storage capacity is smaller than a preset storage capacity, acquiring the use frequency of first service data stored in a storage space corresponding to the target CDN service area, wherein the first service data is any one of the service data stored in the storage space;
and if the using frequency of the first service data is smaller than the preset frequency, removing the first service data, and storing the target service data in a storage space corresponding to a target CDN service area under the condition that the residual storage capacity after the first service data is removed is larger than the preset storage capacity.
4. A service data storage device, said device comprising at least one content delivery network CDN service region, one of said CDN service regions being a service data storage region for a service vendor on said device; characterized in that the device further comprises:
the first acquisition module is used for acquiring target service data sent by the scheduling node, wherein the target service data is data corresponding to target service of a terminal equipment request first service manufacturer, and the target service data is service data with the request times being greater than the preset times in the preset time;
The judging module is used for judging whether the target service data is stored data corresponding to the at least one CDN service area;
the processing module is used for not storing the target service data if the target service data are the stored data;
the processing module is further configured to: if the target service data is not the stored data, storing the target service data in a storage space corresponding to a target CDN service area;
the target CDN service area at least comprises a CDN service area corresponding to the first service manufacturer;
the processing module is further configured to:
if the target service data is not the stored data, judging a target service manufacturer corresponding to the target service data;
if the target service manufacturer comprises a first service manufacturer and at least one second service manufacturer, storing the target service data in a shared storage space corresponding to a target CDN service area;
the target CDN service region includes a first CDN service region corresponding to the first service vendor and a second CDN service region corresponding to the at least one second service vendor, where any one of the target CDN service regions can call service data stored in the shared storage space.
5. The apparatus of claim 4, wherein the apparatus further comprises:
the second acquisition module is used for acquiring a target service manufacturer requested by the terminal equipment under the condition that the terminal equipment requests the target service data;
the transmission module is used for calling the target service data in the shared storage space based on the first CDN service area and transmitting the target service data to the terminal equipment if the target service manufacturer is the first service manufacturer;
the transmission module is further configured to: and if the target service manufacturer is a second sub-manufacturer in the at least one second service manufacturer, calling the target service data in the shared storage space based on a CDN service area corresponding to the second sub-manufacturer, and transmitting the target service data to the terminal equipment.
6. The apparatus of claim 4, wherein the processing module is further configured to:
if the target service data is not the stored data in the at least one CDN service storage area, acquiring the current residual storage capacity of the storage space corresponding to the target CDN service area;
if the current residual storage capacity is larger than the preset storage capacity, storing the target service data in a storage space corresponding to a target CDN service area;
If the current residual storage capacity is smaller than a preset storage capacity, acquiring the use frequency of first service data stored in a storage space corresponding to the target CDN service area, wherein the first service data is any one of the service data stored in the storage space;
and if the using frequency of the first service data is smaller than the preset frequency, removing the first service data, and storing the target service data in a storage space corresponding to a target CDN service area under the condition that the residual storage capacity after the first service data is removed is larger than the preset storage capacity.
7. An electronic device comprising a processor, a memory and a computer program stored on the memory and executable on the processor, which when executed by the processor implements the steps of the business data storage method of any of claims 1 to 3.
8. A computer readable storage medium, characterized in that the computer readable storage medium has stored thereon a computer program which, when executed by a processor, implements the steps of the business data storage method of any of claims 1 to 3.
CN202110219556.XA 2021-02-26 2021-02-26 Service data storage method and device and electronic equipment Active CN112925946B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110219556.XA CN112925946B (en) 2021-02-26 2021-02-26 Service data storage method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110219556.XA CN112925946B (en) 2021-02-26 2021-02-26 Service data storage method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN112925946A CN112925946A (en) 2021-06-08
CN112925946B true CN112925946B (en) 2024-03-19

Family

ID=76172336

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110219556.XA Active CN112925946B (en) 2021-02-26 2021-02-26 Service data storage method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN112925946B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114840562B (en) * 2022-07-04 2022-11-01 深圳市茗格科技有限公司 Distributed caching method and device for business data, electronic equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102447712A (en) * 2012-01-20 2012-05-09 华为技术有限公司 Method and system for interconnecting nodes in content delivery network (CDN) as well as nodes
CN110392094A (en) * 2019-06-03 2019-10-29 网宿科技股份有限公司 A kind of method and fusion CDN system of acquisition business datum
CN112241413A (en) * 2019-07-18 2021-01-19 腾讯科技(深圳)有限公司 Pre-push content management method and device and computer equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10341454B2 (en) * 2016-11-08 2019-07-02 Cisco Technology, Inc. Video and media content delivery network storage in elastic clouds

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102447712A (en) * 2012-01-20 2012-05-09 华为技术有限公司 Method and system for interconnecting nodes in content delivery network (CDN) as well as nodes
CN110392094A (en) * 2019-06-03 2019-10-29 网宿科技股份有限公司 A kind of method and fusion CDN system of acquisition business datum
CN112241413A (en) * 2019-07-18 2021-01-19 腾讯科技(深圳)有限公司 Pre-push content management method and device and computer equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
"面向TV视频业务的系统解耦方案";刘雨涵;《邮电设计技术》(第4期);第22-26页 *

Also Published As

Publication number Publication date
CN112925946A (en) 2021-06-08

Similar Documents

Publication Publication Date Title
US9331904B2 (en) Formation and rearrangement of lender devices that perform multiplexing functions
US9578538B2 (en) Formation and rearrangement of ad hoc networks
EP1752886B1 (en) Method and system for downloading data to mobile terminals and for implementing data sharing between mobile terminals
CN101540775B (en) Method and device for distributing contents and network system for distributing contents
CN103036926B (en) Business push system and method
EP3439239B1 (en) Data transmission method and system based on peer-to-peer network
US20110153835A1 (en) System and method for controlling peer-to-peer connections
US7898993B2 (en) Efficiency and resiliency enhancements for transition states in ad hoc networks
EP2385680B1 (en) Content delivery over a peer-to-peer network
US20110307564A1 (en) Data node apparatus, peer information acquisition method and system
WO2024104284A1 (en) Nwdaf-based management and decision-making method for computing resources
CN101854287B (en) Method and device for optimizing P2P traffic
CN112925946B (en) Service data storage method and device and electronic equipment
CN109194993B (en) Media file distribution method and file distribution platform
CN114338063A (en) Message queue system, service processing method, and computer-readable storage medium
CN101964741B (en) Method and equipment for sending node list
CN106790354B (en) Communication method and device for preventing data congestion
KR20120138546A (en) Apparatus and method for discovery based on priority in distributed network and method for determining discovery backoff time
CN110011891B (en) Cross-network service processing method and system
RU2522995C2 (en) Method and apparatus for creating peer-to-peer group in peer-to-peer application and method of using peer-to-peer group
CN101873248A (en) Transmission method and device of P2P (peer to peer) stream media
CN112788135B (en) Resource scheduling method, equipment and storage medium
CN101771550A (en) Method, device and system for acquiring media content in P2P network
CN101369915A (en) P2P operating network resource management system
WO2017071524A1 (en) Multimedia resource publishing method and apparatus

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: Room 101, floors 1-3, building 14, North District, yard 9, dongran North Street, Haidian District, Beijing 100029

Applicant after: CHINA TOWER Co.,Ltd.

Address before: 100142 19th floor, 73 Fucheng Road, Haidian District, Beijing

Applicant before: CHINA TOWER Co.,Ltd.

GR01 Patent grant
GR01 Patent grant