CN108540583B - Domain name issuing method and device in CDN system and electronic equipment - Google Patents

Domain name issuing method and device in CDN system and electronic equipment Download PDF

Info

Publication number
CN108540583B
CN108540583B CN201810089876.6A CN201810089876A CN108540583B CN 108540583 B CN108540583 B CN 108540583B CN 201810089876 A CN201810089876 A CN 201810089876A CN 108540583 B CN108540583 B CN 108540583B
Authority
CN
China
Prior art keywords
domain name
configuration information
name configuration
timestamp
target
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
CN201810089876.6A
Other languages
Chinese (zh)
Other versions
CN108540583A (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.)
Beijing Three Cloud Computing Co ltd
Beijing Sankuai Online Technology Co Ltd
Original Assignee
Beijing Sankuai Online Technology 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 Beijing Sankuai Online Technology Co Ltd filed Critical Beijing Sankuai Online Technology Co Ltd
Priority to CN201810089876.6A priority Critical patent/CN108540583B/en
Publication of CN108540583A publication Critical patent/CN108540583A/en
Application granted granted Critical
Publication of CN108540583B publication Critical patent/CN108540583B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/45Network directories; Name-to-address mapping
    • H04L61/4505Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols
    • H04L61/4511Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols using domain name system [DNS]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application discloses a domain name issuing method in a CDN system, belongs to the technical field of computers, and solves the problem of low issuing efficiency of the domain name issuing method in the prior art. The method comprises the following steps: receiving a request for acquiring target domain name configuration information; if the target domain name configuration information is determined to be required to be remotely pulled according to the prestored domain name configuration information modification timestamp, pulling the target domain name configuration information from a preset node; and sending the drawn target domain name configuration information. According to the domain name issuing method, only the domain name configuration information global timestamp and the domain name configuration information modification timestamp are stored locally in the edge node, so that the data volume issued by the edge node is reduced, network resources are saved, and the occupation of local storage resources is reduced.

Description

Domain name issuing method and device in CDN system and electronic equipment
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and an apparatus for issuing a domain name in a CDN system, and an electronic device.
Background
The domain name configuration file is stored in an edge node of a CDN (Content Delivery Network) system, which can improve the efficiency of issuing the domain name configuration file to a certain extent, but with the high-speed development of the internet, domain name configuration information is more and more, and how to issue the domain name configuration file quickly becomes a key problem of accurately and efficiently resolving a domain name. In the prior art, in order to improve the issuing efficiency of the domain name configuration file in the server, part of technical solutions classify the configuration file according to the corresponding relationship between the domain name and the IP address, and issue the configuration file to different node servers of the CDN system according to the category. However, with the increase of domain name configuration information, in the process of updating the configuration file, issuing the configuration file still occupies more network resources, and takes longer updating time.
Therefore, the domain name issuing method in the prior art at least has the defects of low issuing efficiency caused by occupying network resources and spending longer updating time.
Disclosure of Invention
The application provides a domain name issuing method in a CDN system, which at least solves the problem of low issuing efficiency in domain name issuing in the prior art.
In order to solve the above problem, in a first aspect, an embodiment of the present application provides a domain name issuing method in a CDN system, including:
receiving a request for acquiring target domain name configuration information;
if the target domain name configuration information is determined to be required to be remotely pulled according to the prestored domain name configuration information modification timestamp, pulling the target domain name configuration information from a preset node;
and sending the drawn target domain name configuration information.
In a second aspect, an embodiment of the present application provides a domain name issuing device in a CDN system, including:
the request receiving module is used for receiving a request for acquiring the configuration information of the target domain name;
the target domain name configuration information acquisition module is used for pulling the target domain name configuration information from a preset node if the target domain name configuration information is determined to be required to be remotely pulled according to the prestored domain name configuration information modification timestamp;
and the domain name configuration information issuing module is used for issuing the drawn target domain name configuration information. In a third aspect, an embodiment of the present application further discloses an electronic device, which includes a memory, a processor, and a computer program that is stored in the memory and can be run on the processor, where the processor implements the domain name issuing method in the CDN system according to the embodiment of the present application when executing the computer program.
In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor, and the steps of the domain name issuing method in the CDN system disclosed in the embodiment of the present application are provided.
The domain name issuing method in the CDN system disclosed by the embodiment of the application obtains the request of the target domain name configuration information by receiving; if the target domain name configuration information is determined to be required to be remotely pulled according to the prestored domain name configuration information modification timestamp, pulling the target domain name configuration information from a preset node; and the drawn target domain name configuration information is issued, so that the problem of low issuing efficiency in domain name issuing in the prior art is solved. The domain name configuration information modification time stamp and the domain name configuration information which is pulled are only stored locally at the edge node, so that the data volume issued by the edge node is reduced, network resources are saved, and the occupation of local storage resources is reduced. The changed domain name configuration information is pulled only when the domain name configuration information needing to be used changes, so that network resources are further saved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a flowchart of a domain name issuing method in a CDN system according to a first embodiment of the present application;
fig. 2 is a flowchart of a domain name issuing method in the CDN system according to the second embodiment of the present application;
fig. 3 is a schematic flow chart of an application of a domain name issuing method in a CDN system according to a third embodiment of the present application;
fig. 4 is a schematic structural diagram of a domain name issuing device in a CDN system according to a fourth embodiment of the present application;
fig. 5 is a second schematic structural diagram of a domain name issuing device in the CDN system according to a fourth embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Example one
As shown in fig. 1, a method for issuing a domain name in a CDN system disclosed in this embodiment includes: step 110 to step 130.
Step 110, receiving a request for obtaining the target domain name configuration information.
In specific implementation, three kinds of information related to domain name configuration information are stored independently, and the three kinds of information include: domain name configuration information, a domain name configuration information modification timestamp, and a domain name configuration information global timestamp. The domain name configuration information is configuration information of all domain names to be issued in the CDN system; the domain name configuration information modification timestamp comprises configuration information modification timestamps of all domain names to be issued in the CDN system; the global timestamp of the domain name configuration information is the latest modification time of the domain name configuration information. For example, in the implementation, the modification time of the latest domain name configuration information is stored through a global variable, the domain name configuration information modification time stamp is stored through a table, and the configuration information of each domain name or each class of domain names is stored through a separate file or table.
When the method is implemented specifically, the CDN edge node prestores a domain name configuration information modification timestamp and a domain name configuration information global timestamp, determines whether to pull target domain name configuration information according to a domain name resolution request, and then issues the target domain name configuration information. In specific implementation, the CDN edge node receives a request for obtaining the target domain name configuration information in real time.
And step 120, if it is determined that the target domain name configuration information needs to be remotely pulled according to the pre-stored domain name configuration information modification timestamp, pulling the target domain name configuration information from a preset node.
When the CDN edge node receives the domain name resolution request, the edge node needs to search for configuration information of the target domain name in the locally stored domain name configuration information. The CDN edge node firstly searches the configuration information of the target domain name locally, and if the configuration information of the target domain name is not stored locally, the CDN edge node directly pulls the configuration information of the target domain name from a CDN central control node. When the CDN edge node locally searches for configuration information of a target domain name, but when it is determined that the CDN central control node stores configuration information for updating the domain name according to the configuration information modification timestamp of the domain name, the configuration information of the target domain name also needs to be pulled from the CDN central control node.
In specific implementation, the edge node may pull the domain name configuration information of all domain names at a time to modify the timestamps, and store the timestamps locally at the edge node. Or, according to a preset rule, the domain name configuration information modification timestamp of a part of domain names is pulled and stored locally at the edge node, for example, only the domain name configuration information modification timestamp of a certain class of domain names is pulled. In a specific implementation, the domain name configuration information modification timestamp may be stored in a key value list, for example, the domain name is used as a key, and the domain name configuration information modification timestamp is used as a value.
And step 130, sending the drawn target domain name configuration information.
And if the CDN edge node locally stores the latest target domain name configuration information, or the CDN edge node successfully pulls the latest target domain name configuration information from a preset node, the latest target domain name configuration information is issued to a client side sending a request for acquiring the target domain name configuration information.
The domain name issuing method in the CDN system disclosed by the embodiment of the application obtains the request of the target domain name configuration information by receiving; if the target domain name configuration information is determined to be required to be remotely pulled according to the prestored domain name configuration information modification timestamp, pulling the target domain name configuration information from a preset node; and the drawn target domain name configuration information is issued, so that the problem of low issuing efficiency in domain name issuing in the prior art is solved. The timestamp and the pulled domain name configuration information are modified only by the domain name configuration information at the edge node, so that the data volume issued by the edge node is reduced, network resources are saved, and the occupation of local storage resources is reduced. The changed domain name configuration information is pulled only when the domain name configuration information needing to be used changes, so that network resources are further saved.
Example two
Based on the first embodiment, the present embodiment discloses a domain name issuing method in a CDN system, where a preset node is a CDN central control node, full domain name configuration information is stored in the CDN central control node, and an index query is performed by using a domain name configuration information modification timestamp and a domain name configuration information global timestamp. The edge node stores a domain name configuration information modification timestamp, a domain name configuration information global timestamp, and partial domain name configuration information. The edge node pulls domain name configuration information related data from the CDN central control node regularly or according to requirements.
As shown in fig. 2, the method includes: step 210 to step 270.
And step 210, acquiring a domain name configuration information global timestamp from the preset node in a polling mode, and storing the domain name configuration information global timestamp locally.
In specific implementation, the CDN edge node queries the CDN central control node periodically (e.g., every 3 minutes), obtains the domain name configuration information global timestamp from the CDN central control node, and locally caches the domain name configuration information at the edge node, for example, the edge node stores the domain name configuration information global timestamp obtained from the CDN central control node in the variable remote _ global _ timestamp.
During specific implementation, the CDN edge node obtains the domain name configuration information global timestamp from the CDN central control node for the first time, and performs local caching at the edge node, and the edge node obtains at least part of the domain name configuration information modification timestamp from the CDN central control node at the same time.
In specific implementation, the global timestamp of the domain name configuration information is updated according to the storage request of the domain name configuration information.
Firstly, storing domain name configuration information to a CDN central control node according to a domain name configuration information storage request.
And the domain name configuration information, the domain name configuration information modification timestamp and the domain name configuration information global timestamp are independently stored. The CDN central control node stores the above three kinds of complete information, and the CDN edge node stores the following information according to a preset rule: the domain name configuration information global timestamp, the domain name configuration information modification timestamp, and the partial domain name configuration information. In this embodiment, a specific technical scheme for domain name delivery in the CDN system is described in detail by taking an example in which the CDN central control node stores a domain name configuration information global timestamp through a global variable global _ timestamp, stores a domain name configuration information modification timestamp through a data table domain _ timestamp, and stores configuration information of each domain name in a domain name configuration information table domain _ configurations. The global timestamp of the domain name configuration information is the latest modification time of the domain name configuration information; storing the latest modification time stamp corresponding to each domain name in the domain name configuration information modification time stamp; the domain name configuration information table domain _ configurations is a data table having a domain name of key to configure the content of value.
In specific implementation, when a user modifies or deletes or adds a domain name, or modifies or deletes or adds an IP address corresponding to the domain name, or modifies other attributes of the domain name, the CDN central control node receives domain name configuration information uploaded by the user. And the CDN central control node locally stores the modified domain name configuration information according to the received domain name configuration information, namely, updates the stored domain name configuration information table domain _ configurations.
And then, according to the storage time of the domain name configuration information, editing a configuration information modification timestamp of a corresponding domain name in a domain name configuration information modification timestamp, and storing the domain name configuration information modification timestamp to a CDN central control node.
After the CDN central control node successfully stores the domain name configuration information domain _ configs, the CDN central control node records storage time of the domain name configuration information domain _ configs as a configuration information modification timestamp of the domain name modified this time. Taking the modified domain name of this time as "www.meituan.com" as an example, after the CDN central control node successfully stores the domain name configuration information domain _ configurations, if the storage time of the domain name configuration information domain _ configurations recorded by the CDN central control node is "2018-01-01, 00: 00 ', the configuration information modification timestamp corresponding to the domain name www.meituan.com in the domain _ timestamp table for modifying the domain configuration information is' 2018-01-01, 00: 00".
And the CDN central control node synchronously updates the domain name configuration information global timestamp when the domain name configuration information table changes every time, such as a newly added domain name, a modified domain name or a deleted domain name. The CDN central control node stores the latest domain name configuration information global timestamp, domain name configuration information and domain name configuration information modification timestamp.
And finally, storing the storage time of the domain name configuration information as a global timestamp of the domain name configuration information to a CDN central control node.
And finally, the CDN central control node modifies the timestamp of the configuration information of the modified domain name at this time as a global timestamp of the domain name configuration information. For example, the domain name configuration information global timestamp is "2018-01-01, 00: 00".
Step 220, if it is determined that the domain name configuration information is updated according to the global timestamp of the domain name configuration information, acquiring at least part of the domain name configuration information modification timestamps from the preset nodes, and performing local storage.
In specific implementation, the CDN edge node obtains the domain name configuration information modification timestamp from the CDN central control node as needed, and locally caches the timestamp at the edge node. For example, after the CDN edge node regularly obtains the domain name configuration information global timestamp from the CDN central control node, when it is found that the domain name configuration information modification timestamp is not locally stored, then at least part of the domain name configuration information modification timestamp is obtained from the CDN central control node. Or when the edge node judges that the domain name configuration information modification timestamp cached locally is not the latest data according to the recently acquired global timestamp of the domain name configuration information, and needs to be updated, the edge node pulls the domain name configuration information modification timestamp from the CDN central control node.
In the domain name configuration information issuing process, the CDN edge node regularly obtains a domain name configuration information global timestamp from a CDN central control node, and after the edge node locally caches, when the edge node judges that a domain name configuration information modification timestamp cached locally is not the latest data according to the recently obtained domain name configuration information global timestamp, and when the domain name configuration information modification timestamp needs to be updated, the domain name configuration information modification timestamp is pulled from the CDN central control node. The determining that the domain name configuration information is updated according to the global timestamp of the domain name configuration information includes: and if the obtained domain name configuration information global time stamp is different from the domain name configuration information global time stamp stored locally in advance, determining that the domain name configuration information is updated. For example, the global timestamp of the domain name configuration information cached locally by the edge node is "2017-12-31, 23: 50 ', the edge node acquires the domain name configuration information through polling, wherein the global timestamp is' 2018-01-01, 00: 00', it indicates that the domain name configuration information stored on the CDN central control node is updated, and therefore, further, the edge node pulls the domain name configuration information from the CDN central control node to modify the timestamp table domain _ timestamp, and the edge node locally stores a data table named remote _ domain _ timestamp.
At step 230, a request for obtaining the target domain name configuration information is received.
In specific implementation, the edge node detects a request for acquiring the target domain name configuration information in real time and receives the detected request for acquiring the target domain name configuration information.
Step 240, if it is determined that the target domain name configuration information needs to be remotely pulled according to the pre-stored domain name configuration information modification timestamp, pulling the target domain name configuration information from a preset node.
Further, determining that the target domain name configuration information needs to be remotely pulled according to the domain name configuration information modification timestamp, including: if the domain name configuration information modification timestamp does not include the information of the target domain name, or if the modification time of the target domain name configuration information determined according to the domain name configuration information modification timestamp stored in advance is different from the modification time of the target domain name configuration information stored in advance locally, it is determined that the target domain name configuration information needs to be pulled remotely.
In specific implementation, when the CDN edge node receives a domain name resolution request, the edge node first searches the configuration information of the target domain name requested to be resolved in a domain name configuration information table stored locally. And if the local configuration information of the target domain name requested to be analyzed is not stored, the CDN edge node directly pulls the configuration information of the target domain name from a CDN central control node. When the CDN edge node locally searches for the configuration information of the target domain name, but determines that the configuration information modification timestamp of the target domain name is earlier than the domain name configuration information global timestamp stored in the remote _ global _ timestamp according to the data table of the remote _ domain _ timestamp, it is determined that the configuration information of the target domain name has been updated, and it is necessary to pull the configuration information of the target domain name from the CDN central control node.
And step 250, locally storing the pulled target domain name configuration information.
And step 260, pulling the domain name configuration information global timestamp and the domain name configuration information modification timestamp from the preset node, and performing local storage.
Preferably, the pulling the target domain name configuration information from a preset node further includes: locally storing the pulled target domain name configuration information; and pulling the domain name configuration information global timestamp and the domain name configuration information modification timestamp from the preset node, and locally storing the domain name configuration information global timestamp and the domain name configuration information modification timestamp. That is, the target domain name configuration information, the global timestamp of the domain name configuration information, and the domain name configuration information modification timestamp are stored locally at the edge node of the pull information. The preset node may be a CDN central control node or a designated edge node. When the domain name configuration information is pulled, other related information of the domain name configuration information is synchronously updated, so that the accuracy and timeliness of domain name issuing are improved.
And 270, issuing the drawn target domain name configuration information.
And if the CDN edge node successfully pulls the latest target domain name configuration information from a preset node, the latest target domain name configuration information is sent to a client side sending a request for acquiring the target domain name configuration information.
In specific implementation, if the CDN edge node locally stores the latest target domain name configuration information, the target domain name configuration information does not need to be pulled again, and the latest target domain name configuration information locally stored by the CDN edge node is directly delivered to the client that sends the request for obtaining the target domain name configuration information.
According to the domain name issuing method in the CDN system disclosed by the embodiment of the application, the domain name configuration information is processed, three kinds of information related to the domain name configuration information are extracted and stored respectively, so that the edge node can only store a part of information, for example, only a domain name configuration information global timestamp and a domain name configuration information modification timestamp are locally stored in the edge node, the data volume issued by the edge node is reduced, network resources are saved, and meanwhile, the occupation of local storage resources is reduced. The changed domain name configuration information is pulled only when the domain name configuration information needing to be used changes, so that network resources are further saved. The domain name configuration information global timestamp is pulled from the preset node in a polling mode, the network and the software between the network and the network are not relied on to restart, the domain name configuration information global timestamp can be stably and timely acquired, and the accuracy and timeliness of domain name issuing are guaranteed.
EXAMPLE III
The following describes a specific implementation process of the domain name delivery method in the CDN system in detail with reference to an embodiment of the CDN system. As shown in fig. 3, the CDN system includes: a first client 310, a second client 320, a CDN hub control node 330, and an edge node 340. In this embodiment, it is assumed that the preset node is a CDN central control node.
The specific implementation process of the domain name issuing method in the application CDN system is as follows:
in step S1, after locally modifying the domain name configuration information, the first client 310 sends a domain name configuration information storage request to the CDN central control node 330.
In step S2, the CDN central control node 330 stores the domain name configuration information to the CDN central control node local according to the domain name configuration information storage request.
In specific implementation, when the configuration information of a certain domain name is changed, for example, an IP address of a certain domain name is changed, or a certain IP address corresponding to a certain domain name is deleted, the CDN central control node first stores the modified domain name configuration information. After the modified domain name configuration information is successfully stored, the CDN central control node records the domain name configuration information storage time stamp, and further updates the domain name configuration information modification time stamp corresponding to the modified domain name through the storage time stamp; and finally, after the domain name configuration information modification timestamp is successfully updated, the CDN central control node takes the update time of the domain name configuration information modification timestamp as a domain name configuration information global timestamp. And after the global timestamp of the domain name configuration information is updated every time, the global timestamp of the domain name configuration information is synchronously updated.
In step S3, the CDN central control node 330 edits the configuration information modification timestamp of the corresponding domain name in the domain name configuration information modification timestamp according to the storage time of the domain name configuration information, and stores the domain name configuration information modification timestamp locally in the CDN central control node 330.
Step S4, the CDN central control node 330 stores the storage time of the domain name configuration information as a domain name configuration information global timestamp to the CDN central control node 330 locally. The CDN central control node stores the latest domain name configuration information global timestamp, domain name configuration information and domain name configuration information modification timestamp.
At step S5, the edge node 340 polls the domain name configuration information global timestamp.
Meanwhile, the edge node 340 acquires the global timestamp of the domain name configuration information from the preset node in a polling manner, and performs local storage.
In specific implementation, the CDN edge node queries the CDN central control node periodically (e.g., every 3 minutes), obtains the domain name configuration information global timestamp from the CDN central control node, and locally caches the domain name configuration information at the edge node, for example, the edge node stores the domain name configuration information global timestamp obtained from the CDN central control node in the variable remote _ global _ timestamp.
In step S6, the edge node 340 determines that the domain name configuration information is updated according to the global timestamp of the domain name configuration information, obtains at least part of the domain name configuration information modification timestamps from the preset nodes, and performs local storage.
In specific implementation, the CDN edge node obtains the domain name configuration information modification timestamp from the CDN central control node as needed, and locally caches the timestamp at the edge node. For example, after the CDN edge node regularly obtains the domain name configuration information global timestamp from the CDN central control node, when it is found that the domain name configuration information modification timestamp is not locally stored, then at least part of the domain name configuration information modification timestamp is obtained from the CDN central control node. Or when the edge node judges that the domain name configuration information modification timestamp cached locally is not the latest data according to the recently acquired global timestamp of the domain name configuration information, and needs to be updated, the edge node pulls the domain name configuration information modification timestamp from the CDN central control node.
In specific implementation, when polling and updating the global timestamp of the domain name configuration information, the edge node 340 detects a request for acquiring the target domain name configuration information in real time.
In step S7, the second client 320 sends a request for obtaining the target domain name configuration information.
When the second client 320 needs to obtain the target domain name configuration information, the second client 320 sends a request for obtaining the target domain name configuration information to the edge node 340.
The edge node 340 receives a request to obtain target domain name configuration information.
In step S8, if it is determined that remote pulling is required according to the timestamp modified by the prestored domain name configuration information, the edge node 340 remotely pulls the target domain name configuration information.
The target domain name configuration information judges whether the target domain name configuration information is stored locally, and if not, the target domain name configuration information is pulled from the CDN central control node 330 by accessing the CDN central control node 330; if the target domain name configuration information is stored, but it is determined that the stored target domain name configuration information is not the latest information according to the domain name configuration information modification timestamp, the target domain name configuration information is pulled from the CDN central control node 330.
In step S9, the edge node 340 updates the locally stored domain name configuration information global timestamp and domain name configuration information modification timestamp.
In step S10, the edge node 340 sends the latest target domain name configuration information to the second client 320.
According to the domain name issuing method in the CDN system disclosed by the embodiment of the application, the full data of the configuration information is stored in the preset node, the domain name configuration information global timestamp, the domain name configuration information modification timestamp and the pulled domain name configuration information are stored in the edge node, the data volume issued by the edge node is reduced, and the network resources are saved. After receiving a request for acquiring the target domain name configuration information, the target domain name configuration information is pulled from a preset node, and the pulled target domain name configuration information is issued, so that the pulling data volume is small, and the issuing efficiency of the domain name information is improved.
Example four
As shown in fig. 4, the domain name issuing device in the CDN system disclosed in this embodiment includes:
a request receiving module 410, configured to receive a request for obtaining target domain name configuration information;
a target domain name configuration information obtaining module 420, configured to, if it is determined that the target domain name configuration information needs to be remotely pulled according to a pre-stored domain name configuration information modification timestamp, pull the target domain name configuration information from a preset node;
a domain name configuration information issuing module 430, configured to issue the target domain name configuration information that is optionally drawn, where the target domain name configuration information obtaining module 420 is further configured to:
if the domain name configuration information modification timestamp does not include the information of the target domain name, or if the modification time of the target domain name configuration information determined according to the domain name configuration information modification timestamp stored in advance is different from the modification time of the target domain name configuration information stored in advance locally, it is determined that the target domain name configuration information needs to be pulled remotely.
Optionally, as shown in fig. 5, the apparatus further includes:
a target domain name configuration information storage module 440, configured to locally store the pulled target domain name configuration information;
and the related information pulling and storing module 450 is configured to pull the domain name configuration information global timestamp and the domain name configuration information modification timestamp from the preset node, and perform local storage.
Optionally, as shown in fig. 5, the apparatus further includes:
and a domain name configuration information global timestamp obtaining module 460, configured to obtain a domain name configuration information global timestamp from the preset node in a polling manner, and perform local storage.
Optionally, as shown in fig. 5, the apparatus further includes:
a domain name configuration information modification timestamp obtaining module 470, configured to obtain at least part of domain name configuration information modification timestamps from the preset node and perform local storage if it is determined that the domain name configuration information is updated according to the global timestamp of the domain name configuration information.
Optionally, the determining that the target domain name configuration information needs to be remotely pulled according to the domain name configuration information modification timestamp includes:
if the domain name configuration information modification timestamp does not include the information of the target domain name, or if the modification time of the target domain name configuration information determined according to the acquired domain name configuration information modification timestamp is different from the modification time of the target domain name configuration information stored locally in advance, determining that the target domain name configuration information needs to be pulled remotely.
Optionally, the step of determining that the domain name configuration information is updated according to the global timestamp of the domain name configuration information includes:
and if the obtained domain name configuration information global time stamp is different from the domain name configuration information global time stamp stored locally in advance, determining that the domain name configuration information is updated.
Optionally, the domain name configuration information modification timestamp, and the domain name configuration information global timestamp are independently stored.
The specific implementation of each module is referred to in the first to third embodiments, and is not described herein again.
The domain name issuing device in the CDN system disclosed by the embodiment of the application acquires the global timestamp of domain name configuration information from the preset node; when the domain name configuration information is determined to be updated according to the global timestamp of the domain name configuration information, acquiring at least part of domain name configuration information modification timestamps from a preset node; after a request for acquiring the target domain name configuration information is received, when the target domain name configuration information is determined to be required to be remotely pulled according to the domain name configuration information modification timestamp, the target domain name configuration information is pulled from a preset node and is locally stored, and the problem of low issuing efficiency in domain name issuing in the prior art is solved. The global timestamp of the domain name configuration information and the domain name configuration information modification timestamp are only stored locally at the edge node, so that the data volume issued by the edge node is reduced, network resources are saved, and the occupation of local storage resources is reduced. The changed domain name configuration information is pulled only when the domain name configuration information needing to be used changes, so that network resources are further saved.
Correspondingly, the application also discloses an electronic device, which comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein the processor executes the computer program to realize the domain name issuing method in the CDN system according to the first embodiment to the third embodiment of the application. The electronic device can be a PC, a mobile terminal, a personal digital assistant, a tablet computer and the like.
The present application further discloses a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the domain name issuing method in the CDN system according to the first to third embodiments of the present application.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
The above detailed description is given to a domain name issuing method and device in a CDN system provided by the present application, and a specific example is applied in the present application to explain the principle and implementation manner of the present application, and the description of the above embodiment is only used to help understand the method and core idea of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.

Claims (9)

1. A domain name issuing method in a CDN system is characterized in that the method is applied to CDN edge nodes and comprises the following steps:
receiving a request for acquiring target domain name configuration information;
if the target domain name configuration information is determined to be remotely pulled according to a prestored domain name configuration information modification timestamp, pulling the target domain name configuration information from a preset node, wherein the prestored domain name configuration information modification timestamp is pulled from the preset node and stored when an acquired domain name configuration information global timestamp is different from a locally stored domain name configuration information global timestamp, and the domain name configuration information global timestamp is updated to a modification timestamp of the domain name configuration information modified at this time when the domain name configuration information changes every time;
sending down the drawn target domain name configuration information;
wherein, the step of determining that the target domain name configuration information needs to be remotely pulled according to the pre-stored domain name configuration information modification timestamp comprises:
if the domain name configuration information modification timestamp does not include the information of the target domain name, or if the modification time of the target domain name configuration information determined according to the domain name configuration information modification timestamp stored in advance is different from the modification time of the target domain name configuration information stored in advance locally, it is determined that the target domain name configuration information needs to be pulled remotely.
2. The method of claim 1, further comprising:
and acquiring a domain name configuration information global timestamp from the preset node in a polling mode, and storing the domain name configuration information global timestamp locally.
3. The method according to claim 2, wherein after the step of obtaining the global timestamp of the domain name configuration information from the preset node in a polling manner and performing local storage, the method further comprises:
and if the domain name configuration information is determined to be updated according to the global timestamp of the domain name configuration information, acquiring at least part of domain name configuration information modification timestamps from the preset nodes, and locally storing the modified timestamps.
4. The method according to claim 3, wherein the step of determining that the domain name configuration information is updated according to the domain name configuration information global timestamp comprises:
and if the obtained domain name configuration information global time stamp is different from the domain name configuration information global time stamp stored locally in advance, determining that the domain name configuration information is updated.
5. The method of claim 2, wherein the domain name configuration information, the domain name configuration information modification timestamp, and the domain name configuration information global timestamp are stored independently.
6. The method according to claim 1, wherein after the pulling the target domain name configuration information from the preset node, further comprising:
locally storing the pulled target domain name configuration information;
and pulling the domain name configuration information global timestamp and the domain name configuration information modification timestamp from the preset node, and locally storing the domain name configuration information global timestamp and the domain name configuration information modification timestamp.
7. A domain name issuing device in a CDN system is characterized by comprising:
the request receiving module is used for receiving a request for acquiring the configuration information of the target domain name;
a target domain configuration information acquisition module, configured to pull the target domain configuration information from a preset node if it is determined that the target domain configuration information needs to be pulled remotely according to a pre-stored domain configuration information modification timestamp, where the pre-stored domain configuration information modification timestamp is pulled and stored from the preset node when an acquired domain configuration information global timestamp is different from a locally stored domain configuration information global timestamp, and the domain configuration information global timestamp is updated to a modification timestamp of the domain configuration information that is modified this time each time the domain configuration information changes;
the domain name configuration information issuing module is used for issuing the drawn target domain name configuration information;
wherein the target domain name configuration information obtaining module is further configured to:
if the domain name configuration information modification timestamp does not include the information of the target domain name, or if the modification time of the target domain name configuration information determined according to the domain name configuration information modification timestamp stored in advance is different from the modification time of the target domain name configuration information stored in advance locally, it is determined that the target domain name configuration information needs to be pulled remotely.
8. An electronic device, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor implements the domain name issuing method in the CDN system according to any one of claims 1 to 6 when executing the computer program.
9. A computer-readable storage medium, on which a computer program is stored, wherein the program, when executed by a processor, implements the steps of the domain name delivery method in the CDN system as recited in any one of claims 1 to 6.
CN201810089876.6A 2018-01-30 2018-01-30 Domain name issuing method and device in CDN system and electronic equipment Active CN108540583B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810089876.6A CN108540583B (en) 2018-01-30 2018-01-30 Domain name issuing method and device in CDN system and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810089876.6A CN108540583B (en) 2018-01-30 2018-01-30 Domain name issuing method and device in CDN system and electronic equipment

Publications (2)

Publication Number Publication Date
CN108540583A CN108540583A (en) 2018-09-14
CN108540583B true CN108540583B (en) 2022-02-25

Family

ID=63486200

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810089876.6A Active CN108540583B (en) 2018-01-30 2018-01-30 Domain name issuing method and device in CDN system and electronic equipment

Country Status (1)

Country Link
CN (1) CN108540583B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110968356B (en) * 2018-09-29 2023-09-29 北京金山云网络技术有限公司 Method and device for acquiring configuration information
CN110278290A (en) * 2019-06-12 2019-09-24 网宿科技股份有限公司 A kind of method and device of domain name configuration deployment management
CN115842803A (en) * 2022-10-27 2023-03-24 新浪技术(中国)有限公司 File processing method, device and system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101127783A (en) * 2007-09-28 2008-02-20 北京金山软件有限公司 A website buffering method and device
CN104092787A (en) * 2014-06-24 2014-10-08 腾讯科技(深圳)有限公司 Network access method and system based on DNS
US9705921B2 (en) * 2014-04-16 2017-07-11 Cisco Technology, Inc. Automated synchronized domain wide transient policy
CN106953940A (en) * 2017-04-13 2017-07-14 网宿科技股份有限公司 Dns server and configuring load application method, network system, domain name analytic method and system
CN106973125A (en) * 2017-03-16 2017-07-21 中国联合网络通信集团有限公司 Domain name mapping implementation method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101127783A (en) * 2007-09-28 2008-02-20 北京金山软件有限公司 A website buffering method and device
US9705921B2 (en) * 2014-04-16 2017-07-11 Cisco Technology, Inc. Automated synchronized domain wide transient policy
CN104092787A (en) * 2014-06-24 2014-10-08 腾讯科技(深圳)有限公司 Network access method and system based on DNS
CN106973125A (en) * 2017-03-16 2017-07-21 中国联合网络通信集团有限公司 Domain name mapping implementation method and device
CN106953940A (en) * 2017-04-13 2017-07-14 网宿科技股份有限公司 Dns server and configuring load application method, network system, domain name analytic method and system

Also Published As

Publication number Publication date
CN108540583A (en) 2018-09-14

Similar Documents

Publication Publication Date Title
US10412176B2 (en) Website access method, apparatus, and website system
CN109413127B (en) Data synchronization method and device
US10891302B2 (en) Scalable synchronization with cache and index management
US11755580B2 (en) Method and system for defining an object-agnostic offlinable synchronization model
CN108540583B (en) Domain name issuing method and device in CDN system and electronic equipment
CN107423070B (en) Page generation method and device
US10474185B2 (en) Timestamp alignment across a plurality of computing devices
US20110302285A1 (en) Update server to update rendered content
CN107239568B (en) Distributed index implementation method and device
CN112181049B (en) Cluster time synchronization method, device, system, equipment and readable storage medium
CN113326418A (en) Method and device for determining webpage information source and webpage quality
US7991741B2 (en) System and method for synchronizing data record with web document in a content management system
CN111125142B (en) Data updating method and system
WO2017092356A1 (en) Server, method and system for providing service data
CN110830537B (en) Page processing method and device
CN108880849B (en) Statistical method, device and system for attribute information
JP5402066B2 (en) Information search system, information search device, information search program, and information search method
CN117312264B (en) File synchronization method, system, equipment and medium in virtual disk system
JP2012146076A (en) Cache server, cache management method, and cache management program
CN112286545B (en) Data updating method, device, equipment and storage medium
CN114816932A (en) Method, system, medium and electronic device for managing algorithm
CN114047849A (en) Method and device for displaying selection frame
CN115510346A (en) Page cache processing method, system, device and storage medium
CN116737728A (en) Advertisement data updating method, device, equipment and storage medium
JP2015103130A (en) Manual information management system

Legal Events

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

Effective date of registration: 20221021

Address after: 100102 Room 01, Floor 3, Room 01, Building 2 to 4, Yard 6, Wangjing East Road, Chaoyang District, Beijing

Patentee after: Beijing three cloud computing Co.,Ltd.

Patentee after: BEIJING SANKUAI ONLINE TECHNOLOGY Co.,Ltd.

Address before: 100083 2106-030, 9 North Fourth Ring Road, Haidian District, Beijing.

Patentee before: BEIJING SANKUAI ONLINE TECHNOLOGY Co.,Ltd.

TR01 Transfer of patent right